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

项目:AvoinApotti    文件:Logic.java   
private void fillBrowser(SurgeryDetailsListVoCollection voColl, Integer idSelected)
{
form.recbrPreviousSurgeries().clear();

    SurgeryDetailsListVo voSelected = new SurgeryDetailsListVo();

    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        StringBuffer sb = new StringBuffer();
        if(voColl.get(i).getPatientProcedureIsNotNull()){
            sb.append(voColl.get(i).getPatientProcedure().getProcDateIsNotNull() ? voColl.get(i).getPatientProcedure().getProcDate().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getPeformedByIsNotNull() ? voColl.get(i).getPatientProcedure().getPeformedBy().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIsNotNull() && voColl.get(i).getPatientProcedure().getProcedure().getProcedureNameIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedure().getProcedureName() : voColl.get(i).getPatientProcedure().getProcedureDescription());
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIntentIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedureIntent().toString() : "");
        }

        form.recbrPreviousSurgeries().newRow(voColl.get(i), sb.toString());
        if(idSelected==null)
            idSelected=voColl.get(i).getID_SurgeryDetails();
        if (voColl.get(i).getID_SurgeryDetails().equals(idSelected))
            voSelected = voColl.get(i);
    }

    if(voSelected == null && voColl != null && voColl.size() > 0)
        form.recbrPreviousSurgeries().setValue(voColl.get(0));
    else
        form.recbrPreviousSurgeries().setValue(voSelected);
}
项目:openMAXIMS    文件:Logic.java   
private void fillBrowser(SurgeryDetailsListVoCollection voColl, Integer idSelected)
{
form.recbrPreviousSurgeries().clear();

    SurgeryDetailsListVo voSelected = new SurgeryDetailsListVo();

    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        StringBuffer sb = new StringBuffer();
        if(voColl.get(i).getPatientProcedureIsNotNull()){
            sb.append(voColl.get(i).getPatientProcedure().getProcDateIsNotNull() ? voColl.get(i).getPatientProcedure().getProcDate().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getPeformedByIsNotNull() ? voColl.get(i).getPatientProcedure().getPeformedBy().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIsNotNull() && voColl.get(i).getPatientProcedure().getProcedure().getProcedureNameIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedure().getProcedureName() : voColl.get(i).getPatientProcedure().getProcedureDescription());
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIntentIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedureIntent().toString() : "");
        }

        form.recbrPreviousSurgeries().newRow(voColl.get(i), sb.toString());
        if(idSelected==null)
            idSelected=voColl.get(i).getID_SurgeryDetails();
        if (voColl.get(i).getID_SurgeryDetails().equals(idSelected))
            voSelected = voColl.get(i);
    }

    if(voSelected == null && voColl != null && voColl.size() > 0)
        form.recbrPreviousSurgeries().setValue(voColl.get(0));
    else
        form.recbrPreviousSurgeries().setValue(voSelected);
}
项目:openMAXIMS    文件:Logic.java   
private void fillBrowser(SurgeryDetailsListVoCollection voColl, Integer idSelected)
{
form.recbrPreviousSurgeries().clear();

    SurgeryDetailsListVo voSelected = new SurgeryDetailsListVo();

    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        StringBuffer sb = new StringBuffer();
        if(voColl.get(i).getPatientProcedureIsNotNull()){
            sb.append(voColl.get(i).getPatientProcedure().getProcDateIsNotNull() ? voColl.get(i).getPatientProcedure().getProcDate().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getPeformedByIsNotNull() ? voColl.get(i).getPatientProcedure().getPeformedBy().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIsNotNull() && voColl.get(i).getPatientProcedure().getProcedure().getProcedureNameIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedure().getProcedureName() : voColl.get(i).getPatientProcedure().getProcedureDescription());
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIntentIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedureIntent().toString() : "");
        }

        form.recbrPreviousSurgeries().newRow(voColl.get(i), sb.toString());
        if(idSelected==null)
            idSelected=voColl.get(i).getID_SurgeryDetails();
        if (voColl.get(i).getID_SurgeryDetails().equals(idSelected))
            voSelected = voColl.get(i);
    }

    if(voSelected == null && voColl != null && voColl.size() > 0)
        form.recbrPreviousSurgeries().setValue(voColl.get(0));
    else
        form.recbrPreviousSurgeries().setValue(voSelected);
}
项目:openmaxims-linux    文件:Logic.java   
private void fillBrowser(SurgeryDetailsListVoCollection voColl, Integer idSelected)
{
form.recbrPreviousSurgeries().clear();

    SurgeryDetailsListVo voSelected = new SurgeryDetailsListVo();

    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        StringBuffer sb = new StringBuffer();
        if(voColl.get(i).getPatientProcedureIsNotNull()){
            sb.append(voColl.get(i).getPatientProcedure().getProcDateIsNotNull() ? voColl.get(i).getPatientProcedure().getProcDate().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getPeformedByIsNotNull() ? voColl.get(i).getPatientProcedure().getPeformedBy().toString() : "");
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIsNotNull() && voColl.get(i).getPatientProcedure().getProcedure().getProcedureNameIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedure().getProcedureName() : voColl.get(i).getPatientProcedure().getProcedureDescription());
            sb.append(" - ");
            sb.append(voColl.get(i).getPatientProcedure().getProcedureIntentIsNotNull() ? voColl.get(i).getPatientProcedure().getProcedureIntent().toString() : "");
        }

        form.recbrPreviousSurgeries().newRow(voColl.get(i), sb.toString());
        if(idSelected==null)
            idSelected=voColl.get(i).getID_SurgeryDetails();
        if (voColl.get(i).getID_SurgeryDetails().equals(idSelected))
            voSelected = voColl.get(i);
    }

    if(voSelected == null && voColl != null && voColl.size() > 0)
        form.recbrPreviousSurgeries().setValue(voColl.get(0));
    else
        form.recbrPreviousSurgeries().setValue(voSelected);
}