protected void onImbSearchClick() { if(validateUISearchCriteria() == false) return; form.getLocalContext().setPrintingContext(null); // WDEV-11643 RadiologyOrderVoCollection listRadOrderInvestigation = domain.listRadOrderInvestigation(form.cmbService().getValue(), form.cmbDepartment().getValue(), Category.CLINICALIMAGING, form.chkCompleted().isVisible() ? form.chkCompleted().getValue() : Boolean.FALSE, form.dteFrom().getValue(), form.dteTo().getValue()); // WDEV-12571 - Show 'No records found' message if (listRadOrderInvestigation == null || listRadOrderInvestigation.size() == 0) { engine.showMessage("No records found to match search criteria."); } populateResultsGrid(listRadOrderInvestigation); enablePrintButton(); }
private void populateResultsGrid(RadiologyOrderVoCollection coll) { if (coll == null) return; form.grdResults().getRows().clear(); coll.sort(SortOrder.DESCENDING); for (int i = 0; i < coll.size(); i++) { RadiologyOrderVo result = coll.get(i); setResultGridRowData(result); } displayGridFooter(); }
private boolean search() { if(validateUISearchCriteria() == false) return false; form.getLocalContext().setPrintingContext(null); // WDEV-11643 RadiologyOrderVoCollection listRadOrderInvestigation = domain.listRadOrderInvestigation(form.cmbService().getValue(), form.cmbDepartment().getValue(), Category.CLINICALIMAGING, form.chkCompleted().isVisible() ? form.chkCompleted().getValue() : Boolean.FALSE, form.dteFrom().getValue(), form.dteTo().getValue()); // WDEV-12571 - Show 'No records found' message if (listRadOrderInvestigation == null || listRadOrderInvestigation.size() == 0) { engine.showMessage("No records found to match search criteria."); } populateResultsGrid(listRadOrderInvestigation); enablePrintButton(); return true; }
private RadiologyOrderVoCollection manualSortOrderedDateTime(SortOrder sortOrder) { RadiologyOrderVoCollection tempColl = new RadiologyOrderVoCollection(); for(int i = 0; form.grdResults().getRows() != null && i < form.grdResults().getRows().size();i++) { tempColl.add(form.grdResults().getRows().get(i).getValue()); } form.grdResults().getRows().clear(); tempColl.sort(new OrderedDateTimeComparator(sortOrder)); return tempColl; }
private void populateGridOrdersResults(RadiologyOrderVoCollection coll) { if(coll == null) return; for(int i = 0; i < coll.size();i++) { RadiologyOrderVo result = coll.get(i); setResultGridRowData(result); } displayGridFooter(); }
public RadiologyOrderVoCollection listRadOrderInvestigation(ServiceRefVo serviceRefVo, LocationRefVo voLocationRef, Category category, Boolean bCompleted, Date fromDate, Date toDate) { OrderInvStatus[] statuses = null; if (bCompleted != null && bCompleted) statuses = new OrderInvStatus[]{OrderInvStatus.COMPLETE}; else statuses = new OrderInvStatus[]{OrderInvStatus.SENT, OrderInvStatus.ACCEPTED, OrderInvStatus.ORDERED, OrderInvStatus.CHANGED, OrderInvStatus.PROVIDER_CHANGE_REJECTED}; //WDEV-12054 // WDEV-11643 List results = listOrderInvestigation(serviceRefVo, voLocationRef, statuses, category, fromDate, toDate); //WDEV-12054 HashMap map = new HashMap(); ClinicalImagingResults impl = (ClinicalImagingResults) getDomainImpl(ClinicalImagingResultsImpl.class); map = impl.getListXoHistory(map, results); RadiologyOrderVoCollection voCollResults = RadiologyOrderVoAssembler.createRadiologyOrderVoCollectionFromOrderInvestigation(results).sort(SortOrder.DESCENDING); if(voCollResults != null) { for(RadiologyOrderVo voResult : voCollResults) { if(map.containsKey(voResult.getID_OrderInvestigation())) { voResult.setOrdInvXOStatusHistory((OrdInvXOStatusHistoryLiteVoCollection) map.get(voResult.getID_OrderInvestigation())); } } } return voCollResults; }