|
@@ -60,6 +60,8 @@ JpcBillTabSrv.prototype.createNew = function() {
|
|
|
JpcBillTabResult.outputAsSimpleJSONPage = function(rptTpl, dataObj, page, bands, controls, $CURRENT_RPT, customizeCfg) {
|
|
|
const me = this;
|
|
|
let rst = [];
|
|
|
+ me.signatureRst = [];
|
|
|
+ me.signatureDateRst = [];
|
|
|
const tabRstLst = [];
|
|
|
// 1. calculate the band position
|
|
|
const pageStatus = [true, false, false, false, false, false, false, false];
|
|
@@ -69,7 +71,7 @@ JpcBillTabSrv.prototype.createNew = function() {
|
|
|
// 2.1 output content
|
|
|
tabRstLst.push(me.outputContent(rptTpl, dataObj, page, bands, unitFactor, controls, pageStatus, $CURRENT_RPT, customizeCfg));
|
|
|
// 2.2 output discrete
|
|
|
- tabRstLst.push(JpcDiscreteHelper.outputDiscreteInfo(rptTpl[JV.NODE_BILL_INFO][JV.NODE_DISCRETE_INFO], bands, dataObj, unitFactor, pageStatus, page - 1, 1, 0, $CURRENT_RPT, customizeCfg));
|
|
|
+ tabRstLst.push(JpcDiscreteHelper.outputDiscreteInfo(rptTpl[JV.NODE_BILL_INFO][JV.NODE_DISCRETE_INFO], bands, dataObj, unitFactor, pageStatus, page - 1, 1, 0, $CURRENT_RPT, customizeCfg, me.signatureRst, me.signatureDateRst));
|
|
|
for (let i = 0; i < tabRstLst.length; i++) {
|
|
|
rst = rst.concat(tabRstLst[i]);
|
|
|
tabRstLst[i] = null;
|
|
@@ -163,7 +165,7 @@ JpcBillTabSrv.prototype.createNew = function() {
|
|
|
}
|
|
|
}
|
|
|
if (tab[JV.NODE_DISCRETE_INFO]) {
|
|
|
- rst = rst.concat(JpcDiscreteHelper.outputDiscreteInfo(tab[JV.NODE_DISCRETE_INFO], bands, dataObj, unitFactor, pageStatus, page - 1, 1, 0, customizeCfg));
|
|
|
+ rst = rst.concat(JpcDiscreteHelper.outputDiscreteInfo(tab[JV.NODE_DISCRETE_INFO], bands, dataObj, unitFactor, pageStatus, page - 1, 1, 0, customizeCfg, me.signatureRst, me.signatureDateRst));
|
|
|
}
|
|
|
}
|
|
|
}
|