Exemplo n.º 1
0
  private PlanOfCareActionsVoCollection populateDataFromScreen() {
    PlanOfCareActionsVoCollection voColl =
        form.getGlobalContext().getPlanOfCareActionsReview().getActions();

    for (int x = 0; x < form.grdActionReview().getRows().size(); x++) {
      PlanOfCareActionsVo rowValue = form.grdActionReview().getRows().get(x).getValue();
      String actionReview = form.grdActionReview().getRows().get(x).getColReview();

      if (rowValue != null && actionReview != null && actionReview.length() > 0) {
        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(
            form.customAuthoring().getValue().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());

        rowValue.setAuthoringInformation(voAuthoringInformation);
        rowValue.setReview(actionReview);
        //				POCNoting ReviewingHCP ReviewingDateTime
        rowValue.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
        rowValue.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());

        voColl.add(rowValue);
      }
    }

    return voColl;
  }
Exemplo n.º 2
0
  private void addNewActionRowRecord(PlanOfCareActionsVo record) {
    if (record == null) return;

    GenForm.grdActionReviewRow row = form.grdActionReview().getRows().newRow();

    row.setColPOC(record.getPlanOfCare().getTitle());
    row.setColAction(record.getAction());
    if (record.getReview() != null) row.setColReview(record.getReview());
    else row.setColReview("");
    row.setValue(record);
  }