private EDischargeSummarySectionStatus getProcStatus(EDischargeSTHKSummaryForProcComponentVo summary) { if(summary == null || summary.getSummaryDetails() == null) return null; for(int i=0; i< summary.getSummaryDetails().size(); i++) { EDischargeSTHKSummaryDetailVo summaryDetails = summary.getSummaryDetails().get(i); if(summaryDetails == null) continue; if(EDischargeSummarySection.OPERATIONS_AND_PROCS.equals(summaryDetails.getSection())) { return summaryDetails.getProgressStatus(); } } return null; }
private EDischargeSTHKSummaryForProcComponentVo populateEDischargeSummary() { EDischargeSTHKSummaryForProcComponentVo summary = form.getLocalContext().getSTHKSummaryVo(); if(summary != null && summary.getSummaryDetails() != null) { for(int i=0; i<summary.getSummaryDetails().size(); i++) { EDischargeSTHKSummaryDetailVo summaryDetails = summary.getSummaryDetails().get(i); if(summaryDetails == null) continue; if(EDischargeSummarySection.OPERATIONS_AND_PROCS.equals(summaryDetails.getSection())) { summaryDetails.setProgressStatus(form.chkComplete().getValue() ? EDischargeSummarySectionStatus.COMPLETED : EDischargeSummarySectionStatus.IN_PROGRESS); } } } if(summary != null) //wdev-13375 summary.validate(); return summary; }
private EDischargeSTHKSummaryDetailVo getDetailRecord(EDischargeSTHKSummaryDetailVoCollection summaryDetails, EDischargeSummarySection section) { if(summaryDetails != null) { for(EDischargeSTHKSummaryDetailVo voDetail : summaryDetails) { if(voDetail.getSection().equals(section)) return voDetail; } } return null; }