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; }
private void open() { PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview(); PlanOfCareActionsVoCollection voColl = voItem.getActions(); if (voColl != null) { for (int i = 0; i < voColl.size(); i++) { addNewActionRowRecord(voColl.get(i)); } } }