private void populateProcedureGridFromData(PatientProcedureSurgicalOpVoCollection ppso) { if (ppso == null || ppso.size() == 0) return; populateInstanceControlsFromData(ppso.get(0)); for (int i= 0 ; i < ppso.size() ; i++) { PatientProcedureSurgicalOpVo current = ppso.get(i); if (current != null) { grdProceduresRow nRow = form.grdProcedures().getRows().newRow(); nRow.setColumnName(current.getProcedureIsNotNull() ? current.getProcedure().getProcedureName() : null); nRow.setColumnDescription(current.getProcedureDescription()); nRow.setValue(current); } } }
private PatientProcedureSurgicalOpVoCollection getDataFromGrid() { if (form.grdProcedures().getRows().size() == 0) { return null; } HcpLiteVoCollection addedAssistants = getAddedAssistants(); PatientProcedureSurgicalOpVoCollection ppsugov = new PatientProcedureSurgicalOpVoCollection(); for (int i =0 ; i<form.grdProcedures().getRows().size() ; i++) { PatientProcedureSurgicalOpVo value = form.grdProcedures().getRows().get(i).getValue(); ppsugov.add(updateProcedureDataFromScreen(value, addedAssistants)); } return ppsugov; }