use of org.apache.commons.chain.Context in project bamboobsc by billchen198318.
the class PdcaReportContentQueryAction method getBscReportChainContext.
@SuppressWarnings("unchecked")
private Context getBscReportChainContext(String pdcaOid, String visionOid, PdcaMeasureFreqVO measureFreq) throws Exception {
Context context = new ContextBase();
context.put("visionOid", visionOid);
context.put("startDate", SimpleUtils.getStrYMD(measureFreq.getStartDate(), "/"));
context.put("endDate", SimpleUtils.getStrYMD(measureFreq.getEndDate(), "/"));
context.put("startYearDate", SimpleUtils.getStrYMD(measureFreq.getStartDate(), "/"));
context.put("endYearDate", SimpleUtils.getStrYMD(measureFreq.getEndDate(), "/"));
context.put("frequency", measureFreq.getFreq());
context.put("dataFor", measureFreq.getDataType());
context.put("orgId", measureFreq.getOrgId());
context.put("empId", measureFreq.getEmpId());
context.put("account", "");
context.put("ngVer", YesNo.NO);
List<String> kpiIds = new ArrayList<String>();
Map<String, Object> paramMap = new HashMap<String, Object>();
paramMap.put("pdcaOid", pdcaOid);
List<BbPdcaKpis> pdcaKpisList = this.pdcaKpisService.findListByParams(paramMap);
for (BbPdcaKpis pdcaKpi : pdcaKpisList) {
kpiIds.add(pdcaKpi.getKpiId());
}
// 只顯示,要顯示的KPI
context.put("kpiIds", kpiIds);
return context;
}
Aggregations