|
|
@@ -28,8 +28,10 @@ let fsUtil = require("../../../public/fsUtil");
|
|
|
let pm_facade = require('../../../modules/pm/facade/pm_facade');
|
|
|
|
|
|
let demoPrjId = - 1;
|
|
|
-// let demoRptId = 1006; //qa 重庆2018 A03
|
|
|
-let demoRptId = 1005; //qa 重庆2018 A01
|
|
|
+let demoRptId = 1029; //qa 重庆2018 A03
|
|
|
+// let demoRptId = 1005; //qa 重庆2018 A01
|
|
|
+// let demoRptId = 1035; //qa 重庆2018 C41
|
|
|
+// let demoRptId = 1036; //qa 重庆2018 B11
|
|
|
let pagesize = "A4";
|
|
|
|
|
|
|
|
|
@@ -37,7 +39,7 @@ let pagesize = "A4";
|
|
|
let userId_Leng = "5acac1e885bf55000bd055ba"; //小冷User Id2
|
|
|
let userId_me = "5b6a60b1c4ba33000dd417c0"; //我的
|
|
|
// let userId_HaiZhu = "5b5a66c4a3c23e000dccdd77"; //海珠user id
|
|
|
-demoPrjId = 9279; //
|
|
|
+demoPrjId = 10853; //
|
|
|
//*/
|
|
|
let userId_Dft = userId_Leng;
|
|
|
// let userId_Dft = "5a025c4c15074d134c2b9689";
|
|
|
@@ -96,11 +98,12 @@ test('测试 - : ', function (t) {
|
|
|
let dftOption = JV.PAGING_OPTION_NORMAL;
|
|
|
printCom.initialize(rptTpl);
|
|
|
printCom.analyzeData(rptTpl, tplData, defProperties, dftOption, JV.OUTPUT_TYPE_EXCEL);
|
|
|
+ // fsUtil.writeObjToFile(tplData, "D:/GitHome/ConstructionCost/tmp/rptTplAssembledData_系统指标.jsp");
|
|
|
let maxPages = printCom.totalPages;
|
|
|
let customizeCfg = {"fillZero": true};
|
|
|
let pageRst = printCom.outputAsSimpleJSONPageArray(rptTpl, tplData, 1, maxPages, defProperties, customizeCfg);
|
|
|
if (pageRst) {
|
|
|
- // fsUtil.writeObjToFile(pageRst, "D:/GitHome/ConstructionCost/tmp/testBuiltPageResult_系统指标.jsp");
|
|
|
+ fsUtil.writeObjToFile(pageRst, "D:/GitHome/ConstructionCost/tmp/testBuiltPageResult_系统指标.jsp");
|
|
|
// rpt_xl_util.exportExcel(pageRst, pagesize, "local_test_rpt_excel", true, null, null, function(uuidName){
|
|
|
// console.log("excel uuid: " + uuidName);
|
|
|
// });
|