private void populateSearchCriteriaScreenFromData(CarePlanWorklistSearchVo criteria) { clearScreen(); if (criteria == null) return; form.ccHCP().setValue(criteria.getHCP()); form.cmbWard().setValue(criteria.getWard()); form.dteFromDate().setValue(criteria.getDateFrom()); form.dteToDate().setValue(criteria.getDateTo()); if (Boolean.TRUE.equals(criteria.getActive())) //WDEV-15266 { form.grpStatus().setValue(grpStatusEnumeration.rdoActive); } else { form.grpStatus().setValue(grpStatusEnumeration.rdoAll); } }
private CarePlanWorklistSearchVo populateSearchCriteriaFromScreen() { CarePlanWorklistSearchVo criteria = new CarePlanWorklistSearchVo(); criteria.setHCP((HcpLiteVo) form.ccHCP().getValue()); criteria.setWard(form.cmbWard().getValue()); if (form.dteFromDate().getValue() != null) { criteria.setDateFrom(form.dteFromDate().getValue()); } if (form.dteToDate().getValue() != null) { criteria.setDateTo(form.dteToDate().getValue()); } // if (form.dteFromDate().getValue()==null && // form.dteToDate().getValue()==null) // { // criteria.setDateTo((new // Date()).addDay(ims.configuration.gen.ConfigFlag.DOM.CAREPLAN_WORKLIST_TO_BE_REVIEWED_RANGE.getValue())); // } if (form.grpStatus().getValue().equals(grpStatusEnumeration.rdoActive)) criteria.setActive(true); else criteria.setActive(false); return criteria; }