|
@@ -20,6 +20,7 @@ JpcBillTabSrv.prototype.createNew = function() {
|
|
|
me.signatureRst = [];
|
|
|
me.signatureDateRst = [];
|
|
|
me.signatureAuditRst = [];
|
|
|
+ me.totalPages = 0;
|
|
|
};
|
|
|
JpcBillTabResult.sorting = function(rptTpl) {
|
|
|
const me = this;
|
|
@@ -27,6 +28,7 @@ JpcBillTabSrv.prototype.createNew = function() {
|
|
|
};
|
|
|
JpcBillTabResult.paging = function(rptTpl, dataObj) {
|
|
|
let rst = 0;
|
|
|
+ const me = this;
|
|
|
function getDataLength(fields_str) {
|
|
|
const dataFields = dataObj[fields_str];
|
|
|
if (dataFields && dataFields.length > 0) {
|
|
@@ -44,6 +46,7 @@ JpcBillTabSrv.prototype.createNew = function() {
|
|
|
rst = 1;
|
|
|
}
|
|
|
}
|
|
|
+ me.totalPages = rst;
|
|
|
return rst;
|
|
|
};
|
|
|
JpcBillTabResult.outputAsPreviewPage = function(rptTpl, bands, controls, $CURRENT_RPT) {
|
|
@@ -51,7 +54,7 @@ JpcBillTabSrv.prototype.createNew = function() {
|
|
|
let rst = [];
|
|
|
// const vIdx = [];
|
|
|
// 只预览第一页的数据
|
|
|
- const pageStatus = [true, true, false, true, false, false, false, false];
|
|
|
+ const pageStatus = [true, true, true, true, true, true, true, true];
|
|
|
JpcBandHelper.setBandArea(bands, rptTpl, pageStatus, true, false);
|
|
|
const unitFactor = JpcCommonHelper.getUnitFactor(rptTpl);
|
|
|
rst = rst.concat(me.outputPreviewContent(rptTpl, bands, unitFactor, controls, pageStatus));
|
|
@@ -67,6 +70,14 @@ JpcBillTabSrv.prototype.createNew = function() {
|
|
|
const tabRstLst = [];
|
|
|
// 1. calculate the band position
|
|
|
const pageStatus = [true, false, false, false, false, false, false, false];
|
|
|
+ if (page === 1) {
|
|
|
+ pageStatus[JV.STATUS_REPORT_START] = true;
|
|
|
+ pageStatus[JV.STATUS_SEGMENT_START] = true;
|
|
|
+ }
|
|
|
+ if (page === me.totalPages) {
|
|
|
+ pageStatus[JV.STATUS_REPORT_END] = true;
|
|
|
+ pageStatus[JV.STATUS_SEGMENT_END] = true;
|
|
|
+ }
|
|
|
JpcBandHelper.setBandArea(bands, rptTpl, pageStatus);
|
|
|
// 2. start to output detail-part
|
|
|
const unitFactor = JpcCommonHelper.getUnitFactor(rptTpl);
|