Java 类ims.core.vo.ExternalResourceVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateAdmittedFromDetailsFromData(AdmissionDetailVo admissionDetail)
{
    if (admissionDetail.getExtendedDetails() == null)
        return;

    form.cmbAdmittedFrom().setValue(admissionDetail.getExtendedDetails().getAdmittedFromType());

    if (admissionDetail.getExtendedDetails().getAdmittedFromIsNotNull())
    {
        ExternalResourceVo admFromDet = admissionDetail.getExtendedDetails().getAdmittedFrom();

        form.txtAdmittedFromName().setValue(admFromDet.getResourcename());
        if (admFromDet.getResourceAddressIsNotNull())
        {
            form.txtAdrAdmittedFromLine1().setValue(admFromDet.getResourceAddress().getLine1());
            form.txtAdrAdmittedFromLine2().setValue(admFromDet.getResourceAddress().getLine2());
            form.txtAdrAdmittedFromLine3().setValue(admFromDet.getResourceAddress().getLine3());
            form.cmbAdmittedCounty().setValue(admFromDet.getResourceAddress().getCounty());
            form.txtTelephoneNr().setValue(admFromDet.getResourceAddress().getPhone());
        }

        form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(admFromDet);
    }

}
项目:AvoinApotti    文件:Logic.java   
private void populateReferrerDetailsFromData(AdmissionDetailVo admissionDetail)
{
    if (admissionDetail.getExtendedDetails() == null)
        return;

    form.cmbReferredFrom().setValue(admissionDetail.getExtendedDetails().getReferredFromType());

    if (admissionDetail.getExtendedDetails().getReferrerDetailsIsNotNull())
    {
        ExternalResourceVo referrerDet = admissionDetail.getExtendedDetails().getReferrerDetails();

        form.txtReferrerNameOrganisation().setValue(referrerDet.getResourcename());
        if (referrerDet.getResourceAddressIsNotNull())
        {
            form.txtReferrerAdr1().setValue(referrerDet.getResourceAddress().getLine1());
            form.txtReferrerAdr2().setValue(referrerDet.getResourceAddress().getLine2());
            form.txtReferrerAdr3().setValue(referrerDet.getResourceAddress().getLine3());
            form.cmbReferrerCounty().setValue(referrerDet.getResourceAddress().getCounty());
            form.txtReferrerContactNr().setValue(referrerDet.getResourceAddress().getPhone());
        }

        form.getLocalContext().setSelectedExternalResourceForReferredFrom(referrerDet);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateAdmittedFromDetails(ExternalResourceVo selectedExtResForAdmittedFrom)
{
    if (selectedExtResForAdmittedFrom == null)
        return;

    if (selectedExtResForAdmittedFrom.getExternalResourceTypeIsNotNull())
    {
        form.txtAdmittedFromName().setValue(selectedExtResForAdmittedFrom.getResourcename() != null ? selectedExtResForAdmittedFrom.getResourcename() : null);
        if (selectedExtResForAdmittedFrom.getResourceAddressIsNotNull())
        {
            PersonAddress resAddress = selectedExtResForAdmittedFrom.getResourceAddress();

            form.txtAdrAdmittedFromLine1().setValue(resAddress.getLine1());
            form.txtAdrAdmittedFromLine2().setValue(resAddress.getLine2());
            form.txtAdrAdmittedFromLine3().setValue(resAddress.getLine3());
            form.cmbAdmittedCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

            form.txtTelephoneNr().setValue(resAddress.getPhone());
        }

    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateReferrerDetails(ExternalResourceVo selectedExtResForReferredFrom)
{
    if (selectedExtResForReferredFrom == null)
        return;

    if (selectedExtResForReferredFrom.getExternalResourceTypeIsNotNull())
    {
        form.txtReferrerNameOrganisation().setValue(selectedExtResForReferredFrom.getResourcename() != null ? selectedExtResForReferredFrom.getResourcename() : null);
        if (selectedExtResForReferredFrom.getResourceAddressIsNotNull())
        {
            PersonAddress resAddress = selectedExtResForReferredFrom.getResourceAddress();

            form.txtReferrerAdr1().setValue(resAddress.getLine1());
            form.txtReferrerAdr2().setValue(resAddress.getLine2());
            form.txtReferrerAdr3().setValue(resAddress.getLine3());
            form.cmbReferrerCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

            form.txtReferrerContactNr().setValue(resAddress.getPhone());
        }

    }

}
项目:AvoinApotti    文件:Logic.java   
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
    if( externalVoCol == null )
        return;

    for( int i = 0; i < externalVoCol.size();i++ )
    {
        ExternalResourceVo tempVo = externalVoCol.get(i);
        if( tempVo != null )
        {
            grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow();
            rowextres.setColumnResourceType(tempVo.getExternalResourceTypeIsNotNull() ? tempVo.getExternalResourceType().getText():"");
            rowextres.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText():null);
            rowextres.setColumnName(tempVo.getResourcename());
            rowextres.setColumnAddress(tempVo.getResourceAddress().getLine1()+ " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2():"")  + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3():""));
            rowextres.setColumnCounty(tempVo.getResourceAddress().getCountyIsNotNull() ? tempVo.getResourceAddress().getCounty().getText():"");
            rowextres.setColumnWorkPhone(tempVo.getResourceAddress().getPhoneIsNotNull() ? tempVo.getResourceAddress().getPhone():"");
            rowextres.setColumnStatus(tempVo.getResourceStatusIsNotNull() ? tempVo.getResourceStatus().getText():"");
            rowextres.setValue(tempVo);

        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateDetailFields(ExternalResourceVo tempVo)
{
    if( tempVo == null)
        return;

    form.cmbExternalResourceTypeDetails().setValue(tempVo.getExternalResourceType());
    form.txtNameDetails().setValue(tempVo.getResourcename());
    form.txtAddress1().setValue(tempVo.getResourceAddress().getLine1());
    form.txtAddress2().setValue(tempVo.getResourceAddress().getLine2());
    form.txtAddress3().setValue(tempVo.getResourceAddress().getLine3());
    form.cmbCounty().setValue(tempVo.getResourceAddress().getCounty());
    form.cmbHcpTypeDetails().setValue(tempVo.getHCPType());
    form.txtPhone().setValue(tempVo.getResourceAddress().getPhone());
    form.cmbStatusDetails().setValue(tempVo.getResourceStatus());
    cmbExternalResourceTypeDetailsValueChanged();


}
项目:AvoinApotti    文件:Logic.java   
private void populateGidAfterSave(ExternalResourceVo record)
{
    if( record == null )
        return;
    clearGridExternalResource();

    grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow(true);
    rowextres.setColumnResourceType(record.getExternalResourceTypeIsNotNull() ? record.getExternalResourceType().getText():"");
    rowextres.setColumnHCPType(record.getHCPTypeIsNotNull() ? record.getHCPType().getText():null);
    rowextres.setColumnName(record.getResourcename());
    rowextres.setColumnAddress(record.getResourceAddress().getLine1()+ " " + (record.getResourceAddress().getLine2IsNotNull() ? record.getResourceAddress().getLine2():"")  + " " + (record.getResourceAddress().getLine3IsNotNull() ? record.getResourceAddress().getLine3():""));
    rowextres.setColumnCounty(record.getResourceAddress().getCountyIsNotNull() ? record.getResourceAddress().getCounty().getText():"");
    rowextres.setColumnWorkPhone(record.getResourceAddress().getPhoneIsNotNull() ? record.getResourceAddress().getPhone():"");
    rowextres.setColumnStatus(record.getResourceStatusIsNotNull() ? record.getResourceStatus().getText():"");
    rowextres.setValue(record);





}
项目:openMAXIMS    文件:Logic.java   
private void populateAdmittedFromDetailsFromData(AdmissionDetailVo admissionDetail)
{
    if (admissionDetail.getExtendedDetails() == null)
        return;

    form.cmbAdmittedFrom().setValue(admissionDetail.getExtendedDetails().getAdmittedFromType());

    if (admissionDetail.getExtendedDetails().getAdmittedFromIsNotNull())
    {
        ExternalResourceVo admFromDet = admissionDetail.getExtendedDetails().getAdmittedFrom();

        form.txtAdmittedFromName().setValue(admFromDet.getResourcename());
        if (admFromDet.getResourceAddressIsNotNull())
        {
            form.txtAdrAdmittedFromLine1().setValue(admFromDet.getResourceAddress().getLine1());
            form.txtAdrAdmittedFromLine2().setValue(admFromDet.getResourceAddress().getLine2());
            form.txtAdrAdmittedFromLine3().setValue(admFromDet.getResourceAddress().getLine3());
            form.cmbAdmittedCounty().setValue(admFromDet.getResourceAddress().getCounty());
            form.txtTelephoneNr().setValue(admFromDet.getResourceAddress().getPhone());
        }

        form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(admFromDet);
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateReferrerDetailsFromData(AdmissionDetailVo admissionDetail)
{
    if (admissionDetail.getExtendedDetails() == null)
        return;

    form.cmbReferredFrom().setValue(admissionDetail.getExtendedDetails().getReferredFromType());

    if (admissionDetail.getExtendedDetails().getReferrerDetailsIsNotNull())
    {
        ExternalResourceVo referrerDet = admissionDetail.getExtendedDetails().getReferrerDetails();

        form.txtReferrerNameOrganisation().setValue(referrerDet.getResourcename());
        if (referrerDet.getResourceAddressIsNotNull())
        {
            form.txtReferrerAdr1().setValue(referrerDet.getResourceAddress().getLine1());
            form.txtReferrerAdr2().setValue(referrerDet.getResourceAddress().getLine2());
            form.txtReferrerAdr3().setValue(referrerDet.getResourceAddress().getLine3());
            form.cmbReferrerCounty().setValue(referrerDet.getResourceAddress().getCounty());
            form.txtReferrerContactNr().setValue(referrerDet.getResourceAddress().getPhone());
        }

        form.getLocalContext().setSelectedExternalResourceForReferredFrom(referrerDet);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateAdmittedFromDetails(ExternalResourceVo selectedExtResForAdmittedFrom)
{
    if (selectedExtResForAdmittedFrom == null)
        return;

    if (selectedExtResForAdmittedFrom.getExternalResourceTypeIsNotNull())
    {
        form.txtAdmittedFromName().setValue(selectedExtResForAdmittedFrom.getResourcename() != null ? selectedExtResForAdmittedFrom.getResourcename() : null);
        if (selectedExtResForAdmittedFrom.getResourceAddressIsNotNull())
        {
            PersonAddress resAddress = selectedExtResForAdmittedFrom.getResourceAddress();

            form.txtAdrAdmittedFromLine1().setValue(resAddress.getLine1());
            form.txtAdrAdmittedFromLine2().setValue(resAddress.getLine2());
            form.txtAdrAdmittedFromLine3().setValue(resAddress.getLine3());
            form.cmbAdmittedCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

            form.txtTelephoneNr().setValue(resAddress.getPhone());
        }

    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateReferrerDetails(ExternalResourceVo selectedExtResForReferredFrom)
{
    if (selectedExtResForReferredFrom == null)
        return;

    if (selectedExtResForReferredFrom.getExternalResourceTypeIsNotNull())
    {
        form.txtReferrerNameOrganisation().setValue(selectedExtResForReferredFrom.getResourcename() != null ? selectedExtResForReferredFrom.getResourcename() : null);
        if (selectedExtResForReferredFrom.getResourceAddressIsNotNull())
        {
            PersonAddress resAddress = selectedExtResForReferredFrom.getResourceAddress();

            form.txtReferrerAdr1().setValue(resAddress.getLine1());
            form.txtReferrerAdr2().setValue(resAddress.getLine2());
            form.txtReferrerAdr3().setValue(resAddress.getLine3());
            form.cmbReferrerCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

            form.txtReferrerContactNr().setValue(resAddress.getPhone());
        }

    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
    if( externalVoCol == null )
        return;

    for( int i = 0; i < externalVoCol.size();i++ )
    {
        ExternalResourceVo tempVo = externalVoCol.get(i);
        if( tempVo != null )
        {
            grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow();
            rowextres.setColumnResourceType(tempVo.getExternalResourceTypeIsNotNull() ? tempVo.getExternalResourceType().getText():"");
            rowextres.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText():null);
            rowextres.setColumnName(tempVo.getResourcename());
            rowextres.setColumnAddress(tempVo.getResourceAddress().getLine1()+ " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2():"")  + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3():""));
            rowextres.setColumnCounty(tempVo.getResourceAddress().getCountyIsNotNull() ? tempVo.getResourceAddress().getCounty().getText():"");
            rowextres.setColumnWorkPhone(tempVo.getResourceAddress().getPhoneIsNotNull() ? tempVo.getResourceAddress().getPhone():"");
            rowextres.setColumnStatus(tempVo.getResourceStatusIsNotNull() ? tempVo.getResourceStatus().getText():"");
            rowextres.setValue(tempVo);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateDetailFields(ExternalResourceVo tempVo)
{
    if( tempVo == null)
        return;

    form.cmbExternalResourceTypeDetails().setValue(tempVo.getExternalResourceType());
    form.txtNameDetails().setValue(tempVo.getResourcename());
    form.txtAddress1().setValue(tempVo.getResourceAddress().getLine1());
    form.txtAddress2().setValue(tempVo.getResourceAddress().getLine2());
    form.txtAddress3().setValue(tempVo.getResourceAddress().getLine3());
    form.cmbCounty().setValue(tempVo.getResourceAddress().getCounty());
    form.cmbHcpTypeDetails().setValue(tempVo.getHCPType());
    form.txtPhone().setValue(tempVo.getResourceAddress().getPhone());
    form.cmbStatusDetails().setValue(tempVo.getResourceStatus());
    cmbExternalResourceTypeDetailsValueChanged();


}
项目:openMAXIMS    文件:Logic.java   
private void populateGidAfterSave(ExternalResourceVo record)
{
    if( record == null )
        return;
    clearGridExternalResource();

    grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow(true);
    rowextres.setColumnResourceType(record.getExternalResourceTypeIsNotNull() ? record.getExternalResourceType().getText():"");
    rowextres.setColumnHCPType(record.getHCPTypeIsNotNull() ? record.getHCPType().getText():null);
    rowextres.setColumnName(record.getResourcename());
    rowextres.setColumnAddress(record.getResourceAddress().getLine1()+ " " + (record.getResourceAddress().getLine2IsNotNull() ? record.getResourceAddress().getLine2():"")  + " " + (record.getResourceAddress().getLine3IsNotNull() ? record.getResourceAddress().getLine3():""));
    rowextres.setColumnCounty(record.getResourceAddress().getCountyIsNotNull() ? record.getResourceAddress().getCounty().getText():"");
    rowextres.setColumnWorkPhone(record.getResourceAddress().getPhoneIsNotNull() ? record.getResourceAddress().getPhone():"");
    rowextres.setColumnStatus(record.getResourceStatusIsNotNull() ? record.getResourceStatus().getText():"");
    rowextres.setValue(record);





}
项目:openMAXIMS    文件:Logic.java   
private void populateAdmittedFromDetailsFromData(AdmissionDetailVo admissionDetail)
{
    if (admissionDetail.getExtendedDetails() == null)
        return;

    form.cmbAdmittedFrom().setValue(admissionDetail.getExtendedDetails().getAdmittedFromType());

    if (admissionDetail.getExtendedDetails().getAdmittedFromIsNotNull())
    {
        ExternalResourceVo admFromDet = admissionDetail.getExtendedDetails().getAdmittedFrom();

        form.txtAdmittedFromName().setValue(admFromDet.getResourcename());
        if (admFromDet.getResourceAddressIsNotNull())
        {
            form.txtAdrAdmittedFromLine1().setValue(admFromDet.getResourceAddress().getLine1());
            form.txtAdrAdmittedFromLine2().setValue(admFromDet.getResourceAddress().getLine2());
            form.txtAdrAdmittedFromLine3().setValue(admFromDet.getResourceAddress().getLine3());
            form.cmbAdmittedCounty().setValue(admFromDet.getResourceAddress().getCounty());
            form.txtTelephoneNr().setValue(admFromDet.getResourceAddress().getPhone());
        }

        form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(admFromDet);
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateReferrerDetailsFromData(AdmissionDetailVo admissionDetail)
{
    if (admissionDetail.getExtendedDetails() == null)
        return;

    form.cmbReferredFrom().setValue(admissionDetail.getExtendedDetails().getReferredFromType());

    if (admissionDetail.getExtendedDetails().getReferrerDetailsIsNotNull())
    {
        ExternalResourceVo referrerDet = admissionDetail.getExtendedDetails().getReferrerDetails();

        form.txtReferrerNameOrganisation().setValue(referrerDet.getResourcename());
        if (referrerDet.getResourceAddressIsNotNull())
        {
            form.txtReferrerAdr1().setValue(referrerDet.getResourceAddress().getLine1());
            form.txtReferrerAdr2().setValue(referrerDet.getResourceAddress().getLine2());
            form.txtReferrerAdr3().setValue(referrerDet.getResourceAddress().getLine3());
            form.cmbReferrerCounty().setValue(referrerDet.getResourceAddress().getCounty());
            form.txtReferrerContactNr().setValue(referrerDet.getResourceAddress().getPhone());
        }

        form.getLocalContext().setSelectedExternalResourceForReferredFrom(referrerDet);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateAdmittedFromDetails(ExternalResourceVo selectedExtResForAdmittedFrom)
{
    if (selectedExtResForAdmittedFrom == null)
        return;

    if (selectedExtResForAdmittedFrom.getExternalResourceTypeIsNotNull())
    {
        form.txtAdmittedFromName().setValue(selectedExtResForAdmittedFrom.getResourcename() != null ? selectedExtResForAdmittedFrom.getResourcename() : null);
        if (selectedExtResForAdmittedFrom.getResourceAddressIsNotNull())
        {
            PersonAddress resAddress = selectedExtResForAdmittedFrom.getResourceAddress();

            form.txtAdrAdmittedFromLine1().setValue(resAddress.getLine1());
            form.txtAdrAdmittedFromLine2().setValue(resAddress.getLine2());
            form.txtAdrAdmittedFromLine3().setValue(resAddress.getLine3());
            form.cmbAdmittedCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

            form.txtTelephoneNr().setValue(resAddress.getPhone());
        }

    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateReferrerDetails(ExternalResourceVo selectedExtResForReferredFrom)
{
    if (selectedExtResForReferredFrom == null)
        return;

    if (selectedExtResForReferredFrom.getExternalResourceTypeIsNotNull())
    {
        form.txtReferrerNameOrganisation().setValue(selectedExtResForReferredFrom.getResourcename() != null ? selectedExtResForReferredFrom.getResourcename() : null);
        if (selectedExtResForReferredFrom.getResourceAddressIsNotNull())
        {
            PersonAddress resAddress = selectedExtResForReferredFrom.getResourceAddress();

            form.txtReferrerAdr1().setValue(resAddress.getLine1());
            form.txtReferrerAdr2().setValue(resAddress.getLine2());
            form.txtReferrerAdr3().setValue(resAddress.getLine3());
            form.cmbReferrerCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

            form.txtReferrerContactNr().setValue(resAddress.getPhone());
        }

    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
    if( externalVoCol == null )
        return;

    for( int i = 0; i < externalVoCol.size();i++ )
    {
        ExternalResourceVo tempVo = externalVoCol.get(i);
        if( tempVo != null )
        {
            grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow();
            rowextres.setColumnResourceType(tempVo.getExternalResourceTypeIsNotNull() ? tempVo.getExternalResourceType().getText():"");
            rowextres.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText():null);
            rowextres.setColumnName(tempVo.getResourcename());
            rowextres.setColumnAddress(tempVo.getResourceAddress().getLine1()+ " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2():"")  + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3():""));
            rowextres.setColumnCounty(tempVo.getResourceAddress().getCountyIsNotNull() ? tempVo.getResourceAddress().getCounty().getText():"");
            rowextres.setColumnWorkPhone(tempVo.getResourceAddress().getPhoneIsNotNull() ? tempVo.getResourceAddress().getPhone():"");
            rowextres.setColumnStatus(tempVo.getResourceStatusIsNotNull() ? tempVo.getResourceStatus().getText():"");
            rowextres.setValue(tempVo);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateDetailFields(ExternalResourceVo tempVo)
{
    if( tempVo == null)
        return;

    form.cmbExternalResourceTypeDetails().setValue(tempVo.getExternalResourceType());
    form.txtNameDetails().setValue(tempVo.getResourcename());
    form.txtAddress1().setValue(tempVo.getResourceAddress().getLine1());
    form.txtAddress2().setValue(tempVo.getResourceAddress().getLine2());
    form.txtAddress3().setValue(tempVo.getResourceAddress().getLine3());
    form.cmbCounty().setValue(tempVo.getResourceAddress().getCounty());
    form.cmbHcpTypeDetails().setValue(tempVo.getHCPType());
    form.txtPhone().setValue(tempVo.getResourceAddress().getPhone());
    form.cmbStatusDetails().setValue(tempVo.getResourceStatus());
    cmbExternalResourceTypeDetailsValueChanged();


}
项目:openMAXIMS    文件:Logic.java   
private void populateGidAfterSave(ExternalResourceVo record)
{
    if( record == null )
        return;
    clearGridExternalResource();

    grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow(true);
    rowextres.setColumnResourceType(record.getExternalResourceTypeIsNotNull() ? record.getExternalResourceType().getText():"");
    rowextres.setColumnHCPType(record.getHCPTypeIsNotNull() ? record.getHCPType().getText():null);
    rowextres.setColumnName(record.getResourcename());
    rowextres.setColumnAddress(record.getResourceAddress().getLine1()+ " " + (record.getResourceAddress().getLine2IsNotNull() ? record.getResourceAddress().getLine2():"")  + " " + (record.getResourceAddress().getLine3IsNotNull() ? record.getResourceAddress().getLine3():""));
    rowextres.setColumnCounty(record.getResourceAddress().getCountyIsNotNull() ? record.getResourceAddress().getCounty().getText():"");
    rowextres.setColumnWorkPhone(record.getResourceAddress().getPhoneIsNotNull() ? record.getResourceAddress().getPhone():"");
    rowextres.setColumnStatus(record.getResourceStatusIsNotNull() ? record.getResourceStatus().getText():"");
    rowextres.setValue(record);





}
项目:openmaxims-linux    文件:Logic.java   
private void populateAdmittedFromDetailsFromData(AdmissionDetailVo admissionDetail)
{
    if (admissionDetail.getExtendedDetails() == null)
        return;

    form.cmbAdmittedFrom().setValue(admissionDetail.getExtendedDetails().getAdmittedFromType());

    if (admissionDetail.getExtendedDetails().getAdmittedFromIsNotNull())
    {
        ExternalResourceVo admFromDet = admissionDetail.getExtendedDetails().getAdmittedFrom();

        form.txtAdmittedFromName().setValue(admFromDet.getResourcename());
        if (admFromDet.getResourceAddressIsNotNull())
        {
            form.txtAdrAdmittedFromLine1().setValue(admFromDet.getResourceAddress().getLine1());
            form.txtAdrAdmittedFromLine2().setValue(admFromDet.getResourceAddress().getLine2());
            form.txtAdrAdmittedFromLine3().setValue(admFromDet.getResourceAddress().getLine3());
            form.cmbAdmittedCounty().setValue(admFromDet.getResourceAddress().getCounty());
            form.txtTelephoneNr().setValue(admFromDet.getResourceAddress().getPhone());
        }

        form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(admFromDet);
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateReferrerDetailsFromData(AdmissionDetailVo admissionDetail)
{
    if (admissionDetail.getExtendedDetails() == null)
        return;

    form.cmbReferredFrom().setValue(admissionDetail.getExtendedDetails().getReferredFromType());

    if (admissionDetail.getExtendedDetails().getReferrerDetailsIsNotNull())
    {
        ExternalResourceVo referrerDet = admissionDetail.getExtendedDetails().getReferrerDetails();

        form.txtReferrerNameOrganisation().setValue(referrerDet.getResourcename());
        if (referrerDet.getResourceAddressIsNotNull())
        {
            form.txtReferrerAdr1().setValue(referrerDet.getResourceAddress().getLine1());
            form.txtReferrerAdr2().setValue(referrerDet.getResourceAddress().getLine2());
            form.txtReferrerAdr3().setValue(referrerDet.getResourceAddress().getLine3());
            form.cmbReferrerCounty().setValue(referrerDet.getResourceAddress().getCounty());
            form.txtReferrerContactNr().setValue(referrerDet.getResourceAddress().getPhone());
        }

        form.getLocalContext().setSelectedExternalResourceForReferredFrom(referrerDet);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAdmittedFromDetails(ExternalResourceVo selectedExtResForAdmittedFrom)
{
    if (selectedExtResForAdmittedFrom == null)
        return;

    if (selectedExtResForAdmittedFrom.getExternalResourceTypeIsNotNull())
    {
        form.txtAdmittedFromName().setValue(selectedExtResForAdmittedFrom.getResourcename() != null ? selectedExtResForAdmittedFrom.getResourcename() : null);
        if (selectedExtResForAdmittedFrom.getResourceAddressIsNotNull())
        {
            PersonAddress resAddress = selectedExtResForAdmittedFrom.getResourceAddress();

            form.txtAdrAdmittedFromLine1().setValue(resAddress.getLine1());
            form.txtAdrAdmittedFromLine2().setValue(resAddress.getLine2());
            form.txtAdrAdmittedFromLine3().setValue(resAddress.getLine3());
            form.cmbAdmittedCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

            form.txtTelephoneNr().setValue(resAddress.getPhone());
        }

    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateReferrerDetails(ExternalResourceVo selectedExtResForReferredFrom)
{
    if (selectedExtResForReferredFrom == null)
        return;

    if (selectedExtResForReferredFrom.getExternalResourceTypeIsNotNull())
    {
        form.txtReferrerNameOrganisation().setValue(selectedExtResForReferredFrom.getResourcename() != null ? selectedExtResForReferredFrom.getResourcename() : null);
        if (selectedExtResForReferredFrom.getResourceAddressIsNotNull())
        {
            PersonAddress resAddress = selectedExtResForReferredFrom.getResourceAddress();

            form.txtReferrerAdr1().setValue(resAddress.getLine1());
            form.txtReferrerAdr2().setValue(resAddress.getLine2());
            form.txtReferrerAdr3().setValue(resAddress.getLine3());
            form.cmbReferrerCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);

            form.txtReferrerContactNr().setValue(resAddress.getPhone());
        }

    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
    if( externalVoCol == null )
        return;

    for( int i = 0; i < externalVoCol.size();i++ )
    {
        ExternalResourceVo tempVo = externalVoCol.get(i);
        if( tempVo != null )
        {
            grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow();
            rowextres.setColumnResourceType(tempVo.getExternalResourceTypeIsNotNull() ? tempVo.getExternalResourceType().getText():"");
            rowextres.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText():null);
            rowextres.setColumnName(tempVo.getResourcename());
            rowextres.setColumnAddress(tempVo.getResourceAddress().getLine1()+ " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2():"")  + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3():""));
            rowextres.setColumnCounty(tempVo.getResourceAddress().getCountyIsNotNull() ? tempVo.getResourceAddress().getCounty().getText():"");
            rowextres.setColumnWorkPhone(tempVo.getResourceAddress().getPhoneIsNotNull() ? tempVo.getResourceAddress().getPhone():"");
            rowextres.setColumnStatus(tempVo.getResourceStatusIsNotNull() ? tempVo.getResourceStatus().getText():"");
            rowextres.setValue(tempVo);

        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateDetailFields(ExternalResourceVo tempVo)
{
    if( tempVo == null)
        return;

    form.cmbExternalResourceTypeDetails().setValue(tempVo.getExternalResourceType());
    form.txtNameDetails().setValue(tempVo.getResourcename());
    form.txtAddress1().setValue(tempVo.getResourceAddress().getLine1());
    form.txtAddress2().setValue(tempVo.getResourceAddress().getLine2());
    form.txtAddress3().setValue(tempVo.getResourceAddress().getLine3());
    form.cmbCounty().setValue(tempVo.getResourceAddress().getCounty());
    form.cmbHcpTypeDetails().setValue(tempVo.getHCPType());
    form.txtPhone().setValue(tempVo.getResourceAddress().getPhone());
    form.cmbStatusDetails().setValue(tempVo.getResourceStatus());
    cmbExternalResourceTypeDetailsValueChanged();


}
项目:openmaxims-linux    文件:Logic.java   
private void populateGidAfterSave(ExternalResourceVo record)
{
    if( record == null )
        return;
    clearGridExternalResource();

    grdExternalResourceRow rowextres = form.grdExternalResource().getRows().newRow(true);
    rowextres.setColumnResourceType(record.getExternalResourceTypeIsNotNull() ? record.getExternalResourceType().getText():"");
    rowextres.setColumnHCPType(record.getHCPTypeIsNotNull() ? record.getHCPType().getText():null);
    rowextres.setColumnName(record.getResourcename());
    rowextres.setColumnAddress(record.getResourceAddress().getLine1()+ " " + (record.getResourceAddress().getLine2IsNotNull() ? record.getResourceAddress().getLine2():"")  + " " + (record.getResourceAddress().getLine3IsNotNull() ? record.getResourceAddress().getLine3():""));
    rowextres.setColumnCounty(record.getResourceAddress().getCountyIsNotNull() ? record.getResourceAddress().getCounty().getText():"");
    rowextres.setColumnWorkPhone(record.getResourceAddress().getPhoneIsNotNull() ? record.getResourceAddress().getPhone():"");
    rowextres.setColumnStatus(record.getResourceStatusIsNotNull() ? record.getResourceStatus().getText():"");
    rowextres.setValue(record);





}
项目:AvoinApotti    文件:Logic.java   
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
    if (externalVoCol == null)
        return;

    for (int i = 0; i < externalVoCol.size(); i++)
    {
        ExternalResourceVo tempVo = externalVoCol.get(i);
        if (tempVo != null)
        {
            grdExternalResourceRow rowExternalResGrid = form.grdExternalResource().getRows().newRow();
            rowExternalResGrid.setColumnResourceType(tempVo.getExternalResourceType().getText());
            rowExternalResGrid.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText() : null);
            rowExternalResGrid.setColumnName(tempVo.getResourcename());

            if (tempVo.getResourceAddressIsNotNull())
            {
                rowExternalResGrid.setColumnAddress(tempVo.getResourceAddress().getLine1() + " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2() : "") + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3() : ""));
                rowExternalResGrid.setColumnCounty(tempVo.getResourceAddress().getCounty() != null ? tempVo.getResourceAddress().getCounty().getText() : null);
                rowExternalResGrid.setColumnWorkPhone(tempVo.getResourceAddress().getPhone());
            }
            rowExternalResGrid.setColumnStatus(tempVo.getResourceStatus().getText());
            rowExternalResGrid.setValue(tempVo);

        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void grdExternalResourceSelectionChanged()
{
    clearDetailsFields();
    if( form.grdExternalResource().getSelectedRow() != null)
    {
        ExternalResourceVo tempVo  = domain.getExternalResourceById(form.grdExternalResource().getSelectedRow().getValue());
        populateDetailFields(tempVo);
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
    if (externalVoCol == null)
        return;

    for (int i = 0; i < externalVoCol.size(); i++)
    {
        ExternalResourceVo tempVo = externalVoCol.get(i);
        if (tempVo != null)
        {
            grdExternalResourceRow rowExternalResGrid = form.grdExternalResource().getRows().newRow();
            rowExternalResGrid.setColumnResourceType(tempVo.getExternalResourceType().getText());
            rowExternalResGrid.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText() : null);
            rowExternalResGrid.setColumnName(tempVo.getResourcename());

            if (tempVo.getResourceAddressIsNotNull())
            {
                rowExternalResGrid.setColumnAddress(tempVo.getResourceAddress().getLine1() + " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2() : "") + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3() : ""));
                rowExternalResGrid.setColumnCounty(tempVo.getResourceAddress().getCounty() != null ? tempVo.getResourceAddress().getCounty().getText() : null);
                rowExternalResGrid.setColumnWorkPhone(tempVo.getResourceAddress().getPhone());
            }
            rowExternalResGrid.setColumnStatus(tempVo.getResourceStatus().getText());
            rowExternalResGrid.setValue(tempVo);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void grdExternalResourceSelectionChanged()
{
    clearDetailsFields();
    if( form.grdExternalResource().getSelectedRow() != null)
    {
        ExternalResourceVo tempVo  = domain.getExternalResourceById(form.grdExternalResource().getSelectedRow().getValue());
        populateDetailFields(tempVo);
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
    if (externalVoCol == null)
        return;

    for (int i = 0; i < externalVoCol.size(); i++)
    {
        ExternalResourceVo tempVo = externalVoCol.get(i);
        if (tempVo != null)
        {
            grdExternalResourceRow rowExternalResGrid = form.grdExternalResource().getRows().newRow();
            rowExternalResGrid.setColumnResourceType(tempVo.getExternalResourceType().getText());
            rowExternalResGrid.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText() : null);
            rowExternalResGrid.setColumnName(tempVo.getResourcename());

            if (tempVo.getResourceAddressIsNotNull())
            {
                rowExternalResGrid.setColumnAddress(tempVo.getResourceAddress().getLine1() + " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2() : "") + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3() : ""));
                rowExternalResGrid.setColumnCounty(tempVo.getResourceAddress().getCounty() != null ? tempVo.getResourceAddress().getCounty().getText() : null);
                rowExternalResGrid.setColumnWorkPhone(tempVo.getResourceAddress().getPhone());
            }
            rowExternalResGrid.setColumnStatus(tempVo.getResourceStatus().getText());
            rowExternalResGrid.setValue(tempVo);

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void grdExternalResourceSelectionChanged()
{
    clearDetailsFields();
    if( form.grdExternalResource().getSelectedRow() != null)
    {
        ExternalResourceVo tempVo  = domain.getExternalResourceById(form.grdExternalResource().getSelectedRow().getValue());
        populateDetailFields(tempVo);
    }
    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateExternalResourceGrid(ExternalResourceVoCollection externalVoCol)
{
    if (externalVoCol == null)
        return;

    for (int i = 0; i < externalVoCol.size(); i++)
    {
        ExternalResourceVo tempVo = externalVoCol.get(i);
        if (tempVo != null)
        {
            grdExternalResourceRow rowExternalResGrid = form.grdExternalResource().getRows().newRow();
            rowExternalResGrid.setColumnResourceType(tempVo.getExternalResourceType().getText());
            rowExternalResGrid.setColumnHCPType(tempVo.getHCPTypeIsNotNull() ? tempVo.getHCPType().getText() : null);
            rowExternalResGrid.setColumnName(tempVo.getResourcename());

            if (tempVo.getResourceAddressIsNotNull())
            {
                rowExternalResGrid.setColumnAddress(tempVo.getResourceAddress().getLine1() + " " + (tempVo.getResourceAddress().getLine2IsNotNull() ? tempVo.getResourceAddress().getLine2() : "") + " " + (tempVo.getResourceAddress().getLine3IsNotNull() ? tempVo.getResourceAddress().getLine3() : ""));
                rowExternalResGrid.setColumnCounty(tempVo.getResourceAddress().getCounty() != null ? tempVo.getResourceAddress().getCounty().getText() : null);
                rowExternalResGrid.setColumnWorkPhone(tempVo.getResourceAddress().getPhone());
            }
            rowExternalResGrid.setColumnStatus(tempVo.getResourceStatus().getText());
            rowExternalResGrid.setValue(tempVo);

        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void grdExternalResourceSelectionChanged()
{
    clearDetailsFields();
    if( form.grdExternalResource().getSelectedRow() != null)
    {
        ExternalResourceVo tempVo  = domain.getExternalResourceById(form.grdExternalResource().getSelectedRow().getValue());
        populateDetailFields(tempVo);
    }
    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
public ims.core.vo.ExternalResourceVo getSelectedExternalResource()
{
    return form.grdExternalResource().getValue();
}
项目:openMAXIMS    文件:Logic.java   
public ims.core.vo.ExternalResourceVo getSelectedExternalResource()
{
    return form.grdExternalResource().getValue();
}
项目:openMAXIMS    文件:Logic.java   
public ims.core.vo.ExternalResourceVo getSelectedExternalResource()
{
    return form.grdExternalResource().getValue();
}
项目:openmaxims-linux    文件:Logic.java   
public ims.core.vo.ExternalResourceVo getSelectedExternalResource()
{
    return form.grdExternalResource().getValue();
}