private AdmissionChecklistVoCollection populateDataFromGridAction() { AdmissionChecklistVoCollection tempColVo = new AdmissionChecklistVoCollection(); for(int i = 0; i < form.grdAction().getRows().size();i++) { if(form.grdAction().getRows().get(i).getColumnDone() == true) { AdmissionChecklistVo admCheckVo = new AdmissionChecklistVo(); admCheckVo.setChecklistItem(form.grdAction().getRows().get(i).getValue().getChecklistItem()); admCheckVo.setCheckedDateTime(form.grdAction().getRows().get(i).getValue().getCheckedDateTime()); admCheckVo.setCheckedHCP(form.grdAction().getRows().get(i).getValue().getCheckedHCP()); tempColVo.add(admCheckVo); } } return tempColVo; }
private AdmissionChecklistVo iterateAdmissionChecklisColl(AdmissionQuestion itemLookup, ClinicalAdmissionVo clinAdmVo) { AdmissionChecklistVoCollection admColl = clinAdmVo.getAdmissionChecklist(); for(int j = 0; j< admColl.size();j++) { if(itemLookup.equals(admColl.get(j).getChecklistItem())) { return admColl.get(j); } } return null; }