Java 类ims.ocrr.vo.lookups.OrderInvStatusCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private OrderInvStatusCollection getRequiredInvStatuses()
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();
    if (form.chkNew().getValue())
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (form.chkReview().getValue())
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (form.chkSeen().getValue())
    {
        stColl.add(OrderInvStatus.SEEN);
        stColl.add(OrderInvStatus.CHECKED);
    }
    return stColl;
}
项目:openMAXIMS    文件:Logic.java   
private OrderInvStatusCollection getRequiredInvStatuses()
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();
    if (form.chkNew().getValue())
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (form.chkReview().getValue())
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (form.chkSeen().getValue())
    {
        stColl.add(OrderInvStatus.SEEN);
        stColl.add(OrderInvStatus.CHECKED);
    }
    return stColl;
}
项目:openmaxims-linux    文件:Logic.java   
private OrderInvStatusCollection getRequiredInvStatuses()
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();
    if (form.chkNew().getValue())
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (form.chkReview().getValue())
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (form.chkSeen().getValue())
    {
        stColl.add(OrderInvStatus.SEEN);
        stColl.add(OrderInvStatus.CHECKED);
    }
    return stColl;
}
项目:AvoinApotti    文件:Logic.java   
private OrderInvStatusCollection getRequiredInvStatuses()
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();
    if (form.chkNew().getValue())
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (form.chkReview().getValue())
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (form.chkSeenChecked().getValue())
    {
        stColl.add(OrderInvStatus.SEEN);
        //stColl.add(OrderInvStatus.CHECKED);
    }

    if (form.chkChecked().getValue())
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (form.chkCompleted().getValue())
        stColl.add(OrderInvStatus.COMPLETE);

    return stColl;
}
项目:AvoinApotti    文件:Logic.java   
private void search()
    {

        resetResults();

        OrderInvStatusCollection stColl = getRequiredInvStatuses();

        int nOrderingHCPId = -1;
        if(form.ccOrderingHCP().getValue()!=null)
            nOrderingHCPId = form.ccOrderingHCP().getValue().getIMosId(); //WDEV-9946

//      public NewResultsListVoCollection listNewResultsByDateRange(Date dateFrom, Date dateTo, ValueObject location, ValueObject clinician, OrderInvStatusCollection statuses, Boolean includeCurrentInpatients, Boolean excludeInpatients, Integer orderingHCPId, ServiceRefVo discipline,Specialty specialty) {
        NewResultsListVoCollection newResults = domain.listNewResultsByDateRange(form.dteFrom().getValue(), form.dteTo().getValue(), null, null, stColl, false, false, nOrderingHCPId, null, (form.chkSpecialty().getValue() ? form.cmbSpecialty().getValue() : null), form.qmbInitiallySeenBy().getValue());

        //WDEV-13869
        if (newResults == null || newResults.size()==0)
        {
            engine.showMessage("No records match your search criteria.", "No data found", MessageButtons.OK, MessageIcon.WARNING);
            return;
        }


        Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
        Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

        for (int x = 0; x < newResults.size(); x++)
        {
            NewResultsListVo newResult = newResults.get(x);
            addNewResult(newResult, dateUnseen);
        }

        updateSearchTotal(form.grdResults().getRows().size());//WDEV-11170


    }
