sys_pipe.clmt 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  1. <templet>
  2. <version>1.0</version>
  3. <procedure _name="target">
  4. <elements>
  5. <tables_query>
  6. <name>query</name>
  7. <description>查询管线范围</description>
  8. <dataSource>poc</dataSource>
  9. <customFields></customFields>
  10. <tables>
  11. <mtq_table>
  12. <table>main_scope</table>
  13. <fieldsWhere>
  14. <type>='pipe_sys'</type>
  15. </fieldsWhere>
  16. </mtq_table>
  17. <mtq_table>
  18. <table>pipe_scope</table>
  19. <fields>
  20. <bogda_item>
  21. <bogda_item>sys</bogda_item>
  22. <bogda_null/>
  23. </bogda_item>
  24. <bogda_item>
  25. <bogda_item>code</bogda_item>
  26. <bogda_item>pipeCode</bogda_item>
  27. </bogda_item>
  28. <bogda_item>
  29. <bogda_item>main</bogda_item>
  30. <bogda_null/>
  31. </bogda_item>
  32. <bogda_item>
  33. <bogda_item>branch</bogda_item>
  34. <bogda_null/>
  35. </bogda_item>
  36. <bogda_item>
  37. <bogda_item>other</bogda_item>
  38. <bogda_null/>
  39. </bogda_item>
  40. </fields>
  41. </mtq_table>
  42. </tables>
  43. <relations>
  44. <table_relation>
  45. <table1>main_scope</table1>
  46. <field1>code</field1>
  47. <table2>pipe_scope</table2>
  48. <field2>sys</field2>
  49. </table_relation>
  50. </relations>
  51. </tables_query>
  52. <json_query>
  53. <name>pipeQuery</name>
  54. <json>clmt('dict/types', null, 'pipe')</json>
  55. </json_query>
  56. <ref_res>
  57. <name>headers</name>
  58. <ref>resource/headers</ref>
  59. </ref_res>
  60. <http_do>
  61. <name>sysData</name>
  62. <http_req name="req">
  63. <url>http://47.93.22.124/datacenter/dict/category</url>
  64. <method>POST</method>
  65. <headersVar>headers</headersVar>
  66. <params>
  67. <property>
  68. <key>type</key>
  69. <value>majorSystem</value>
  70. </property>
  71. </params>
  72. </http_req>
  73. </http_do>
  74. <variable>
  75. <name>add</name>
  76. <assignment>query.addCol({
  77. sysName: get(treeNode(sysData.content, 'code', query.sys, false), 'name'),
  78. pipeName: pipeQuery.get(pipeQuery.name, pipeQuery.code==query.pipeCode)
  79. })</assignment>
  80. </variable>
  81. <logic_grid>
  82. <name>grid</name>
  83. <l_grid name="grid">
  84. <rowCount>10</rowCount>
  85. <colCount>9</colCount>
  86. <rows>
  87. <l_row>
  88. <index>0</index>
  89. </l_row>
  90. <l_row>
  91. <index>1</index>
  92. </l_row>
  93. <l_row>
  94. <index>2</index>
  95. </l_row>
  96. <l_row>
  97. <index>3</index>
  98. </l_row>
  99. <l_row>
  100. <index>4</index>
  101. </l_row>
  102. <l_row>
  103. <index>5</index>
  104. </l_row>
  105. <l_row>
  106. <index>6</index>
  107. </l_row>
  108. <l_row>
  109. <index>7</index>
  110. </l_row>
  111. <l_row>
  112. <index>8</index>
  113. </l_row>
  114. <l_row>
  115. <index>9</index>
  116. </l_row>
  117. </rows>
  118. <columns>
  119. <l_col>
  120. <index>0</index>
  121. </l_col>
  122. <l_col>
  123. <index>1</index>
  124. </l_col>
  125. <l_col>
  126. <index>2</index>
  127. </l_col>
  128. <l_col>
  129. <index>3</index>
  130. </l_col>
  131. <l_col>
  132. <index>4</index>
  133. </l_col>
  134. <l_col>
  135. <index>5</index>
  136. </l_col>
  137. <l_col>
  138. <index>6</index>
  139. </l_col>
  140. <l_col>
  141. <index>7</index>
  142. </l_col>
  143. <l_col>
  144. <index>8</index>
  145. </l_col>
  146. </columns>
  147. <cells>
  148. <bogda_item>
  149. <l_cell>
  150. <l_replication _name="replication">
  151. <dataBind>=query.group(sys)</dataBind>
  152. <dimension>1</dimension>
  153. </l_replication>
  154. <rowIndex>0</rowIndex>
  155. <colIndex>0</colIndex>
  156. <props>
  157. <data>=query.sys</data>
  158. <data_id>sys</data_id>
  159. </props>
  160. </l_cell>
  161. <l_cell>
  162. <rowIndex>0</rowIndex>
  163. <colIndex>1</colIndex>
  164. <props>
  165. <data>=query.sysName</data>
  166. <data_id>sysName</data_id>
  167. </props>
  168. </l_cell>
  169. <l_cell>
  170. <l_replication _name="replication">
  171. <dataBind>=query.list()</dataBind>
  172. <dimension>1</dimension>
  173. </l_replication>
  174. <rowIndex>0</rowIndex>
  175. <colIndex>2</colIndex>
  176. <props>
  177. <data_id>children</data_id>
  178. </props>
  179. </l_cell>
  180. <l_cell>
  181. <rowIndex>0</rowIndex>
  182. <colIndex>3</colIndex>
  183. <props>
  184. <data>=query.pipeCode</data>
  185. <data_id>pipe_code</data_id>
  186. </props>
  187. </l_cell>
  188. <l_cell>
  189. <rowIndex>0</rowIndex>
  190. <colIndex>4</colIndex>
  191. <props>
  192. <data>=query.pipeName</data>
  193. <data_id>pipeName</data_id>
  194. </props>
  195. </l_cell>
  196. <l_cell>
  197. <rowIndex>0</rowIndex>
  198. <colIndex>5</colIndex>
  199. <props>
  200. <data>=query.main</data>
  201. <data_id>main</data_id>
  202. </props>
  203. </l_cell>
  204. <l_cell>
  205. <rowIndex>0</rowIndex>
  206. <colIndex>6</colIndex>
  207. <props>
  208. <data>=query.branch</data>
  209. <data_id>branch</data_id>
  210. </props>
  211. </l_cell>
  212. <l_cell>
  213. <rowIndex>0</rowIndex>
  214. <colIndex>7</colIndex>
  215. <props>
  216. <data>=query.other</data>
  217. <data_id>other</data_id>
  218. </props>
  219. </l_cell>
  220. <l_cell>
  221. <rowIndex>0</rowIndex>
  222. <colIndex>8</colIndex>
  223. </l_cell>
  224. </bogda_item>
  225. <bogda_item>
  226. <l_cell>
  227. <rowIndex>1</rowIndex>
  228. <colIndex>0</colIndex>
  229. </l_cell>
  230. <l_cell>
  231. <rowIndex>1</rowIndex>
  232. <colIndex>1</colIndex>
  233. </l_cell>
  234. <l_cell>
  235. <rowIndex>1</rowIndex>
  236. <colIndex>2</colIndex>
  237. </l_cell>
  238. <l_cell>
  239. <rowIndex>1</rowIndex>
  240. <colIndex>3</colIndex>
  241. </l_cell>
  242. <l_cell>
  243. <rowIndex>1</rowIndex>
  244. <colIndex>4</colIndex>
  245. </l_cell>
  246. <l_cell>
  247. <rowIndex>1</rowIndex>
  248. <colIndex>5</colIndex>
  249. </l_cell>
  250. <l_cell>
  251. <rowIndex>1</rowIndex>
  252. <colIndex>6</colIndex>
  253. </l_cell>
  254. <l_cell>
  255. <rowIndex>1</rowIndex>
  256. <colIndex>7</colIndex>
  257. </l_cell>
  258. <l_cell>
  259. <rowIndex>1</rowIndex>
  260. <colIndex>8</colIndex>
  261. </l_cell>
  262. </bogda_item>
  263. <bogda_item>
  264. <l_cell>
  265. <rowIndex>2</rowIndex>
  266. <colIndex>0</colIndex>
  267. </l_cell>
  268. <l_cell>
  269. <rowIndex>2</rowIndex>
  270. <colIndex>1</colIndex>
  271. </l_cell>
  272. <l_cell>
  273. <rowIndex>2</rowIndex>
  274. <colIndex>2</colIndex>
  275. </l_cell>
  276. <l_cell>
  277. <rowIndex>2</rowIndex>
  278. <colIndex>3</colIndex>
  279. </l_cell>
  280. <l_cell>
  281. <rowIndex>2</rowIndex>
  282. <colIndex>4</colIndex>
  283. </l_cell>
  284. <l_cell>
  285. <rowIndex>2</rowIndex>
  286. <colIndex>5</colIndex>
  287. </l_cell>
  288. <l_cell>
  289. <rowIndex>2</rowIndex>
  290. <colIndex>6</colIndex>
  291. </l_cell>
  292. <l_cell>
  293. <rowIndex>2</rowIndex>
  294. <colIndex>7</colIndex>
  295. </l_cell>
  296. <l_cell>
  297. <rowIndex>2</rowIndex>
  298. <colIndex>8</colIndex>
  299. </l_cell>
  300. </bogda_item>
  301. <bogda_item>
  302. <l_cell>
  303. <rowIndex>3</rowIndex>
  304. <colIndex>0</colIndex>
  305. </l_cell>
  306. <l_cell>
  307. <rowIndex>3</rowIndex>
  308. <colIndex>1</colIndex>
  309. </l_cell>
  310. <l_cell>
  311. <rowIndex>3</rowIndex>
  312. <colIndex>2</colIndex>
  313. </l_cell>
  314. <l_cell>
  315. <rowIndex>3</rowIndex>
  316. <colIndex>3</colIndex>
  317. </l_cell>
  318. <l_cell>
  319. <rowIndex>3</rowIndex>
  320. <colIndex>4</colIndex>
  321. </l_cell>
  322. <l_cell>
  323. <rowIndex>3</rowIndex>
  324. <colIndex>5</colIndex>
  325. </l_cell>
  326. <l_cell>
  327. <rowIndex>3</rowIndex>
  328. <colIndex>6</colIndex>
  329. </l_cell>
  330. <l_cell>
  331. <rowIndex>3</rowIndex>
  332. <colIndex>7</colIndex>
  333. </l_cell>
  334. <l_cell>
  335. <rowIndex>3</rowIndex>
  336. <colIndex>8</colIndex>
  337. </l_cell>
  338. </bogda_item>
  339. <bogda_item>
  340. <l_cell>
  341. <rowIndex>4</rowIndex>
  342. <colIndex>0</colIndex>
  343. </l_cell>
  344. <l_cell>
  345. <rowIndex>4</rowIndex>
  346. <colIndex>1</colIndex>
  347. </l_cell>
  348. <l_cell>
  349. <rowIndex>4</rowIndex>
  350. <colIndex>2</colIndex>
  351. </l_cell>
  352. <l_cell>
  353. <rowIndex>4</rowIndex>
  354. <colIndex>3</colIndex>
  355. </l_cell>
  356. <l_cell>
  357. <rowIndex>4</rowIndex>
  358. <colIndex>4</colIndex>
  359. </l_cell>
  360. <l_cell>
  361. <rowIndex>4</rowIndex>
  362. <colIndex>5</colIndex>
  363. </l_cell>
  364. <l_cell>
  365. <rowIndex>4</rowIndex>
  366. <colIndex>6</colIndex>
  367. </l_cell>
  368. <l_cell>
  369. <rowIndex>4</rowIndex>
  370. <colIndex>7</colIndex>
  371. </l_cell>
  372. <l_cell>
  373. <rowIndex>4</rowIndex>
  374. <colIndex>8</colIndex>
  375. </l_cell>
  376. </bogda_item>
  377. <bogda_item>
  378. <l_cell>
  379. <rowIndex>5</rowIndex>
  380. <colIndex>0</colIndex>
  381. </l_cell>
  382. <l_cell>
  383. <rowIndex>5</rowIndex>
  384. <colIndex>1</colIndex>
  385. </l_cell>
  386. <l_cell>
  387. <rowIndex>5</rowIndex>
  388. <colIndex>2</colIndex>
  389. </l_cell>
  390. <l_cell>
  391. <rowIndex>5</rowIndex>
  392. <colIndex>3</colIndex>
  393. </l_cell>
  394. <l_cell>
  395. <rowIndex>5</rowIndex>
  396. <colIndex>4</colIndex>
  397. </l_cell>
  398. <l_cell>
  399. <rowIndex>5</rowIndex>
  400. <colIndex>5</colIndex>
  401. </l_cell>
  402. <l_cell>
  403. <rowIndex>5</rowIndex>
  404. <colIndex>6</colIndex>
  405. </l_cell>
  406. <l_cell>
  407. <rowIndex>5</rowIndex>
  408. <colIndex>7</colIndex>
  409. </l_cell>
  410. <l_cell>
  411. <rowIndex>5</rowIndex>
  412. <colIndex>8</colIndex>
  413. </l_cell>
  414. </bogda_item>
  415. <bogda_item>
  416. <l_cell>
  417. <rowIndex>6</rowIndex>
  418. <colIndex>0</colIndex>
  419. </l_cell>
  420. <l_cell>
  421. <rowIndex>6</rowIndex>
  422. <colIndex>1</colIndex>
  423. </l_cell>
  424. <l_cell>
  425. <rowIndex>6</rowIndex>
  426. <colIndex>2</colIndex>
  427. </l_cell>
  428. <l_cell>
  429. <rowIndex>6</rowIndex>
  430. <colIndex>3</colIndex>
  431. </l_cell>
  432. <l_cell>
  433. <rowIndex>6</rowIndex>
  434. <colIndex>4</colIndex>
  435. </l_cell>
  436. <l_cell>
  437. <rowIndex>6</rowIndex>
  438. <colIndex>5</colIndex>
  439. </l_cell>
  440. <l_cell>
  441. <rowIndex>6</rowIndex>
  442. <colIndex>6</colIndex>
  443. </l_cell>
  444. <l_cell>
  445. <rowIndex>6</rowIndex>
  446. <colIndex>7</colIndex>
  447. </l_cell>
  448. <l_cell>
  449. <rowIndex>6</rowIndex>
  450. <colIndex>8</colIndex>
  451. </l_cell>
  452. </bogda_item>
  453. <bogda_item>
  454. <l_cell>
  455. <rowIndex>7</rowIndex>
  456. <colIndex>0</colIndex>
  457. </l_cell>
  458. <l_cell>
  459. <rowIndex>7</rowIndex>
  460. <colIndex>1</colIndex>
  461. </l_cell>
  462. <l_cell>
  463. <rowIndex>7</rowIndex>
  464. <colIndex>2</colIndex>
  465. </l_cell>
  466. <l_cell>
  467. <rowIndex>7</rowIndex>
  468. <colIndex>3</colIndex>
  469. </l_cell>
  470. <l_cell>
  471. <rowIndex>7</rowIndex>
  472. <colIndex>4</colIndex>
  473. </l_cell>
  474. <l_cell>
  475. <rowIndex>7</rowIndex>
  476. <colIndex>5</colIndex>
  477. </l_cell>
  478. <l_cell>
  479. <rowIndex>7</rowIndex>
  480. <colIndex>6</colIndex>
  481. </l_cell>
  482. <l_cell>
  483. <rowIndex>7</rowIndex>
  484. <colIndex>7</colIndex>
  485. </l_cell>
  486. <l_cell>
  487. <rowIndex>7</rowIndex>
  488. <colIndex>8</colIndex>
  489. </l_cell>
  490. </bogda_item>
  491. <bogda_item>
  492. <l_cell>
  493. <rowIndex>8</rowIndex>
  494. <colIndex>0</colIndex>
  495. </l_cell>
  496. <l_cell>
  497. <rowIndex>8</rowIndex>
  498. <colIndex>1</colIndex>
  499. </l_cell>
  500. <l_cell>
  501. <rowIndex>8</rowIndex>
  502. <colIndex>2</colIndex>
  503. </l_cell>
  504. <l_cell>
  505. <rowIndex>8</rowIndex>
  506. <colIndex>3</colIndex>
  507. </l_cell>
  508. <l_cell>
  509. <rowIndex>8</rowIndex>
  510. <colIndex>4</colIndex>
  511. </l_cell>
  512. <l_cell>
  513. <rowIndex>8</rowIndex>
  514. <colIndex>5</colIndex>
  515. </l_cell>
  516. <l_cell>
  517. <rowIndex>8</rowIndex>
  518. <colIndex>6</colIndex>
  519. </l_cell>
  520. <l_cell>
  521. <rowIndex>8</rowIndex>
  522. <colIndex>7</colIndex>
  523. </l_cell>
  524. <l_cell>
  525. <rowIndex>8</rowIndex>
  526. <colIndex>8</colIndex>
  527. </l_cell>
  528. </bogda_item>
  529. <bogda_item>
  530. <l_cell>
  531. <rowIndex>9</rowIndex>
  532. <colIndex>0</colIndex>
  533. </l_cell>
  534. <l_cell>
  535. <rowIndex>9</rowIndex>
  536. <colIndex>1</colIndex>
  537. </l_cell>
  538. <l_cell>
  539. <rowIndex>9</rowIndex>
  540. <colIndex>2</colIndex>
  541. </l_cell>
  542. <l_cell>
  543. <rowIndex>9</rowIndex>
  544. <colIndex>3</colIndex>
  545. </l_cell>
  546. <l_cell>
  547. <rowIndex>9</rowIndex>
  548. <colIndex>4</colIndex>
  549. </l_cell>
  550. <l_cell>
  551. <rowIndex>9</rowIndex>
  552. <colIndex>5</colIndex>
  553. </l_cell>
  554. <l_cell>
  555. <rowIndex>9</rowIndex>
  556. <colIndex>6</colIndex>
  557. </l_cell>
  558. <l_cell>
  559. <rowIndex>9</rowIndex>
  560. <colIndex>7</colIndex>
  561. </l_cell>
  562. <l_cell>
  563. <rowIndex>9</rowIndex>
  564. <colIndex>8</colIndex>
  565. </l_cell>
  566. </bogda_item>
  567. </cells>
  568. </l_grid>
  569. <output>
  570. <grid_out>
  571. <name>rtn</name>
  572. <content>region(A1,H1)</content>
  573. </grid_out>
  574. </output>
  575. </logic_grid>
  576. </elements>
  577. <output>
  578. <variable>
  579. <name>rtn</name>
  580. <description>交付范围内的系统-管线树</description>
  581. <assignment>grid.rtn</assignment>
  582. </variable>
  583. </output>
  584. </procedure>
  585. <comments>
  586. <next_id>1</next_id>
  587. <list>
  588. <comment>
  589. <id>0</id>
  590. <items>
  591. <comment_item>
  592. <content>查询交付范围内的系统-管线</content>
  593. <update_time>2021-6-8 16:13</update_time>
  594. </comment_item>
  595. </items>
  596. </comment>
  597. </list>
  598. </comments>
  599. <comment_id>0</comment_id>
  600. </templet>