Ejemplo n.º 1
0
  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);
    }
  }
Ejemplo n.º 2
0
  private void populateControls(GaitReEducationVo voGait) {
    form.qmbAuthoringCP().newRow(voGait.getAuthoringCP(), voGait.getAuthoringCP().toString());
    form.qmbAuthoringCP().setValue(voGait.getAuthoringCP());
    form.dtimAuthoring().setValue(voGait.getAuthoringDateTime());
    form.txtDetails().setValue(voGait.getDetails());

    if (voGait.getGaitAspect() != null) populateGaitGrid(voGait.getGaitAspect());
  }