封面.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  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. "方向": "PORTRAIT",
  19. "页规格": "A4"
  20. }
  21. },
  22. "布局框_集合": [
  23. {
  24. "Alignment": "Top",
  25. "DisplayType": "EveryPage",
  26. "Height": "4",
  27. "Name": "TitleBand",
  28. "control": "Default",
  29. "style": "Default_None",
  30. "MergeBorder": "F"
  31. },
  32. {
  33. "Alignment": "Top",
  34. "DisplayType": "EveryPage",
  35. "Height": "12.73",
  36. "Name": "HeaderBand",
  37. "control": "Default",
  38. "style": "Default_None",
  39. "MergeBorder": "F"
  40. },
  41. {
  42. "Alignment": "Bottom",
  43. "DisplayType": "EveryPage",
  44. "Height": "2.73",
  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(1312,$CURRENT_RPT);\nlet jzrq = $JE.getFieldValue(rpt, $CURRENT_DATA, 0, '')\nlet shiJian = jzrq.split('-');\n\nif(shiJian[0]!==''){\n\tlet newRiQiValue = shiJian[0]+\"年\"+shiJian[1]+\"月\"+shiJian[2]+\"日\";\n\t$JE.setFieldValue(rpt, $CURRENT_DATA, 0, newRiQiValue);\n}",
  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": 1002,
  122. "font": "ReportTitle_Vice_1",
  123. "control": "Content_Center",
  124. "style": "Default_None",
  125. "isAutoHeight": false,
  126. "area": {
  127. "Left": 0,
  128. "Right": "100.00",
  129. "Top": "0",
  130. "Bottom": "100.00",
  131. "H_CalculationType": "percentage",
  132. "V_CalculationType": "percentage"
  133. }
  134. }
  135. ]
  136. },
  137. {
  138. "BandName": "HeaderBand",
  139. "discrete_field_s": [
  140. {
  141. "FieldID": 1103,
  142. "font": "ReportTitle_Vice_2",
  143. "control": "Title",
  144. "style": "Default_None",
  145. "isAutoHeight": false,
  146. "area": {
  147. "Left": 0,
  148. "Right": "100.00",
  149. "Top": "6.03",
  150. "Bottom": "12.06",
  151. "H_CalculationType": "percentage",
  152. "V_CalculationType": "percentage"
  153. }
  154. },
  155. {
  156. "FieldID": 1102,
  157. "font": "ReportTitle_Vice_2",
  158. "control": "Title",
  159. "style": "Default_None",
  160. "Prefix": "合同编号:",
  161. "isAutoHeight": false,
  162. "area": {
  163. "Left": 0,
  164. "Right": "100.00",
  165. "Top": "18.09",
  166. "Bottom": "24.12",
  167. "H_CalculationType": "percentage",
  168. "V_CalculationType": "percentage"
  169. }
  170. },
  171. {
  172. "FieldID": 1300,
  173. "font": "ReportTitle_Vice_2",
  174. "control": "Title",
  175. "style": "Default_None",
  176. "Prefix": "第 ",
  177. "Suffix": " 期",
  178. "isAutoHeight": false,
  179. "area": {
  180. "Left": 0,
  181. "Right": "100.00",
  182. "Top": "50.31",
  183. "Bottom": "58.84",
  184. "H_CalculationType": "percentage",
  185. "V_CalculationType": "percentage"
  186. }
  187. },
  188. {
  189. "FieldID": 1146,
  190. "font": "ReportTitle_Vice_2",
  191. "control": "Header_Right",
  192. "style": "Default_None",
  193. "Prefix": "(",
  194. "isAutoHeight": false,
  195. "area": {
  196. "Left": 0,
  197. "Right": "46.94",
  198. "Top": "58.84",
  199. "Bottom": "73.18",
  200. "H_CalculationType": "percentage",
  201. "V_CalculationType": "percentage"
  202. }
  203. },
  204. {
  205. "FieldID": 1153,
  206. "font": "ReportTitle_Vice_2",
  207. "control": "Header",
  208. "style": "Default_None",
  209. "Suffix": ")",
  210. "isAutoHeight": false,
  211. "area": {
  212. "Left": "53.06",
  213. "Right": "100.00",
  214. "Top": "58.84",
  215. "Bottom": "73.18",
  216. "H_CalculationType": "percentage",
  217. "V_CalculationType": "percentage"
  218. }
  219. }
  220. ],
  221. "text_s": [
  222. {
  223. "Label": "中 期 计 量 支 付 报 表",
  224. "font": "ReportTitle_Main",
  225. "control": "Title",
  226. "style": "Default_None",
  227. "Title": "",
  228. "area": {
  229. "Left": 0,
  230. "Right": "100.00",
  231. "Top": "24.12",
  232. "Bottom": "50.31",
  233. "H_CalculationType": "percentage",
  234. "V_CalculationType": "percentage"
  235. }
  236. },
  237. {
  238. "Label": "~",
  239. "font": "Content",
  240. "control": "Title",
  241. "style": "Default_None",
  242. "Title": "",
  243. "area": {
  244. "Left": "46.94",
  245. "Right": "53.06",
  246. "Top": "58.84",
  247. "Bottom": "73.18",
  248. "H_CalculationType": "percentage",
  249. "V_CalculationType": "percentage"
  250. }
  251. }
  252. ]
  253. },
  254. {
  255. "BandName": "ContentBand",
  256. "discrete_field_s": [
  257. {
  258. "FieldID": 1134,
  259. "font": "ReportTitle_Vice_2",
  260. "control": "Column_Left",
  261. "style": "Default_None",
  262. "isAutoHeight": false,
  263. "area": {
  264. "Left": "33",
  265. "Right": 100,
  266. "Top": 0,
  267. "Bottom": "20",
  268. "H_CalculationType": "percentage",
  269. "V_CalculationType": "percentage"
  270. }
  271. },
  272. {
  273. "FieldID": 1104,
  274. "font": "ReportTitle_Vice_2",
  275. "control": "Column_Left",
  276. "style": "Default_None",
  277. "isAutoHeight": false,
  278. "area": {
  279. "Left": "33",
  280. "Right": 100,
  281. "Top": "59.7",
  282. "Bottom": "80",
  283. "H_CalculationType": "percentage",
  284. "V_CalculationType": "percentage"
  285. }
  286. },
  287. {
  288. "FieldID": 1312,
  289. "font": "ReportTitle_Vice_2",
  290. "control": "Column_Left",
  291. "style": "Default_None",
  292. "isAutoHeight": false,
  293. "area": {
  294. "Left": "33",
  295. "Right": 100,
  296. "Top": "80",
  297. "Bottom": 100,
  298. "H_CalculationType": "percentage",
  299. "V_CalculationType": "percentage"
  300. }
  301. },
  302. {
  303. "FieldID": 1140,
  304. "font": "ReportTitle_Vice_2",
  305. "control": "Column_Left",
  306. "style": "Default_None",
  307. "isAutoHeight": false,
  308. "area": {
  309. "Left": "33",
  310. "Right": 100,
  311. "Top": "40.3",
  312. "Bottom": "59.7",
  313. "H_CalculationType": "percentage",
  314. "V_CalculationType": "percentage"
  315. }
  316. }
  317. ],
  318. "text_s": [
  319. {
  320. "Label": "中国有色金属工业第六冶金建设有限公司",
  321. "font": "ReportTitle_Vice_2",
  322. "control": "Header",
  323. "style": "Default_None",
  324. "Title": "",
  325. "area": {
  326. "Left": "33",
  327. "Right": "100.00",
  328. "Top": "20.00",
  329. "Bottom": "40.30",
  330. "H_CalculationType": "percentage",
  331. "V_CalculationType": "percentage"
  332. }
  333. },
  334. {
  335. "Label": "承包单位:",
  336. "font": "ReportTitle_Vice_2",
  337. "control": "Header_Right",
  338. "style": "Default_None",
  339. "Title": "",
  340. "area": {
  341. "Left": "0",
  342. "Right": "33",
  343. "Top": 0,
  344. "Bottom": "20.00",
  345. "H_CalculationType": "percentage",
  346. "V_CalculationType": "percentage"
  347. }
  348. },
  349. {
  350. "Label": "总包单位:",
  351. "font": "ReportTitle_Vice_2",
  352. "control": "Header_Right",
  353. "style": "Default_None",
  354. "Title": "",
  355. "area": {
  356. "Left": 0,
  357. "Right": "33",
  358. "Top": "20.00",
  359. "Bottom": "40.30",
  360. "H_CalculationType": "percentage",
  361. "V_CalculationType": "percentage"
  362. }
  363. },
  364. {
  365. "Label": "监理单位:",
  366. "font": "ReportTitle_Vice_2",
  367. "control": "Header_Right",
  368. "style": "Default_None",
  369. "Title": "",
  370. "area": {
  371. "Left": 0,
  372. "Right": "33",
  373. "Top": "40.30",
  374. "Bottom": "59.70",
  375. "H_CalculationType": "percentage",
  376. "V_CalculationType": "percentage"
  377. }
  378. },
  379. {
  380. "Label": "建设单位:",
  381. "font": "ReportTitle_Vice_2",
  382. "control": "Header_Right",
  383. "style": "Default_None",
  384. "Title": "",
  385. "area": {
  386. "Left": 0,
  387. "Right": "33",
  388. "Top": "59.70",
  389. "Bottom": "80.00",
  390. "H_CalculationType": "percentage",
  391. "V_CalculationType": "percentage"
  392. }
  393. },
  394. {
  395. "Label": "填报日期:",
  396. "font": "ReportTitle_Vice_2",
  397. "control": "Header_Right",
  398. "style": "Default_None",
  399. "Title": "",
  400. "area": {
  401. "Left": 0,
  402. "Right": "33",
  403. "Top": "80.00",
  404. "Bottom": "100.00",
  405. "H_CalculationType": "percentage",
  406. "V_CalculationType": "percentage"
  407. }
  408. }
  409. ]
  410. }
  411. ],
  412. "账单式表_数据": {
  413. "BandName": "ContentBand",
  414. "bill_field_s": []
  415. }
  416. },
  417. "指标_数据_映射": {
  418. "离散指标_集合": [
  419. {
  420. "ID": 1002,
  421. "Name": "项目_名称",
  422. "DataType": "string",
  423. "TableName": "project",
  424. "mapExpression": "$PROJECT.REPORT.getProperty(\"project\", \"name\")",
  425. "descr": "",
  426. "Title": "ID: 1002"
  427. },
  428. {
  429. "ID": 1102,
  430. "Name": "标段_合同编号",
  431. "DataType": "string",
  432. "TableName": "tender_info",
  433. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"deal_info.dealCode\")",
  434. "descr": "",
  435. "Title": "ID: 1102"
  436. },
  437. {
  438. "ID": 1300,
  439. "Name": "期计量信息_期数",
  440. "DataType": "number",
  441. "TableName": "stage",
  442. "mapExpression": "$PROJECT.REPORT.getProperty(\"stage\", \"order\")",
  443. "descr": "",
  444. "Title": "ID: 1300"
  445. },
  446. {
  447. "ID": 1311,
  448. "Name": "期计量信息_开始日期",
  449. "DataType": "string",
  450. "TableName": "stage",
  451. "mapExpression": "$PROJECT.REPORT.getSplitProperty(\"stage\", \"period\", \" ~ \", 0, \"\")",
  452. "descr": "",
  453. "Title": "ID: 1311"
  454. },
  455. {
  456. "ID": 1312,
  457. "Name": "期计量信息_截至日期",
  458. "DataType": "string",
  459. "TableName": "stage",
  460. "mapExpression": "$PROJECT.REPORT.getSplitProperty(\"stage\", \"period\", \" ~ \", 1, \"\")",
  461. "descr": "",
  462. "Title": "ID: 1312"
  463. },
  464. {
  465. "ID": 1104,
  466. "Name": "标段_建设单位",
  467. "DataType": "string",
  468. "TableName": "tender_info",
  469. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"construction_unit.build.company\")",
  470. "descr": "",
  471. "Title": "ID: 1104"
  472. },
  473. {
  474. "ID": 1134,
  475. "Name": "标段_标段清单_承包单位1_单位名称",
  476. "DataType": "string",
  477. "TableName": "tender_info",
  478. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"construction_unit.contract1.company\")",
  479. "descr": "",
  480. "Title": "ID: 1134"
  481. },
  482. {
  483. "ID": 1141,
  484. "Name": "标段_标段清单_监理单位1_法人代表",
  485. "DataType": "string",
  486. "TableName": "tender_info",
  487. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"construction_unit.supervision1.corporation\")",
  488. "descr": "",
  489. "Title": "ID: 1141"
  490. },
  491. {
  492. "ID": 1146,
  493. "Name": "标段_技术参数_开工令日期",
  494. "DataType": "string",
  495. "TableName": "tender_info",
  496. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"tech_param.startDate\")",
  497. "descr": "",
  498. "Title": "ID: 1146"
  499. },
  500. {
  501. "ID": 1153,
  502. "Name": "标段_技术参数_计划完工日期",
  503. "DataType": "double",
  504. "TableName": "tender_info",
  505. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"tech_param.planEndDate\")",
  506. "descr": "",
  507. "Title": "ID: 1153"
  508. },
  509. {
  510. "ID": 1140,
  511. "Name": "标段_标段清单_监理单位1_单位名称",
  512. "DataType": "string",
  513. "TableName": "tender_info",
  514. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"construction_unit.supervision1.company\")",
  515. "descr": "",
  516. "Title": "ID: 1140"
  517. }
  518. ],
  519. "主数据指标_集合": [],
  520. "从数据指标_集合": [
  521. {
  522. "ID": 1103,
  523. "Name": "标段_合同名称",
  524. "DataType": "string",
  525. "TableName": "tender_info",
  526. "mapExpression": "$PROJECT.REPORT.getProperty(\"tender_info\", \"deal_info.dealName\")",
  527. "descr": "",
  528. "Title": "ID: 1103"
  529. }
  530. ]
  531. },
  532. "映射数据预处理": [],
  533. "无映射离散指标_集合": [],
  534. "动态日期离散参数_集合": [],
  535. "电子签名离散指标_集合": []
  536. }