|
@@ -363,7 +363,9 @@ JpcCrossTabSrv.prototype.createNew = function(){
|
|
|
return rst;
|
|
|
};
|
|
|
JpcCrossTabResult.outputPreviewRowTab = function(rptTpl, bands, controls, $CURRENT_RPT, customizeCfg, maxRowRec, unitFactor) {
|
|
|
- return this.private_OutputPreviewCommon(rptTpl, bands, controls, $CURRENT_RPT, customizeCfg, maxRowRec, 1, rptTpl[JV.NODE_CROSS_INFO][JV.NODE_CROSS_ROW], unitFactor);
|
|
|
+ let rst = this.private_OutputPreviewCommon(rptTpl, bands, controls, $CURRENT_RPT, customizeCfg, maxRowRec, 1, rptTpl[JV.NODE_CROSS_INFO][JV.NODE_CROSS_ROW], unitFactor);
|
|
|
+ rst = rst.concat(this.private_OutputPreviewCommon(rptTpl, bands, controls, $CURRENT_RPT, customizeCfg, maxRowRec, 1, rptTpl[JV.NODE_CROSS_INFO][JV.NODE_CROSS_ROW_AD_HOC], unitFactor));
|
|
|
+ return rst;
|
|
|
};
|
|
|
JpcCrossTabResult.outputPreviewColTab = function(rptTpl, bands, controls, $CURRENT_RPT, customizeCfg, maxColRec, unitFactor) {
|
|
|
return this.private_OutputPreviewCommon(rptTpl, bands, controls, $CURRENT_RPT, customizeCfg, 1, maxColRec, rptTpl[JV.NODE_CROSS_INFO][JV.NODE_CROSS_COL], unitFactor);
|
|
@@ -384,7 +386,7 @@ JpcCrossTabSrv.prototype.createNew = function(){
|
|
|
};
|
|
|
JpcCrossTabResult.private_OutputPreviewCommon = function(rptTpl, bands, controls, $CURRENT_RPT, customizeCfg, maxRowRec, maxColRec, tab, unitFactor) {
|
|
|
let me = this, rst = [];
|
|
|
- let band = bands[tab[JV.PROP_BAND_NAME]];
|
|
|
+ let band = (tab)?bands[tab[JV.PROP_BAND_NAME]]:null;
|
|
|
if (band) {
|
|
|
let tab_fields = tab[JV.PROP_CROSS_FIELDS];
|
|
|
for (let rowIdx = 0; rowIdx < maxRowRec; rowIdx++) {
|
|
@@ -449,7 +451,9 @@ JpcCrossTabSrv.prototype.createNew = function(){
|
|
|
JpcBandHelper.setBandArea(bands, rptTpl, me.pageStatusLst[page - 1]);
|
|
|
//2. start to output detail-part
|
|
|
//2.1 Row-Tab
|
|
|
- tabRstLst.push(me.outputRowTab(rptTpl, dataObj, page, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
|
+ //tabRstLst.push(me.outputRowTab(rptTpl, dataObj, page, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
|
+ tabRstLst.push(me.outputRowTabCommon(rptTpl, dataObj, page, bands, JV.NODE_CROSS_ROW, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
|
+ tabRstLst.push(me.outputRowTabCommon(rptTpl, dataObj, page, bands, JV.NODE_CROSS_ROW_AD_HOC, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
|
//2.2 Col-Tab
|
|
|
tabRstLst.push(me.outputColTab(rptTpl, dataObj, page, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
|
//2.3 Content-Tab
|
|
@@ -469,10 +473,10 @@ JpcCrossTabSrv.prototype.createNew = function(){
|
|
|
}
|
|
|
return rst;
|
|
|
};
|
|
|
- JpcCrossTabResult.outputRowTab = function(rptTpl, dataObj, page, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg) {
|
|
|
+ JpcCrossTabResult.outputRowTabCommon = function(rptTpl, dataObj, page, bands, tabStr, unitFactor, controls, $CURRENT_RPT, customizeCfg) {
|
|
|
let me = this, rst = [];
|
|
|
- let tab = rptTpl[JV.NODE_CROSS_INFO][JV.NODE_CROSS_ROW];
|
|
|
- let band = bands[tab[JV.PROP_BAND_NAME]];
|
|
|
+ let tab = rptTpl[JV.NODE_CROSS_INFO][tabStr];
|
|
|
+ let band = (tab)?bands[tab[JV.PROP_BAND_NAME]]:null;
|
|
|
if (band) {
|
|
|
let pageStatus = me.pageStatusLst[page - 1];
|
|
|
if (pageStatus[band[JV.BAND_PROP_DISPLAY_TYPE]] === true) {
|