protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException { // If there is an assessment in the global context, we want to call the get component // domain method // Otherwise, it is a new assessment component AssessmentHeaderInfo assmnt = form.getGlobalContext().Nursing.getAssessmentHeaderInfo(); form.getLocalContext().setAssessment(assmnt); if (assmnt != null && assmnt.getCurrentComponent() != null) { NurAssessmentEatingVo voEat = (NurAssessmentEatingVo)domain.getComponent(assmnt.getCurrentComponent()); if (voEat == null) return; if (voEat != null) form.getLocalContext().setAssessEating(voEat); this.populateScreenFromData(voEat); if (assmnt.getAssessmentType().equals(AssessmentType.INITIAL)) { if (voEat.getNutritionalRiskAssessmentIsNotNull()) { if ( (voEat.getIsCompleteIsNotNull() ) && (voEat.getIsComplete().booleanValue() == false) ) form.chkSectionComplete().setEnabled(true); } else form.chkSectionComplete().setEnabled(false); } } // if(formName.equals(form.getForms().Nursing.NutritionalRiskAssessmentDialog)) // { // if(form.getGlobalContext().Nursing.getAssessmentScore() != null) // form.intNutritionalRisk().setValue(new Integer(form.getGlobalContext().Nursing.getAssessmentScore().intValue())); // } }
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException { // If there is an assessment in the global context, we want to call the // get component domain method // Otherwise, it is a new assessment component AssessmentHeaderInfo assmnt = form.getGlobalContext().Nursing.getAssessmentHeaderInfo(); form.getLocalContext().setAssessment(assmnt); if (assmnt != null && assmnt.getCurrentComponent() != null && assmnt.getCurrentComponent().getID_AssessmentComponentIsNotNull()) { NurAssessmentSkinVo voSkin = (NurAssessmentSkinVo) domain.getComponent(assmnt.getCurrentComponent()); if (voSkin == null) return; form.getLocalContext().setAssessmentSkin(voSkin); if (voSkin.getBradenScaleIsNotNull()) form.getGlobalContext().COE.setBradenScaleRecord(voSkin.getBradenScale()); litePopulateScreenFromData(voSkin);// this.populateScreenFromData(voSkin); if (assmnt.getAssessmentType().equals(AssessmentType.INITIAL)) { if (voSkin.getBradenScaleIsNotNull() && voSkin.getSkinAssessmentIsNotNull()) { if (!Boolean.TRUE.equals(voSkin.getIsComplete())) form.chkSectionComplete().setEnabled(true); } else form.chkSectionComplete().setEnabled(false); } } setBradenTooltip(); }