Java 类ims.emergency.vo.EmergencyEpisodeForTriageVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : ""));  //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " +tempVo.getStartDate().toString() : ""));   //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : ""));  //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " +tempVo.getStartDate().toString() : ""));   //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : ""));  //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " +tempVo.getStartDate().toString() : ""));   //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : ""));  //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " +tempVo.getStartDate().toString() : ""));   //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    ims.emergency.forms.edassessmentcomponent.GenForm.grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : ""));  //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);

        //wdev-16072 WDEV-17703 //WDEV-17898
        if (emergencyAttendance.getDischargeDateTime() != null) 
        {
            int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances();
            nrPreviousAttendances += 1;
            form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        }
        //wdev-16072
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    ims.emergency.forms.edassessmentcomponent.GenForm.grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = emergencyEpisode.getEpisodeOfCare();   //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : ""));  //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);
    row.setTooltip(emergencyEpisode.getCategory()!=null ? "<b>Patient Category: </b>" + emergencyEpisode.getCategory().getText() : null); //WDEV-19299

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);

        //wdev-16072 WDEV-17703 //WDEV-17898
        if (emergencyAttendance.getDischargeDateTime() != null) 
        {
            int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances();
            nrPreviousAttendances += 1;
            form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        }
        //wdev-16072
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    ims.emergency.forms.edassessmentcomponent.GenForm.grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : ""));  //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);

        //wdev-16072 WDEV-17703 //WDEV-17898
        if (emergencyAttendance.getDischargeDateTime() != null) 
        {
            int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances();
            nrPreviousAttendances += 1;
            form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        }
        //wdev-16072
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addEmergencyEpisodeRow(EmergencyEpisodeForTriageVo emergencyEpisode) 
{
    if(emergencyEpisode == null)
        return;

    ims.emergency.forms.edassessmentcomponent.GenForm.grdAttendanceHistoryRow row = form.grdAttendanceHistory().getRows().newRow();
    EpisodeOfcareLiteVo tempVo = domain.getEpisodeOfCareLite(emergencyEpisode.getEpisodeOfCare());  //wdev-16070
    row.setColID(emergencyEpisode.getID_EmergencyEpisode().toString() + (tempVo != null ? " - " + tempVo.getStartDate().toString() : ""));  //wdev-16070
    row.setBold(true);

    row.setValue((EmergencyEpisodeForTriageLiteVo) emergencyEpisode);

    if(emergencyEpisode.getEmergencyAttendances() == null)
        return;

    row.setExpanded(true);

    for(EmergencyAttendanceForTriageVo emergencyAttendance : emergencyEpisode.getEmergencyAttendances())
    {
        addEmergencyAttendanceRow(row, emergencyAttendance);

        //wdev-16072 WDEV-17703 //WDEV-17898
        if (emergencyAttendance.getDischargeDateTime() != null) 
        {
            int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances();
            nrPreviousAttendances += 1;
            form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        }
        //wdev-16072
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072


    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:AvoinApotti    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072 //WDEV-17898
    if( form.getLocalContext().getCountOfPreviousAttendances() > 0)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances());
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:AvoinApotti    文件:Logic.java   
private void populateAttendanceHistory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));       //wdev-16072

    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.lbl16().setValue("Attendance History");                            //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedTriagePatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedTriagePatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl16().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl16().setValue("Attendance History");
    }
    //-----------------end wdev-16072
}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072


    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072 //WDEV-17898
    if( form.getLocalContext().getCountOfPreviousAttendances() > 0)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances());
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHistory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));       //wdev-16072

    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.lbl16().setValue("Attendance History");                            //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedTriagePatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedTriagePatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl16().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl16().setValue("Attendance History");
    }
    //-----------------end wdev-16072
}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072


    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072 //WDEV-17898
    if( form.getLocalContext().getCountOfPreviousAttendances() > 0)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances());
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHistory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));       //wdev-16072

    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.lbl16().setValue("Attendance History");                            //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedTriagePatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedTriagePatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl16().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl16().setValue("Attendance History");
    }
    //-----------------end wdev-16072
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072


    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openmaxims-linux    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072 //WDEV-17898
    if( form.getLocalContext().getCountOfPreviousAttendances() > 0)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances());
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openmaxims-linux    文件:Logic.java   
private void populateAttendanceHistory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));       //wdev-16072

    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.lbl16().setValue("Attendance History");                            //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedTriagePatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedTriagePatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl16().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl16().setValue("Attendance History");
    }
    //-----------------end wdev-16072
}