private void populateSearchCriteriaScreenFromData(ClericalTaskWorklistSearchVo criteria) { clearScreen(); if(criteria == null) return; form.txtSurname().setValue(criteria.getSurname()); form.txtForename().setValue(criteria.getForename()); form.txtHospitalNo().setValue(criteria.getHospitalNo()); form.ccRequestor().setValue(criteria.getRequestor()); form.ccAllocate().setValue(criteria.getAllocatedTo()); form.cmbCurrentStatus().setValue(criteria.getStatus()); form.dteFromDate().setValue(criteria.getDateFrom()); form.dteToDate().setValue(criteria.getDateTo()); }
private ClericalTaskWorklistSearchVo populateSearchCriteriaDataFromScreen() { ClericalTaskWorklistSearchVo criteria=new ClericalTaskWorklistSearchVo(); criteria.setSurname(form.txtSurname().getValue()); criteria.setForename(form.txtForename().getValue()); criteria.setHospitalNo(form.txtHospitalNo().getValue()); criteria.setRequestor((MemberOfStaffLiteVo) form.ccRequestor().getValue()); criteria.setAllocatedTo((MemberOfStaffLiteVo) form.ccAllocate().getValue()); criteria.setStatus((PatientClericalTaskStatus)form.cmbCurrentStatus().getValue()); criteria.setDateFrom(form.dteFromDate().getValue()); criteria.setDateTo(form.dteToDate().getValue()); return criteria; }