UIH050710.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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[热轧作业>>钢卷库管理>>钢卷库移垛操作(UIH050700)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <FROM_COIL>R</FROM_COIL>
  14. <FROM_YARD/>
  15. <TO_COIL/>
  16. <TO_YARD>C</TO_YARD>
  17. <TMP_YARD/>
  18. <REG_ID/>
  19. <WK>
  20. <ENTRY_SHIFT/>
  21. <ENTRY_GROUP/>
  22. <ENTRY_REG/>
  23. <ENTRY_DTIME/>
  24. </WK>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. //获取钢卷号,在界面显示
  30. var opp1 = window.opener;
  31. var ENTRY_SHIFT = opp1.model1.getValue("/root/WK/ENTRY_SHIFT");
  32. var ENTRY_GROUP = opp1.model1.getValue("/root/WK/ENTRY_GROUP");
  33. var ENTRY_REG = opp1.model1.getValue("/root/WK/ENTRY_REG");
  34. var ENTRY_DTIME = opp1.model1.getValue("/root/WK/ENTRY_DTIME");
  35. model.setValue("/root/WK/ENTRY_SHIFT",ENTRY_SHIFT);
  36. model.setValue("/root/WK/ENTRY_GROUP",ENTRY_GROUP);
  37. model.setValue("/root/WK/ENTRY_REG",ENTRY_REG);
  38. model.setValue("/root/WK/ENTRY_DTIME",ENTRY_DTIME);
  39. model.refresh();
  40. ]]>
  41. </script>
  42. </model>
  43. <script type="javascript" src="../../js/boaMsg.js"/>
  44. <script type="javascript" src="../../js/boaCommon.js"/>
  45. </xhtml:head>
  46. <xhtml:body pagewidth="650" pageheight="500">
  47. <caption id="caption6" class="cell" style="left:260px; top:290px; width:95px; height:20px; "/>
  48. <caption id="caption1" class="cell" style="left:90px; top:85px; width:95px; height:20px; ">钢卷号</caption>
  49. <input id="input1" ref="/root/FROM_COIL" style="left:185px; top:85px; width:105px; height:20px; background-color:#ffff99; ">
  50. <hint>
  51. <![CDATA[输入你需要查询垛位的钢卷号]]>
  52. </hint>
  53. <script type="javascript" ev:event="onkeydown">
  54. <![CDATA[
  55. //这里需要使用键盘事件在处理
  56. if(event.keyCode==13){
  57. //查询出当前卷在系统中的位置
  58. model.removenode("/root/reqData");
  59. model.makeNode("/root/reqData");
  60. input1.disabled = true;
  61. model.duplicate("/root/reqData","/root/FROM_COIL");
  62. commSubmit("UIH050700-service", "Fyard", "glueAction.do");
  63. //alert(model.getValue("/root/resData/FyardL_VO/FyardL_Row/F_YARD_L"));
  64. model.setValue("/root/FROM_YARD",model.getValue("/root/resData/FyardL_VO/FyardL_Row/F_YARD_L"));
  65. model.setFocus("input3" , true);//设置焦点
  66. model.refresh();
  67. }
  68. ]]>
  69. </script>
  70. <script type="javascript" ev:event="onmousedown">
  71. <![CDATA[
  72. input1.disabled = false;
  73. ]]>
  74. </script>
  75. </input>
  76. <caption id="caption2" class="cell" style="left:330px; top:85px; width:95px; height:20px; ">当前位置</caption>
  77. <input id="input2" ref="/root/FROM_YARD" disabled="true" maxlength="9" style="left:425px; top:85px; width:105px; height:20px; background-color:#ffff99; ">
  78. <hint>
  79. <![CDATA[输入你需要查询垛位的钢卷号]]>
  80. </hint>
  81. </input>
  82. <caption id="caption5" class="cell" style="left:330px; top:170px; width:95px; height:20px; ">当前卷号</caption>
  83. <caption id="caption3" class="cell" style="left:90px; top:170px; width:95px; height:20px; ">目标垛位</caption>
  84. <input id="input5" ref="/root/TO_COIL" disabled="true" maxlength="13" style="left:425px; top:170px; width:105px; height:20px; background-color:#ffff99; ">
  85. <hint>
  86. <![CDATA[输入你需要查询垛位的钢卷号]]>
  87. </hint>
  88. </input>
  89. <input id="input3" ref="/root/TO_YARD" style="left:185px; top:170px; width:105px; height:20px; background-color:#ffff99; ">
  90. <hint>
  91. <![CDATA[输入你需要查询垛位的钢卷号]]>
  92. </hint>
  93. <script type="javascript" ev:event="onkeydown">
  94. <![CDATA[
  95. //这里需要使用键盘事件在处理
  96. if(event.keyCode==13){
  97. //查出目标垛位上的钢卷号
  98. model.removenode("/root/reqData");
  99. model.makeNode("/root/reqData");
  100. input3.disabled = true;
  101. //这里给出体术,输入长度不对不允许进行查询
  102. if(model.getValue("/root/TO_YARD").length == 9){
  103. model.duplicate("/root/reqData","/root/TO_YARD");
  104. commSubmit("UIH050700-service", "Tcoil", "glueAction.do");
  105. model.setValue("/root/TO_COIL",model.getValue("/root/resData/TcoilL_VO/TcoilL_Row/T_COIL_L"));
  106. model.setFocus("input4" , true);//设置焦点
  107. model.refresh();
  108. }else{
  109. alert(" 输入的目标垛位长度不为9,不符合库内垛位编排规则! ");
  110. return;
  111. }
  112. }
  113. ]]>
  114. </script>
  115. <script type="javascript" ev:event="onmousedown">
  116. <![CDATA[
  117. input3.disabled = false;
  118. ]]>
  119. </script>
  120. </input>
  121. <caption id="caption4" class="cell" style="left:210px; top:235px; width:95px; height:20px; ">希望替换的垛位</caption>
  122. <input id="input4" ref="/root/TMP_YARD" maxlength="9" style="left:305px; top:235px; width:105px; height:20px; background-color:#ffff99; ">
  123. <hint>
  124. <![CDATA[输入你需要查询垛位的钢卷号]]>
  125. </hint>
  126. <script type="javascript" ev:event="onkeydown">
  127. <![CDATA[
  128. //这里需要使用键盘事件在处理
  129. if(event.keyCode==13){
  130. if(model.getValue("/root/TMP_YARD").length == 9 || model.getValue("/root/TMP_YARD").length == 0){
  131. input4.disabled = true;
  132. model.setFocus("button1" , true);//设置焦点
  133. model.refresh();
  134. }else{
  135. alert(" 输入的希望替换垛位长度不为9或者为空,不符合库内垛位编排规则! ");
  136. return;
  137. }
  138. }
  139. ]]>
  140. </script>
  141. <script type="javascript" ev:event="onmousedown">
  142. <![CDATA[
  143. input4.disabled = false;
  144. ]]>
  145. </script>
  146. </input>
  147. <button id="button1" style="left:260px; top:290px; width:95px; height:20px; ">
  148. <caption>确认移动按钮</caption>
  149. <script type="javascript" ev:event="onkeydown">
  150. <![CDATA[
  151. //把希望移动卷,进行移动
  152. model.removenode("/root/reqData");
  153. model.makeNode("/root/reqData");
  154. if(model.getValue("/root/TO_COIL") != ""){
  155. var isUse = commComfirmBox("是否确定将目标垛位的当前卷移动到希望替换的位置?","提示");
  156. if(isUse == "0"){
  157. return;
  158. }
  159. }
  160. var opp1 = window.opener;
  161. model.setValue("/root/REG_ID",opp1.model.getValue("/root/REG_ID"));
  162. model.refresh();
  163. model.duplicate("/root/reqData","/root/REG_ID");
  164. model.duplicate("/root/reqData","/root/FROM_COIL");
  165. model.duplicate("/root/reqData","/root/FROM_YARD");
  166. model.duplicate("/root/reqData","/root/TO_COIL");
  167. model.duplicate("/root/reqData","/root/TO_YARD");
  168. model.duplicate("/root/reqData","/root/TMP_YARD");
  169. model.duplicate("/root/reqData","/root/WK/ENTRY_SHIFT");
  170. model.duplicate("/root/reqData","/root/WK/ENTRY_GROUP");
  171. model.duplicate("/root/reqData","/root/WK/ENTRY_REG");
  172. model.duplicate("/root/reqData","/root/WK/ENTRY_DTIME");
  173. commSubmit("UIH050700-service", "saveTwo", "glueAction.do");
  174. model.refresh();
  175. if(model.getValue("/root/resData/rs_VO/rs_Row") == "ERROR_TMP"){
  176. alert(" 去向位置存在钢卷,请给出希望替换的垛位信息!!! ");
  177. return;
  178. }
  179. if(model.getValue("/root/resData/rs_VO/rs_Row") == "ERROR"){
  180. alert(" 希望替换的垛位上面存在钢卷,请确认后重新输入!!! ");
  181. return;
  182. }
  183. if(model.getValue("/root/resData/rs_VO/rs_Row") == "ERROR_TO"){
  184. alert(" 去向的垛位没有输入,请确认后重新输入!!! ");
  185. return;
  186. }
  187. if(model.getValue("/root/resData/rs_VO/rs_Row") == "CUR_PROG_CD"){
  188. alert(" 希望移动的卷已经发货完成,不能进行移垛操作!!! ");
  189. return;
  190. }
  191. if(model.getValue("/root/resData/rs_VO/rs_Row") == "FROM_YARD"){
  192. alert(" 来源卷的垛位信息不正确,不能进行移垛操作!!! ");
  193. return;
  194. }
  195. if(model.getValue("/root/resData/rs_VO/rs_Row") == "XX"){
  196. alert(" 输入垛位信息不满足垛位编排规则,不能进行移垛操作!!! ");
  197. return;
  198. }
  199. //这里调用主界面的查询方法
  200. window.close();
  201. ]]>
  202. </script>
  203. </button>
  204. </xhtml:body>
  205. </xhtml:html>