项目:AvoinApotti    文件:NewResultsSearchImpl.java   
private OrderInvStatusCollection getRequiredInvStatuses(NewResultsCriteriaVo criteria)
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();

    if (criteria == null)
        return stColl;

    if (Boolean.TRUE.equals(criteria.getNewUpdated()))
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (Boolean.TRUE.equals(criteria.getForReview()))
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (Boolean.TRUE.equals(criteria.getSeenChecked()))
    {
        stColl.add(OrderInvStatus.SEEN);
    }

    if (Boolean.TRUE.equals(criteria.getChecked()))
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (Boolean.TRUE.equals(criteria.getCompleted()))
    {
        stColl.add(OrderInvStatus.COMPLETE);
    }

    return stColl;
}
项目:openMAXIMS    文件:Logic.java   
private OrderInvStatusCollection getRequiredInvStatuses()
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();
    if (form.chkNew().getValue())
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (form.chkReview().getValue())
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (form.chkSeenChecked().getValue())
    {
        stColl.add(OrderInvStatus.SEEN);
        //stColl.add(OrderInvStatus.CHECKED);
    }

    if (form.chkChecked().getValue())
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (form.chkCompleted().getValue())
        stColl.add(OrderInvStatus.COMPLETE);

    return stColl;
}
项目:openMAXIMS    文件:NewResultsSearchImpl.java   
private OrderInvStatusCollection getRequiredInvStatuses(NewResultsCriteriaVo criteria)
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();

    if (criteria == null)
        return stColl;

    if (Boolean.TRUE.equals(criteria.getNewUpdated()))
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (Boolean.TRUE.equals(criteria.getForReview()))
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (Boolean.TRUE.equals(criteria.getSeenChecked()))
    {
        stColl.add(OrderInvStatus.SEEN);
    }

    if (Boolean.TRUE.equals(criteria.getChecked()))
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (Boolean.TRUE.equals(criteria.getCompleted()))
    {
        stColl.add(OrderInvStatus.COMPLETE);
    }

    return stColl;
}
项目:openMAXIMS    文件:Logic.java   
private OrderInvStatusCollection getRequiredInvStatuses()
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();
    if (form.chkNew().getValue())
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (form.chkReview().getValue())
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (form.chkSeenChecked().getValue())
    {
        stColl.add(OrderInvStatus.SEEN);
        //stColl.add(OrderInvStatus.CHECKED);
    }

    if (form.chkChecked().getValue())
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (form.chkCompleted().getValue())
        stColl.add(OrderInvStatus.COMPLETE);

    return stColl;
}
项目:openMAXIMS    文件:Logic.java   
private void search()
    {

        resetResults();

        OrderInvStatusCollection stColl = getRequiredInvStatuses();

        int nOrderingHCPId = -1;
        if(form.ccOrderingHCP().getValue()!=null)
            nOrderingHCPId = form.ccOrderingHCP().getValue().getIMosId(); //WDEV-9946

//      public NewResultsListVoCollection listNewResultsByDateRange(Date dateFrom, Date dateTo, ValueObject location, ValueObject clinician, OrderInvStatusCollection statuses, Boolean includeCurrentInpatients, Boolean excludeInpatients, Integer orderingHCPId, ServiceRefVo discipline,Specialty specialty) {
        NewResultsListVoCollection newResults = domain.listNewResultsByDateRange(form.dteFrom().getValue(), form.dteTo().getValue(), null, null, stColl, false, false, nOrderingHCPId, null, (form.chkSpecialty().getValue() ? form.cmbSpecialty().getValue() : null), form.qmbInitiallySeenBy().getValue());

        //WDEV-13869
        if (newResults == null || newResults.size()==0)
        {
            engine.showMessage("No records match your search criteria.", "No data found", MessageButtons.OK, MessageIcon.WARNING);
            return;
        }


        Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
        Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

        for (int x = 0; x < newResults.size(); x++)
        {
            NewResultsListVo newResult = newResults.get(x);
            addNewResult(newResult, dateUnseen);
        }

        updateSearchTotal(form.grdResults().getRows().size());//WDEV-11170


    }
