protected void onFormOpen() throws ims.framework.exceptions.FormOpenException { //wdev-10788 if(form.getGlobalContext().Nursing.getClinicalNotesViewFilterIsNotNull()) { ClinicalNotesViewFilterVo tempVo = form.getGlobalContext().Nursing.getClinicalNotesViewFilter(); form.chkActiveOnly().setValue(tempVo.getActive()); form.dateFrom().setValue(tempVo.getFromDate()); form.dateTo().setValue(tempVo.getToDate()); } else //wdev-10788 { form.chkActiveOnly().setValue(true); Date lastMonth = new Date(); lastMonth.setMonth(lastMonth.getMonth() - 1); form.dateFrom().setValue(lastMonth); form.dateTo().setValue(new Date()); } if (domain.getHcpLiteUser() == null)//WDEV-15037 { form.bNew().setEnabled(false); } else { form.bNew().setEnabled(true); } listNotes(); setVisibilityForLinkCarePlan(); }
private void refreshSearchCriteriaFilter() { ClinicalNotesViewFilterVo tempVo = new ClinicalNotesViewFilterVo(); tempVo.setActive(form.chkActiveOnly().getValue()); tempVo.setFromDate(form.dateFrom().getValue()); tempVo.setToDate(form.dateTo().getValue()); form.getGlobalContext().Nursing.setClinicalNotesViewFilter(tempVo); }