封面.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. {
  2. "ID_KEY": "DUMMY_BILL_SAMPLE",
  3. "GROUP_KEY": "RPT_封面_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. "报表名称": "封面",
  17. "打印页面_信息": {
  18. "方向": "LANDSCAPE",
  19. "页规格": "A4"
  20. }
  21. },
  22. "布局框_集合": [
  23. {
  24. "Alignment": "Top",
  25. "DisplayType": "EveryPage",
  26. "Height": "2.5",
  27. "Name": "TitleBand",
  28. "control": "Default",
  29. "style": "Default_None",
  30. "MergeBorder": "F"
  31. },
  32. {
  33. "Alignment": "Top",
  34. "DisplayType": "EveryPage",
  35. "Height": "4.95",
  36. "Name": "HeaderBand",
  37. "control": "Default",
  38. "style": "Default_None",
  39. "MergeBorder": "F"
  40. },
  41. {
  42. "Alignment": "Bottom",
  43. "DisplayType": "EveryPage",
  44. "Height": "0.90",
  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": "Default_None",
  56. "MergeBorder": "T",
  57. "band_s": [
  58. {
  59. "Alignment": "Fulfill",
  60. "DisplayType": "EveryPage",
  61. "Name": "ContentBand",
  62. "control": "Default",
  63. "style": "Default_None",
  64. "MergeBorder": "F"
  65. }
  66. ]
  67. }
  68. ],
  69. "计算式_集合": [
  70. {
  71. "Name": "获取打印时间",
  72. "run_type": "before_paging",
  73. "expression": "let rpt = $JE.P(5001,$CURRENT_RPT);\nlet dt = new Date();\nrpt.Default_Value = dt.Format($ME.format);\nrpt = null;",
  74. "format": "yyyy 年 M 月 dd 日"
  75. },
  76. {
  77. "Name": "获取当前页",
  78. "run_type": "before_output",
  79. "expression": "let ttp = $JE.P(5010,$CURRENT_RPT);\nttp.Default_Value = $ME.format.replace('(%S)',$JE.getCurrentPage($CURRENT_RPT));\nttp = null;",
  80. "format": "第 (%S) 页"
  81. },
  82. {
  83. "Name": "获取总页数",
  84. "run_type": "before_output",
  85. "expression": "let ttp = $JE.P(5011,$CURRENT_RPT);\nttp.Default_Value = $ME.format.replace('(%S)',$JE.getTotalPage($CURRENT_RPT));\nttp = null;",
  86. "format": "共 (%S) 页"
  87. },
  88. {
  89. "Name": "日期的转换",
  90. "run_type": "before_paging",
  91. "expression": "let rpt = $JE.F(1301,$CURRENT_RPT);\nlet rpt2 = $JE.F(1104,$CURRENT_RPT);\n\n//let newShiJian = $JE.F(12108,$CURRENT_RPT);\n\nlet jzrq = $JE.getFieldValue(rpt, $CURRENT_DATA, 0, '')\nlet shiJian = jzrq.split('-');\n\nif(shiJian[0]!==''){\n\tlet newRiQiValue = shiJian[0]+\" 年 \"+shiJian[1]+\" 月\";\n\t$JE.setFieldValue(rpt, $CURRENT_DATA, 0, newRiQiValue);\n}\n\nconsole.log($JE.getFieldValue(rpt2, $CURRENT_DATA, 0, ''));",
  92. "format": ""
  93. }
  94. ],
  95. "离散参数_集合": [
  96. {
  97. "ID": "5001",
  98. "Name": "打印时间",
  99. "DataType": "String",
  100. "Default_Value": ""
  101. },
  102. {
  103. "ID": "5010",
  104. "Name": "当前页",
  105. "DataType": "String",
  106. "Default_Value": "第 X 页"
  107. },
  108. {
  109. "ID": "5011",
  110. "Name": "总页数",
  111. "DataType": "String",
  112. "Default_Value": "共 X 页"
  113. }
  114. ],
  115. "账单式表_信息": {
  116. "离散信息": [
  117. {
  118. "BandName": "TitleBand",
  119. "discrete_field_s": [
  120. {
  121. "FieldID": 1103,
  122. "font": {
  123. "Name": "宋体",
  124. "FontBold": "T",
  125. "FontAngle": 0,
  126. "FontColor": "BLACK",
  127. "FontHeight": "27",
  128. "FontItalic": "F",
  129. "FontStrikeOut": "F",
  130. "FontUnderline": "F"
  131. },
  132. "control": "Title",
  133. "style": "Default_None",
  134. "isAutoHeight": false,
  135. "area": {
  136. "Left": 0,
  137. "Right": 100,
  138. "Top": "61",
  139. "Bottom": 100,
  140. "H_CalculationType": "percentage",
  141. "V_CalculationType": "percentage"
  142. }
  143. }
  144. ],
  145. "text_s": [
  146. {
  147. "Label": " ",
  148. "font": "Content",
  149. "control": "Default",
  150. "style": "Default_None",
  151. "Title": "",
  152. "area": {
  153. "Left": 0,
  154. "Right": 100,
  155. "Top": "0",
  156. "Bottom": "61",
  157. "H_CalculationType": "percentage",
  158. "V_CalculationType": "percentage"
  159. }
  160. }
  161. ]
  162. },
  163. {
  164. "BandName": "HeaderBand",
  165. "discrete_field_s": [
  166. {
  167. "FieldID": 1102,
  168. "font": {
  169. "Name": "宋体",
  170. "FontBold": "F",
  171. "FontAngle": 0,
  172. "FontColor": "BLACK",
  173. "FontHeight": "25",
  174. "FontItalic": "F",
  175. "FontStrikeOut": "F",
  176. "FontUnderline": "F"
  177. },
  178. "control": "Title",
  179. "style": "Default_None",
  180. "Prefix": "第 ",
  181. "Suffix": " 合同段",
  182. "isAutoHeight": false,
  183. "area": {
  184. "Left": 0,
  185. "Right": "100.00",
  186. "Top": "14",
  187. "Bottom": "39",
  188. "H_CalculationType": "percentage",
  189. "V_CalculationType": "percentage"
  190. }
  191. }
  192. ],
  193. "text_s": [
  194. {
  195. "Label": "月 支 付 报 表",
  196. "font": {
  197. "Name": "宋体",
  198. "FontBold": "T",
  199. "FontAngle": 0,
  200. "FontColor": "BLACK",
  201. "FontHeight": "65",
  202. "FontItalic": "F",
  203. "FontStrikeOut": "F",
  204. "FontUnderline": "F"
  205. },
  206. "control": "Title",
  207. "style": "Default_None",
  208. "Title": "",
  209. "area": {
  210. "Left": 0,
  211. "Right": "100.00",
  212. "Top": "54",
  213. "Bottom": "100.00",
  214. "H_CalculationType": "percentage",
  215. "V_CalculationType": "percentage"
  216. }
  217. },
  218. {
  219. "Label": " ",
  220. "font": "Content",
  221. "control": "Default",
  222. "style": "Default_None",
  223. "Title": "",
  224. "area": {
  225. "Left": 0,
  226. "Right": 100,
  227. "Top": 0,
  228. "Bottom": "14",
  229. "H_CalculationType": "percentage",
  230. "V_CalculationType": "percentage"
  231. }
  232. },
  233. {
  234. "Label": " ",
  235. "font": "Content",
  236. "control": "Default",
  237. "style": "Default_None",
  238. "Title": "",
  239. "area": {
  240. "Left": 0,
  241. "Right": 100,
  242. "Top": "39",
  243. "Bottom": "54",
  244. "H_CalculationType": "percentage",
  245. "V_CalculationType": "percentage"
  246. }
  247. }
  248. ]
  249. },
  250. {
  251. "BandName": "ContentBand",
  252. "discrete_field_s": [
  253. {
  254. "FieldID": 1300,
  255. "font": {
  256. "Name": "宋体",
  257. "FontBold": "F",
  258. "FontAngle": 0,
  259. "FontColor": "BLACK",
  260. "FontHeight": "15",
  261. "FontItalic": "F",
  262. "FontStrikeOut": "F",
  263. "FontUnderline": "F"
  264. },
  265. "control": "Title",
  266. "style": "Default_None",
  267. "Prefix": "第 ",
  268. "Suffix": " 期",
  269. "isAutoHeight": false,
  270. "area": {
  271. "Left": 0,
  272. "Right": 100,
  273. "Top": "22.96",
  274. "Bottom": "33.09",
  275. "H_CalculationType": "percentage",
  276. "V_CalculationType": "percentage"
  277. }
  278. },
  279. {
  280. "FieldID": 1104,
  281. "font": {
  282. "Name": "宋体",
  283. "FontBold": "F",
  284. "FontAngle": 0,
  285. "FontColor": "BLACK",
  286. "FontHeight": "15",
  287. "FontItalic": "F",
  288. "FontStrikeOut": "F",
  289. "FontUnderline": "F"
  290. },
  291. "control": "Header",
  292. "style": "Default_None",
  293. "isAutoHeight": false,
  294. "area": {
  295. "Left": "42",
  296. "Right": 100,
  297. "Top": "54.57",
  298. "Bottom": "63.46",
  299. "H_CalculationType": "percentage",
  300. "V_CalculationType": "percentage"
  301. }
  302. }
  303. ],
  304. "text_s": [
  305. {
  306. "Label": "(第一册)",
  307. "font": {
  308. "Name": "宋体",
  309. "FontBold": "F",
  310. "FontAngle": 0,
  311. "FontColor": "BLACK",
  312. "FontHeight": "25",
  313. "FontItalic": "F",
  314. "FontStrikeOut": "F",
  315. "FontUnderline": "F"
  316. },
  317. "control": "Title",
  318. "style": "Default_None",
  319. "Title": "",
  320. "area": {
  321. "Left": 0,
  322. "Right": "100.00",
  323. "Top": "8.89",
  324. "Bottom": "19.01",
  325. "H_CalculationType": "percentage",
  326. "V_CalculationType": "percentage"
  327. }
  328. },
  329. {
  330. "Label": "承 包 单 位:",
  331. "font": {
  332. "Name": "宋体",
  333. "FontBold": "F",
  334. "FontAngle": 0,
  335. "FontColor": "BLACK",
  336. "FontHeight": "15",
  337. "FontItalic": "F",
  338. "FontStrikeOut": "F",
  339. "FontUnderline": "F"
  340. },
  341. "control": "Header_Right",
  342. "style": "Default_None",
  343. "Title": "",
  344. "area": {
  345. "Left": "0",
  346. "Right": "42",
  347. "Top": "37.04",
  348. "Bottom": "45.93",
  349. "H_CalculationType": "percentage",
  350. "V_CalculationType": "percentage"
  351. }
  352. },
  353. {
  354. "Label": "监 理 单 位:",
  355. "font": {
  356. "Name": "宋体",
  357. "FontBold": "F",
  358. "FontAngle": 0,
  359. "FontColor": "BLACK",
  360. "FontHeight": "15",
  361. "FontItalic": "F",
  362. "FontStrikeOut": "F",
  363. "FontUnderline": "F"
  364. },
  365. "control": "Header_Right",
  366. "style": "Default_None",
  367. "Title": "",
  368. "area": {
  369. "Left": 0,
  370. "Right": "42",
  371. "Top": "45.93",
  372. "Bottom": "54.57",
  373. "H_CalculationType": "percentage",
  374. "V_CalculationType": "percentage"
  375. }
  376. },
  377. {
  378. "Label": "业 主:",
  379. "font": {
  380. "Name": "宋体",
  381. "FontBold": "F",
  382. "FontAngle": 0,
  383. "FontColor": "BLACK",
  384. "FontHeight": "15",
  385. "FontItalic": "F",
  386. "FontStrikeOut": "F",
  387. "FontUnderline": "F"
  388. },
  389. "control": "Header_Right",
  390. "style": "Default_None",
  391. "Title": "",
  392. "area": {
  393. "Left": 0,
  394. "Right": "42",
  395. "Top": "54.57",
  396. "Bottom": "63.46",
  397. "H_CalculationType": "percentage",
  398. "V_CalculationType": "percentage"
  399. }
  400. },
  401. {
  402. "Label": "支 付 证 书 号:",
  403. "font": {
  404. "Name": "宋体",
  405. "FontBold": "F",
  406. "FontAngle": 0,
  407. "FontColor": "BLACK",
  408. "FontHeight": "15",
  409. "FontItalic": "F",
  410. "FontStrikeOut": "F",
  411. "FontUnderline": "F"
  412. },
  413. "control": "Header_Right",
  414. "style": "Default_None",
  415. "Title": "",
  416. "area": {
  417. "Left": 0,
  418. "Right": "42",
  419. "Top": "63.46",
  420. "Bottom": "71.85",
  421. "H_CalculationType": "percentage",
  422. "V_CalculationType": "percentage"
  423. }
  424. },
  425. {
  426. "Label": "编 制 时 间:",
  427. "font": {
  428. "Name": "宋体",
  429. "FontBold": "F",
  430. "FontAngle": 0,
  431. "FontColor": "BLACK",
  432. "FontHeight": "15",
  433. "FontItalic": "F",
  434. "FontStrikeOut": "F",
  435. "FontUnderline": "F"
  436. },
  437. "control": "Header_Right",
  438. "style": "Default_None",
  439. "Title": "",
  440. "area": {
  441. "Left": 0,
  442. "Right": "42",
  443. "Top": "71.85",
  444. "Bottom": "80.74",
  445. "H_CalculationType": "percentage",
  446. "V_CalculationType": "percentage"
  447. }
  448. }
  449. ]
  450. }
  451. ],
  452. "账单式表_数据": {
  453. "BandName": "ContentBand",
  454. "bill_field_s": [
  455. {
  456. "FieldID": 1134,
  457. "font": {
  458. "Name": "宋体",
  459. "FontBold": "F",
  460. "FontAngle": 0,
  461. "FontColor": "BLACK",
  462. "FontHeight": "15",
  463. "FontItalic": "F",
  464. "FontStrikeOut": "F",
  465. "FontUnderline": "F"
  466. },
  467. "control": "Header",
  468. "style": "Default_None",
  469. "isAutoHeight": false,
  470. "area": {
  471. "Left": "42",
  472. "Right": "100",
  473. "Top": "37.04",
  474. "Bottom": "45.93",
  475. "H_CalculationType": "percentage",
  476. "V_CalculationType": "percentage"
  477. }
  478. },
  479. {
  480. "FieldID": 1140,
  481. "font": {
  482. "Name": "宋体",
  483. "FontBold": "F",
  484. "FontAngle": 0,
  485. "FontColor": "BLACK",
  486. "FontHeight": "15",
  487. "FontItalic": "F",
  488. "FontStrikeOut": "F",
  489. "FontUnderline": "F"
  490. },
  491. "control": "Header",
  492. "style": "Default_None",
  493. "isAutoHeight": false,
  494. "area": {
  495. "Left": "42",
  496. "Right": "100.00",
  497. "Top": "45.93",
  498. "Bottom": "54.57",
  499. "H_CalculationType": "percentage",
  500. "V_CalculationType": "percentage"
  501. }
  502. },
  503. {
  504. "FieldID": 1104,
  505. "font": {
  506. "Name": "宋体",
  507. "FontBold": "F",
  508. "FontAngle": 0,
  509. "FontColor": "BLACK",
  510. "FontHeight": "15",
  511. "FontItalic": "F",
  512. "FontStrikeOut": "F",
  513. "FontUnderline": "F"
  514. },
  515. "control": "Header",
  516. "style": "Default_None",
  517. "isAutoHeight": false,
  518. "area": {
  519. "Left": "42",
  520. "Right": "100",
  521. "Top": "54.57",
  522. "Bottom": "63.46",
  523. "H_CalculationType": "percentage",
  524. "V_CalculationType": "percentage"
  525. }
  526. },
  527. {
  528. "FieldID": 1300,
  529. "font": {
  530. "Name": "宋体",
  531. "FontBold": "F",
  532. "FontAngle": 0,
  533. "FontColor": "BLACK",
  534. "FontHeight": "15",
  535. "FontItalic": "F",
  536. "FontStrikeOut": "F",
  537. "FontUnderline": "F"
  538. },
  539. "control": "Header",
  540. "style": "Default_None",
  541. "isAutoHeight": false,
  542. "area": {
  543. "Left": "42",
  544. "Right": 100,
  545. "Top": "63.46",
  546. "Bottom": "71.85",
  547. "H_CalculationType": "percentage",
  548. "V_CalculationType": "percentage"
  549. }
  550. },
  551. {
  552. "FieldID": 1301,
  553. "font": {
  554. "Name": "宋体",
  555. "FontBold": "F",
  556. "FontAngle": 0,
  557. "FontColor": "BLACK",
  558. "FontHeight": "15",
  559. "FontItalic": "F",
  560. "FontStrikeOut": "F",
  561. "FontUnderline": "F"
  562. },
  563. "control": "Header",
  564. "style": "Default_None",
  565. "isAutoHeight": false,
  566. "area": {
  567. "Left": "42",
  568. "Right": 100,
  569. "Top": "71.85",
  570. "Bottom": "80.74",
  571. "H_CalculationType": "percentage",
  572. "V_CalculationType": "percentage"
  573. }
  574. }
  575. ]
  576. }
  577. },
  578. "指标_数据_映射": {
  579. "离散指标_集合": [
  580. {
  581. "ID": 1101,
  582. "Name": "标段_项目名称",
  583. "DataType": "string",
  584. "TableName": "tender_info",
  585. "mapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'deal_info.buildName')",
  586. "descr": "",
  587. "Title": "ID: 1101"
  588. },
  589. {
  590. "ID": 1105,
  591. "Name": "标段_建设单位法人代表",
  592. "DataType": "string",
  593. "TableName": "tender_info",
  594. "mapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'construction_unit.build.corporation')",
  595. "descr": "",
  596. "Title": "ID: 1105"
  597. },
  598. {
  599. "ID": 1106,
  600. "Name": "标段_建设时间",
  601. "DataType": "string",
  602. "TableName": "tender_info",
  603. "mapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'construction_unit.build.date')",
  604. "descr": "",
  605. "Title": "ID: 1106"
  606. },
  607. {
  608. "ID": 1102,
  609. "Name": "标段_合同编号",
  610. "DataType": "string",
  611. "TableName": "tender_info",
  612. "mapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'deal_info.dealCode')",
  613. "descr": "",
  614. "Title": "ID: 1102"
  615. },
  616. {
  617. "ID": 1104,
  618. "Name": "标段_建设单位",
  619. "DataType": "string",
  620. "TableName": "tender_info",
  621. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"construction_unit.build.company\")",
  622. "descr": "",
  623. "Title": "ID: 1104"
  624. },
  625. {
  626. "ID": 1103,
  627. "Name": "标段_合同名称",
  628. "DataType": "string",
  629. "TableName": "tender_info",
  630. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"deal_info.dealName\")",
  631. "descr": "",
  632. "Title": "ID: 1103"
  633. }
  634. ],
  635. "主数据指标_集合": [],
  636. "从数据指标_集合": [
  637. {
  638. "ID": 1134,
  639. "Name": "标段_标段清单_承包单位1_单位名称",
  640. "DataType": "string",
  641. "TableName": "tender_info",
  642. "mapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'construction_unit.contract1.company')",
  643. "descr": "",
  644. "Title": "ID: 1134"
  645. },
  646. {
  647. "ID": 1140,
  648. "Name": "标段_标段清单_监理单位1_单位名称",
  649. "DataType": "string",
  650. "TableName": "tender_info",
  651. "mapExpression": "$PROJECT.REPORT.getProperty('tender_info', 'construction_unit.supervision1.company')",
  652. "descr": "",
  653. "Title": "ID: 1140"
  654. },
  655. {
  656. "ID": 1300,
  657. "Name": "期计量信息_期数",
  658. "DataType": "number",
  659. "TableName": "stage",
  660. "mapExpression": "$PROJECT.REPORT.getProperty(\"stage\", \"order\")",
  661. "descr": "",
  662. "Title": "ID: 1300"
  663. },
  664. {
  665. "ID": 1301,
  666. "Name": "期计量信息_计量时间",
  667. "DataType": "string",
  668. "TableName": "stage",
  669. "mapExpression": "$PROJECT.REPORT.getProperty(\"stage\", \"s_time\")",
  670. "descr": "",
  671. "Title": "ID: 1301"
  672. }
  673. ]
  674. },
  675. "映射数据预处理": [],
  676. "无映射离散指标_集合": [],
  677. "动态日期离散参数_集合": [],
  678. "电子签名离散指标_集合": []
  679. }