|
@@ -749,9 +749,9 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
// 2.2 Column tab
|
|
// 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));
|
|
// 2.3 Sum Seg
|
|
// 2.3 Sum Seg
|
|
- tabRstLst.push(me.outputSegSum(rptTpl, dataObj, page, segIdx, bands, unitFactor, controls, $CURRENT_RPT));
|
|
|
|
|
|
+ tabRstLst.push(me.outputSegSum(rptTpl, dataObj, page, segIdx, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
// 2.4 Sum Page
|
|
// 2.4 Sum Page
|
|
- tabRstLst.push(me.outputPageSum(rptTpl, dataObj, page, segIdx, bands, unitFactor, controls, $CURRENT_RPT));
|
|
|
|
|
|
+ tabRstLst.push(me.outputPageSum(rptTpl, dataObj, page, segIdx, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
// 2.5 Group
|
|
// 2.5 Group
|
|
// 2.6 Discrete
|
|
// 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));
|
|
@@ -783,9 +783,9 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
// 2.2 Column tab
|
|
// 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));
|
|
// 2.3 Sum Seg
|
|
// 2.3 Sum Seg
|
|
- tabRstLst.push(me.outputSegSum(rptTpl, dataObj, actualPage, segIdx, bands, unitFactor, controls, $CURRENT_RPT));
|
|
|
|
|
|
+ tabRstLst.push(me.outputSegSum(rptTpl, dataObj, actualPage, segIdx, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
// 2.4 Sum Page
|
|
// 2.4 Sum Page
|
|
- tabRstLst.push(me.outputPageSum(rptTpl, dataObj, actualPage, segIdx, bands, unitFactor, controls, $CURRENT_RPT));
|
|
|
|
|
|
+ tabRstLst.push(me.outputPageSum(rptTpl, dataObj, actualPage, segIdx, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg));
|
|
// 2.5 Group
|
|
// 2.5 Group
|
|
// 2.6 Discrete
|
|
// 2.6 Discrete
|
|
if (pi === 0) {
|
|
if (pi === 0) {
|
|
@@ -1023,7 +1023,7 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
};
|
|
};
|
|
- JpcFlowTabResult.outputSegSum = function (rptTpl, dataObj, page, segIdx, bands, unitFactor, controls, $CURRENT_RPT) {
|
|
|
|
|
|
+ JpcFlowTabResult.outputSegSum = function (rptTpl, dataObj, page, segIdx, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg) {
|
|
let me = this, rst = [];
|
|
let me = this, rst = [];
|
|
let FLOW_NODE_STR = me.isEx?JV.NODE_FLOW_INFO_EX:JV.NODE_FLOW_INFO;
|
|
let FLOW_NODE_STR = me.isEx?JV.NODE_FLOW_INFO_EX:JV.NODE_FLOW_INFO;
|
|
let tab = rptTpl[FLOW_NODE_STR][JV.NODE_FLOW_SEG_SUM];
|
|
let tab = rptTpl[FLOW_NODE_STR][JV.NODE_FLOW_SEG_SUM];
|
|
@@ -1040,7 +1040,8 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
if (!JpcFieldHelper.resetSumFormat(ref_tab_fields, tab_fields[i])) {
|
|
if (!JpcFieldHelper.resetSumFormat(ref_tab_fields, tab_fields[i])) {
|
|
if (!JpcFieldHelper.resetSumFormat(ref_tab_fields_ex, tab_fields[i])) {
|
|
if (!JpcFieldHelper.resetSumFormat(ref_tab_fields_ex, tab_fields[i])) {
|
|
let map_data_field = JE.F(tab_fields[i][JV.PROP_FIELD_ID], $CURRENT_RPT);
|
|
let map_data_field = JE.F(tab_fields[i][JV.PROP_FIELD_ID], $CURRENT_RPT);
|
|
- tab_fields[i][JV.PROP_FORMAT] = map_data_field[JV.PROP_FORMAT];
|
|
|
|
|
|
+ JpcFieldHelper.resetFormat(tab_fields[i], map_data_field, customizeCfg)
|
|
|
|
+ //如果都找不到,就得靠自己的Format属性了
|
|
}
|
|
}
|
|
}
|
|
}
|
|
let sumVal = 0;
|
|
let sumVal = 0;
|
|
@@ -1057,7 +1058,7 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
}
|
|
}
|
|
return rst;
|
|
return rst;
|
|
};
|
|
};
|
|
- JpcFlowTabResult.outputPageSum = function (rptTpl, dataObj, page, segIdx, bands, unitFactor, controls, $CURRENT_RPT) {
|
|
|
|
|
|
+ JpcFlowTabResult.outputPageSum = function (rptTpl, dataObj, page, segIdx, bands, unitFactor, controls, $CURRENT_RPT, customizeCfg) {
|
|
let me = this, rst = [];
|
|
let me = this, rst = [];
|
|
let FLOW_NODE_STR = me.isEx?JV.NODE_FLOW_INFO_EX:JV.NODE_FLOW_INFO;
|
|
let FLOW_NODE_STR = me.isEx?JV.NODE_FLOW_INFO_EX:JV.NODE_FLOW_INFO;
|
|
let tab = rptTpl[FLOW_NODE_STR][JV.NODE_FLOW_PAGE_SUM];
|
|
let tab = rptTpl[FLOW_NODE_STR][JV.NODE_FLOW_PAGE_SUM];
|
|
@@ -1072,8 +1073,11 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
let tab_fields = me.page_sum_tab_fields;
|
|
let tab_fields = me.page_sum_tab_fields;
|
|
for (let i = 0; i < tab_fields.length; i++) {
|
|
for (let i = 0; i < tab_fields.length; i++) {
|
|
if (!JpcFieldHelper.resetSumFormat(ref_tab_fields, tab_fields[i])) {
|
|
if (!JpcFieldHelper.resetSumFormat(ref_tab_fields, tab_fields[i])) {
|
|
- JpcFieldHelper.resetSumFormat(ref_tab_fields_ex, tab_fields[i]);
|
|
|
|
- //如果都找不到,说明是离散的指标,那么就得靠tab_fields[i]本身的Format来处理格式了
|
|
|
|
|
|
+ if (!JpcFieldHelper.resetSumFormat(ref_tab_fields_ex, tab_fields[i])) {
|
|
|
|
+ let map_data_field = JE.F(tab_fields[i][JV.PROP_FIELD_ID], $CURRENT_RPT);
|
|
|
|
+ JpcFieldHelper.resetFormat(tab_fields[i], map_data_field, customizeCfg)
|
|
|
|
+ //如果都找不到,就得靠自己的Format属性了
|
|
|
|
+ }
|
|
}
|
|
}
|
|
let cellItem = JpcCommonOutputHelper.createCommonOutput(tab_fields[i], me.pageSumValLst[page - 1][i], controls);
|
|
let cellItem = JpcCommonOutputHelper.createCommonOutput(tab_fields[i], me.pageSumValLst[page - 1][i], controls);
|
|
cellItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(tab_fields[i][JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, me.multiCols, 0, true, false);
|
|
cellItem[JV.PROP_AREA] = JpcAreaHelper.outputArea(tab_fields[i][JV.PROP_AREA], band, unitFactor, 1, 0, 1, 0, me.multiCols, 0, true, false);
|