B1表 工程变更令.js 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115
  1. {
  2. "ID_KEY": "DUMMY_FLOW_SAMPLE",
  3. "GROUP_KEY": "RPT_B1表 工程变更令_SAMPLE_TPL",
  4. "主信息": {
  5. "单位": "厘米",
  6. "版本": {
  7. "主版本": "3",
  8. "功能版本": "0"
  9. },
  10. "页边距": {
  11. "Top": "1.0",
  12. "Left": "1.0",
  13. "Right": "1.0",
  14. "Bottom": "1.0"
  15. },
  16. "报表名称": "B1表 工程变更令",
  17. "打印页面_信息": {
  18. "方向": "PORTRAIT",
  19. "页规格": "A4"
  20. }
  21. },
  22. "布局框_集合": [
  23. {
  24. "Alignment": "Top",
  25. "DisplayType": "EveryPage",
  26. "Height": "2.59",
  27. "Name": "TitleBand",
  28. "control": "Default",
  29. "style": "Default_None",
  30. "MergeBorder": "F"
  31. },
  32. {
  33. "Alignment": "Top",
  34. "DisplayType": "EveryPage",
  35. "Height": "1.2",
  36. "Name": "HeaderBand",
  37. "control": "Default",
  38. "style": "Default_None",
  39. "MergeBorder": "F"
  40. },
  41. {
  42. "Alignment": "Bottom",
  43. "DisplayType": "EveryPage",
  44. "Height": "0.6",
  45. "Name": "FooterBand",
  46. "control": "Default",
  47. "style": "Default_None",
  48. "MergeBorder": "F"
  49. },
  50. {
  51. "Alignment": "Fulfill",
  52. "DisplayType": "EveryPage",
  53. "Name": "Report Body",
  54. "control": "Default",
  55. "style": "BORDER_ALL_AROUND",
  56. "MergeBorder": "T",
  57. "band_s": [
  58. {
  59. "Alignment": "Top",
  60. "DisplayType": "EveryPage",
  61. "Height": "9.13",
  62. "Name": "ColumnBand",
  63. "control": "Default",
  64. "style": "Default_None",
  65. "MergeBorder": "F"
  66. },
  67. {
  68. "Alignment": "Bottom",
  69. "DisplayType": "EveryPage",
  70. "Height": "4.26",
  71. "Name": "newBand_1",
  72. "control": "Default",
  73. "style": "Default_None",
  74. "MergeBorder": "F"
  75. },
  76. {
  77. "Alignment": "Fulfill",
  78. "DisplayType": "EveryPage",
  79. "Name": "ContentBand",
  80. "control": "Default",
  81. "style": "Default_None",
  82. "MergeBorder": "F"
  83. }
  84. ]
  85. }
  86. ],
  87. "计算式_集合": [
  88. {
  89. "Name": "获取打印时间",
  90. "run_type": "before_paging",
  91. "expression": "let rpt = $JE.P(5001,$CURRENT_RPT);\n let dt = new Date();\n rpt.Default_Value = dt.Format($ME.format);\n rpt = null;",
  92. "format": "yyyy 年 M 月 dd 日"
  93. },
  94. {
  95. "Name": "获取当前页",
  96. "run_type": "before_output",
  97. "expression": "let ttp = $JE.P(5010,$CURRENT_RPT);\n ttp.Default_Value = $ME.format.replace('($S)',$JE.getCurrentPage($CURRENT_RPT));\n ttp = null;",
  98. "format": "第 ($S) 页"
  99. },
  100. {
  101. "Name": "获取总页数",
  102. "run_type": "before_output",
  103. "expression": "let ttp = $JE.P(5011,$CURRENT_RPT);\n ttp.Default_Value = $ME.format.replace('($S)',$JE.getTotalPage($CURRENT_RPT));\n ttp = null;",
  104. "format": "共 ($S) 页"
  105. },
  106. {
  107. "Name": "新计算式",
  108. "run_type": "before_analyzing",
  109. "expression": "\n//变更令主数据\nlet bglId=$JE.F(2300,$CURRENT_RPT);\nlet bglCode=$JE.F(2301,$CURRENT_RPT);\nlet bglShuoM=$JE.F(2310,$CURRENT_RPT);\nlet bglTp=$JE.F(2316,$CURRENT_RPT);\nlet bglName=$JE.F(2304,$CURRENT_RPT);\nlet fLen0=$JE.getFieldDataLen(bglId, $CURRENT_DATA);\nlet masterBglArr = [];\nlet masterField=[bglId,bglCode,bglShuoM,bglTp,bglName];\nlet masterKeyArr=['bglId','bglCode','bglShuoM','bglTp','bglName'];\n\n//变更令从数据\nlet bglbillsCid=$JE.F(2400,$CURRENT_RPT);\nlet bglBillsCode=$JE.F(2401,$CURRENT_RPT);\nlet bglBillsName=$JE.F(2402,$CURRENT_RPT);\nlet bglBillsUnit=$JE.F(2403,$CURRENT_RPT);\nlet bglBillsQty=$JE.F(2407,$CURRENT_RPT);\nlet bglBillsPrice=$JE.F(2404,$CURRENT_RPT);\nlet newbglBillsTp=$JE.F(12110,$CURRENT_RPT);\n\nlet newHjbglBillsTp=$JE.F(12118,$CURRENT_RPT);\n\nlet fLen1=$JE.getFieldDataLen(bglbillsCid, $CURRENT_DATA);\nlet sortBefore = [];//缓存从数据\nlet destArr=[]; //从数据根据变更令ID,清单排序后的主数据\nlet decFieldArr=[bglbillsCid,bglBillsCode,bglBillsName,bglBillsUnit,bglBillsPrice,bglBillsQty,newbglBillsTp];\nlet decKeyArr=['bglId','bglBCode','bglBName','bglBUnit','bglBPrice','bglBQty','bglTp'];\n\n\n//获取金额小数位数\n//let tempPTp=$JE.F(1156,$CURRENT_RPT);\nlet preciousTp = $JE.getFieldValue($JE.F(1156,$CURRENT_RPT),$CURRENT_DATA,0,'');\nlet sum=0;\nfor (let nIdx = 0; nIdx < fLen1; nIdx++) {\n\tlet sQty= $JE.getFieldValue(bglBillsQty, $CURRENT_DATA, nIdx, '');\t\n\tif(isNaN(sQty) || sQty === '' || sQty === null){\n\t\tsQty=0;\n\t}else{\n\t\tsQty= parseFloat(sQty);\n\t}\n\tlet sPrice= $JE.getFieldValue(bglBillsPrice, $CURRENT_DATA, nIdx, '');\n\tif(isNaN(sPrice) || sPrice === '' || sPrice === null){\n\t\tsPrice=0;\n\t}else{\n\t\tsPrice= parseFloat(sPrice);\n\t}\n\t\n\tlet sTP=Math.round(sQty*sPrice*Math.pow(10,preciousTp))/Math.pow(10,preciousTp); \n\tsum=sum+sTP;\n\t\n\t$JE.setFieldValue(newbglBillsTp, $CURRENT_DATA, nIdx, sTP);\t\t\t\n\t\n}\n$JE.setFieldValue(newHjbglBillsTp, $CURRENT_DATA, 0, sum);\t\nconsole.log(sum);\t\n\n//缓存成数组,数组元素为对象\n//dataLength:原始数据长度,fieldArr:康博士定义的字段,keysArr:数组对象字段\nfunction cacheDataArr(dataLength,fieldArr,keysArr,cacheArr){\n\tfor (let chkIdx = 0; chkIdx < dataLength; chkIdx++){\n\t\tlet newDatad={};\n\t\tfor(let i=0;i<fieldArr.length;i++){\n\t\t\tlet tempData = $JE.getFieldValue(fieldArr[i], $CURRENT_DATA, chkIdx, '');\t\t\n\t\t\tnewDatad[keysArr[i]]=tempData;\t\t\t\n\t\t}\t\n\t\tcacheArr.push(newDatad);\n\t}\n}\n\ncacheDataArr(fLen0,masterField,masterKeyArr,masterBglArr);\ncacheDataArr(fLen1,decFieldArr,decKeyArr,sortBefore);\n\n//主数据排序\nmasterBglArr.sort(function (a, b) {\n if (a['bglCode'] === b['bglCode']) {\n if (a['bglId'] > b['bglId']) {\n return 1;\n } else if (a['bglId'] < b['bglId']) {\n return -1;\n } else {\n return 0;\n }\n } else {\n if (a['bglCode'] > b['bglCode']) {\n return 1;\n } else {\n return -1;\n }\n }\n});\nconsole.log(masterBglArr);\n\n//从数据根据主数据变更令id排序\nfor(let k=0; k<masterBglArr.length; k++){\n\t//console.log(masterBglArr[k]['bglId']);\n\tfor(let m=0; m<sortBefore.length; m++){\n\t\tif(sortBefore[m]['bglId']===masterBglArr[k]['bglId']){\t\t\t\n\t\t\tdestArr.push(sortBefore[m]);\t\t\n\t\t}\n\t}\n}\n\t\n//从数据根据变更令id,进行清单顺序,清单编号默认按照中文排序了,没去管1、2、10的问题\nfunction sortBy(field1,field2) {\n return function(a,b) {\n if(a.field1 == b.field1) return a.field2 - b.field2;\n return a.field1 - b.field1;\n }\n}\ndestArr.sort(sortBy(\"bglId\",\"bglBCode\")); \n\nconsole.log(destArr);\t\n\n//fieldCountArr:需要设置的字段数;dataLengthArr:数据的长度;keysArr:数组转成对象的key值存放\nfunction moveToNewFields(fieldCountArr,dataLengthArr,keysArr) {\n\tlet vCn=0;\n\tfor(let field of fieldCountArr){\t\t\n\t\tfor(let N=0; N < dataLengthArr.length ;N++){\n\t\t\t$JE.setFieldValue(field, $CURRENT_DATA, N, dataLengthArr[N][keysArr[vCn]]);\n\t\t}\n\t\tvCn++;\n\t}\n};\t\t\n//移动主数据\nmoveToNewFields(masterField,masterBglArr,masterKeyArr);\t\nmoveToNewFields(decFieldArr,destArr,decKeyArr);\n\t",
  110. "format": ""
  111. }
  112. ],
  113. "流水式表_信息": {
  114. "离散信息": [
  115. {
  116. "BandName": "TitleBand",
  117. "discrete_field_s": [
  118. {
  119. "FieldID": 1103,
  120. "font": "ReportTitle_Vice_2",
  121. "control": "Title",
  122. "style": "Default_None",
  123. "isAutoHeight": false,
  124. "area": {
  125. "Left": 0,
  126. "Right": "100.00",
  127. "Top": 0,
  128. "Bottom": "50.00",
  129. "H_CalculationType": "percentage",
  130. "V_CalculationType": "percentage"
  131. }
  132. }
  133. ],
  134. "text_s": [
  135. {
  136. "Label": "B1 工程变更令",
  137. "font": "ReportTitle_Main",
  138. "control": "Title",
  139. "style": "Default_None",
  140. "Title": "",
  141. "area": {
  142. "Left": 0,
  143. "Right": "100.00",
  144. "Top": "50.00",
  145. "Bottom": "100.00",
  146. "H_CalculationType": "percentage",
  147. "V_CalculationType": "percentage"
  148. }
  149. }
  150. ]
  151. },
  152. {
  153. "BandName": "HeaderBand",
  154. "discrete_field_s": [
  155. {
  156. "FieldID": 1134,
  157. "font": "Content",
  158. "control": "Header",
  159. "style": "Default_None",
  160. "Prefix": "施工单位:",
  161. "isAutoHeight": false,
  162. "area": {
  163. "Left": 0,
  164. "Right": "50",
  165. "Top": "0",
  166. "Bottom": "50",
  167. "H_CalculationType": "percentage",
  168. "V_CalculationType": "percentage"
  169. }
  170. },
  171. {
  172. "FieldID": 1140,
  173. "font": "Content",
  174. "control": "Header",
  175. "style": "Default_None",
  176. "Prefix": "监理单位:",
  177. "isAutoHeight": false,
  178. "area": {
  179. "Left": 0,
  180. "Right": "50",
  181. "Top": "50",
  182. "Bottom": "100",
  183. "H_CalculationType": "percentage",
  184. "V_CalculationType": "percentage"
  185. }
  186. },
  187. {
  188. "FieldID": 1102,
  189. "font": "Content",
  190. "control": "Header",
  191. "style": "Default_None",
  192. "Prefix": "合 同 号:",
  193. "isAutoHeight": false,
  194. "area": {
  195. "Left": "50",
  196. "Right": "100",
  197. "Top": "0",
  198. "Bottom": "50",
  199. "H_CalculationType": "percentage",
  200. "V_CalculationType": "percentage"
  201. }
  202. },
  203. {
  204. "FieldID": 2301,
  205. "font": "Content",
  206. "control": "Header",
  207. "style": "Default_None",
  208. "Prefix": "变更令号:",
  209. "isAutoHeight": false,
  210. "area": {
  211. "Left": "50",
  212. "Right": "100.00",
  213. "Top": "50",
  214. "Bottom": "100.00",
  215. "H_CalculationType": "percentage",
  216. "V_CalculationType": "percentage"
  217. }
  218. }
  219. ]
  220. },
  221. {
  222. "BandName": "newBand_1",
  223. "discrete_field_s": [
  224. {
  225. "FieldID": 2316,
  226. "font": "Content",
  227. "control": "Column_Left",
  228. "style": "Default_Normal",
  229. "Prefix": " 变更增减金额合计(元):",
  230. "isAutoHeight": false,
  231. "area": {
  232. "Left": 0,
  233. "Right": "100.00",
  234. "Top": "18.01",
  235. "Bottom": "35.40",
  236. "H_CalculationType": "percentage",
  237. "V_CalculationType": "percentage"
  238. }
  239. },
  240. {
  241. "FieldID": 2316,
  242. "font": "Content",
  243. "control": "Column_Right",
  244. "style": "Default_Normal",
  245. "isAutoHeight": false,
  246. "area": {
  247. "Left": "84.96",
  248. "Right": "100.00",
  249. "Top": 0,
  250. "Bottom": "18.01",
  251. "H_CalculationType": "percentage",
  252. "V_CalculationType": "percentage"
  253. }
  254. },
  255. {
  256. "FieldID": 12178,
  257. "font": "Content",
  258. "control": "Default",
  259. "style": "Default_None",
  260. "isAutoHeight": false,
  261. "area": {
  262. "Left": "55.15",
  263. "Right": "70.19",
  264. "Top": "71.43",
  265. "Bottom": "100",
  266. "H_CalculationType": "percentage",
  267. "V_CalculationType": "percentage"
  268. }
  269. }
  270. ],
  271. "text_s": [
  272. {
  273. "Label": "签字:",
  274. "font": "Content",
  275. "control": "NewContent_Right",
  276. "style": "Default_None",
  277. "Title": "",
  278. "area": {
  279. "Left": "45.26",
  280. "Right": "55.15",
  281. "Top": "71.43",
  282. "Bottom": "100.00",
  283. "H_CalculationType": "percentage",
  284. "V_CalculationType": "percentage"
  285. }
  286. },
  287. {
  288. "Label": " 合 计",
  289. "font": "Content",
  290. "control": "Column_Left",
  291. "style": "Default_Normal",
  292. "Title": "",
  293. "area": {
  294. "Left": 0,
  295. "Right": "84.96",
  296. "Top": 0,
  297. "Bottom": "18.01",
  298. "H_CalculationType": "percentage",
  299. "V_CalculationType": "percentage"
  300. }
  301. },
  302. {
  303. "Label": " 监理组组长:",
  304. "font": "Content",
  305. "control": "Header",
  306. "style": "Default_None",
  307. "Title": "",
  308. "area": {
  309. "Left": 0,
  310. "Right": "100.00",
  311. "Top": "35.40",
  312. "Bottom": "52.80",
  313. "H_CalculationType": "percentage",
  314. "V_CalculationType": "percentage"
  315. }
  316. },
  317. {
  318. "Label": "",
  319. "font": "Content",
  320. "control": "Content_Left",
  321. "style": "Default_None",
  322. "Title": "",
  323. "area": {
  324. "Left": 0,
  325. "Right": "45.26",
  326. "Top": "71.43",
  327. "Bottom": "100.00",
  328. "H_CalculationType": "percentage",
  329. "V_CalculationType": "percentage"
  330. }
  331. },
  332. {
  333. "Label": "",
  334. "font": "Content",
  335. "control": "Content_Left",
  336. "style": "Default_None",
  337. "Title": "",
  338. "area": {
  339. "Left": 0,
  340. "Right": "100.00",
  341. "Top": "52.80",
  342. "Bottom": "71.43",
  343. "H_CalculationType": "percentage",
  344. "V_CalculationType": "percentage"
  345. }
  346. },
  347. {
  348. "Label": " 年 月 日",
  349. "font": "Content",
  350. "control": "NewContent_Right",
  351. "style": "Default_None",
  352. "Title": "",
  353. "area": {
  354. "Left": "70.19",
  355. "Right": "100",
  356. "Top": "71.43",
  357. "Bottom": 100,
  358. "H_CalculationType": "percentage",
  359. "V_CalculationType": "percentage"
  360. }
  361. },
  362. {
  363. "Label": "",
  364. "font": "Content",
  365. "control": "Default",
  366. "style": "Default_None",
  367. "Title": "",
  368. "area": {
  369. "Left": "55.15",
  370. "Right": "70.19",
  371. "Top": "71.43",
  372. "Bottom": 100,
  373. "H_CalculationType": "percentage",
  374. "V_CalculationType": "percentage"
  375. }
  376. }
  377. ]
  378. },
  379. {
  380. "BandName": "ColumnBand",
  381. "discrete_field_s": [
  382. {
  383. "FieldID": 1134,
  384. "font": "Content",
  385. "control": "Default",
  386. "style": "Label_Underline",
  387. "Suffix": ":",
  388. "isAutoHeight": false,
  389. "area": {
  390. "Left": "3.9",
  391. "Right": "32",
  392. "Top": 0,
  393. "Bottom": "10.72",
  394. "H_CalculationType": "percentage",
  395. "V_CalculationType": "percentage"
  396. }
  397. },
  398. {
  399. "FieldID": 2304,
  400. "font": "Content",
  401. "control": "Content_Center",
  402. "style": "Label_Underline",
  403. "isAutoHeight": false,
  404. "area": {
  405. "Left": "27.3",
  406. "Right": "55.15",
  407. "Top": "10.72",
  408. "Bottom": "21.45",
  409. "H_CalculationType": "percentage",
  410. "V_CalculationType": "percentage"
  411. }
  412. },
  413. {
  414. "FieldID": 2310,
  415. "font": "Content",
  416. "control": "Left_Top",
  417. "style": "Default_None",
  418. "isAutoHeight": false,
  419. "area": {
  420. "Left": "3.9",
  421. "Right": 100,
  422. "Top": "40",
  423. "Bottom": "55.65",
  424. "H_CalculationType": "percentage",
  425. "V_CalculationType": "percentage"
  426. }
  427. }
  428. ],
  429. "text_s": [
  430. {
  431. "Label": "",
  432. "font": "Content",
  433. "control": "Default",
  434. "style": "Default_None",
  435. "Title": "",
  436. "area": {
  437. "Left": "32",
  438. "Right": 100,
  439. "Top": 0,
  440. "Bottom": "10.72",
  441. "H_CalculationType": "percentage",
  442. "V_CalculationType": "percentage"
  443. }
  444. }
  445. ]
  446. }
  447. ],
  448. "流水式表_列": {
  449. "BandName": "ColumnBand",
  450. "text_s": [
  451. {
  452. "Label": "变更理由及要点说明:",
  453. "font": "Content",
  454. "control": "Header",
  455. "style": "Default_None",
  456. "Title": "",
  457. "area": {
  458. "Left": "3.9",
  459. "Right": "100.00",
  460. "Top": "32.17",
  461. "Bottom": "40",
  462. "H_CalculationType": "percentage",
  463. "V_CalculationType": "percentage"
  464. }
  465. },
  466. {
  467. "Label": "附件:附件附后",
  468. "font": "Content",
  469. "control": "Header",
  470. "style": "Default_None",
  471. "Title": "",
  472. "area": {
  473. "Left": "3.90",
  474. "Right": "49.03",
  475. "Top": "55.65",
  476. "Bottom": "64.06",
  477. "H_CalculationType": "percentage",
  478. "V_CalculationType": "percentage"
  479. }
  480. },
  481. {
  482. "Label": "根据工程实际需要,现决定对",
  483. "font": "Content",
  484. "control": "Content_Left",
  485. "style": "Default_None",
  486. "Title": "",
  487. "area": {
  488. "Left": "3.90",
  489. "Right": "27.3",
  490. "Top": "10.72",
  491. "Bottom": "21.45",
  492. "H_CalculationType": "percentage",
  493. "V_CalculationType": "percentage"
  494. }
  495. },
  496. {
  497. "Label": "的设计进行变更,请按变更后的图纸组织施工。",
  498. "font": "Content",
  499. "control": "Content_Left",
  500. "style": "Default_None",
  501. "Title": "",
  502. "area": {
  503. "Left": "55.15",
  504. "Right": "100",
  505. "Top": "10.72",
  506. "Bottom": "21.45",
  507. "H_CalculationType": "percentage",
  508. "V_CalculationType": "percentage"
  509. }
  510. },
  511. {
  512. "Label": "子目编号",
  513. "font": "Content",
  514. "control": "Column",
  515. "style": "Default_Normal",
  516. "Title": "",
  517. "area": {
  518. "Left": 0,
  519. "Right": "15.04",
  520. "Top": "87.54",
  521. "Bottom": "100.00",
  522. "H_CalculationType": "percentage",
  523. "V_CalculationType": "percentage"
  524. }
  525. },
  526. {
  527. "Label": "子目名称",
  528. "font": "Content",
  529. "control": "Column",
  530. "style": "Default_Normal",
  531. "Title": "",
  532. "area": {
  533. "Left": "15.04",
  534. "Right": "45.26",
  535. "Top": "87.54",
  536. "Bottom": "100.00",
  537. "H_CalculationType": "percentage",
  538. "V_CalculationType": "percentage"
  539. }
  540. },
  541. {
  542. "Label": "单位",
  543. "font": "Content",
  544. "control": "Column",
  545. "style": "Default_Normal",
  546. "Title": "",
  547. "area": {
  548. "Left": "45.26",
  549. "Right": "55.15",
  550. "Top": "87.54",
  551. "Bottom": "100.00",
  552. "H_CalculationType": "percentage",
  553. "V_CalculationType": "percentage"
  554. }
  555. },
  556. {
  557. "Label": "",
  558. "font": "Content",
  559. "control": "Content_Left",
  560. "style": "Default_None",
  561. "Title": "",
  562. "area": {
  563. "Left": 0,
  564. "Right": "3.9",
  565. "Top": "40",
  566. "Bottom": "55.65",
  567. "H_CalculationType": "percentage",
  568. "V_CalculationType": "percentage"
  569. }
  570. },
  571. {
  572. "Label": "",
  573. "font": "Content",
  574. "control": "Content_Left",
  575. "style": "Label_Underline",
  576. "Title": "",
  577. "area": {
  578. "Left": 0,
  579. "Right": "100.00",
  580. "Top": "64.06",
  581. "Bottom": "87.54",
  582. "H_CalculationType": "percentage",
  583. "V_CalculationType": "percentage"
  584. }
  585. },
  586. {
  587. "Label": "",
  588. "font": "Content",
  589. "control": "Content_Left",
  590. "style": "Default_None",
  591. "Title": "",
  592. "area": {
  593. "Left": 0,
  594. "Right": "100.00",
  595. "Top": "21.45",
  596. "Bottom": "32.17",
  597. "H_CalculationType": "percentage",
  598. "V_CalculationType": "percentage"
  599. }
  600. },
  601. {
  602. "Label": "",
  603. "font": "Content",
  604. "control": "Content_Left",
  605. "style": "Default_None",
  606. "Title": "",
  607. "area": {
  608. "Left": 0,
  609. "Right": "0.97",
  610. "Top": 0,
  611. "Bottom": "10.72",
  612. "H_CalculationType": "percentage",
  613. "V_CalculationType": "percentage"
  614. }
  615. },
  616. {
  617. "Label": "致",
  618. "font": "Content",
  619. "control": "Content_Left",
  620. "style": "Default_None",
  621. "Title": "",
  622. "area": {
  623. "Left": "0.97",
  624. "Right": "3.90",
  625. "Top": 0,
  626. "Bottom": "10.72",
  627. "H_CalculationType": "percentage",
  628. "V_CalculationType": "percentage"
  629. }
  630. },
  631. {
  632. "Label": "",
  633. "font": "Content",
  634. "control": "Content_Left",
  635. "style": "Default_None",
  636. "Title": "",
  637. "area": {
  638. "Left": 0,
  639. "Right": "0.97",
  640. "Top": "10.72",
  641. "Bottom": "21.45",
  642. "H_CalculationType": "percentage",
  643. "V_CalculationType": "percentage"
  644. }
  645. },
  646. {
  647. "Label": "",
  648. "font": "Content",
  649. "control": "Content_Left",
  650. "style": "Default_None",
  651. "Title": "",
  652. "area": {
  653. "Left": 0,
  654. "Right": "0.97",
  655. "Top": "32.17",
  656. "Bottom": "40.00",
  657. "H_CalculationType": "percentage",
  658. "V_CalculationType": "percentage"
  659. }
  660. },
  661. {
  662. "Label": "",
  663. "font": "Content",
  664. "control": "Content_Left",
  665. "style": "Default_None",
  666. "Title": "",
  667. "area": {
  668. "Left": 0,
  669. "Right": "0.97",
  670. "Top": "55.65",
  671. "Bottom": "64.06",
  672. "H_CalculationType": "percentage",
  673. "V_CalculationType": "percentage"
  674. }
  675. },
  676. {
  677. "Label": "",
  678. "font": "Content",
  679. "control": "Content_Left",
  680. "style": "Default_None",
  681. "Title": "",
  682. "area": {
  683. "Left": "84.96",
  684. "Right": "100.00",
  685. "Top": "55.65",
  686. "Bottom": "64.06",
  687. "H_CalculationType": "percentage",
  688. "V_CalculationType": "percentage"
  689. }
  690. },
  691. {
  692. "Label": "单价(元)",
  693. "font": "Content",
  694. "control": "Column",
  695. "style": "Default_Normal",
  696. "Title": "",
  697. "area": {
  698. "Left": "55.15",
  699. "Right": "70.19",
  700. "Top": "87.54",
  701. "Bottom": "100.00",
  702. "H_CalculationType": "percentage",
  703. "V_CalculationType": "percentage"
  704. }
  705. },
  706. {
  707. "Label": "变更数量",
  708. "font": "Content",
  709. "control": "Column",
  710. "style": "Default_Normal",
  711. "Title": "",
  712. "area": {
  713. "Left": "70.19",
  714. "Right": "84.96",
  715. "Top": "87.54",
  716. "Bottom": "100.00",
  717. "H_CalculationType": "percentage",
  718. "V_CalculationType": "percentage"
  719. }
  720. },
  721. {
  722. "Label": "变更金额(元)",
  723. "font": "HeaderColumn",
  724. "control": "Column",
  725. "style": "Default_Normal",
  726. "Title": "",
  727. "area": {
  728. "Left": "84.96",
  729. "Right": "100.00",
  730. "Top": "87.54",
  731. "Bottom": "100.00",
  732. "H_CalculationType": "percentage",
  733. "V_CalculationType": "percentage"
  734. }
  735. }
  736. ]
  737. },
  738. "多列显示数量": 1,
  739. "流水式表_数据": {
  740. "BandName": "ContentBand",
  741. "CommonHeight": "0.61",
  742. "flow_field_s": [
  743. {
  744. "FieldID": 2903,
  745. "font": "Content",
  746. "control": "Column_Left",
  747. "style": "Default_Normal",
  748. "isAutoHeight": false,
  749. "area": {
  750. "Left": 0,
  751. "Right": "15.04",
  752. "Top": 0,
  753. "Bottom": 100,
  754. "H_CalculationType": "percentage",
  755. "V_CalculationType": "percentage"
  756. }
  757. },
  758. {
  759. "FieldID": 2904,
  760. "font": "Content",
  761. "control": "Column_Left",
  762. "style": "Default_Normal",
  763. "isAutoHeight": false,
  764. "area": {
  765. "Left": "15.04",
  766. "Right": "45.26",
  767. "Top": 0,
  768. "Bottom": 100,
  769. "H_CalculationType": "percentage",
  770. "V_CalculationType": "percentage"
  771. }
  772. },
  773. {
  774. "FieldID": 2905,
  775. "font": "Content",
  776. "control": "Column",
  777. "style": "Default_Normal",
  778. "isAutoHeight": false,
  779. "area": {
  780. "Left": "45.26",
  781. "Right": "55.15",
  782. "Top": 0,
  783. "Bottom": 100,
  784. "H_CalculationType": "percentage",
  785. "V_CalculationType": "percentage"
  786. }
  787. },
  788. {
  789. "FieldID": 2906,
  790. "font": "Content",
  791. "control": "Column_Right",
  792. "style": "Default_Normal",
  793. "isAutoHeight": false,
  794. "area": {
  795. "Left": "55.15",
  796. "Right": "70.19",
  797. "Top": 0,
  798. "Bottom": 100,
  799. "H_CalculationType": "percentage",
  800. "V_CalculationType": "percentage"
  801. }
  802. },
  803. {
  804. "FieldID": 2909,
  805. "font": "Content",
  806. "control": "Column_Right",
  807. "style": "Default_Normal",
  808. "isAutoHeight": false,
  809. "area": {
  810. "Left": "70.19",
  811. "Right": "84.96",
  812. "Top": 0,
  813. "Bottom": 100,
  814. "H_CalculationType": "percentage",
  815. "V_CalculationType": "percentage"
  816. }
  817. },
  818. {
  819. "FieldID": 2912,
  820. "font": "Content",
  821. "control": "Column_Right",
  822. "style": "Default_Normal",
  823. "isAutoHeight": false,
  824. "area": {
  825. "Left": "84.96",
  826. "Right": 100,
  827. "Top": 0,
  828. "Bottom": 100,
  829. "H_CalculationType": "percentage",
  830. "V_CalculationType": "percentage"
  831. }
  832. }
  833. ]
  834. },
  835. "流水式表_分组信息": {
  836. "group_field_s": [],
  837. "sum_field_s": [],
  838. "group_lines": []
  839. },
  840. "流水式表_段统计信息": {
  841. "BandName": "",
  842. "sum_field_s": [],
  843. "text_s": []
  844. },
  845. "流水式表_页统计信息": {
  846. "BandName": "",
  847. "sum_field_s": [],
  848. "text_s": []
  849. }
  850. },
  851. "离散参数_集合": [
  852. {
  853. "ID": "5001",
  854. "Name": "打印时间",
  855. "DataType": "String",
  856. "Default_Value": ""
  857. },
  858. {
  859. "ID": "5010",
  860. "Name": "当前页",
  861. "DataType": "String",
  862. "Default_Value": "第 X 页"
  863. },
  864. {
  865. "ID": "5011",
  866. "Name": "总页数",
  867. "DataType": "String",
  868. "Default_Value": "共 X 页"
  869. }
  870. ],
  871. "指标_数据_映射": {
  872. "离散指标_集合": [
  873. {
  874. "ID": 1134,
  875. "Name": "标段_标段清单_承包单位1_单位名称",
  876. "DataType": "string",
  877. "TableName": "tender_info",
  878. "mapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'construction_unit.contract1.company')",
  879. "descr": "",
  880. "Title": "ID: 1134"
  881. },
  882. {
  883. "ID": 1102,
  884. "Name": "标段_合同号",
  885. "DataType": "string",
  886. "TableName": "tender_info",
  887. "mapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'deal_info.dealCode')",
  888. "descr": "",
  889. "Title": "ID: 1102"
  890. },
  891. {
  892. "ID": 1140,
  893. "Name": "标段_标段清单_监理单位1_单位名称",
  894. "DataType": "string",
  895. "TableName": "tender_info",
  896. "mapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'construction_unit.supervision1.company')",
  897. "descr": "",
  898. "Title": "ID: 1140"
  899. },
  900. {
  901. "ID": 1099,
  902. "Name": "项目_空白",
  903. "DataType": "string",
  904. "TableName": "project",
  905. "mapExpression": "$PROJECT.REPORT.getBlank('project', '')",
  906. "descr": "",
  907. "Title": "ID: 1099"
  908. },
  909. {
  910. "ID": 1103,
  911. "Name": "标段_合同名称",
  912. "DataType": "string",
  913. "TableName": "tender_info",
  914. "mapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'deal_info.dealName')",
  915. "descr": "",
  916. "Title": "ID: 1103"
  917. },
  918. {
  919. "ID": 1156,
  920. "Name": "标段_小数位数_金额",
  921. "DataType": "int",
  922. "TableName": "tender_info",
  923. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"decimal.tp\")",
  924. "descr": "",
  925. "Title": "ID: 1156"
  926. }
  927. ],
  928. "主数据指标_集合": [
  929. {
  930. "ID": 2300,
  931. "Name": "变更令信息_变更令uuid",
  932. "DataType": "string",
  933. "TableName": "change",
  934. "mapExpression": "$PROJECT.REPORT.getProperty(\"change\", \"cid\")",
  935. "descr": "",
  936. "Title": "ID: 2300",
  937. "isID": true,
  938. "IDSeq": 1
  939. },
  940. {
  941. "ID": 2301,
  942. "Name": "变更令信息_变更令号",
  943. "DataType": "string",
  944. "TableName": "change",
  945. "mapExpression": "$PROJECT.REPORT.getProperty(\"change\", \"code\")",
  946. "descr": "",
  947. "Title": "ID: 2301"
  948. },
  949. {
  950. "ID": 2310,
  951. "Name": "变更令信息_工程变更理由及内容",
  952. "DataType": "string",
  953. "TableName": "change",
  954. "mapExpression": "$PROJECT.REPORT.getProperty(\"change\", \"content\")",
  955. "descr": "",
  956. "Title": "ID: 2310"
  957. },
  958. {
  959. "ID": 2316,
  960. "Name": "变更令信息_金额",
  961. "DataType": "string",
  962. "TableName": "change",
  963. "mapExpression": "$PROJECT.REPORT.getProperty(\"change\", \"total_price\")",
  964. "descr": "",
  965. "Title": "ID: 2316"
  966. },
  967. {
  968. "ID": 2304,
  969. "Name": "变更令信息_变更名称",
  970. "DataType": "string",
  971. "TableName": "change",
  972. "mapExpression": "$PROJECT.REPORT.getProperty(\"change\", \"name\")",
  973. "descr": "",
  974. "Title": "ID: 2304"
  975. }
  976. ],
  977. "从数据指标_集合": [
  978. {
  979. "ID": 2903,
  980. "Name": "变更清单-清单编号(code)",
  981. "DataType": "string",
  982. "TableName": "mem_change_bills",
  983. "mapExpression": "$PROJECT.REPORT.getProperty('mem_change_bills', 'code')",
  984. "descr": "",
  985. "Title": "ID: 2903"
  986. },
  987. {
  988. "ID": 2904,
  989. "Name": "变更清单-名称(name)",
  990. "DataType": "string",
  991. "TableName": "mem_change_bills",
  992. "mapExpression": "$PROJECT.REPORT.getProperty('mem_change_bills', 'name')",
  993. "descr": "",
  994. "Title": "ID: 2904"
  995. },
  996. {
  997. "ID": 2905,
  998. "Name": "变更清单-单位(unit)",
  999. "DataType": "string",
  1000. "TableName": "mem_change_bills",
  1001. "mapExpression": "$PROJECT.REPORT.getProperty('mem_change_bills', 'unit')",
  1002. "descr": "",
  1003. "Title": "ID: 2905"
  1004. },
  1005. {
  1006. "ID": 2906,
  1007. "Name": "变更清单-单价(unit_price)",
  1008. "DataType": "currency",
  1009. "TableName": "mem_change_bills",
  1010. "mapExpression": "$PROJECT.REPORT.getProperty('mem_change_bills', 'unit_price')",
  1011. "descr": "",
  1012. "Title": "ID: 2906",
  1013. "Precision": {
  1014. "type": "fixed",
  1015. "fixedMapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'decimal.up')"
  1016. }
  1017. },
  1018. {
  1019. "ID": 2909,
  1020. "Name": "变更清单-审批变更后数量(s_qty)",
  1021. "DataType": "currency",
  1022. "TableName": "mem_change_bills",
  1023. "mapExpression": "$PROJECT.REPORT.getProperty('mem_change_bills', 's_qty')",
  1024. "descr": "",
  1025. "Title": "ID: 2909",
  1026. "Precision": {
  1027. "type": "flexible",
  1028. "flexibleRefFieldID": 2905,
  1029. "flexibleMapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'precision')"
  1030. }
  1031. },
  1032. {
  1033. "ID": 2912,
  1034. "Name": "变更清单-审批变更后-金额(s_tp)",
  1035. "DataType": "currency",
  1036. "TableName": "mem_change_bills",
  1037. "mapExpression": "$PROJECT.REPORT.getProperty('mem_change_bills', 's_tp')",
  1038. "descr": "",
  1039. "Title": "ID: 2912",
  1040. "Precision": {
  1041. "type": "fixed",
  1042. "fixedMapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'decimal.tp')"
  1043. }
  1044. },
  1045. {
  1046. "ID": 2901,
  1047. "Name": "变更清单-变更令id(cid)",
  1048. "DataType": "string",
  1049. "TableName": "mem_change_bills",
  1050. "mapExpression": "$PROJECT.REPORT.getProperty('mem_change_bills', 'cid')",
  1051. "descr": "",
  1052. "Title": "ID: 2901",
  1053. "isID": true,
  1054. "IDSeq": 1
  1055. }
  1056. ],
  1057. "主数据指标_拓展集合": [],
  1058. "从数据指标_拓展集合": []
  1059. },
  1060. "映射数据预处理": [
  1061. {
  1062. "预处理类型": "指定方式",
  1063. "映射数据对象": "",
  1064. "方式Key": "changeSort",
  1065. "hint": "默认的变更令排序,同时对变更令,变更清单进行排序",
  1066. "fields": [],
  1067. "自定义设置": "{ \"change\": \"change\", \"changeBills\": \"mem_change_bills\" }"
  1068. }
  1069. ],
  1070. "无映射离散指标_集合": [
  1071. {
  1072. "ID": 12105,
  1073. "Name": "新变更清单编号",
  1074. "DataType": "string"
  1075. },
  1076. {
  1077. "ID": 12106,
  1078. "Name": "新变更清单名称",
  1079. "DataType": "string"
  1080. },
  1081. {
  1082. "ID": 12107,
  1083. "Name": "新变更单位",
  1084. "DataType": "string"
  1085. },
  1086. {
  1087. "ID": 12108,
  1088. "Name": "新变更清单数量",
  1089. "DataType": "string"
  1090. },
  1091. {
  1092. "ID": 12109,
  1093. "Name": "新变更单价",
  1094. "DataType": "string"
  1095. },
  1096. {
  1097. "ID": 12110,
  1098. "Name": "新变更清单金额",
  1099. "DataType": "string"
  1100. },
  1101. {
  1102. "ID": 12118,
  1103. "Name": "总合计",
  1104. "DataType": "string"
  1105. }
  1106. ],
  1107. "动态日期离散参数_集合": [],
  1108. "电子签名离散指标_集合": [
  1109. {
  1110. "ID": 12178,
  1111. "Name": "监理组组长",
  1112. "DataType": "string"
  1113. }
  1114. ]
  1115. }