private void populateFoodAndDrinking(EnvironmentalVisitVo voEnvironmentalVisit) { VisitAssessmentComponentVo voVisitAssessment; //Populate Food and Drinking Facilities for (int i=0; i < voEnvironmentalVisit.getVisitAssessmentDetails().size();i++) { voVisitAssessment = voEnvironmentalVisit.getVisitAssessmentDetails().get(i); if(voVisitAssessment.getType().getId() == EnvironmentalHomeVisitComponentType.FOODANDDRINKINGFACILITIES.getId()) { form.txtFoodandDrink().setValue(voVisitAssessment.getDetails()); form.txtFoodShortTerm().setValue(voVisitAssessment.getShortTermPlan()); form.txtFoodLongTerm().setValue(voVisitAssessment.getLongTermPlan()); break; } } }
private void populateToiletAndChanging(EnvironmentalVisitVo voEnvironmentalVisit) { VisitAssessmentComponentVo voVisitAssessment; //Populate Toileting and Changing Facilities for (int i=0; i < voEnvironmentalVisit.getVisitAssessmentDetails().size();i++) { voVisitAssessment = voEnvironmentalVisit.getVisitAssessmentDetails().get(i); if(voVisitAssessment.getType().getId() == EnvironmentalHomeVisitComponentType.TOILETINGANDCHANGINGFACILITIES.getId()) { form.txtToiletingAndChanging().setValue(voVisitAssessment.getDetails()); form.txtToiletingShortTerm().setValue(voVisitAssessment.getShortTermPlan()); form.txtToiletingLongTerm().setValue(voVisitAssessment.getLongTermPlan()); break; } } }
private void populateInternalAccess(EnvironmentalVisitVo voEnvironmentalVisit) { VisitAssessmentComponentVo voVisitAssessment; //Populate Internal Access for (int i=0; i < voEnvironmentalVisit.getVisitAssessmentDetails().size();i++) { voVisitAssessment = voEnvironmentalVisit.getVisitAssessmentDetails().get(i); if(voVisitAssessment.getType().getId() == EnvironmentalHomeVisitComponentType.INTERNALACCESS.getId()) { form.txtInternalAccess().setValue(voVisitAssessment.getDetails()); form.txtInternalShortTerm().setValue(voVisitAssessment.getShortTermPlan()); form.txtInternalLongTerm().setValue(voVisitAssessment.getLongTermPlan()); break; } } }
private void populateExternalAccess(EnvironmentalVisitVo voEnvironmentalVisit) { VisitAssessmentComponentVo voVisitAssessment; //Populate External Access and Parking Details for (int i=0; i < voEnvironmentalVisit.getVisitAssessmentDetails().size();i++) { voVisitAssessment = voEnvironmentalVisit.getVisitAssessmentDetails().get(i); if(voVisitAssessment.getType().getId() == EnvironmentalHomeVisitComponentType.ENVIRONMENTALEXTERNALACCESSANDPARKING.getId()) { form.txtExternalAccessandParking().setValue(voVisitAssessment.getDetails()); form.txtExternalShortTerm().setValue(voVisitAssessment.getShortTermPlan()); form.txtExternalLongTerm().setValue(voVisitAssessment.getLongTermPlan()); break; } } }
private VisitAssessmentComponentVo populateDataFoodAndDrinkingFacilities() { VisitAssessmentComponentVo voFoodAndDrinkingFacilities = new VisitAssessmentComponentVo(); voFoodAndDrinkingFacilities.setType(EnvironmentalHomeVisitComponentType.FOODANDDRINKINGFACILITIES); voFoodAndDrinkingFacilities.setDetails(form.txtFoodandDrink().getValue()); voFoodAndDrinkingFacilities.setShortTermPlan(form.txtFoodShortTerm().getValue()); voFoodAndDrinkingFacilities.setLongTermPlan(form.txtFoodLongTerm().getValue()); return voFoodAndDrinkingFacilities; }
private VisitAssessmentComponentVo populateDataToiletingAndChangingFacilities() { VisitAssessmentComponentVo voToiletAndChangingFacilities = new VisitAssessmentComponentVo(); voToiletAndChangingFacilities.setType(EnvironmentalHomeVisitComponentType.TOILETINGANDCHANGINGFACILITIES); voToiletAndChangingFacilities.setDetails(form.txtToiletingAndChanging().getValue()); voToiletAndChangingFacilities.setShortTermPlan(form.txtToiletingShortTerm().getValue()); voToiletAndChangingFacilities.setLongTermPlan(form.txtToiletingLongTerm().getValue()); return voToiletAndChangingFacilities; }
private VisitAssessmentComponentVo populateDataInternalAccess() { VisitAssessmentComponentVo voInternalAccess = new VisitAssessmentComponentVo(); voInternalAccess.setType(EnvironmentalHomeVisitComponentType.INTERNALACCESS); voInternalAccess.setDetails(form.txtInternalAccess().getValue()); voInternalAccess.setShortTermPlan(form.txtInternalShortTerm().getValue()); voInternalAccess.setLongTermPlan(form.txtInternalLongTerm().getValue()); return voInternalAccess; }
private VisitAssessmentComponentVo populateDataExternalAccessAndParking() { VisitAssessmentComponentVo voExternalAccessAndParking = new VisitAssessmentComponentVo(); voExternalAccessAndParking.setType(EnvironmentalHomeVisitComponentType.ENVIRONMENTALEXTERNALACCESSANDPARKING); voExternalAccessAndParking.setDetails(form.txtExternalAccessandParking().getValue()); voExternalAccessAndParking.setShortTermPlan(form.txtExternalShortTerm().getValue()); voExternalAccessAndParking.setLongTermPlan(form.txtExternalLongTerm().getValue()); return voExternalAccessAndParking; }