private void populateOtherProceduresControls(PatientAbsentProcedureVoCollection otherProcedures) { for (int i=0; i < otherProcedures.size(); i++) { PatientAbsentProcedureVo voPatientAbsentProcedure = otherProcedures.get(i); grdChecklistRow row = form.grdChecklist().getRows().newRow(); if (voPatientAbsentProcedure.getProcedureIsNotNull()) row.setColProcedure(voPatientAbsentProcedure.getProcedure().getProcedureName()); if(voPatientAbsentProcedure.getSelectedIsNotNull()) row.setColPresentAbsent(voPatientAbsentProcedure.getSelected()); if(voPatientAbsentProcedure.getSourceofInformationIsNotNull()) row.setColSource(voPatientAbsentProcedure.getSourceofInformation()); row.setValue(voPatientAbsentProcedure); setGridUIForAbsent(row); } }
private PatientAbsentProcedureVo populateAbsentProceduresData(grdChecklistRow row) { PatientAbsentProcedureVo voPatientAbsentProcedure = new PatientAbsentProcedureVo(); ProcedureLiteVo voProcedureVo = null; if (row.getValue() != null) { if (row.getValue() instanceof PatientAbsentProcedureVo) { voProcedureVo =((PatientAbsentProcedureVo) row.getValue()).getProcedure(); } else if (row.getValue() instanceof PatientProcedureVo) { voProcedureVo =((PatientProcedureVo) row.getValue()).getProcedure(); } else if (row.getValue() instanceof ProcedureLiteVo) { voProcedureVo =((ProcedureLiteVo) row.getValue()); } } voPatientAbsentProcedure.setProcedure(voProcedureVo); voPatientAbsentProcedure.setSelected(row.getColPresentAbsent()); voPatientAbsentProcedure.setSourceofInformation(row.getColSource()); row.setValue(voPatientAbsentProcedure); return voPatientAbsentProcedure; }
@Override protected void ongrdChecklistGridColPresentAbsentColumnAnswerBoxValueChanged(grdChecklistRow row) throws PresentationLogicException { if (row.getColPresentAbsent() !=null) { if (row.getColPresentAbsent().equals(PresentAbsentUnknown.ABSENT)) { row.setColSource(null); row.setColDescription(null); setGridUIForAbsent(row); } else if (row.getColPresentAbsent().equals(PresentAbsentUnknown.PRESENT)) { if (row.getValue() instanceof PatientAbsentProcedureVo){ PatientAbsentProcedureVo voPatientAbsentProcedure = (PatientAbsentProcedureVo)row.getValue(); if(voPatientAbsentProcedure.getSourceofInformationIsNotNull()) row.setColSource(voPatientAbsentProcedure.getSourceofInformation()); row.setColDescription(row.getColProcedure()); } else if (row.getValue() instanceof PatientProcedureVo){ PatientProcedureVo voPatientProcedure = (PatientProcedureVo)row.getValue(); if(voPatientProcedure.getInfoSourceIsNotNull()) row.setColSource(voPatientProcedure.getInfoSource()); row.setColDescription(row.getColProcedure()); } else { row.setColDescription(row.getColProcedure()); } setGridUIForPresent(row); } } }