/** * populates the screen from data from specified FamilyHistoryVoCollection * @param voCollFamHist * @return void */ public void populateListControl(EducationToCarersVoCollection voCollEduCar) { clear(); if (voCollEduCar != null) { GenForm.grdListRow row; for (int i =0; i < voCollEduCar.size();i++) { row = form.grdList().getRows().newRow(); row.setValue(voCollEduCar.get(i)); row.setColDate(voCollEduCar.get(i).getAuthoringDateTimeIsNotNull()?voCollEduCar.get(i).getAuthoringDateTime().getDate():null); row.setColHCP(voCollEduCar.get(i).getAuthoringCPIsNotNull()?voCollEduCar.get(i).getAuthoringCP().toString():""); row.setColCarer(voCollEduCar.get(i).getCarer()); row.setColDetails(voCollEduCar.get(i).getDetails()); } } }
public ims.therapies.vo.EducationToCarersVoCollection list(ims.core.vo.ClinicalContactShortVo voClinicalContact) { if(voClinicalContact == null) throw new DomainRuntimeException("Contact Filter not provided for list call. "); DomainFactory factory = getDomainFactory(); java.util.List educList = factory.find("from EducationToCarers educs where educs.clinicalContact.id = :clinicalcontactId", new String[]{"clinicalcontactId"}, new Object[]{voClinicalContact.getID_ClinicalContact()}); return EducationToCarersVoAssembler.createEducationToCarersVoCollectionFromEducationToCarers(educList).sort(); }
public EducationToCarersVoCollection listEduTocCarerForCareContext(CareContextRefVo careContextRefVo) { if(careContextRefVo == null) throw new DomainRuntimeException("Care Context is null. "); DomainFactory factory = getDomainFactory(); java.util.List educList = factory.find("from EducationToCarers educs where educs.careContext.id = :ccId", new String[]{"ccId"}, new Object[]{careContextRefVo.getID_CareContext()}); return EducationToCarersVoAssembler.createEducationToCarersVoCollectionFromEducationToCarers(educList).sort(); }