protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException { if(validateUISearchCriteria() == false) return; form.getLocalContext().setPrintingContext(null); //wdev-11986 // WDEV-12692 - Pass 'From Date' and 'To Date' as search criteria PathologyOrderVoCollection results = domain.listPathologyOrderInvestigation(form.cmbService().getValue(),form.cmbDepartment().getValue(), Category.PATHOLOGY, form.dteFrom().getValue(), form.dteTo().getValue()); if (results == null || results.size() == 0) { engine.showMessage("No results found for search criteria."); } populateOrdersGrid(results); //-------- enablePrintButton(); }
private void populateOrdersGrid(PathologyOrderVoCollection coll) { if (coll == null) return; form.grdResults().getRows().clear(); coll.sort(SortOrder.DESCENDING); int recCount = 0; for (int i = 0; i < coll.size(); i++) { PathologyOrderVo result = coll.get(i); recCount += addOrderRow(result); } form.getLocalContext().setCount(recCount); displayGridFooter(); }
private boolean search() { if(validateUISearchCriteria() == false) return false; form.getLocalContext().setPrintingContext(null); //wdev-11986 // WDEV-12692 - Pass 'From Date' and 'To Date' as search criteria PathologyOrderVoCollection results = domain.listPathologyOrderInvestigation(form.cmbService().getValue(),form.cmbDepartment().getValue(), Category.PATHOLOGY, form.dteFrom().getValue(), form.dteTo().getValue()); if (results == null || results.size() == 0) { engine.showMessage("No results found for search criteria."); } populateOrdersGrid(results); //-------- enablePrintButton(); return true; }
public PathologyOrderVoCollection listOrderInvestigation(ServiceRefVo serviceRefVo, Category category) { RadiologyOrders impl = (RadiologyOrders) getDomainImpl(RadiologyOrdersImpl.class); return impl.listPathOrderInvestigation(serviceRefVo, category); }
public PathologyOrderVoCollection listPathologyOrderInvestigation(ServiceRefVo serviceRefVo, LocationRefVo locationRefVo, Category category, Date fromDate, Date toDate) { List list = listOrderInvestigation(serviceRefVo, locationRefVo, new OrderInvStatus[]{OrderInvStatus.SENT, OrderInvStatus.ACCEPTED, OrderInvStatus.ORDERED}, category, fromDate, toDate); return PathologyOrderVoAssembler.createPathologyOrderVoCollectionFromOrderInvestigation(list); }
public PathologyOrderVoCollection listPathOrderInvestigation(ServiceRefVo serviceRefVo, Category category) { // WDEV-11643 List list = listOrderInvestigation(serviceRefVo, null, new OrderInvStatus[]{OrderInvStatus.SENT, OrderInvStatus.ACCEPTED, OrderInvStatus.ORDERED}, category, null, null); return PathologyOrderVoAssembler.createPathologyOrderVoCollectionFromOrderInvestigation(list); }