Java 类ims.clinical.vo.ReferralProffessionalDetailVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(ReferralsRecordingVo record)
{
    clear();
    if(record == null)
        return;

    if (record.getAuthoringInfoIsNotNull())
    {
        AuthoringInformationVo recordAuthoring = new AuthoringInformationVo();
        recordAuthoring.setAuthoringDateTime(record.getAuthoringInfo().getAuthoringDateTime());
        recordAuthoring.setAuthoringHcp(record.getAuthoringInfo().getAuthoringHcp());
        form.ctnDetails().customAuthoring().setValue(recordAuthoring);
    }

    form.ctnDetails().cmbReferralType().setValue(record.getReferralType());
    form.ctnDetails().cmbSource().setValue(record.getReferralSource());

    if (record.getReferralHCPIsNotNull())
    {
        form.ctnDetails().qmbRefferalTo().newRow(record.getReferralHCP(), record.getReferralHCP().toString());
        form.ctnDetails().qmbRefferalTo().setValue(record.getReferralHCPIsNotNull() ? record.getReferralHCP() : null);
    }

    form.ctnDetails().dteSend().setValue(record.getDateSent());
    form.ctnDetails().dteReceived().setValue(record.getDateReceived());
    form.ctnDetails().dteFirstSeen().setValue(record.getDateFirstSeen());
    form.ctnDetails().txtDetails().setValue(record.getDetails());

    if (record.getSuppliedReferralProfessionalIsNotNull())
    {
        form.ctnDetails().chkSupplyHcp().setValue(true);
        showSupplyHcp(true);
        ReferralProffessionalDetailVo voReferralsProf = record.getSuppliedReferralProfessional();
        form.ctnDetails().txtHcpName().setValue(voReferralsProf.getName());
        form.ctnDetails().txtLocation().setValue(voReferralsProf.getServiceLocation());
        form.ctnDetails().txtAddress().setValue(voReferralsProf.getAddress());
        form.ctnDetails().txtMobilePhone().setValue(voReferralsProf.getMobilePhone());
        form.ctnDetails().txtEmail().setValue(voReferralsProf.getEmailAddress());
        form.ctnDetails().txtWorkPhone().setValue(voReferralsProf.getWorkPhone());
    }

    if (!record.getSuppliedReferralProfessionalIsNotNull())
    {
        form.ctnDetails().chkSupplyHcp().setValue(false);
        showSupplyHcp(false);
        clearSupplyHcp();
        form.ctnDetails().qmbRefferalTo().newRow(record.getReferralHCP(), record.getReferralHCP().toString());
        form.ctnDetails().qmbRefferalTo().setValue(record.getReferralHCP());
        loadLocationsForMOS(true);
        form.ctnDetails().cmbLocation().setValue(record.getReferredtoLocation());

        if(record.getReferredtoLocationIsNotNull() && record.getReferredtoLocation().getAddressIsNotNull()){
            form.ctnDetails().txtAddress().setValue(record.getReferredtoLocation().getAddress().toDisplayStringForMultiLineTextBox());
            if(record.getReferredtoLocation().getAddress().getPhoneIsNotNull())
                form.ctnDetails().txtWorkPhone().setValue(record.getReferredtoLocation().getAddress().getPhone());
        }
        form.ctnDetails().txtMobilePhone().setValue(record.getReferralHCP().getMobile());
        form.ctnDetails().txtEmail().setValue(record.getReferralHCP().getEmailAddress());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(ReferralsRecordingVo record)
{
    clear();
    if(record == null)
        return;

    if (record.getAuthoringInfoIsNotNull())
    {
        AuthoringInformationVo recordAuthoring = new AuthoringInformationVo();
        recordAuthoring.setAuthoringDateTime(record.getAuthoringInfo().getAuthoringDateTime());
        recordAuthoring.setAuthoringHcp(record.getAuthoringInfo().getAuthoringHcp());
        form.ctnDetails().customAuthoring().setValue(recordAuthoring);
    }

    form.ctnDetails().cmbReferralType().setValue(record.getReferralType());
    form.ctnDetails().cmbSource().setValue(record.getReferralSource());

    if (record.getReferralHCPIsNotNull())
    {
        form.ctnDetails().qmbRefferalTo().newRow(record.getReferralHCP(), record.getReferralHCP().toString());
        form.ctnDetails().qmbRefferalTo().setValue(record.getReferralHCPIsNotNull() ? record.getReferralHCP() : null);
    }

    form.ctnDetails().dteSend().setValue(record.getDateSent());
    form.ctnDetails().dteReceived().setValue(record.getDateReceived());
    form.ctnDetails().dteFirstSeen().setValue(record.getDateFirstSeen());
    form.ctnDetails().txtDetails().setValue(record.getDetails());

    if (record.getSuppliedReferralProfessionalIsNotNull())
    {
        form.ctnDetails().chkSupplyHcp().setValue(true);
        showSupplyHcp(true);
        ReferralProffessionalDetailVo voReferralsProf = record.getSuppliedReferralProfessional();
        form.ctnDetails().txtHcpName().setValue(voReferralsProf.getName());
        form.ctnDetails().txtLocation().setValue(voReferralsProf.getServiceLocation());
        form.ctnDetails().txtAddress().setValue(voReferralsProf.getAddress());
        form.ctnDetails().txtMobilePhone().setValue(voReferralsProf.getMobilePhone());
        form.ctnDetails().txtEmail().setValue(voReferralsProf.getEmailAddress());
        form.ctnDetails().txtWorkPhone().setValue(voReferralsProf.getWorkPhone());
    }

    if (!record.getSuppliedReferralProfessionalIsNotNull())
    {
        form.ctnDetails().chkSupplyHcp().setValue(false);
        showSupplyHcp(false);
        clearSupplyHcp();
        form.ctnDetails().qmbRefferalTo().newRow(record.getReferralHCP(), record.getReferralHCP().toString());
        form.ctnDetails().qmbRefferalTo().setValue(record.getReferralHCP());
        loadLocationsForMOS(true);
        form.ctnDetails().cmbLocation().setValue(record.getReferredtoLocation());

        if(record.getReferredtoLocationIsNotNull() && record.getReferredtoLocation().getAddressIsNotNull()){
            form.ctnDetails().txtAddress().setValue(record.getReferredtoLocation().getAddress().toDisplayStringForMultiLineTextBox());
            if(record.getReferredtoLocation().getAddress().getPhoneIsNotNull())
                form.ctnDetails().txtWorkPhone().setValue(record.getReferredtoLocation().getAddress().getPhone());
        }
        form.ctnDetails().txtMobilePhone().setValue(record.getReferralHCP().getMobile());
        form.ctnDetails().txtEmail().setValue(record.getReferralHCP().getEmailAddress());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(ReferralsRecordingVo record)
{
    clear();
    if(record == null)
        return;

    if (record.getAuthoringInfoIsNotNull())
    {
        AuthoringInformationVo recordAuthoring = new AuthoringInformationVo();
        recordAuthoring.setAuthoringDateTime(record.getAuthoringInfo().getAuthoringDateTime());
        recordAuthoring.setAuthoringHcp(record.getAuthoringInfo().getAuthoringHcp());
        form.ctnDetails().customAuthoring().setValue(recordAuthoring);
    }

    form.ctnDetails().cmbReferralType().setValue(record.getReferralType());
    form.ctnDetails().cmbSource().setValue(record.getReferralSource());

    if (record.getReferralHCPIsNotNull())
    {
        form.ctnDetails().qmbRefferalTo().newRow(record.getReferralHCP(), record.getReferralHCP().toString());
        form.ctnDetails().qmbRefferalTo().setValue(record.getReferralHCPIsNotNull() ? record.getReferralHCP() : null);
    }

    form.ctnDetails().dteSend().setValue(record.getDateSent());
    form.ctnDetails().dteReceived().setValue(record.getDateReceived());
    form.ctnDetails().dteFirstSeen().setValue(record.getDateFirstSeen());
    form.ctnDetails().txtDetails().setValue(record.getDetails());

    if (record.getSuppliedReferralProfessionalIsNotNull())
    {
        form.ctnDetails().chkSupplyHcp().setValue(true);
        showSupplyHcp(true);
        ReferralProffessionalDetailVo voReferralsProf = record.getSuppliedReferralProfessional();
        form.ctnDetails().txtHcpName().setValue(voReferralsProf.getName());
        form.ctnDetails().txtLocation().setValue(voReferralsProf.getServiceLocation());
        form.ctnDetails().txtAddress().setValue(voReferralsProf.getAddress());
        form.ctnDetails().txtMobilePhone().setValue(voReferralsProf.getMobilePhone());
        form.ctnDetails().txtEmail().setValue(voReferralsProf.getEmailAddress());
        form.ctnDetails().txtWorkPhone().setValue(voReferralsProf.getWorkPhone());
    }

    if (!record.getSuppliedReferralProfessionalIsNotNull())
    {
        form.ctnDetails().chkSupplyHcp().setValue(false);
        showSupplyHcp(false);
        clearSupplyHcp();
        form.ctnDetails().qmbRefferalTo().newRow(record.getReferralHCP(), record.getReferralHCP().toString());
        form.ctnDetails().qmbRefferalTo().setValue(record.getReferralHCP());
        loadLocationsForMOS(true);
        form.ctnDetails().cmbLocation().setValue(record.getReferredtoLocation());

        if(record.getReferredtoLocationIsNotNull() && record.getReferredtoLocation().getAddressIsNotNull()){
            form.ctnDetails().txtAddress().setValue(record.getReferredtoLocation().getAddress().toDisplayStringForMultiLineTextBox());
            if(record.getReferredtoLocation().getAddress().getPhoneIsNotNull())
                form.ctnDetails().txtWorkPhone().setValue(record.getReferredtoLocation().getAddress().getPhone());
        }
        form.ctnDetails().txtMobilePhone().setValue(record.getReferralHCP().getMobile());
        form.ctnDetails().txtEmail().setValue(record.getReferralHCP().getEmailAddress());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(ReferralsRecordingVo record)
{
    clear();
    if(record == null)
        return;

    if (record.getAuthoringInfoIsNotNull())
    {
        AuthoringInformationVo recordAuthoring = new AuthoringInformationVo();
        recordAuthoring.setAuthoringDateTime(record.getAuthoringInfo().getAuthoringDateTime());
        recordAuthoring.setAuthoringHcp(record.getAuthoringInfo().getAuthoringHcp());
        form.ctnDetails().customAuthoring().setValue(recordAuthoring);
    }

    form.ctnDetails().cmbReferralType().setValue(record.getReferralType());
    form.ctnDetails().cmbSource().setValue(record.getReferralSource());

    if (record.getReferralHCPIsNotNull())
    {
        form.ctnDetails().qmbRefferalTo().newRow(record.getReferralHCP(), record.getReferralHCP().toString());
        form.ctnDetails().qmbRefferalTo().setValue(record.getReferralHCPIsNotNull() ? record.getReferralHCP() : null);
    }

    form.ctnDetails().dteSend().setValue(record.getDateSent());
    form.ctnDetails().dteReceived().setValue(record.getDateReceived());
    form.ctnDetails().dteFirstSeen().setValue(record.getDateFirstSeen());
    form.ctnDetails().txtDetails().setValue(record.getDetails());

    if (record.getSuppliedReferralProfessionalIsNotNull())
    {
        form.ctnDetails().chkSupplyHcp().setValue(true);
        showSupplyHcp(true);
        ReferralProffessionalDetailVo voReferralsProf = record.getSuppliedReferralProfessional();
        form.ctnDetails().txtHcpName().setValue(voReferralsProf.getName());
        form.ctnDetails().txtLocation().setValue(voReferralsProf.getServiceLocation());
        form.ctnDetails().txtAddress().setValue(voReferralsProf.getAddress());
        form.ctnDetails().txtMobilePhone().setValue(voReferralsProf.getMobilePhone());
        form.ctnDetails().txtEmail().setValue(voReferralsProf.getEmailAddress());
        form.ctnDetails().txtWorkPhone().setValue(voReferralsProf.getWorkPhone());
    }

    if (!record.getSuppliedReferralProfessionalIsNotNull())
    {
        form.ctnDetails().chkSupplyHcp().setValue(false);
        showSupplyHcp(false);
        clearSupplyHcp();
        form.ctnDetails().qmbRefferalTo().newRow(record.getReferralHCP(), record.getReferralHCP().toString());
        form.ctnDetails().qmbRefferalTo().setValue(record.getReferralHCP());
        loadLocationsForMOS(true);
        form.ctnDetails().cmbLocation().setValue(record.getReferredtoLocation());

        if(record.getReferredtoLocationIsNotNull() && record.getReferredtoLocation().getAddressIsNotNull()){
            form.ctnDetails().txtAddress().setValue(record.getReferredtoLocation().getAddress().toDisplayStringForMultiLineTextBox());
            if(record.getReferredtoLocation().getAddress().getPhoneIsNotNull())
                form.ctnDetails().txtWorkPhone().setValue(record.getReferredtoLocation().getAddress().getPhone());
        }
        form.ctnDetails().txtMobilePhone().setValue(record.getReferralHCP().getMobile());
        form.ctnDetails().txtEmail().setValue(record.getReferralHCP().getEmailAddress());
    }
}