|
@@ -175,6 +175,9 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
me.pageSumValLst = [];
|
|
|
me.multiCols = 1;
|
|
|
me.pagesAmt = 0;
|
|
|
+
|
|
|
+ me.signatureRst = [];
|
|
|
+ me.signatureDateRst = [];
|
|
|
};
|
|
|
JpcFlowTabResult.sorting = function(rptTpl, dataObj, dataSeq, $CURRENT_RPT) {
|
|
|
const me = this;
|
|
@@ -750,7 +753,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
}
|
|
|
const unitFactor = JpcCommonHelper.getUnitFactor(rptTpl);
|
|
|
// 2.2 Column tab
|
|
|
- rst = rst.concat(me.outputColumn(rptTpl, null, 1, 0, bands, unitFactor, 0));
|
|
|
+ rst = rst.concat(me.outputColumn(rptTpl, null, 1, 0, bands, unitFactor, 0, $CURRENT_RPT, null));
|
|
|
// 2.1 Content-Tab
|
|
|
rst = rst.concat(me.outputPreviewContent(rptTpl, bands, unitFactor, controls, pageStatus, maxRowRec));
|
|
|
// 2.3 Sum Seg
|
|
@@ -781,14 +784,14 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
// 2.1 Content-Tab
|
|
|
tabRstLst.push(me.outputContent(rptTpl, dataObj, page, bands, unitFactor, controls, 0, $CURRENT_RPT, customizeCfg));
|
|
|
// 2.2 Column tab
|
|
|
- tabRstLst.push(me.outputColumn(rptTpl, dataObj, page, segIdx, bands, unitFactor, 0));
|
|
|
+ tabRstLst.push(me.outputColumn(rptTpl, dataObj, page, segIdx, bands, unitFactor, 0, $CURRENT_RPT, customizeCfg));
|
|
|
// 2.3 Sum Seg
|
|
|
tabRstLst.push(me.outputSegSum(rptTpl, dataObj, page, segIdx, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
|
// 2.4 Sum Page
|
|
|
tabRstLst.push(me.outputPageSum(rptTpl, dataObj, page, segIdx, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
|
// 2.5 Group
|
|
|
// 2.6 Discrete
|
|
|
- tabRstLst.push(JpcDiscreteHelper.outputDiscreteInfo(rptTpl[FLOW_NODE_STR][JV.NODE_DISCRETE_INFO], bands, dataObj, unitFactor, me.pageStatusLst[page - 1], segIdx, 1, 0, $CURRENT_RPT, customizeCfg));
|
|
|
+ tabRstLst.push(JpcDiscreteHelper.outputDiscreteInfo(rptTpl[FLOW_NODE_STR][JV.NODE_DISCRETE_INFO], bands, dataObj, unitFactor, me.pageStatusLst[page - 1], segIdx, 1, 0, $CURRENT_RPT, customizeCfg, me.signatureRst, me.signatureDateRst));
|
|
|
// 3. reset merge band position
|
|
|
if (bands[JV.BAND_PROP_MERGE_BAND] && adHocMergePos) {
|
|
|
const mergedBand = bands[JV.BAND_PROP_MERGE_BAND];
|
|
@@ -815,7 +818,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
// 2.1 Content-Tab
|
|
|
tabRstLst.push(me.outputContent(rptTpl, dataObj, actualPage, bands, unitFactor, controls, pi, $CURRENT_RPT, customizeCfg));
|
|
|
// 2.2 Column tab
|
|
|
- tabRstLst.push(me.outputColumn(rptTpl, dataObj, actualPage, segIdx, bands, unitFactor, pi));
|
|
|
+ tabRstLst.push(me.outputColumn(rptTpl, dataObj, actualPage, segIdx, bands, unitFactor, pi, $CURRENT_RPT, customizeCfg));
|
|
|
// 2.3 Sum Seg
|
|
|
tabRstLst.push(me.outputSegSum(rptTpl, dataObj, actualPage, segIdx, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
|
// 2.4 Sum Page
|
|
@@ -823,7 +826,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
// 2.5 Group
|
|
|
// 2.6 Discrete
|
|
|
if (pi === 0) {
|
|
|
- tabRstLst.push(JpcDiscreteHelper.outputDiscreteInfo(rptTpl[FLOW_NODE_STR][JV.NODE_DISCRETE_INFO], bands, dataObj, unitFactor, me.pageStatusLst[actualPage - 1], segIdx, 1, pi, $CURRENT_RPT, customizeCfg));
|
|
|
+ tabRstLst.push(JpcDiscreteHelper.outputDiscreteInfo(rptTpl[FLOW_NODE_STR][JV.NODE_DISCRETE_INFO], bands, dataObj, unitFactor, me.pageStatusLst[actualPage - 1], segIdx, 1, pi, $CURRENT_RPT, customizeCfg, me.signatureRst, me.signatureDateRst));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1169,7 +1172,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
me.combinePageCells(rst, verticalCombinePos, horizonCombinePos);
|
|
|
return rst;
|
|
|
};
|
|
|
- JpcFlowTabResult.outputColumn = function(rptTpl, dataObj, page, segIdx, bands, unitFactor, multiColIdx) {
|
|
|
+ JpcFlowTabResult.outputColumn = function(rptTpl, dataObj, page, segIdx, bands, unitFactor, multiColIdx, $CURRENT_RPT, customizeCfg) {
|
|
|
const me = this;
|
|
|
let rst = [];
|
|
|
const FLOW_NODE_STR = me.isEx ? JV.NODE_FLOW_INFO_EX : JV.NODE_FLOW_INFO;
|
|
@@ -1178,7 +1181,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
if (band) {
|
|
|
const pageStatus = me.pageStatusLst[page - 1];
|
|
|
if (pageStatus[band[JV.BAND_PROP_DISPLAY_TYPE]]) {
|
|
|
- rst = rst.concat(me.commonTabRestOutput(dataObj, page, segIdx, bands, band, unitFactor, tab, multiColIdx));
|
|
|
+ rst = rst.concat(me.commonTabRestOutput(dataObj, page, segIdx, bands, band, unitFactor, tab, multiColIdx, $CURRENT_RPT, customizeCfg));
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -1236,7 +1239,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
cellItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(tab_fields[i][JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, me.multiCols, 0, false, false);
|
|
|
rst.push(cellItem);
|
|
|
}
|
|
|
- rst = rst.concat(me.commonTabRestOutput(dataObj, page, segIdx, bands, band, unitFactor, tab, 0));
|
|
|
+ rst = rst.concat(me.commonTabRestOutput(dataObj, page, segIdx, bands, band, unitFactor, tab, 0, $CURRENT_RPT, customizeCfg));
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -1267,7 +1270,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
cellItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(tab_fields[i][JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, me.multiCols, 0, false, false);
|
|
|
rst.push(cellItem);
|
|
|
}
|
|
|
- rst = rst.concat(me.commonTabRestOutput(dataObj, page, segIdx, bands, band, unitFactor, tab, 0));
|
|
|
+ rst = rst.concat(me.commonTabRestOutput(dataObj, page, segIdx, bands, band, unitFactor, tab, 0, $CURRENT_RPT, customizeCfg));
|
|
|
}
|
|
|
}
|
|
|
return rst;
|
|
@@ -1344,7 +1347,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
- JpcFlowTabResult.commonTabRestOutput = function(dataObj, page, segIdx, bands, band, unitFactor, tab, multiColIdx) {
|
|
|
+ JpcFlowTabResult.commonTabRestOutput = function(dataObj, page, segIdx, bands, band, unitFactor, tab, multiColIdx, $CURRENT_RPT, customizeCfg) {
|
|
|
const me = this;
|
|
|
let rst = [];
|
|
|
if (tab[JV.PROP_TEXT]) {
|
|
@@ -1356,7 +1359,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
|
|
|
}
|
|
|
}
|
|
|
if (tab[JV.NODE_DISCRETE_INFO]) {
|
|
|
- rst = rst.concat(JpcDiscreteHelper.outputDiscreteInfo(tab[JV.NODE_DISCRETE_INFO], bands, dataObj, unitFactor, me.pageStatusLst[page - 1], segIdx, 1, 0, null));
|
|
|
+ rst = rst.concat(JpcDiscreteHelper.outputDiscreteInfo(tab[JV.NODE_DISCRETE_INFO], bands, dataObj, unitFactor, me.pageStatusLst[page - 1], segIdx, 1, 0, $CURRENT_RPT, customizeCfg, me.signatureRst, me.signatureDateRst));
|
|
|
}
|
|
|
return rst;
|
|
|
};
|