|
@@ -20,6 +20,14 @@ JpcBillTabSrv.prototype.createNew = function(){
|
|
|
let me = this;
|
|
|
JpcFieldHelper.findAndPutDataFieldIdx(rptTpl, rptTpl[JV.NODE_BILL_INFO][JV.NODE_BILL_CONTENT][JV.PROP_BILL_FIELDS], null, me.disp_fields_idx);
|
|
|
};
|
|
|
+ JpcBillTabResult.paging = function(rptTpl) {
|
|
|
+ let me = this, rst = 0;
|
|
|
+ let detail_fields = rptTpl[JV.NODE_FIELD_MAP][JV.NODE_DETAIL_FIELDS];
|
|
|
+ if (detail_fields && detail_fields.length > 0) {
|
|
|
+ rst = detail_fields[0].length;
|
|
|
+ }
|
|
|
+ return rst;
|
|
|
+ };
|
|
|
JpcBillTabResult.outputAsSimpleJSONPage = function (rptTpl, dataObj, page, bands, controls, $CURRENT_RPT) {
|
|
|
let me = this, rst = [], tabRstLst = [];
|
|
|
//1 calculate the band position
|