cc7600ff33f3b77b72080f40d0be267d2d3cecac.svn-base 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>
  6. <![CDATA[炼钢作业 >> 板坯库管理 >> 行车命令查询(UIG040047)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <ORD_TYPE/>
  13. <REG_START_DTIME/>
  14. <REG_END_DTIME/>
  15. <ORD_START_DTIME/>
  16. <ORD_END_DTIME/>
  17. <ORD_STAT/>
  18. <CR_NO/>
  19. <ORD_SLAB_NO/>
  20. <YARD_ADDR/>
  21. <ROLL_NO/>
  22. <CHK_VALUE/>
  23. </formData>
  24. <gridData>
  25. <grid1/>
  26. <grid2/>
  27. </gridData>
  28. <combData>
  29. <ROLL_NO/>
  30. </combData>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. pageInit();
  36. ]]>
  37. </script>
  38. </model>
  39. <script type="javascript" src="../../js/boaCommon.js"/>
  40. <script type="javascript">
  41. <![CDATA[
  42. function pageInit()
  43. {
  44. commSubmit("UIF025020-service","findRollManaNo","glueAction.do");
  45. model.copyNode("/root/combData/ROLL_NO","/root/resData/EmpListResult2_VO");
  46. model.refresh();
  47. combo1.select(1);
  48. model.refresh();
  49. }
  50. function find(){
  51. commSendReq("/root/formData");
  52. if(model.getValue("/root/formData/CHK_VALUE") == "Y"){
  53. commSubmit("UIG040047-service","find2","glueAction.do");
  54. }else{
  55. commSubmit("UIG040047-service","find","glueAction.do");
  56. }
  57. model.copyNode("/root/gridData/grid1","/root/resData/ORD_LIST_RESULT_VO");
  58. model.refresh();
  59. }
  60. function click(slabNo){
  61. datagrid2.rebuildStyle();
  62. commSendReq("/root/formData");
  63. commSubmit("UIG040047-service","click","glueAction.do");
  64. model.copyNode("/root/gridData/grid2","/root/resData/ADDR_ORD_RES_VO");
  65. datagrid2.refresh();
  66. var row = datagrid2.findRow(slabNo,parseInt(1),parseInt(datagrid2.colRef("SLAB_NO")),false,false);
  67. datagrid2.rowstyle(row, "data", "background-color") = "#FFF000";
  68. }
  69. function check(){
  70. datagrid1.rebuildStyle();
  71. commSendReq("/root/formData");
  72. commSubmit("UIG040047-service","check","glueAction.do");
  73. var node = instance1.selectNodes("/root/resData/CHECK_RESULT_VO/CHECK_RESULT_Row/SLAB_NO");
  74. while(childNode = node.nextNode()){
  75. var slabNo = childNode.nodeValue.toString();
  76. var row = datagrid1.findRow(slabNo,parseInt(1),parseInt(datagrid1.colRef("ORD_SLAB_NO1")),false,false);
  77. datagrid1.rowstyle(row, "data", "background-color") = "#FFF000";
  78. }
  79. }
  80. function del(){
  81. }
  82. ]]>
  83. </script>
  84. </xhtml:head>
  85. <xhtml:body guideline="1,980;">
  86. <caption id="caption1" class="cell" style="left:0px; top:0px; width:55px; height:20px; text-align:center; ">制定时间</caption>
  87. <input id="input1" ref="/root/formData/REG_START_DTIME" inputtype="date" format="yyyy-mm-dd hh:nn:ss" style="left:55px; top:0px; width:120px; height:20px; "/>
  88. <input id="input2" ref="/root/formData/REG_END_DTIME" inputtype="date" format="yyyy-mm-dd hh:nn:ss" style="left:180px; top:0px; width:120px; height:20px; "/>
  89. <line id="line1" style="x1:175px; y1:10px; x2:180px; y2:10px; "/>
  90. <caption id="caption2" class="cell" style="left:0px; top:25px; width:55px; height:20px; text-align:center; ">执行时间</caption>
  91. <line id="line2" style="x1:175px; y1:35px; x2:180px; y2:35px; "/>
  92. <input id="input3" ref="/root/formData/ORD_START_DTIME" inputtype="date" format="yyyy-mm-dd hh:nn:ss" style="left:55px; top:25px; width:120px; height:20px; "/>
  93. <input id="input4" ref="/root/formData/ORD_END_DTIME" inputtype="date" format="yyyy-mm-dd hh:nn:ss" style="left:180px; top:25px; width:120px; height:20px; "/>
  94. <caption id="caption3" class="cell" style="left:305px; top:0px; width:55px; height:20px; text-align:center; ">命令类型</caption>
  95. <select1 id="combo1" ref="/root/formData/ORD_TYPE" appearance="minimal" style="left:360px; top:0px; width:70px; height:20px; ">
  96. <choices>
  97. <item>
  98. <label>下线</label>
  99. <value>A</value>
  100. </item>
  101. <item>
  102. <label>上料</label>
  103. <value>B</value>
  104. </item>
  105. <item>
  106. <label>移垛</label>
  107. <value>C</value>
  108. </item>
  109. <item>
  110. <label>全部</label>
  111. <value/>
  112. </item>
  113. </choices>
  114. </select1>
  115. <select1 id="combo2" ref="/root/formData/ORD_STAT" appearance="minimal" style="left:490px; top:0px; width:70px; height:20px; ">
  116. <choices>
  117. <item>
  118. <label>制定</label>
  119. <value>1</value>
  120. </item>
  121. <item>
  122. <label>删除</label>
  123. <value>3</value>
  124. </item>
  125. <item>
  126. <label>执行</label>
  127. <value>2</value>
  128. </item>
  129. <item>
  130. <label>-全部-</label>
  131. <value/>
  132. </item>
  133. </choices>
  134. </select1>
  135. <caption id="caption4" class="cell" style="left:435px; top:0px; width:55px; height:20px; text-align:center; ">命令状态</caption>
  136. <select1 id="combo3" ref="/root/formData/CR_NO" appearance="minimal" style="left:620px; top:0px; width:70px; height:20px; ">
  137. <choices>
  138. <item>
  139. <label>1-1</label>
  140. <value>1-1</value>
  141. </item>
  142. <item>
  143. <label>1-2</label>
  144. <value>1-2</value>
  145. </item>
  146. <item>
  147. <label>2-1</label>
  148. <value>2-1</value>
  149. </item>
  150. <item>
  151. <label>2-2</label>
  152. <value>2-2</value>
  153. </item>
  154. <item>
  155. <label>3-1</label>
  156. <value>3-1</value>
  157. </item>
  158. <item>
  159. <label>3-2</label>
  160. <value>3-2</value>
  161. </item>
  162. <item>
  163. <label>-全部-</label>
  164. <value/>
  165. </item>
  166. </choices>
  167. </select1>
  168. <caption id="caption5" class="cell" style="left:565px; top:0px; width:55px; height:20px; text-align:center; ">行车编号</caption>
  169. <caption id="caption6" class="cell" style="left:695px; top:0px; width:55px; height:20px; text-align:center; ">板坯号</caption>
  170. <datagrid id="datagrid1" nodeset="/root/gridData/grid1/ORD_LIST_RESULT_Row" caption="选择^序号^类型^状态^行车编号^轧制序号^板坯号^原垛位^目标垛位^制定时间^执行时间|选择^序号^类型^状态^行车编号^轧制序号^板坯号^原垛位^目标垛位^制定时间^执行时间" colsep="^" colwidth="40, 40, 45, 45, 60, 39, 100, 70, 70, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:55px; width:650px; height:545px; ">
  171. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  172. <col ref="SEQ_NO"/>
  173. <col disabled="true" ref="ORD_TYPE" type="combo">
  174. <choices>
  175. <item>
  176. <label>下线</label>
  177. <value>A</value>
  178. </item>
  179. <item>
  180. <label>上料</label>
  181. <value>B</value>
  182. </item>
  183. <item>
  184. <label>移垛</label>
  185. <value>C</value>
  186. </item>
  187. </choices>
  188. </col>
  189. <col disabled="true" ref="ORD_STAT" type="combo">
  190. <choices>
  191. <item>
  192. <label>制定</label>
  193. <value>1</value>
  194. </item>
  195. <item>
  196. <label>删除</label>
  197. <value>3</value>
  198. </item>
  199. <item>
  200. <label>执行</label>
  201. <value>2</value>
  202. </item>
  203. </choices>
  204. </col>
  205. <col ref="CR_NO"/>
  206. <col ref="ROLL_SEQ"/>
  207. <col editable="false" ref="ORD_SLAB_NO1" type="input"/>
  208. <col editable="false" ref="FROM_ADDR" type="input"/>
  209. <col editable="false" ref="TO_ADDR" type="input"/>
  210. <col ref="REG_DTIME"/>
  211. <col ref="ORD_DTIME"/>
  212. <script type="javascript" ev:event="xforms-select">
  213. <![CDATA[
  214. model.setValue("/root/formData/YARD_ADDR",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("FROM_ADDR")));
  215. var slabNo = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_SLAB_NO1"));
  216. click(slabNo);
  217. ]]>
  218. </script>
  219. </datagrid>
  220. <datagrid id="datagrid2" nodeset="/root/gridData/grid2/ADDR_ORD_RES_Row" disabled="true" caption="块^板坯号^命令制定^序号|块^板坯号^命令制定^序号" colsep="^" colwidth="25, 85, 36, 46" defaultrows="18" mergecellsfixedrows="bycolrec" rowsep="|" style="left:655px; top:55px; width:325px; height:545px; border-color:#000000; ">
  221. <col ref="STORELAY"/>
  222. <col ref="SLAB_NO"/>
  223. <col disabled="true" ref="ORD_FLAG" type="combo">
  224. <choices>
  225. <item>
  226. <label>制定</label>
  227. <value>1</value>
  228. </item>
  229. <item>
  230. <label>占位</label>
  231. <value>4</value>
  232. </item>
  233. <item>
  234. <label/>
  235. <value/>
  236. </item>
  237. </choices>
  238. </col>
  239. <col ref="SEQ_NO"/>
  240. </datagrid>
  241. <input id="input5" ref="/root/formData/ORD_SLAB_NO" style="left:750px; top:0px; width:95px; height:20px; "/>
  242. <button id="button2" style="left:655px; top:35px; width:70px; height:20px; text-align:center; background-image:D:\workspace\xgmes3\WebContents\images\btn_delete.gif; ">
  243. <caption>删 除</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. //del();
  247. model1.removenode("/root/reqData");
  248. model1.makeNode("/root/reqData");
  249. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  250. commSubmit("UIG040047-service","del","glueAction.do");
  251. alert(model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="button1" style="left:575px; top:25px; width:50px; height:20px; ">
  256. <caption>button1</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. find();
  260. ]]>
  261. </script>
  262. </button>
  263. <select1 id="combo4" ref="/root/formData/ROLL_NO" appearance="minimal" style="left:406px; top:25px; width:85px; height:20px; ">
  264. <choices>
  265. <itemset nodeset="/root/combData/ROLL_NO/EmpListResult2_Row">
  266. <label ref="ROLL_MANA_NO_2"/>
  267. <value ref="ROLL_MANA_NO"/>
  268. </itemset>
  269. </choices>
  270. <script type="javascript" ev:event="xforms-value-changed">
  271. <![CDATA[
  272. find();
  273. ]]>
  274. </script>
  275. </select1>
  276. <select id="checkbox1" ref="/root/formData/CHK_VALUE" overflow="visible" appearance="full" style="left:305px; top:25px; width:100px; height:20px; border-style:none; ">
  277. <choices>
  278. <item>
  279. <label>按轧制单元查询</label>
  280. <value>Y</value>
  281. </item>
  282. </choices>
  283. </select>
  284. </xhtml:body>
  285. </xhtml:html>