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

项目:AvoinApotti    文件:Logic.java   
private void populateFromPASEvent(PASEventForRACPCReferralVo voPASEvent) 
{
    form.dteAppointment().setValue(voPASEvent.getEventDateTimeIsNotNull() ? voPASEvent.getEventDateTime().getDate(): null);
    form.cmbReferralSource().setValue(voPASEvent.getSourceOfReferralIsNotNull() ? voPASEvent.getSourceOfReferral():null);           
    form.txtGPName().setValue(setGPName(voPASEvent));

    GPPracticesLiteVoCollection collection = null;

    if (voPASEvent != null)
        if (voPASEvent.getReferringGPIsNotNull())
            if (voPASEvent.getReferringGP().getPracticesIsNotNull())
                collection = voPASEvent.getReferringGP().getPractices();

    if (collection != null)
    {
        for (int i = 0; i < collection.size(); i++)
        {
            GPPracticesLiteVo row = collection.get(i);

            if (row != null)
            {
                if (row.getIsPrimaryPractice())
                {
                    if (row.getPracticeIsNotNull())
                    {
                        form.txtGPAddress().setValue(getRefferingGPAddress(row.getPractice().getAddressIsNotNull() ? row.getPractice().getAddress():null));

                        if (row.getPractice().getAddressIsNotNull())
                            form.txtGPPostcode().setValue(row.getPractice().getAddress().getPostCodeIsNotNull() ? row.getPractice().getAddress().getPostCode():null);

                        // populate phone from communication channel            
                        form.txtGPPhone().setValue(getPracticePhoneNumber(row.getPractice().getCommChannels()));
                        return;
                    }
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateFromPASEvent(PASEventForRACPCReferralVo voPASEvent) 
{
    form.dteAppointment().setValue(voPASEvent.getEventDateTimeIsNotNull() ? voPASEvent.getEventDateTime().getDate(): null);
    form.cmbReferralSource().setValue(voPASEvent.getSourceOfReferralIsNotNull() ? voPASEvent.getSourceOfReferral():null);           
    form.txtGPName().setValue(setGPName(voPASEvent));

    GPPracticesLiteVoCollection collection = null;

    if (voPASEvent != null)
        if (voPASEvent.getReferringGPIsNotNull())
            if (voPASEvent.getReferringGP().getPracticesIsNotNull())
                collection = voPASEvent.getReferringGP().getPractices();

    if (collection != null)
    {
        for (int i = 0; i < collection.size(); i++)
        {
            GPPracticesLiteVo row = collection.get(i);

            if (row != null)
            {
                if (row.getIsPrimaryPractice())
                {
                    if (row.getPracticeIsNotNull())
                    {
                        form.txtGPAddress().setValue(getRefferingGPAddress(row.getPractice().getAddressIsNotNull() ? row.getPractice().getAddress():null));

                        if (row.getPractice().getAddressIsNotNull())
                            form.txtGPPostcode().setValue(row.getPractice().getAddress().getPostCodeIsNotNull() ? row.getPractice().getAddress().getPostCode():null);

                        // populate phone from communication channel            
                        form.txtGPPhone().setValue(getPracticePhoneNumber(row.getPractice().getCommChannels()));
                        return;
                    }
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateFromPASEvent(PASEventForRACPCReferralVo voPASEvent) 
{
    form.dteAppointment().setValue(voPASEvent.getEventDateTimeIsNotNull() ? voPASEvent.getEventDateTime().getDate(): null);
    form.cmbReferralSource().setValue(voPASEvent.getSourceOfReferralIsNotNull() ? voPASEvent.getSourceOfReferral():null);           
    form.txtGPName().setValue(setGPName(voPASEvent));

    GPPracticesLiteVoCollection collection = null;

    if (voPASEvent != null)
        if (voPASEvent.getReferringGPIsNotNull())
            if (voPASEvent.getReferringGP().getPracticesIsNotNull())
                collection = voPASEvent.getReferringGP().getPractices();

    if (collection != null)
    {
        for (int i = 0; i < collection.size(); i++)
        {
            GPPracticesLiteVo row = collection.get(i);

            if (row != null)
            {
                if (row.getIsPrimaryPractice())
                {
                    if (row.getPracticeIsNotNull())
                    {
                        form.txtGPAddress().setValue(getRefferingGPAddress(row.getPractice().getAddressIsNotNull() ? row.getPractice().getAddress():null));

                        if (row.getPractice().getAddressIsNotNull())
                            form.txtGPPostcode().setValue(row.getPractice().getAddress().getPostCodeIsNotNull() ? row.getPractice().getAddress().getPostCode():null);

                        // populate phone from communication channel            
                        form.txtGPPhone().setValue(getPracticePhoneNumber(row.getPractice().getCommChannels()));
                        return;
                    }
                }
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateFromPASEvent(PASEventForRACPCReferralVo voPASEvent) 
{
    form.dteAppointment().setValue(voPASEvent.getEventDateTimeIsNotNull() ? voPASEvent.getEventDateTime().getDate(): null);
    form.cmbReferralSource().setValue(voPASEvent.getSourceOfReferralIsNotNull() ? voPASEvent.getSourceOfReferral():null);           
    form.txtGPName().setValue(setGPName(voPASEvent));

    GPPracticesLiteVoCollection collection = null;

    if (voPASEvent != null)
        if (voPASEvent.getReferringGPIsNotNull())
            if (voPASEvent.getReferringGP().getPracticesIsNotNull())
                collection = voPASEvent.getReferringGP().getPractices();

    if (collection != null)
    {
        for (int i = 0; i < collection.size(); i++)
        {
            GPPracticesLiteVo row = collection.get(i);

            if (row != null)
            {
                if (row.getIsPrimaryPractice())
                {
                    if (row.getPracticeIsNotNull())
                    {
                        form.txtGPAddress().setValue(getRefferingGPAddress(row.getPractice().getAddressIsNotNull() ? row.getPractice().getAddress():null));

                        if (row.getPractice().getAddressIsNotNull())
                            form.txtGPPostcode().setValue(row.getPractice().getAddress().getPostCodeIsNotNull() ? row.getPractice().getAddress().getPostCode():null);

                        // populate phone from communication channel            
                        form.txtGPPhone().setValue(getPracticePhoneNumber(row.getPractice().getCommChannels()));
                        return;
                    }
                }
            }
        }
    }
}