private void populateListControl(MUSTVoCollection voMUSTColl) { clear(); if(voMUSTColl == null) return; for(int i=0; i<voMUSTColl.size(); i++) { MUSTVo voMUST = voMUSTColl.get(i); GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow(); if(voMUST.getAuthoringInformationIsNotNull()) row.setColDateTime(voMUST.getAuthoringInformation().getAuthoringDateTime().toString()+" - "+ voMUST.getAuthoringInformation().getAuthoringHcp().toString()); if(voMUST.getBMIScoreIsNotNull()) row.setColStep1(voMUST.getBMIScore().toString()); if(voMUST.getUWLScoreIsNotNull()) row.setColStep2(voMUST.getUWLScore().toString()); if(voMUST.getADEScoreIsNotNull()) row.setColStep3(voMUST.getADEScore().toString()); if(voMUST.getORMScoreIsNotNull()) row.setColTotal(voMUST.getORMScore().toString()); if(voMUST.getManagementIsNotNull()) row.setColManagement(voMUST.getManagement().toString()); row.setColAction(voMUST.getActionTaken()); row.setTooltipForColAction(voMUST.getActionTakenIsNotNull()? voMUST.getActionTaken():""); row.setValue(voMUST); if(voMUST.getManagement().equals(MUSTManagement.HIGHRISK)) row.setTextColor(Color.Red); } }
protected void populateManagement() { if(form.ctnMust().intStepTotal().getValue() == null) return; if(form.ctnMust().intStepTotal().getValue().intValue() == 0) form.ctnMust().cmbManagement().setValue(MUSTManagement.LOWRISK); else if(form.ctnMust().intStepTotal().getValue().intValue() == 1) form.ctnMust().cmbManagement().setValue(MUSTManagement.MEDIUMRISK); else if(form.ctnMust().intStepTotal().getValue().intValue() >= 2) form.ctnMust().cmbManagement().setValue(MUSTManagement.HIGHRISK); }