Search in sources :

Example 1 with SwotReportMstVO

use of com.netsteadfast.greenstep.vo.SwotReportMstVO in project bamboobsc by billchen198318.

the class SwotReportPdfDataCommand method createReportData.

private String createReportData(SwotDataVO swotData) throws Exception {
    if (swotData.getIssues() == null || swotData.getIssues().size() < 1) {
        return "";
    }
    String reportId = SimpleUtils.getUUIDStr();
    SwotReportMstVO reportMst = new SwotReportMstVO();
    reportMst.setReportId(reportId);
    reportMst.setVisionTitle(swotData.getVision().getTitle());
    reportMst.setOrgName(swotData.getOrganization().getName());
    this.swotReportMstService.saveIgnoreUK(reportMst);
    for (int i = 0; i < swotData.getIssues().size(); i++) {
        SwotIssuesVO issuesData = swotData.getIssues().get(i);
        SwotReportDtlVO reportDtl = new SwotReportDtlVO();
        reportDtl.setReportId(reportId);
        reportDtl.setSeq(i);
        reportDtl.setLabel(issuesData.getPerspectiveName());
        reportDtl.setIssues1(issuesData.getStrengths());
        reportDtl.setIssues2(issuesData.getWeaknesses());
        reportDtl.setIssues3(issuesData.getOpportunities());
        reportDtl.setIssues4(issuesData.getThreats());
        this.swotReportDtlService.saveIgnoreUK(reportDtl);
    }
    return reportId;
}
Also used : SwotReportDtlVO(com.netsteadfast.greenstep.vo.SwotReportDtlVO) SwotReportMstVO(com.netsteadfast.greenstep.vo.SwotReportMstVO) SwotIssuesVO(com.netsteadfast.greenstep.bsc.vo.SwotIssuesVO)

Aggregations

SwotIssuesVO (com.netsteadfast.greenstep.bsc.vo.SwotIssuesVO)1 SwotReportDtlVO (com.netsteadfast.greenstep.vo.SwotReportDtlVO)1 SwotReportMstVO (com.netsteadfast.greenstep.vo.SwotReportMstVO)1