private void populateGaitGrd(GaitReEducationVoCollection voGaitColl) { GaitReEducationGaitAspectCollection aspColl = null; for (int i = 0; i < voGaitColl.size(); i++) { GaitReEducationVo voGait = voGaitColl.get(i); GenForm.gridGaitRow pRow = form.gridGait().getRows().newRow(); // fix WDEV-2255 if (voGait.getAuthoringDateTimeIsNotNull()) pRow.setColDate(voGait.getAuthoringDateTime().toString()); if (voGait.getAuthoringCPIsNotNull()) pRow.setColHCP(voGait.getAuthoringCP().toString()); if (voGait.getDetailsIsNotNull()) pRow.setColDetails(voGait.getDetails()); // display children if (voGait.getGaitAspect() != null) { aspColl = voGait.getGaitAspect(); String gait = ""; for (int z = 0; z < aspColl.size(); z++) { // fix WDEV-2255 GaitReEducationGaitAspect aspect = aspColl.get(z); gait += aspect.toString() + "\n"; } pRow.setColGait(gait); } pRow.setValue(voGait); } }
private void prePopulateGaitGrd() { GenForm.grdGaitAspectRow row = null; form.grdGaitAspect().getRows().clear(); GaitReEducationGaitAspectCollection gaitColl = LookupHelper.getGaitReEducationGaitAspect(domain.getLookupService()); for (int i = 0; i < gaitColl.size(); i++) { GaitReEducationGaitAspect aspect = gaitColl.get(i); row = form.grdGaitAspect().getRows().newRow(); row.setValue(aspect); row.setColGaitAspect(aspect.getText()); } }
private void populateGaitGrid(GaitReEducationGaitAspectCollection gaitAspectColl) { GenForm.grdGaitAspectRow aRow; // Clear all ticks in the grid first for (int x = 0; x < form.grdGaitAspect().getRows().size(); x++) form.grdGaitAspect().getRows().get(x).setColSelectedDetails(false); for (int i = 0; i < gaitAspectColl.size(); i++) { GaitReEducationGaitAspect aspect = gaitAspectColl.get(i); aRow = form.grdGaitAspect().getRowByValue(aspect); if (aRow != null) aRow.setColSelectedDetails(true); else { aRow = form.grdGaitAspect().getRows().newRow(); aRow.setValue(aspect); aRow.setColSelectedDetails(true); } } }