private DischargeFuturePlanVo populateFollowDetails(DischargeFuturePlanVo voFuture) { DischargeFuturePlanFollowUpVoCollection voColl = new DischargeFuturePlanFollowUpVoCollection(); for (int i = 0; i < form.grdFollowUp().getRows().size(); i++) { DischargeFuturePlanFollowUpVo voFutureFOllowup = new DischargeFuturePlanFollowUpVo(); if (form.grdFollowUp().getRows().get(i).getValue() != null) voFutureFOllowup = form.grdFollowUp().getRows().get(i).getValue(); voFutureFOllowup.setFollowUpType(form.grdFollowUp().getRows().get(i).getColFollowUpType()); voFutureFOllowup.setHospitalFollowUp(form.grdFollowUp().getRows().get(i).getColHospFollowUp()); voFutureFOllowup.setFollowUpInValue(form.grdFollowUp().getRows().get(i).getColIN()); voFutureFOllowup.setFollowUpInUnit(form.grdFollowUp().getRows().get(i).getColPeriod()); voFutureFOllowup.setFollowUpHCP((HcpLiteVo) form.grdFollowUp().getRows().get(i).getColHCP().getValue()); voFutureFOllowup.setFollowUpSpecialty(form.grdFollowUp().getRows().get(i).getColSpec()); voFutureFOllowup.setLocation((LocationLiteVo) form.grdFollowUp().getRows().get(i).getColLoc().getValue()); voColl.add(voFutureFOllowup); } voFuture.setFollowUpDetails(voColl); return voFuture; }
private DischargeFuturePlanVo populateFollowDetails(DischargeFuturePlanVo voFuture) { DischargeFuturePlanFollowUpVoCollection voColl = new DischargeFuturePlanFollowUpVoCollection(); for (int i = 0; i < form.grdFuturePlan().getRows().size(); i++) { DischargeFuturePlanFollowUpVo voFutureFOllowup = new DischargeFuturePlanFollowUpVo(); if (form.grdFuturePlan().getRows().get(i).getValue() != null) voFutureFOllowup = form.grdFuturePlan().getRows().get(i).getValue(); voFutureFOllowup.setHospitalFollowUp(form.grdFuturePlan().getRows().get(i).getColHospFollowUp()); voFutureFOllowup.setFollowUpInValue(form.grdFuturePlan().getRows().get(i).getColIN()); voFutureFOllowup.setFollowUpInUnit(form.grdFuturePlan().getRows().get(i).getColPeriod()); voFutureFOllowup.setFollowUpHCP((HcpLiteVo) form.grdFuturePlan().getRows().get(i).getColHCP().getValue()); voFutureFOllowup.setFollowUpSpecialty(form.grdFuturePlan().getRows().get(i).getColSpec()); voFutureFOllowup.setLocation((LocationLiteVo) form.grdFuturePlan().getRows().get(i).getColLoc().getValue()); voColl.add(voFutureFOllowup); } voFuture.setFollowUpDetails(voColl); return voFuture; }
private void populateFollowUpGridFromData(DischargeFuturePlanFollowUpVoCollection followUpDetails) { // Clear grid form.grdFuturePlan().getRows().clear(); // Terminate if the collection is null if (followUpDetails == null) return; // Add each value to a grid row for (DischargeFuturePlanFollowUpVo value : followUpDetails) { if (value == null) continue; addFollowUpDetailRow(form.grdFuturePlan().getRows().newRow(), value); } }
private DischargeFuturePlanFollowUpVoCollection populateDataFromFollowUpGrid() { // Create a new collection DischargeFuturePlanFollowUpVoCollection collection = new DischargeFuturePlanFollowUpVoCollection(); for (int i = 0; i < form.grdFuturePlan().getRows().size(); i++) { grdFuturePlanRow row = form.grdFuturePlan().getRows().get(i); // Get discharge future plan follow up collection.add(getRowValue(row)); } // Return the collection return collection; }
private DischargeFuturePlanVo populateFollowDetails(DischargeFuturePlanVo voFuture) { DischargeFuturePlanFollowUpVoCollection voColl = new DischargeFuturePlanFollowUpVoCollection(); for (int i = 0; i < form.grdFuturePlan().getRows().size(); i++) { DischargeFuturePlanFollowUpVo voFutureFOllowup = new DischargeFuturePlanFollowUpVo(); if (form.grdFuturePlan().getRows().get(i).getValue() != null) voFutureFOllowup = form.grdFuturePlan().getRows().get(i).getValue(); voFutureFOllowup.setHospitalFollowUp(form.grdFuturePlan().getRows().get(i).getColHospFollowUp()); voFutureFOllowup.setFollowUpInValue(getFollowUpInValue(form.grdFuturePlan().getRows().get(i).getColIN().getValue())); voFutureFOllowup.setFollowUpInUnit(form.grdFuturePlan().getRows().get(i).getColPeriod()); voFutureFOllowup.setFollowUpHCP((HcpLiteVo) form.grdFuturePlan().getRows().get(i).getColHCP().getValue()); voFutureFOllowup.setFollowUpSpecialty(form.grdFuturePlan().getRows().get(i).getColSpec()); voFutureFOllowup.setLocation((LocationLiteVo) form.grdFuturePlan().getRows().get(i).getColLoc().getValue()); voColl.add(voFutureFOllowup); } voFuture.setFollowUpDetails(voColl); return voFuture; }