项目:openMAXIMS    文件:NewResultsSearchImpl.java   
private OrderInvStatusCollection getRequiredInvStatuses(NewResultsCriteriaVo criteria)
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();

    if (criteria == null)
        return stColl;

    if (Boolean.TRUE.equals(criteria.getNewUpdated()))
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (Boolean.TRUE.equals(criteria.getForReview()))
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (Boolean.TRUE.equals(criteria.getSeenChecked()))
    {
        stColl.add(OrderInvStatus.SEEN);
    }

    if (Boolean.TRUE.equals(criteria.getChecked()))
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (Boolean.TRUE.equals(criteria.getCompleted()))
    {
        stColl.add(OrderInvStatus.COMPLETE);
    }

    return stColl;
}
项目:openmaxims-linux    文件:Logic.java   
private OrderInvStatusCollection getRequiredInvStatuses()
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();
    if (form.chkNew().getValue())
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (form.chkReview().getValue())
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (form.chkSeenChecked().getValue())
    {
        stColl.add(OrderInvStatus.SEEN);
        //stColl.add(OrderInvStatus.CHECKED);
    }

    if (form.chkChecked().getValue())
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (form.chkCompleted().getValue())
        stColl.add(OrderInvStatus.COMPLETE);

    return stColl;
}
项目:openmaxims-linux    文件:Logic.java   
private void search()
    {

        resetResults();

        OrderInvStatusCollection stColl = getRequiredInvStatuses();

        int nOrderingHCPId = -1;
        if(form.ccOrderingHCP().getValue()!=null)
            nOrderingHCPId = form.ccOrderingHCP().getValue().getIMosId(); //WDEV-9946

//      public NewResultsListVoCollection listNewResultsByDateRange(Date dateFrom, Date dateTo, ValueObject location, ValueObject clinician, OrderInvStatusCollection statuses, Boolean includeCurrentInpatients, Boolean excludeInpatients, Integer orderingHCPId, ServiceRefVo discipline,Specialty specialty) {
        NewResultsListVoCollection newResults = domain.listNewResultsByDateRange(form.dteFrom().getValue(), form.dteTo().getValue(), null, null, stColl, false, false, nOrderingHCPId, null, (form.chkSpecialty().getValue() ? form.cmbSpecialty().getValue() : null), form.qmbInitiallySeenBy().getValue());

        //WDEV-13869
        if (newResults == null || newResults.size()==0)
        {
            engine.showMessage("No records match your search criteria.", "No data found", MessageButtons.OK, MessageIcon.WARNING);
            return;
        }


        Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
        Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

        for (int x = 0; x < newResults.size(); x++)
        {
            NewResultsListVo newResult = newResults.get(x);
            addNewResult(newResult, dateUnseen);
        }

        updateSearchTotal(form.grdResults().getRows().size());//WDEV-11170


    }
