private void initialize() { form.chkActiveOnly().setValue(true); form.btnNoteCorrection().setEnabled(false); //RootNodes are the Discipline instances HcpDisTypeCollection coll = LookupHelper.getHcpDisType(domain.getLookupService()); TreeNode[] rootNodes = coll.getRootNodes(); for (int i = 0; i < rootNodes.length; i++) { HcpDisType lk = (HcpDisType)rootNodes[i]; if (!lk.equals(HcpDisType.NURSING)) form.cmbDiscipline().newRow(lk,lk.getText()); } //wdev-10791 if(form.getGlobalContext().Nursing.getContactFilterIsNotNull()) { ContactFilterVo tempVo = form.getGlobalContext().Nursing.getContactFilter(); form.cmbDiscipline().setValue(tempVo != null ? tempVo.getDiscipline():null); if(tempVo.getHcp() != null && tempVo.getHcp().getName() != null) { form.qcbHCP().newRow(tempVo.getHcp(), tempVo.getHcp().getName().toString()); form.qcbHCP().setValue(tempVo.getHcp()); } if(Boolean.TRUE.equals(tempVo.getActive())) form.chkActiveOnly().setValue(Boolean.TRUE); else form.chkActiveOnly().setValue(Boolean.FALSE); } //--------- form.qcbHCP().setEnabled(form.cmbDiscipline().getValue()!=null); form.btnOk().setEnabled(form.cmbDiscipline().getValue()!=null); form.getLocalContext().setselectedRecord(null); //wdev-10799 }
private void RefreshFilterSearchCriteria() { ContactFilterVo tempVo = new ContactFilterVo(); tempVo.setDiscipline(form.cmbDiscipline().getValue()); tempVo.setHcp(form.qcbHCP().getValue()); tempVo.setActive(form.chkActiveOnly().getValue()); form.getGlobalContext().Nursing.setContactFilter(tempVo); }