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

项目:AvoinApotti    文件:Logic.java   
private void addPatient()
{
    //check if this kind of record already exists
    for (int i = 0; i < form.lyrDetails().tabRecipents().grdRecipients().getRows().size(); i++)
    {
        if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue() != null)
        {
            if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getPatientIsNotNull() && form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getPatient().booleanValue())
            {
                engine.showMessage("There is already a recipient of type Patient !");
                return;
            }
        }
    }

    grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
    ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

    recipient.setPatient(Boolean.TRUE);

    row.setValue(recipient);
    row.setcolName("Patient");
    row.setcolPrimary(false);
}
项目:AvoinApotti    文件:Logic.java   
private void addGpToGrid(GpShortVo voGp)
{
    //check if this GP already exists
    for (int i = 0; i < form.lyrDetails().tabRecipents().grdRecipients().getRows().size(); i++)
    {
        if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue() != null)
        {
            if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getGeneralPractitionerIsNotNull() && form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getGeneralPractitioner().getID_Gp().equals(voGp.getID_Gp()))
            {
                engine.showMessage("This GP was already added !");
                return;
            }
        }
    }

    grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
    ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

    recipient.setGeneralPractitioner(voGp);
    recipient.setPatient(Boolean.FALSE);

    row.setValue(recipient);
    row.setcolName((voGp.getName().getForename() != null ? voGp.getName().getForename():"") + " " + (voGp.getName().getSurname()!= null ? voGp.getName().getSurname():"")); //wdev-10872
    row.setcolPrimary(false);
}
项目:AvoinApotti    文件:Logic.java   
private void addMosToGrid(MemberOfStaffShortVoCollection memberOfStaffShortVoCollection)
{
    for(int i = 0; i < memberOfStaffShortVoCollection.size(); i++)
    {
        MemberOfStaffShortVo mosVo = memberOfStaffShortVoCollection.get(i);
        if(isAddedToGrid(mosVo) == false)
        {
            grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
            ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

            recipient.setMemberOfStaff(mosVo);
            recipient.setPatient(Boolean.FALSE);

            row.setValue(recipient);
            row.setcolName(getMosText(mosVo));
            row.setcolPrimary(false);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addPatient()
{
    //check if this kind of record already exists
    for (int i = 0; i < form.lyrDetails().tabRecipents().grdRecipients().getRows().size(); i++)
    {
        if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue() != null)
        {
            if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getPatientIsNotNull() && form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getPatient().booleanValue())
            {
                engine.showMessage("There is already a recipient of type Patient !");
                return;
            }
        }
    }

    grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
    ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

    recipient.setPatient(Boolean.TRUE);

    row.setValue(recipient);
    row.setcolName("Patient");
    row.setcolPrimary(false);
}
项目:openMAXIMS    文件:Logic.java   
private void addGpToGrid(GpShortVo voGp)
{
    //check if this GP already exists
    for (int i = 0; i < form.lyrDetails().tabRecipents().grdRecipients().getRows().size(); i++)
    {
        if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue() != null)
        {
            if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getGeneralPractitionerIsNotNull() && form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getGeneralPractitioner().getID_Gp().equals(voGp.getID_Gp()))
            {
                engine.showMessage("This GP was already added !");
                return;
            }
        }
    }

    grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
    ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

    recipient.setGeneralPractitioner(voGp);
    recipient.setPatient(Boolean.FALSE);

    row.setValue(recipient);
    row.setcolName((voGp.getName().getForename() != null ? voGp.getName().getForename():"") + " " + (voGp.getName().getSurname()!= null ? voGp.getName().getSurname():"")); //wdev-10872
    row.setcolPrimary(false);
}
项目:openMAXIMS    文件:Logic.java   
private void addMosToGrid(MemberOfStaffShortVoCollection memberOfStaffShortVoCollection)
{
    for(int i = 0; i < memberOfStaffShortVoCollection.size(); i++)
    {
        MemberOfStaffShortVo mosVo = memberOfStaffShortVoCollection.get(i);
        if(isAddedToGrid(mosVo) == false)
        {
            grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
            ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

            recipient.setMemberOfStaff(mosVo);
            recipient.setPatient(Boolean.FALSE);

            row.setValue(recipient);
            row.setcolName(getMosText(mosVo));
            row.setcolPrimary(false);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addPatient()
{
    //check if this kind of record already exists
    for (int i = 0; i < form.lyrDetails().tabRecipents().grdRecipients().getRows().size(); i++)
    {
        if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue() != null)
        {
            if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getPatientIsNotNull() && form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getPatient().booleanValue())
            {
                engine.showMessage("There is already a recipient of type Patient !");
                return;
            }
        }
    }

    grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
    ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

    recipient.setPatient(Boolean.TRUE);

    row.setValue(recipient);
    row.setcolName("Patient");
    row.setcolPrimary(false);
}
项目:openMAXIMS    文件:Logic.java   
private void addGpToGrid(GpShortVo voGp)
{
    //check if this GP already exists
    for (int i = 0; i < form.lyrDetails().tabRecipents().grdRecipients().getRows().size(); i++)
    {
        if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue() != null)
        {
            if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getGeneralPractitionerIsNotNull() && form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getGeneralPractitioner().getID_Gp().equals(voGp.getID_Gp()))
            {
                engine.showMessage("This GP was already added !");
                return;
            }
        }
    }

    grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
    ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

    recipient.setGeneralPractitioner(voGp);
    recipient.setPatient(Boolean.FALSE);

    row.setValue(recipient);
    row.setcolName((voGp.getName().getForename() != null ? voGp.getName().getForename():"") + " " + (voGp.getName().getSurname()!= null ? voGp.getName().getSurname():"")); //wdev-10872
    row.setcolPrimary(false);
}
项目:openMAXIMS    文件:Logic.java   
private void addMosToGrid(MemberOfStaffShortVoCollection memberOfStaffShortVoCollection)
{
    for(int i = 0; i < memberOfStaffShortVoCollection.size(); i++)
    {
        MemberOfStaffShortVo mosVo = memberOfStaffShortVoCollection.get(i);
        if(isAddedToGrid(mosVo) == false)
        {
            grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
            ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

            recipient.setMemberOfStaff(mosVo);
            recipient.setPatient(Boolean.FALSE);

            row.setValue(recipient);
            row.setcolName(getMosText(mosVo));
            row.setcolPrimary(false);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addPatient()
{
    //check if this kind of record already exists
    for (int i = 0; i < form.lyrDetails().tabRecipents().grdRecipients().getRows().size(); i++)
    {
        if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue() != null)
        {
            if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getPatientIsNotNull() && form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getPatient().booleanValue())
            {
                engine.showMessage("There is already a recipient of type Patient !");
                return;
            }
        }
    }

    grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
    ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

    recipient.setPatient(Boolean.TRUE);

    row.setValue(recipient);
    row.setcolName("Patient");
    row.setcolPrimary(false);
}
项目:openmaxims-linux    文件:Logic.java   
private void addGpToGrid(GpShortVo voGp)
{
    //check if this GP already exists
    for (int i = 0; i < form.lyrDetails().tabRecipents().grdRecipients().getRows().size(); i++)
    {
        if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue() != null)
        {
            if(form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getGeneralPractitionerIsNotNull() && form.lyrDetails().tabRecipents().grdRecipients().getRows().get(i).getValue().getGeneralPractitioner().getID_Gp().equals(voGp.getID_Gp()))
            {
                engine.showMessage("This GP was already added !");
                return;
            }
        }
    }

    grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
    ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

    recipient.setGeneralPractitioner(voGp);
    recipient.setPatient(Boolean.FALSE);

    row.setValue(recipient);
    row.setcolName((voGp.getName().getForename() != null ? voGp.getName().getForename():"") + " " + (voGp.getName().getSurname()!= null ? voGp.getName().getSurname():"")); //wdev-10872
    row.setcolPrimary(false);
}
项目:openmaxims-linux    文件:Logic.java   
private void addMosToGrid(MemberOfStaffShortVoCollection memberOfStaffShortVoCollection)
{
    for(int i = 0; i < memberOfStaffShortVoCollection.size(); i++)
    {
        MemberOfStaffShortVo mosVo = memberOfStaffShortVoCollection.get(i);
        if(isAddedToGrid(mosVo) == false)
        {
            grdRecipientsRow row = form.lyrDetails().tabRecipents().grdRecipients().getRows().newRow();
            ClinicalCorrespondenceRecipientsVo recipient = new ClinicalCorrespondenceRecipientsVo();

            recipient.setMemberOfStaff(mosVo);
            recipient.setPatient(Boolean.FALSE);

            row.setValue(recipient);
            row.setcolName(getMosText(mosVo));
            row.setcolPrimary(false);
        }
    }
}