private void refreshSearchCriteria() { EDischargeSearchCriteriaVo voCriteria = form.getGlobalContext().getEDischargeSearchCriteria(); form.cmbWard().setValue(domain.getWard(voCriteria.getWard())); form.cmbStatus().setValue(voCriteria.getStatus()); form.cmbSpecialty().setValue(voCriteria.getSpecialty()); form.dteFrom().setValue(voCriteria.getFromDate()); form.dteTo().setValue(voCriteria.getToDate()); form.chkDetailsComplete().setValue(voCriteria.getClinicaDetailsCompleteIsNotNull() && voCriteria.getClinicaDetailsComplete().equals(YesNo.YES) ? true :false); form.ccResponsibleHCP().setValue((IMos)voCriteria.getResponsibleHCP()); form.cmbTTA().setValue(voCriteria.getTTAStatus()); form.chkNoEmail().setValue(voCriteria.getNonCornish()); initializeDynamicGrid(); search(); }
private void search() { clearResults(); EDischargeSearchCriteriaVo voCriteria = populateSearchCriteria(); DischargeDetailsVoCollection dischargeDetails = domain.searchByCriteria(voCriteria); //start WDEV-14703 if (dischargeDetails == null || dischargeDetails.size() == 0) { engine.showMessage("No matching discharged patients found."); return; } //end populateDischargesGrid(dischargeDetails); if (voCriteria != null && voCriteria.getColumnSortOrder() != null) { setSortOrderForColumn(voCriteria.getColumnSortOrder().getColumnId(), voCriteria.getColumnSortOrder().getSortOrder()); } }
private void search() { clearResults(); EDischargeSearchCriteriaVo voCriteria = new EDischargeSearchCriteriaVo(); voCriteria.setResponsibleHCP((HcpRefVo)form.ccResponsibleHCP().getValue()); voCriteria.setWard(form.cmbWard().getValue()); voCriteria.setStatus(form.cmbStatus().getValue()); voCriteria.setSpecialty(form.cmbSpecialty().getValue()); voCriteria.setFromDate(form.dteFrom().getValue()); voCriteria.setToDate(form.dteTo().getValue()); voCriteria.setClinicaDetailsComplete(form.chkDetailsComplete().getValue() ? YesNo.YES : null); voCriteria.setTTAStatus(form.cmbTTA().getValue()); voCriteria.setNonCornish(form.chkNoEmail().getValue()); form.getGlobalContext().setEDischargeSearchCriteria(voCriteria); long startTimeDB = System.currentTimeMillis(); EdischargeListSTHKManualAssemblyVoCollection summaryDetails = domain.searchByCriteria(voCriteria); long endTimeDB = System.currentTimeMillis(); long startTimeDisplay = System.currentTimeMillis(); if (summaryDetails != null) populateGrid(summaryDetails, null); long endTimeDisplay = System.currentTimeMillis(); setFooter(form.dyngrdDischargeDetails().getRows().size(), endTimeDB-startTimeDB, endTimeDisplay-startTimeDisplay); if (summaryDetails == null || (summaryDetails != null && summaryDetails.size() == 0)) engine.showMessage("No eDischarges found."); }
private void refreshSearchCriteria() { EDischargeSearchCriteriaVo voCriteria = form.getGlobalContext().getEDischargeSearchCriteria(); form.cmbWard().setValue(domain.getWard(voCriteria.getWard())); form.cmbStatus().setValue(voCriteria.getStatus()); form.cmbSpecialty().setValue(voCriteria.getSpecialty()); form.dteFrom().setValue(voCriteria.getFromDate()); form.dteTo().setValue(voCriteria.getToDate()); if (voCriteria.getCompletingIsNotNull() && voCriteria.getCompleting().equals(false)) //WDEV-15428 { form.lblCompletingOrInitiating().setValue("Initiating HCP :"); form.GroupSearchBy().setValue(GroupSearchByEnumeration.rdoInitiatingHCP); } if(voCriteria.getCompletingHCPIsNotNull()) { form.ccCompletingHCP().initialize(MosType.MEDIC); form.lblCompletingOrInitiating().setValue("Completing HCP :"); form.ccCompletingHCP().setValue((IMos)voCriteria.getCompletingHCP()); form.GroupSearchBy().setValue(GroupSearchByEnumeration.rdoCompletingHCP); } if(voCriteria.getInitiatingHCPIsNotNull()) { form.ccCompletingHCP().initialize(MosType.HCP); form.lblCompletingOrInitiating().setValue("Initiating HCP :"); form.ccCompletingHCP().setValue((IMos)voCriteria.getInitiatingHCP()); form.GroupSearchBy().setValue(GroupSearchByEnumeration.rdoInitiatingHCP); } form.ccResponsibleHCP().setValue((IMos)voCriteria.getResponsibleHCP()); //wdev-8700 form.cmbComplete().setValue(voCriteria.getClinicaDetailsComplete()); form.cmbTTA().setValue(voCriteria.getTTA()); form.chkNonCornish().setValue(voCriteria.getNonCornish()); form.chkTTA().setValue(voCriteria.getTTAFeedBack()); initializeDynamicGrid(form.GroupSearchBy().getValue()); search(); }
private void refreshSearchCriteria() { EDischargeSearchCriteriaVo voCriteria = form.getGlobalContext().getEDischargeSearchCriteria(); form.cmbWard().setValue(domain.getWard(voCriteria.getWard())); form.cmbStatus().setValue(voCriteria.getStatus()); form.cmbSpecialty().setValue(voCriteria.getSpecialty()); form.dteFrom().setValue(voCriteria.getFromDate()); form.dteTo().setValue(voCriteria.getToDate()); if (voCriteria.getCompletingIsNotNull() && voCriteria.getCompleting().equals(false)) //WDEV-15428 { form.lblCompletingOrInitiating().setValue("Initiating HCP :"); form.GroupSearchBy().setValue(GroupSearchByEnumeration.rdoInitiatingHCP); } if(voCriteria.getCompletingHCPIsNotNull()) { form.ccCompletingHCP().initialize(MosType.MEDIC); form.lblCompletingOrInitiating().setValue("Completing HCP :"); form.ccCompletingHCP().setValue((IMos)voCriteria.getCompletingHCP()); form.GroupSearchBy().setValue(GroupSearchByEnumeration.rdoCompletingHCP); } if(voCriteria.getInitiatingHCPIsNotNull()) { form.ccCompletingHCP().initialize(MosType.HCP); form.lblCompletingOrInitiating().setValue("Initiating HCP :"); form.ccCompletingHCP().setValue((IMos)voCriteria.getInitiatingHCP()); form.GroupSearchBy().setValue(GroupSearchByEnumeration.rdoInitiatingHCP); } form.ccResponsibleHCP().setValue((IMos)voCriteria.getResponsibleHCP()); //wdev-8700 form.cmbComplete().setValue(voCriteria.getClinicaDetailsComplete()); form.cmbTTA().setValue(voCriteria.getTTA()); form.chkNonCornish().setValue(voCriteria.getNonCornish()); form.chkTTA().setValue(voCriteria.getTTAFeedBack()); //WDEV-18634 form.cmbCurrentWard().setValue(domain.getWard(voCriteria.getCurrentWard())); form.chkExcludeDischarged().setValue(voCriteria.getExcludeDischarged()); setSearchDateIntervalType(voCriteria.getSearchType()); initializeDynamicGrid(form.GroupSearchBy().getValue()); search(); }