private void open() { clearControls(); if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull()) { RACPPlanAdviceVo voRACPPlanAdvice = domain.getPlanAdviceForClinicalContact(form.getGlobalContext().Core.getCurrentCareContext()); if(voRACPPlanAdvice!=null) { populateScreen(voRACPPlanAdvice); } } form.setMode(FormMode.VIEW);// WDEV-13437 }
private void populateScreen(RACPPlanAdviceVo planAdvice) { form.getLocalContext().setPlanAdviceVo(planAdvice); populatePlanGrid(planAdvice.getPrimaryPlan(), planAdvice.getSecondaryPlans()); removeUnselectedPlans(null); form.cmbOverallImpression().setValue(planAdvice.getOverallImpression()); form.txtOther().setValue(planAdvice.getOtherDetails()); populateAdviceToPatientGrid(planAdvice.getAdviceGivenPatient()); populateAdviceToGPGrid(planAdvice.getAdviceGivenToGP()); }
private boolean noFieldsPopulated(RACPPlanAdviceVo voPlanAdvice) { if(voPlanAdvice.getID_RACPPlanAdviceIsNotNull()) return false; else if(voPlanAdvice.countFieldsWithValue()==1) return true; return false; }