|
@@ -166,9 +166,9 @@ JpcExSrv.prototype.createNew = function(){
|
|
|
JpcResult.outputAsSimpleJSONPageArray = function(rptTpl, dataObj, startPage, endPage, defProperties) {
|
|
|
let me = this, rst = {};
|
|
|
if ((startPage > 0) && (startPage <= endPage) && (endPage <= me.totalPages)) {
|
|
|
- rst[JV.NODE_CONTROL_COLLECTION] = private_buildDftControls(rptTpl, (defProperties == null)?null:defProperties.ctrls);
|
|
|
- rst[JV.NODE_STYLE_COLLECTION] = private_buildDftStyles(rptTpl, (defProperties == null)?null:defProperties.styles);
|
|
|
- rst[JV.NODE_FONT_COLLECTION] = private_buildDftFonts(rptTpl, (defProperties == null)?null:defProperties.fonts);
|
|
|
+ rst[JV.NODE_CONTROL_COLLECTION] = private_buildDftControls(rptTpl, (defProperties === null)?null:defProperties.ctrls);
|
|
|
+ rst[JV.NODE_STYLE_COLLECTION] = private_buildDftStyles(rptTpl, (defProperties === null)?null:defProperties.styles);
|
|
|
+ rst[JV.NODE_FONT_COLLECTION] = private_buildDftFonts(rptTpl, (defProperties === null)?null:defProperties.fonts);
|
|
|
rst[JV.NODE_PAGE_INFO] = {};
|
|
|
rst[JV.NODE_PAGE_INFO][JV.NODE_MAIN_INFO_RPT_NAME] = rptTpl[JV.NODE_MAIN_INFO][JV.NODE_MAIN_INFO_RPT_NAME];
|
|
|
rst[JV.NODE_PAGE_INFO][JV.NODE_PAGE_SIZE] = JpcCommonHelper.getPageSize(rptTpl);
|
|
@@ -204,11 +204,19 @@ JpcExSrv.prototype.createNew = function(){
|
|
|
rst = {};
|
|
|
rst[JV.PROP_PAGE_SEQ] = page;
|
|
|
//rst.cells = [];
|
|
|
+ let adHocMergePos = null;
|
|
|
if (me.flowTab) {
|
|
|
if (me.totalPages - me.exTotalPages >= page) {
|
|
|
- rst.cells = me.flowTab.outputAsSimpleJSONPage(rptTpl, dataObj, page, bands, controls, me);
|
|
|
+ if (me.flowTab.paging_option === JV.PAGING_OPTION_INFINITY_VERTICAL) {
|
|
|
+ adHocMergePos = {};
|
|
|
+ }
|
|
|
+ rst.cells = me.flowTab.outputAsSimpleJSONPage(rptTpl, dataObj, page, bands, controls, adHocMergePos, me);
|
|
|
+ if (adHocMergePos) {
|
|
|
+ adHocMergePos[JV.NODE_PAGE_SIZE] = JpcCommonHelper.getPageSize(rptTpl);
|
|
|
+ rst[JV.PAGE_SPECIAL_MERGE_POS] = adHocMergePos;
|
|
|
+ }
|
|
|
} else {
|
|
|
- rst.cells = me.flowTabEx.outputAsSimpleJSONPage(rptTpl, dataObj, page - (me.totalPages - me.exTotalPages), bands, controls, me);
|
|
|
+ rst.cells = me.flowTabEx.outputAsSimpleJSONPage(rptTpl, dataObj, page - (me.totalPages - me.exTotalPages), bands, controls, adHocMergePos, me);
|
|
|
}
|
|
|
} else if (me.crossTab) {
|
|
|
rst.cells = me.crossTab.outputAsSimpleJSONPage(rptTpl, dataObj, page, bands, controls, me);
|
|
@@ -220,6 +228,6 @@ JpcExSrv.prototype.createNew = function(){
|
|
|
};
|
|
|
//JpcEx.rte.currentRptObj = JpcResult;
|
|
|
return JpcResult;
|
|
|
-}
|
|
|
+};
|
|
|
|
|
|
module.exports = new JpcExSrv();
|