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

项目:AvoinApotti    文件:Logic.java   
private void displayData(EmergencyAttendanceListVoCollection list)
{
    form.grdDetails().getRows().clear();

    if(list == null)
        return;

    for (int i = 0; i < list.size(); i++)
    {
        grdDetailsRow row = form.grdDetails().getRows().newRow();

        EmergencyAttendanceListVo item = list.get(i);

        row.setColAttDateTime(item.getAttendanceDateIsNotNull() ? item.getAttendanceDate().toString() : null);
        row.setColHospNo(item.getHospitalNo());
        row.setColPatient((item.getSurname() == null ? "" : item.getSurname()) + " " + (item.getForename() == null ? "" : item.getForename()));
        row.setColCategory(item.getPatientCategory());
        row.setColComplaint(item.getPresentingComplaint());
        row.setColInjury(item.getInjuryDateIsNotNull() ? item.getInjuryDate().toString() : null);

        EmergencyAttendanceRefVo ref = new EmergencyAttendanceRefVo();
        ref.setID_EmergencyAttendance(item.getId());

        row.setValue(ref);

        if(item.getDischargeDateIsNotNull())
            row.setBackColor(Color.LightGreen);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void displayData(EmergencyAttendanceListVoCollection list)
{
    form.grdDetails().getRows().clear();

    if(list == null || list.size() == 0)
    {
        engine.showMessage("No records found.");
        return;
    }

    for (int i = 0; i < list.size(); i++)
    {
        grdDetailsRow row = form.grdDetails().getRows().newRow();

        EmergencyAttendanceListVo item = list.get(i);

        row.setColAttDateTime(item.getAttendanceDateIsNotNull() ? item.getAttendanceDate().toString() : null);
        row.setColHospNo(item.getHospitalNo());
        row.setColPatient((item.getSurname() == null ? "" : item.getSurname()) + " " + (item.getForename() == null ? "" : item.getForename()));
        row.setColCategory(item.getPatientCategory());
        row.setColComplaint(item.getPresentingComplaint());
        row.setColRequiresDischargeDocumentationReview(Boolean.TRUE.equals(item.getRequiresDischargeDocumentationReview()) ? form.getImages().Core.Attachment16 : null);
        row.setTooltipForColRequiresDischargeDocumentationReview(Boolean.TRUE.equals(item.getRequiresDischargeDocumentationReview()) ? "Requires Discharge Documentation Review" : null);
        row.setColIncidentTime(item.getInjuryDateIsNotNull() ? item.getInjuryDate().toString() : null); //WDEV-19396

        EmergencyAttendanceRefVo ref = new EmergencyAttendanceRefVo();
        ref.setID_EmergencyAttendance(item.getId());

        row.setValue(ref);

        if(item.getDischargeDateIsNotNull())
            row.setBackColor(Color.LightGreen);
    }
}
项目:openMAXIMS    文件:Logic.java   
private EmergencyAttendanceListVoCollection sortAttendanceDate()
{
    if (form.getGlobalContext().Emergency.getAttendanceListSearchCriteria() == null)
        form.getGlobalContext().Emergency.setAttendanceListSearchCriteria(new AttendanceListSearchCriteriaVo());

    EmergencyAttendanceListVoCollection voColl = domain.listEmergencyAttendance(form.getGlobalContext().Emergency.getAttendanceListSearchCriteria());   
    voColl.sort(new DateAttendance(form.getLocalContext().getSortAttendanceDate()));

    return voColl;
}
项目:openMAXIMS    文件:Logic.java   
private EmergencyAttendanceListVoCollection sortImage()
{   
    if (form.getGlobalContext().Emergency.getAttendanceListSearchCriteria() == null)
        form.getGlobalContext().Emergency.setAttendanceListSearchCriteria(new AttendanceListSearchCriteriaVo());

    EmergencyAttendanceListVoCollection voColl = domain.listEmergencyAttendance(form.getGlobalContext().Emergency.getAttendanceListSearchCriteria());   
    voColl.sort(new ImageComparator(form.getLocalContext().getSortOrderImage()));

    return voColl;
}
项目:openMAXIMS    文件:Logic.java   
private EmergencyAttendanceListVoCollection sortIncidentTime()
{   
    if (form.getGlobalContext().Emergency.getAttendanceListSearchCriteria() == null)
        form.getGlobalContext().Emergency.setAttendanceListSearchCriteria(new AttendanceListSearchCriteriaVo());

    EmergencyAttendanceListVoCollection voColl = domain.listEmergencyAttendance(form.getGlobalContext().Emergency.getAttendanceListSearchCriteria());   
    voColl.sort(new IncidentTime(form.getLocalContext().getSortOrderIncidentTime()));

    return voColl;
}
项目:openMAXIMS    文件:Logic.java   
private void displayData(EmergencyAttendanceListVoCollection list)
{
    form.grdDetails().getRows().clear();

    if(list == null)
        return;

    for (int i = 0; i < list.size(); i++)
    {
        grdDetailsRow row = form.grdDetails().getRows().newRow();

        EmergencyAttendanceListVo item = list.get(i);

        row.setColAttDateTime(item.getAttendanceDateIsNotNull() ? item.getAttendanceDate().toString() : null);
        row.setColHospNo(item.getHospitalNo());
        row.setColPatient((item.getSurname() == null ? "" : item.getSurname()) + " " + (item.getForename() == null ? "" : item.getForename()));
        row.setColCategory(item.getPatientCategory());
        row.setColComplaint(item.getPresentingComplaint());
        row.setColInjury(item.getInjuryDateIsNotNull() ? item.getInjuryDate().toString() : null);

        EmergencyAttendanceRefVo ref = new EmergencyAttendanceRefVo();
        ref.setID_EmergencyAttendance(item.getId());

        row.setValue(ref);

        if(item.getDischargeDateIsNotNull())
            row.setBackColor(Color.LightGreen);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void displayData(EmergencyAttendanceListVoCollection list)
{
    form.grdDetails().getRows().clear();

    if(list == null)
        return;

    for (int i = 0; i < list.size(); i++)
    {
        grdDetailsRow row = form.grdDetails().getRows().newRow();

        EmergencyAttendanceListVo item = list.get(i);

        row.setColAttDateTime(item.getAttendanceDateIsNotNull() ? item.getAttendanceDate().toString() : null);
        row.setColHospNo(item.getHospitalNo());
        row.setColPatient((item.getSurname() == null ? "" : item.getSurname()) + " " + (item.getForename() == null ? "" : item.getForename()));
        row.setColCategory(item.getPatientCategory());
        row.setColComplaint(item.getPresentingComplaint());
        row.setColInjury(item.getInjuryDateIsNotNull() ? item.getInjuryDate().toString() : null);

        EmergencyAttendanceRefVo ref = new EmergencyAttendanceRefVo();
        ref.setID_EmergencyAttendance(item.getId());

        row.setValue(ref);

        if(item.getDischargeDateIsNotNull())
            row.setBackColor(Color.LightGreen);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void open()
{
    EmergencyAttendanceListVoCollection list = domain.listEmergencyAttendance(null, null, null, null,null);

    displayData(list);
}
项目:AvoinApotti    文件:Logic.java   
private void doSearch()
{
    EmergencyAttendanceListVoCollection list = domain.listEmergencyAttendance(form.txtSearchSurname().getValue(), form.txtSearchForename().getValue(), form.cmbCategory().getValue(), form.chk24().getValue() ? true : false,form.chkUnCoded().getValue() ? true : false);

    displayData(list);
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch(AttendanceListSearchCriteriaVo searchCriteria)
{
    EmergencyAttendanceListVoCollection list = domain.listEmergencyAttendance(searchCriteria); //WDEV-19304

    displayData(list);
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    EmergencyAttendanceListVoCollection list = domain.listEmergencyAttendance(null, null, null, null,null);

    displayData(list);
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch()
{
    EmergencyAttendanceListVoCollection list = domain.listEmergencyAttendance(form.txtSearchSurname().getValue(), form.txtSearchForename().getValue(), form.cmbCategory().getValue(), form.chk24().getValue() ? true : false,form.chkUnCoded().getValue() ? true : false);

    displayData(list);
}
项目:openmaxims-linux    文件:Logic.java   
private void open()
{
    EmergencyAttendanceListVoCollection list = domain.listEmergencyAttendance(null, null, null, null,null);

    displayData(list);
}
项目:openmaxims-linux    文件:Logic.java   
private void doSearch()
{
    EmergencyAttendanceListVoCollection list = domain.listEmergencyAttendance(form.txtSearchSurname().getValue(), form.txtSearchForename().getValue(), form.cmbCategory().getValue(), form.chk24().getValue() ? true : false,form.chkUnCoded().getValue() ? true : false);

    displayData(list);
}