use of com.netsteadfast.greenstep.base.chain.SimpleChain in project bamboobsc by billchen198318.
the class DepartmentReportContentQueryAction method getContent.
private void getContent() throws ControllerException, AuthorityException, ServiceException, Exception {
this.checkFields();
Context context = this.getChainContext();
SimpleChain chain = new SimpleChain();
ChainResultObj resultObj = chain.getResultFromResource("organizationReportHtmlContentChain", context);
this.body = String.valueOf(resultObj.getValue());
this.message = resultObj.getMessage();
if (!StringUtils.isBlank(this.body) && this.body.startsWith("<!-- BSC_PROG003D0003Q -->")) {
this.success = IS_YES;
}
}
use of com.netsteadfast.greenstep.base.chain.SimpleChain in project bamboobsc by billchen198318.
the class DepartmentReportContentQueryAction method getPdf.
private void getPdf() throws ControllerException, AuthorityException, ServiceException, Exception {
this.checkFields();
Context context = this.getChainContext();
SimpleChain chain = new SimpleChain();
ChainResultObj resultObj = chain.getResultFromResource("organizationReportPdfContentChain", context);
this.message = resultObj.getMessage();
if (resultObj.getValue() instanceof String) {
this.uploadOid = (String) resultObj.getValue();
this.success = IS_YES;
}
}
use of com.netsteadfast.greenstep.base.chain.SimpleChain in project bamboobsc by billchen198318.
the class PerformanceScoreChainUtils method getResult.
public static ChainResultObj getResult(Context context) throws ServiceException, Exception {
SimpleChain chain = new SimpleChain();
ChainResultObj resultObj = chain.getResultFromResource("performanceScoreChain", context);
return resultObj;
}
use of com.netsteadfast.greenstep.base.chain.SimpleChain in project bamboobsc by billchen198318.
the class KpiReportContentQueryAction method getExcel.
private void getExcel() throws ControllerException, AuthorityException, ServiceException, Exception {
this.checkFields();
this.setDateValue();
this.checkDateRange();
Context context = this.getChainContext();
SimpleChain chain = new SimpleChain();
ChainResultObj resultObj = chain.getResultFromResource("kpiReportExcelContentChain", context);
this.message = resultObj.getMessage();
if (resultObj.getValue() instanceof String) {
this.uploadOid = (String) resultObj.getValue();
this.success = IS_YES;
}
}
use of com.netsteadfast.greenstep.base.chain.SimpleChain in project bamboobsc by billchen198318.
the class RegionMapViewAction method renderInfowindowContent.
private void renderInfowindowContent() throws ServiceException, Exception {
StringBuilder outStr = new StringBuilder();
String year = this.getFields().get("year");
String orgId = this.getFields().get("orgId");
List<String> visionOids = this.visionService.findForOidByKpiOrga(orgId);
if (visionOids == null || visionOids.size() < 1) {
this.setPageMessage(SysMessageUtil.get(GreenStepSysMsgConstants.SEARCH_NO_DATA) + " , for KPIs.");
return;
}
for (String visionOid : visionOids) {
Context context = this.getChainContext(visionOid, year);
SimpleChain chain = new SimpleChain();
ChainResultObj resultObj = chain.getResultFromResource("kpiReportHtmlContentChain", context);
outStr.append(String.valueOf(resultObj.getValue()));
}
this.content = outStr.toString();
}
Aggregations