private void initialise() { if(form.getGlobalContext().Nursing.getCarePlanEvaluationFilterIsNotNull()) //wdev-10789 { CarePlanEvaluationFilterVo tempVo = form.getGlobalContext().Nursing.getCarePlanEvaluationFilter(); form.dteFrom().setValue(tempVo.getFromDate()); form.dteTo().setValue(tempVo.getToDate()); form.chkActive().setValue(tempVo.getActiveOnly()); } else { form.dteFrom().setValue(new Date().addDay(-30)); form.dteTo().setValue(new Date()); form.chkActive().setValue(true); } }
private void refreshSearchCriteriaFilter() { CarePlanEvaluationFilterVo tempVo = new CarePlanEvaluationFilterVo(); tempVo.setActiveOnly(form.chkActive().getValue()); tempVo.setFromDate(form.dteFrom().getValue()); tempVo.setToDate(form.dteTo().getValue()); form.getGlobalContext().Nursing.setCarePlanEvaluationFilter(tempVo); }