private HospitalAtNightWorklistSearchVo populateSearchCriteriaDataFromScreen() { HospitalAtNightWorklistSearchVo criteria = new HospitalAtNightWorklistSearchVo(); criteria.setSurname(form.txtSurname().getValue()); criteria.setForename(form.txtForename().getValue()); criteria.setNewOrActive(form.chkNewAndActive().getValue()); criteria.setCompleted(form.chkComplete().getValue()); criteria.setHospital(form.cmbHospital().getValue()); criteria.setWard(form.cmbWard().getValue()); criteria.setTypeOfRequest(form.cmbTypeOfRequest().getValue()); criteria.setDateFrom(form.dtimFrom().getValue()); criteria.setDateTo(form.dtimTo().getValue()); return criteria; }
private void populateSearchCriteriaScreenFromData(HospitalAtNightWorklistSearchVo criteria) { clearScreen(); if(criteria == null) return; form.txtSurname().setValue(criteria.getSurname()); form.txtForename().setValue(criteria.getForename()); form.chkNewAndActive().setValue(criteria.getNewOrActive()); form.chkComplete().setValue(criteria.getCompleted()); form.cmbHospital().setValue(criteria.getHospital()); bindWardCombo(form.cmbHospital().getValue()); form.cmbWard().setValue(criteria.getWard()); form.cmbTypeOfRequest().setValue(criteria.getTypeOfRequest()); form.dtimFrom().setValue(criteria.getDateFrom()); form.dtimTo().setValue(criteria.getDateTo());; }