protected void onComboBoxAssessmentValueChanged() throws ims.framework.exceptions.PresentationLogicException { form.comboBoxSite().clear(); form.bNew().setEnabled(false); form.btnPrint().setEnabled(false); if(form.comboBoxAssessment().getValue() != null) { form.getLocalContext().setSkinAssessment(form.comboBoxAssessment().getValue()); SkinAssessmentFindings findingVO; if( form.comboBoxAssessment().getValue().getIsSkinIntact() != null && form.comboBoxAssessment().getValue().getIsSkinIntact().booleanValue() && form.comboBoxAssessment().getValue().getSkinAssessmentFindings().size() == 0) { form.comboBoxSite().newRow(null, "'Skin Intact' checked. No findings entered."); } for(int i=0; i<form.comboBoxAssessment().getValue().getSkinAssessmentFindings().size(); i++) { findingVO = form.comboBoxAssessment().getValue().getSkinAssessmentFindings().get(i); //Skip the discontinued one if(form.GroupActive().getValue().equals(GenForm.GroupActiveEnumeration.rdoActive) && findingVO.getIsDiscontinuedAssess() != null && findingVO.getIsDiscontinuedAssess().booleanValue()) continue; form.comboBoxSite().newRow(findingVO, findingVO.getWoundType().getText() + " - " + findingVO.getSiteName() + (findingVO.getIsContinuedAssessment() != null && findingVO.getIsContinuedAssessment().booleanValue()?" (" + PainStatus.CONTINUED.toString() +")":"")+ (findingVO.getIsDiscontinuedAssess() != null && findingVO.getIsDiscontinuedAssess().booleanValue()? " (" + PainStatus.DISCONTINUED.toString()+")":"")); } form.getGlobalContext().COE.SkinBodyChart.setSelectedSkinAssessment(form.comboBoxAssessment().getValue()); onComboBoxSiteValueChanged(); } else form.getLocalContext().setSkinAssessment(null); form.bNew().setEnabled(false); form.btnNext().setEnabled(false); form.btnPrevious().setEnabled(false); }
protected void onComboBoxAssessmentValueChanged() throws ims.framework.exceptions.PresentationLogicException { form.comboBoxSite().clear(); form.bNew().setEnabled(false); form.btnPrint().setEnabled(false); if(form.comboBoxAssessment().getValue() != null) { form.getLocalContext().setSkinAssessment(form.comboBoxAssessment().getValue()); SkinAssessmentFindings findingVO; if( form.comboBoxAssessment().getValue().getIsSkinIntact() != null && form.comboBoxAssessment().getValue().getIsSkinIntact().booleanValue() && form.comboBoxAssessment().getValue().getSkinAssessmentFindings().size() == 0) { form.comboBoxSite().newRow(null, "'Skin Intact' checked. No findings entered."); } for(int i=0; i<form.comboBoxAssessment().getValue().getSkinAssessmentFindings().size(); i++) { findingVO = form.comboBoxAssessment().getValue().getSkinAssessmentFindings().get(i); //Skip the discontinued one if(form.GroupActive().getValue().equals(GenForm.GroupActiveEnumeration.rdoActive) && findingVO.getIsDiscontinuedAssess() != null && findingVO.getIsDiscontinuedAssess().booleanValue()) continue; form.comboBoxSite().newRow(findingVO, findingVO.getWoundType().getText() + " - " + findingVO.getSiteName() + (findingVO.getIsContinuedAssessment() != null && findingVO.getIsContinuedAssessment().booleanValue()?" (" + PainStatus.CONTINUED.toString() +")":"")+ (findingVO.getIsDiscontinuedAssess() != null && findingVO.getIsDiscontinuedAssess().booleanValue()? " (" + PainStatus.DISCONTINUED.toString()+")":"")); } form.getGlobalContext().COE.SkinBodyChart.setSelectedSkinAssessment(form.comboBoxAssessment().getValue()); form.getGlobalContext().Nursing.setSkinReviewSearchCriteria(getSearchCriteria());//WDEV-19389 onComboBoxSiteValueChanged(); } else { form.getLocalContext().setSkinAssessment(null); form.getGlobalContext().Nursing.setSkinReviewSearchCriteria(null);//WDEV-19389 } form.bNew().setEnabled(false); form.btnNext().setEnabled(false); form.btnPrevious().setEnabled(false); }