项目:openmaxims-linux    文件:NewResultsSearchImpl.java   
private OrderInvStatusCollection getRequiredInvStatuses(NewResultsCriteriaVo criteria)
{
    OrderInvStatusCollection stColl = new OrderInvStatusCollection();

    if (criteria == null)
        return stColl;

    if (Boolean.TRUE.equals(criteria.getNewUpdated()))
    {
        stColl.add(OrderInvStatus.NEW_RESULT);
        stColl.add(OrderInvStatus.UPDATED_RESULT);
        stColl.add(OrderInvStatus.RESULTED);
    }
    if (Boolean.TRUE.equals(criteria.getForReview()))
    {
        stColl.add(OrderInvStatus.REVIEW);
    }
    if (Boolean.TRUE.equals(criteria.getSeenChecked()))
    {
        stColl.add(OrderInvStatus.SEEN);
    }

    if (Boolean.TRUE.equals(criteria.getChecked()))
    {
        stColl.add(OrderInvStatus.CHECKED);
    }

    if (Boolean.TRUE.equals(criteria.getCompleted()))
    {
        stColl.add(OrderInvStatus.COMPLETE);
    }

    return stColl;
}
项目:AvoinApotti    文件:Logic.java   
private void search()
{
    resetResults();

    OrderInvStatusCollection stColl = getRequiredInvStatuses();

    if (ConfigFlag.GEN.RELEASE_MODE.getValue())
    {
        if (form.qmbOrderingLocation().getValue() == null)
        {
            form.cmbHospital().setValue(null);
            form.OrdLocGrp().setEnabled(false);
            form.OrdLocGrp().setValue(null);
            form.qmbOrderingLocation().setEnabled(false);
        }
    }

    int nOrderingHCPId = -1;
    if (form.ccOrderingHCP().getValue() != null)
        nOrderingHCPId = form.ccOrderingHCP().getValue().getIMosId(); //WDEV-9946

    NewResultsListVoCollection newResults = domain.listNewResultsByDateRange(form.dteFrom().getValue(), form.dteTo().getValue(), form.qmbOrderingLocation().getValue(), form.qmbOrderingClinician().getValue(), stColl, form.chkInpatientOrders().getValue(), form.chkOutpatientOrders().getValue(), form.chkExcludeInpatients().getValue(), nOrderingHCPId, (HcpLiteVo) form.ccCurrentRespClin().getValue(), form.qmbReviewingHCP().getValue(), form.cmbDiscipline().getValue());
    if (newResults == null)
        return;

    // Sort the results collection
    newResults.sort(new NewResultsDateComparator(SortOrder.DESCENDING));

    Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
    Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

    for (int x = 0; x < newResults.size(); x++)
    {
        NewResultsListVo newResult = newResults.get(x);
        addNewResult(newResult, dateUnseen);
    }

    // WDEV-9454
    if (newResults.size() == 0)
    {
        engine.showMessage("No results found.", "Message");
        form.getGlobalContext().OCRR.setNewResultsSearchCriteria(null);
    }
    else
        storeSearchCriteria();

    updateSearchTotal(form.grdResults().getRows().size());
}
项目:AvoinApotti    文件:NewResultsImpl.java   
public NewResultsListVoCollection listNewResultsByDateRange(Date dateFrom, Date dateTo, ValueObject location, ValueObject clinician, OrderInvStatusCollection statuses, Boolean includeCurrentInpatients, Boolean excludeInpatients, Integer orderingHCPId, ServiceRefVo discipline,Specialty specialty)
{
    return listNewResultsByDateRange(dateFrom, dateTo, location, clinician, statuses, includeCurrentInpatients, excludeInpatients,orderingHCPId,discipline,specialty, null);
}
项目:openMAXIMS    文件:Logic.java   
private void search()
{
    resetResults();

    OrderInvStatusCollection stColl = getRequiredInvStatuses();

    if (ConfigFlag.GEN.RELEASE_MODE.getValue())
    {
        if (form.qmbOrderingLocation().getValue() == null)
        {
            form.cmbHospital().setValue(null);
            form.OrdLocGrp().setEnabled(false);
            form.OrdLocGrp().setValue(null);
            form.qmbOrderingLocation().setEnabled(false);
        }
    }

    int nOrderingHCPId = -1;
    if (form.ccOrderingHCP().getValue() != null)
        nOrderingHCPId = form.ccOrderingHCP().getValue().getIMosId(); //WDEV-9946

    NewResultsListVoCollection newResults = domain.listNewResultsByDateRange(form.dteFrom().getValue(), form.dteTo().getValue(), form.qmbOrderingLocation().getValue(), form.qmbOrderingClinician().getValue(), stColl, form.chkInpatientOrders().getValue(), form.chkOutpatientOrders().getValue(), form.chkExcludeInpatients().getValue(), nOrderingHCPId, (HcpLiteVo) form.ccCurrentRespClin().getValue(), form.qmbReviewingHCP().getValue(), form.cmbDiscipline().getValue());
    if (newResults == null)
        return;

    // Sort the results collection
    newResults.sort(new NewResultsDateComparator(SortOrder.DESCENDING));

    Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
    Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

    for (int x = 0; x < newResults.size(); x++)
    {
        NewResultsListVo newResult = newResults.get(x);
        addNewResult(newResult, dateUnseen);
    }

    // WDEV-9454
    if (newResults.size() == 0)
    {
        engine.showMessage("No results found.", "Message");
        form.getGlobalContext().OCRR.setNewResultsSearchCriteria(null);
    }
    else
        storeSearchCriteria();

    updateSearchTotal(form.grdResults().getRows().size());
}
项目:openMAXIMS    文件:NewResultsImpl.java   
public NewResultsListVoCollection listNewResultsByDateRange(Date dateFrom, Date dateTo, ValueObject location, ValueObject clinician, OrderInvStatusCollection statuses, Boolean includeCurrentInpatients, Boolean excludeInpatients, Integer orderingHCPId, ServiceRefVo discipline,Specialty specialty)
{
    return listNewResultsByDateRange(dateFrom, dateTo, location, clinician, statuses, includeCurrentInpatients, excludeInpatients,orderingHCPId,discipline,specialty, null);
}
项目:openMAXIMS    文件:Logic.java   
private void search()
{
    resetResults();

    OrderInvStatusCollection stColl = getRequiredInvStatuses();

    if (ConfigFlag.GEN.RELEASE_MODE.getValue())
    {
        if (form.qmbOrderingLocation().getValue() == null)
        {
            form.cmbHospital().setValue(null);
            form.OrdLocGrp().setEnabled(false);
            form.OrdLocGrp().setValue(null);
            form.qmbOrderingLocation().setEnabled(false);
        }
    }

    int nOrderingHCPId = -1;
    if (form.ccOrderingHCP().getValue() != null)
        nOrderingHCPId = form.ccOrderingHCP().getValue().getIMosId(); //WDEV-9946

    NewResultsListVoCollection newResults = domain.listNewResultsByDateRange(form.dteFrom().getValue(), form.dteTo().getValue(), form.qmbOrderingLocation().getValue(), form.qmbOrderingClinician().getValue(), stColl, form.chkInpatientOrders().getValue(), form.chkOutpatientOrders().getValue(), form.chkExcludeInpatients().getValue(), nOrderingHCPId, (HcpLiteVo) form.ccCurrentRespClin().getValue(), form.qmbReviewingHCP().getValue(), form.cmbDiscipline().getValue());
    if (newResults == null)
        return;

    // Sort the results collection
    newResults.sort(new NewResultsDateComparator(SortOrder.DESCENDING));

    Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
    Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

    for (int x = 0; x < newResults.size(); x++)
    {
        NewResultsListVo newResult = newResults.get(x);
        addNewResult(newResult, dateUnseen);
    }

    // WDEV-9454
    if (newResults.size() == 0)
    {
        engine.showMessage("No results found.", "Message");
        form.getGlobalContext().OCRR.setNewResultsSearchCriteria(null);
    }
    else
        storeSearchCriteria();

    updateSearchTotal(form.grdResults().getRows().size());
}
项目:openMAXIMS    文件:NewResultsImpl.java   
public NewResultsListVoCollection listNewResultsByDateRange(Date dateFrom, Date dateTo, ValueObject location, ValueObject clinician, OrderInvStatusCollection statuses, Boolean includeCurrentInpatients, Boolean excludeInpatients, Integer orderingHCPId, ServiceRefVo discipline,Specialty specialty)
{
    return listNewResultsByDateRange(dateFrom, dateTo, location, clinician, statuses, includeCurrentInpatients, excludeInpatients,orderingHCPId,discipline,specialty, null);
}
项目:openmaxims-linux    文件:Logic.java   
private void search()
{
    resetResults();

    OrderInvStatusCollection stColl = getRequiredInvStatuses();

    if (ConfigFlag.GEN.RELEASE_MODE.getValue())
    {
        if (form.qmbOrderingLocation().getValue() == null)
        {
            form.cmbHospital().setValue(null);
            form.OrdLocGrp().setEnabled(false);
            form.OrdLocGrp().setValue(null);
            form.qmbOrderingLocation().setEnabled(false);
        }
    }

    int nOrderingHCPId = -1;
    if (form.ccOrderingHCP().getValue() != null)
        nOrderingHCPId = form.ccOrderingHCP().getValue().getIMosId(); //WDEV-9946

    NewResultsListVoCollection newResults = domain.listNewResultsByDateRange(form.dteFrom().getValue(), form.dteTo().getValue(), form.qmbOrderingLocation().getValue(), form.qmbOrderingClinician().getValue(), stColl, form.chkInpatientOrders().getValue(), form.chkOutpatientOrders().getValue(), form.chkExcludeInpatients().getValue(), nOrderingHCPId, (HcpLiteVo) form.ccCurrentRespClin().getValue(), form.qmbReviewingHCP().getValue(), form.cmbDiscipline().getValue());
    if (newResults == null)
        return;

    // Sort the results collection
    newResults.sort(new NewResultsDateComparator(SortOrder.DESCENDING));

    Integer nNewResUnseenDays = new Integer(ConfigFlag.DOM.OCS_NEWRES_UNSEEN_CUTOFF.getValue());
    Date dateUnseen = new Date().addDay(-1 * nNewResUnseenDays.intValue());

    for (int x = 0; x < newResults.size(); x++)
    {
        NewResultsListVo newResult = newResults.get(x);
        addNewResult(newResult, dateUnseen);
    }

    // WDEV-9454
    if (newResults.size() == 0)
    {
        engine.showMessage("No results found.", "Message");
        form.getGlobalContext().OCRR.setNewResultsSearchCriteria(null);
    }
    else
        storeSearchCriteria();

    updateSearchTotal(form.grdResults().getRows().size());
}
项目:openmaxims-linux    文件:NewResultsImpl.java   
public NewResultsListVoCollection listNewResultsByDateRange(Date dateFrom, Date dateTo, ValueObject location, ValueObject clinician, OrderInvStatusCollection statuses, Boolean includeCurrentInpatients, Boolean excludeInpatients, Integer orderingHCPId, ServiceRefVo discipline,Specialty specialty)
{
    return listNewResultsByDateRange(dateFrom, dateTo, location, clinician, statuses, includeCurrentInpatients, excludeInpatients,orderingHCPId,discipline,specialty, null);
}