building_floor.clmt 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <templet>
  2. <version>1.0</version>
  3. <procedure _name="target">
  4. <elements>
  5. <ref_res>
  6. <name>headers</name>
  7. <ref>resource/headers</ref>
  8. </ref_res>
  9. <http_do>
  10. <name>data</name>
  11. <http_req name="req">
  12. <url>http://47.93.22.124/datacenter/object/building/query</url>
  13. <method>POST</method>
  14. <headersVar>headers</headersVar>
  15. <params>
  16. <property>
  17. <key>pageNumber</key>
  18. <value>1</value>
  19. </property>
  20. <property>
  21. <key>pageSize</key>
  22. <value>1000</value>
  23. </property>
  24. <property>
  25. <key>cascade</key>
  26. <value>=[{name:'floor',orders: "floorSequenceID asc"}]</value>
  27. </property>
  28. </params>
  29. </http_req>
  30. </http_do>
  31. <table_query>
  32. <name>job</name>
  33. <dataSource>poc</dataSource>
  34. <table>job</table>
  35. </table_query>
  36. <logic_grid>
  37. <name>grid</name>
  38. <l_grid name="grid">
  39. <rowCount>5</rowCount>
  40. <colCount>5</colCount>
  41. <rows>
  42. <l_row>
  43. <index>0</index>
  44. </l_row>
  45. <l_row>
  46. <index>1</index>
  47. </l_row>
  48. <l_row>
  49. <index>2</index>
  50. </l_row>
  51. <l_row>
  52. <index>3</index>
  53. </l_row>
  54. <l_row>
  55. <index>4</index>
  56. </l_row>
  57. </rows>
  58. <columns>
  59. <l_col>
  60. <index>0</index>
  61. </l_col>
  62. <l_col>
  63. <index>1</index>
  64. </l_col>
  65. <l_col>
  66. <index>2</index>
  67. </l_col>
  68. <l_col>
  69. <index>3</index>
  70. <props>
  71. <width>179</width>
  72. </props>
  73. </l_col>
  74. <l_col>
  75. <index>4</index>
  76. </l_col>
  77. </columns>
  78. <cells>
  79. <bogda_item>
  80. <l_cell>
  81. <rowIndex>0</rowIndex>
  82. <colIndex>0</colIndex>
  83. <props>
  84. <data>建筑</data>
  85. </props>
  86. </l_cell>
  87. <l_cell>
  88. <rowIndex>0</rowIndex>
  89. <colIndex>1</colIndex>
  90. <props>
  91. <data>楼层</data>
  92. </props>
  93. </l_cell>
  94. <l_cell>
  95. <rowIndex>0</rowIndex>
  96. <colIndex>2</colIndex>
  97. <props>
  98. <data>楼层id</data>
  99. </props>
  100. </l_cell>
  101. <l_cell>
  102. <rowIndex>0</rowIndex>
  103. <colIndex>3</colIndex>
  104. <props>
  105. <data>空间任务</data>
  106. </props>
  107. </l_cell>
  108. <l_cell>
  109. <rowIndex>0</rowIndex>
  110. <colIndex>4</colIndex>
  111. <props>
  112. <data>设备勘测任务</data>
  113. </props>
  114. </l_cell>
  115. </bogda_item>
  116. <bogda_item>
  117. <l_cell>
  118. <l_replication _name="replication">
  119. <dataBind>=data.content</dataBind>
  120. <dimension>1</dimension>
  121. </l_replication>
  122. <rowIndex>1</rowIndex>
  123. <colIndex>0</colIndex>
  124. </l_cell>
  125. <l_cell>
  126. <l_replication _name="replication">
  127. <dataBind>=A2.floor</dataBind>
  128. <dimension>1</dimension>
  129. </l_replication>
  130. <rowIndex>1</rowIndex>
  131. <colIndex>1</colIndex>
  132. </l_cell>
  133. <l_cell>
  134. <rowIndex>1</rowIndex>
  135. <colIndex>2</colIndex>
  136. <props>
  137. <data>=get(B2, 'id')</data>
  138. <data_id>floorId</data_id>
  139. </props>
  140. </l_cell>
  141. <l_cell>
  142. <rowIndex>1</rowIndex>
  143. <colIndex>3</colIndex>
  144. <props>
  145. <data><![CDATA[=job.count(job.floor_id==C2 && ['00','01','02'].indexOf(job.status) >= 0)]]></data>
  146. <data_id>space</data_id>
  147. </props>
  148. </l_cell>
  149. <l_cell>
  150. <rowIndex>1</rowIndex>
  151. <colIndex>4</colIndex>
  152. <props>
  153. <data><![CDATA[=job.count(job.floor_id==C2 && job.status=='04')]]></data>
  154. <data_id>device</data_id>
  155. </props>
  156. </l_cell>
  157. </bogda_item>
  158. <bogda_item>
  159. <l_cell>
  160. <rowIndex>2</rowIndex>
  161. <colIndex>0</colIndex>
  162. </l_cell>
  163. <l_cell>
  164. <rowIndex>2</rowIndex>
  165. <colIndex>1</colIndex>
  166. </l_cell>
  167. <l_cell>
  168. <rowIndex>2</rowIndex>
  169. <colIndex>2</colIndex>
  170. </l_cell>
  171. <l_cell>
  172. <rowIndex>2</rowIndex>
  173. <colIndex>3</colIndex>
  174. </l_cell>
  175. <l_cell>
  176. <rowIndex>2</rowIndex>
  177. <colIndex>4</colIndex>
  178. </l_cell>
  179. </bogda_item>
  180. <bogda_item>
  181. <l_cell>
  182. <rowIndex>3</rowIndex>
  183. <colIndex>0</colIndex>
  184. </l_cell>
  185. <l_cell>
  186. <rowIndex>3</rowIndex>
  187. <colIndex>1</colIndex>
  188. </l_cell>
  189. <l_cell>
  190. <rowIndex>3</rowIndex>
  191. <colIndex>2</colIndex>
  192. </l_cell>
  193. <l_cell>
  194. <rowIndex>3</rowIndex>
  195. <colIndex>3</colIndex>
  196. </l_cell>
  197. <l_cell>
  198. <rowIndex>3</rowIndex>
  199. <colIndex>4</colIndex>
  200. </l_cell>
  201. </bogda_item>
  202. <bogda_item>
  203. <l_cell>
  204. <rowIndex>4</rowIndex>
  205. <colIndex>0</colIndex>
  206. </l_cell>
  207. <l_cell>
  208. <rowIndex>4</rowIndex>
  209. <colIndex>1</colIndex>
  210. </l_cell>
  211. <l_cell>
  212. <rowIndex>4</rowIndex>
  213. <colIndex>2</colIndex>
  214. </l_cell>
  215. <l_cell>
  216. <rowIndex>4</rowIndex>
  217. <colIndex>3</colIndex>
  218. </l_cell>
  219. <l_cell>
  220. <rowIndex>4</rowIndex>
  221. <colIndex>4</colIndex>
  222. </l_cell>
  223. </bogda_item>
  224. </cells>
  225. </l_grid>
  226. <output>
  227. <grid_out>
  228. <name>rtn</name>
  229. <content>region(C2,E2)</content>
  230. </grid_out>
  231. </output>
  232. </logic_grid>
  233. </elements>
  234. <output>
  235. <variable>
  236. <name>rtn</name>
  237. <description>建筑-楼层树</description>
  238. <assignment>data.content</assignment>
  239. </variable>
  240. <variable>
  241. <name>job_count</name>
  242. <description>各楼层的空间核查及设备勘测任务数量列表</description>
  243. <assignment>grid.rtn</assignment>
  244. </variable>
  245. </output>
  246. </procedure>
  247. <comments>
  248. <next_id>1</next_id>
  249. <list>
  250. <comment>
  251. <id>0</id>
  252. <items>
  253. <comment_item>
  254. <content>查询建筑-楼层树</content>
  255. <update_time>2021-6-7 12:12</update_time>
  256. </comment_item>
  257. </items>
  258. </comment>
  259. </list>
  260. </comments>
  261. <comment_id>0</comment_id>
  262. </templet>