|
@@ -221,6 +221,8 @@ JpcCrossTabSrv.prototype.createNew = function() {
|
|
|
me.signatureDateRst = [];
|
|
|
me.signatureAuditRst = [];
|
|
|
me.interactRst = [];
|
|
|
+ me.pageRowRecAmt = []; // 记录每一页的输出行数量
|
|
|
+ me.pageColRecAmt = []; // 记录每一页的输出列数量
|
|
|
};
|
|
|
JpcCrossTabResult.sorting = function(rptTpl, dataObj, dataSeq, $CURRENT_RPT) {
|
|
|
const me = this;
|
|
@@ -409,6 +411,8 @@ JpcCrossTabSrv.prototype.createNew = function() {
|
|
|
counterColRec = 0;
|
|
|
}
|
|
|
me.pageStatusLst.push(pageStatus.slice(0));
|
|
|
+ me.pageRowRecAmt.push(maxRowRec);
|
|
|
+ me.pageColRecAmt.push(maxColRec);
|
|
|
pageIdx++;
|
|
|
private_addTabValue(me.dispValueIdxLst_Row, currentSortedRowSequence, segIdx, counterRowRec, maxRowRec, me.dispSerialIdxLst_Row, me.col_sum_fields_value_total, me.dispSumValueLst_Col);
|
|
|
private_addTabValue(me.dispValueIdxLst_Col, currentSortedColSequence, segIdx, counterColRec, maxColRec, null, me.row_sum_fields_value_total, me.dispSumValueLst_Row);
|
|
@@ -421,6 +425,8 @@ JpcCrossTabSrv.prototype.createNew = function() {
|
|
|
currentSortedContentSequence = null;
|
|
|
counterColRec = 0;
|
|
|
me.pageStatusLst.push(pageStatus.slice(0));
|
|
|
+ me.pageRowRecAmt.push(maxRowRec);
|
|
|
+ me.pageColRecAmt.push(maxColRec);
|
|
|
pageIdx++;
|
|
|
private_addTabValue(me.dispValueIdxLst_Row, currentSortedRowSequence, segIdx, counterRowRec, maxRowRec, me.dispSerialIdxLst_Row, me.col_sum_fields_value_total, me.dispSumValueLst_Col);
|
|
|
private_addTabValue(me.dispValueIdxLst_Col, currentSortedColSequence, segIdx, counterColRec, maxColRec, null, me.row_sum_fields_value_total, me.dispSumValueLst_Row);
|
|
@@ -616,10 +622,10 @@ JpcCrossTabSrv.prototype.createNew = function() {
|
|
|
rst = rst.concat(tabRstLst[i]);
|
|
|
tabRstLst[i] = null;
|
|
|
}
|
|
|
- me.checkCombineEvent(JV.RUN_TYPE_AFTER_COMBINE, [], [], rst, $CURRENT_RPT, dataObj);
|
|
|
+ me.checkCombineEvent(JV.RUN_TYPE_AFTER_COMBINE, [], [], rst, $CURRENT_RPT, dataObj, me);
|
|
|
return rst;
|
|
|
};
|
|
|
- JpcCrossTabResult.checkCombineEvent = function($RUN_TYPE, $VER_COMB_ARRAY, $HOR_COMB_ARRAY, $CURRENT_CELL_ITEMS, $CURRENT_RPT, $CURRENT_DATA) {
|
|
|
+ JpcCrossTabResult.checkCombineEvent = function($RUN_TYPE, $VER_COMB_ARRAY, $HOR_COMB_ARRAY, $CURRENT_CELL_ITEMS, $CURRENT_RPT, $CURRENT_DATA, $PARENT) {
|
|
|
if ($CURRENT_RPT.formulas) {
|
|
|
for (let execFmlIdx = 0; execFmlIdx < $CURRENT_RPT.formulas.length; execFmlIdx++) {
|
|
|
if ($CURRENT_RPT.formulas[execFmlIdx][JV.PROP_RUN_TYPE] === $RUN_TYPE) {
|