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

项目:AvoinApotti    文件:Logic.java   
private void doSearch(boolean isCalledFromFormOpen)
{
    clearGrid();

    String[] uiErrors = getUISearchCriteriaErrors();
    if (uiErrors != null && isCalledFromFormOpen == false)
    {
        engine.showErrors(uiErrors);
        return;
    }

    if (uiErrors == null)
    {
        Date startDate = form.dteStart() != null ? form.dteStart().getValue() : null;
        Date endDate = form.dteEnd() != null ? form.dteEnd().getValue() : null;

        DateTime startDT = new DateTime(startDate, new Time(0, 0));
        DateTime endDT = new DateTime(endDate, new Time(23, 59));

        PatientSECSShortVoCollection voColl = domain.listPatientSECS(startDT, endDT,form.getGlobalContext().Core.getPatientShort());
        if (isCalledFromFormOpen == false && (voColl == null || voColl.size() == 0))
        {
            engine.showMessage("No records found for the Search Criteria Provided");
        }

        populateGridControl(voColl);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateGridControl(PatientSECSShortVoCollection voColl)
{
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientSECSShortVo voPatSECS = voColl.get(i);
        grdSECSRow row = form.grdSECS().getRows().newRow();

        row.setColEscalate(voPatSECS.getEscalatedIsNotNull() ? (voPatSECS.getEscalated().booleanValue() ? "Yes" : "No") : "");
        row.setTooltipForColEscalate(row.getColEscalate());

        row.setColAuthoringInfo(voPatSECS.getAuthoringInformationIsNotNull() ? voPatSECS.getAuthoringInformation().toString(", ") : "");
        //WDEV-13559 
        if (voPatSECS.getAuthoringInformationIsNotNull() && voPatSECS.getRecordingInformationIsNotNull())
        {
        row.setTooltipForColAuthoringInfo("Authoring Info: "+row.getColAuthoringInfo()+"<br> Recording Info: "+voPatSECS.getRecordingInformation());
        }
        else if (voPatSECS.getAuthoringInformationIsNotNull())
        {
        row.setTooltipForColAuthoringInfo("Authoring Info: "+row.getColAuthoringInfo());
        }

        row.setColScore(voPatSECS.getSECSScore());
        row.setTooltipForColScore(row.getColScore().toString());

        row.setColDetails(voPatSECS.getScoreDetails());
        row.setTooltipForColDetails(row.getColDetails());

        row.setColActionTaken(voPatSECS.getActionTaken());
        row.setTooltipForColActionTaken(row.getColActionTaken());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch(boolean isCalledFromFormOpen)
{
    clearGrid();

    String[] uiErrors = getUISearchCriteriaErrors();
    if (uiErrors != null && isCalledFromFormOpen == false)
    {
        engine.showErrors(uiErrors);
        return;
    }

    if (uiErrors == null)
    {
        Date startDate = form.dteStart() != null ? form.dteStart().getValue() : null;
        Date endDate = form.dteEnd() != null ? form.dteEnd().getValue() : null;

        DateTime startDT = new DateTime(startDate, new Time(0, 0));
        DateTime endDT = new DateTime(endDate, new Time(23, 59));

        PatientSECSShortVoCollection voColl = domain.listPatientSECS(startDT, endDT,form.getGlobalContext().Core.getPatientShort());
        if (isCalledFromFormOpen == false && (voColl == null || voColl.size() == 0))
        {
            engine.showMessage("No records found for the Search Criteria Provided");
        }

        populateGridControl(voColl);

        if (isCalledFromFormOpen == false)
            form.getGlobalContext().Nursing.setPatientSECSSearchCriteria(getSearchCriteria());//WDEV-19389 
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateGridControl(PatientSECSShortVoCollection voColl)
{
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientSECSShortVo voPatSECS = voColl.get(i);
        grdSECSRow row = form.grdSECS().getRows().newRow();

        row.setColEscalate(voPatSECS.getEscalatedIsNotNull() ? (voPatSECS.getEscalated().booleanValue() ? "Yes" : "No") : "");
        row.setTooltipForColEscalate(row.getColEscalate());

        row.setColAuthoringInfo(voPatSECS.getAuthoringInformationIsNotNull() ? voPatSECS.getAuthoringInformation().toString(", ") : "");
        //WDEV-13559 
        if (voPatSECS.getAuthoringInformationIsNotNull() && voPatSECS.getRecordingInformationIsNotNull())
        {
        row.setTooltipForColAuthoringInfo("Authoring Info: "+row.getColAuthoringInfo()+"<br> Recording Info: "+voPatSECS.getRecordingInformation());
        }
        else if (voPatSECS.getAuthoringInformationIsNotNull())
        {
        row.setTooltipForColAuthoringInfo("Authoring Info: "+row.getColAuthoringInfo());
        }

        row.setColScore(voPatSECS.getSECSScore());
        row.setTooltipForColScore(row.getColScore().toString());

        row.setColDetails(voPatSECS.getScoreDetails());
        row.setTooltipForColDetails(row.getColDetails());

        row.setColActionTaken(voPatSECS.getActionTaken());
        row.setTooltipForColActionTaken(row.getColActionTaken());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void doSearch(boolean isCalledFromFormOpen)
{
    clearGrid();

    String[] uiErrors = getUISearchCriteriaErrors();
    if (uiErrors != null && isCalledFromFormOpen == false)
    {
        engine.showErrors(uiErrors);
        return;
    }

    if (uiErrors == null)
    {
        Date startDate = form.dteStart() != null ? form.dteStart().getValue() : null;
        Date endDate = form.dteEnd() != null ? form.dteEnd().getValue() : null;

        DateTime startDT = new DateTime(startDate, new Time(0, 0));
        DateTime endDT = new DateTime(endDate, new Time(23, 59));

        PatientSECSShortVoCollection voColl = domain.listPatientSECS(startDT, endDT,form.getGlobalContext().Core.getPatientShort());
        if (isCalledFromFormOpen == false && (voColl == null || voColl.size() == 0))
        {
            engine.showMessage("No records found for the Search Criteria Provided");
        }

        populateGridControl(voColl);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateGridControl(PatientSECSShortVoCollection voColl)
{
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientSECSShortVo voPatSECS = voColl.get(i);
        grdSECSRow row = form.grdSECS().getRows().newRow();

        row.setColEscalate(voPatSECS.getEscalatedIsNotNull() ? (voPatSECS.getEscalated().booleanValue() ? "Yes" : "No") : "");
        row.setTooltipForColEscalate(row.getColEscalate());

        row.setColAuthoringInfo(voPatSECS.getAuthoringInformationIsNotNull() ? voPatSECS.getAuthoringInformation().toString(", ") : "");
        //WDEV-13559 
        if (voPatSECS.getAuthoringInformationIsNotNull() && voPatSECS.getRecordingInformationIsNotNull())
        {
        row.setTooltipForColAuthoringInfo("Authoring Info: "+row.getColAuthoringInfo()+"<br> Recording Info: "+voPatSECS.getRecordingInformation());
        }
        else if (voPatSECS.getAuthoringInformationIsNotNull())
        {
        row.setTooltipForColAuthoringInfo("Authoring Info: "+row.getColAuthoringInfo());
        }

        row.setColScore(voPatSECS.getSECSScore());
        row.setTooltipForColScore(row.getColScore().toString());

        row.setColDetails(voPatSECS.getScoreDetails());
        row.setTooltipForColDetails(row.getColDetails());

        row.setColActionTaken(voPatSECS.getActionTaken());
        row.setTooltipForColActionTaken(row.getColActionTaken());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void doSearch(boolean isCalledFromFormOpen)
{
    clearGrid();

    String[] uiErrors = getUISearchCriteriaErrors();
    if (uiErrors != null && isCalledFromFormOpen == false)
    {
        engine.showErrors(uiErrors);
        return;
    }

    if (uiErrors == null)
    {
        Date startDate = form.dteStart() != null ? form.dteStart().getValue() : null;
        Date endDate = form.dteEnd() != null ? form.dteEnd().getValue() : null;

        DateTime startDT = new DateTime(startDate, new Time(0, 0));
        DateTime endDT = new DateTime(endDate, new Time(23, 59));

        PatientSECSShortVoCollection voColl = domain.listPatientSECS(startDT, endDT,form.getGlobalContext().Core.getPatientShort());
        if (isCalledFromFormOpen == false && (voColl == null || voColl.size() == 0))
        {
            engine.showMessage("No records found for the Search Criteria Provided");
        }

        populateGridControl(voColl);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGridControl(PatientSECSShortVoCollection voColl)
{
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        PatientSECSShortVo voPatSECS = voColl.get(i);
        grdSECSRow row = form.grdSECS().getRows().newRow();

        row.setColEscalate(voPatSECS.getEscalatedIsNotNull() ? (voPatSECS.getEscalated().booleanValue() ? "Yes" : "No") : "");
        row.setTooltipForColEscalate(row.getColEscalate());

        row.setColAuthoringInfo(voPatSECS.getAuthoringInformationIsNotNull() ? voPatSECS.getAuthoringInformation().toString(", ") : "");
        //WDEV-13559 
        if (voPatSECS.getAuthoringInformationIsNotNull() && voPatSECS.getRecordingInformationIsNotNull())
        {
        row.setTooltipForColAuthoringInfo("Authoring Info: "+row.getColAuthoringInfo()+"<br> Recording Info: "+voPatSECS.getRecordingInformation());
        }
        else if (voPatSECS.getAuthoringInformationIsNotNull())
        {
        row.setTooltipForColAuthoringInfo("Authoring Info: "+row.getColAuthoringInfo());
        }

        row.setColScore(voPatSECS.getSECSScore());
        row.setTooltipForColScore(row.getColScore().toString());

        row.setColDetails(voPatSECS.getScoreDetails());
        row.setTooltipForColDetails(row.getColDetails());

        row.setColActionTaken(voPatSECS.getActionTaken());
        row.setTooltipForColActionTaken(row.getColActionTaken());
    }
}