UIJ_COIL_NO_HH.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.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. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <resData/>
  10. <reqData/>
  11. <coil_no/>
  12. <R_MAT_NO/>
  13. <THK/>
  14. <THK_1/>
  15. <WTH/>
  16. <WTH_1/>
  17. <SPEC_STL_GRD/>
  18. <datagrid1/>
  19. <formData>
  20. <SIGN_STL>Y</SIGN_STL>
  21. <SIGN_CHEN_FEN>Y</SIGN_CHEN_FEN>
  22. <SING_CAIZHI>Y</SING_CAIZHI>
  23. <SIGN_QIANGZHI/>
  24. <P_REG_ID/>
  25. <errInfo/>
  26. <SIGN_WGT>Y</SIGN_WGT>
  27. </formData>
  28. </root>
  29. </instance>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. //获取钢卷号,在界面显示
  33. var opp1 = window.opener;
  34. var coil_no = opp1.model1.getValue("/root/COIL/coil_no");
  35. v_spec_stl_grd = model.property("V_SPEC_STL_GRD");
  36. reg_id = model.property("V_REG_ID");
  37. model.setValue("/root/coil_no",coil_no);
  38. model.setValue("/root/SPEC_STL_GRD",v_spec_stl_grd);
  39. model.setValue("/root/formData/P_REG_ID",reg_id);
  40. model.refresh();
  41. ]]>
  42. </script>
  43. <script type="javascript">
  44. <![CDATA[
  45. function InitParams(node) {
  46. if (typeof node == "undefined" && typeof node != "object") return;
  47. model.removenode("/root/initData/rcvInfo");
  48. model.makeNode("/root/initData/rcvInfo");
  49. var nodeList = node.childNodes;
  50. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  51. for (var i = 0; i < nodeList.length; i++) {
  52. node.appendChild(nodeList.item(i));
  53. }
  54. model.setValue("root/formData/USER_NAME",model.getValue("/root/initData/rcvInfo/REG_ID"));
  55. //alert(model.getValue("/root/initData/rcvInfo/REG_ID"));
  56. }
  57. //2. 页面初始化函数(必须)
  58. function Init(node)
  59. {
  60. InitParams(node);
  61. }
  62. function find() {
  63. //这里根据列来查询列上面的钢卷
  64. model.removenode("/root/reqData");
  65. model.makeNode("/root/reqData");
  66. model.removenode("/root/datagrid1");
  67. model.makeNode("/root/datagrid1");
  68. model.duplicate("/root/reqData","/root/R_MAT_NO");
  69. model.duplicate("/root/reqData","/root/coil_no");
  70. commSubmit("UIJ010040-service","CurLoadLoc","glueAction.do");
  71. commAppendData("/root/datagrid1/coilCurLoadLoc_VO","/root/resData/coilCurLoadLoc_VO");
  72. model.refresh();
  73. }
  74. ]]>
  75. </script>
  76. </model>
  77. <script type="javascript" src="../../js/boaMsg.js"/>
  78. <script type="javascript" src="../../js/boaCommon.js"/>
  79. </xhtml:head>
  80. <xhtml:body pagewidth="650" pageheight="500">
  81. <caption id="caption5" class="cell" style="left:540px; top:45px; width:80px; height:20px; "/>
  82. <caption id="caption4" class="cell" style="left:540px; top:65px; width:80px; height:20px; "/>
  83. <caption id="caption1" class="cell" style="left:190px; top:50px; width:80px; height:20px; "/>
  84. <caption id="caption3" class="cell" style="left:20px; top:20px; width:75px; height:18px; ">钢卷号</caption>
  85. <button id="button2" style="left:540px; top:45px; width:79px; height:20px; ">
  86. <caption>钢卷合同互换</caption>
  87. <script type="javascript" ev:event="DOMActivate">
  88. <![CDATA[
  89. var isUse = commComfirmBox("钢卷互换存在风险,请谨慎操作?","提示");
  90. if(isUse == "0"){
  91. //如果选择否的话,不进行相应操作
  92. return;
  93. }
  94. //这里判断,如果没有选中卷就点击确认按钮,会清除计划
  95. if(model.getValue("/root/R_MAT_NO") == ""){
  96. alert(" 没有选中希望替换的钢卷,不能点击换卷按钮!!! ");
  97. return;
  98. }
  99. //清空发送接点
  100. model.removenode("/root/reqData");
  101. model.makeNode("/root/reqData");
  102. model.removenode("/root/formData/errInfo");
  103. model.makeNode("/root/formData/errInfo");
  104. commSendReq("/root/formData");
  105. model.duplicate("/root/reqData","/root/R_MAT_NO");
  106. model.duplicate("/root/reqData","/root/coil_no");
  107. commSubmit("UIJ010040-service","saveOrdNoHH","glueAction.do");
  108. model.refresh();
  109. if (model.getValue("/root/resData/errorData") != "") {
  110. // alert(model.getValue("/root/resData/errorData"));
  111. output2.value = model.getValue("/root/resData/errorData");
  112. return;
  113. }
  114. window.close();
  115. ]]>
  116. </script>
  117. </button>
  118. <output id="output1" ref="/root/coil_no" style="left:95px; top:20px; width:125px; height:18px; "/>
  119. <button id="button3" style="left:185px; top:50px; width:75px; height:20px; ">
  120. <caption>同规格查询</caption>
  121. <script type="javascript" ev:event="onclick">
  122. <![CDATA[
  123. //这里根据列来查询列上面的钢卷
  124. model.removenode("/root/reqData");
  125. model.makeNode("/root/reqData");
  126. model.removenode("/root/datagrid1");
  127. model.makeNode("/root/datagrid1");
  128. model.duplicate("/root/reqData","/root/R_MAT_NO");
  129. model.duplicate("/root/reqData","/root/THK");
  130. model.duplicate("/root/reqData","/root/THK_1");
  131. model.duplicate("/root/reqData","/root/WTH");
  132. model.duplicate("/root/reqData","/root/WTH_1");
  133. //这里要排除选中的卷
  134. model.duplicate("/root/reqData","/root/coil_no");
  135. commSubmit("UIJ010040-service","coilCurLoadLoc","glueAction.do");
  136. commAppendData("/root/datagrid1/coilCurLoadLoc_VO","/root/resData/coilCurLoadLoc_VO");
  137. model.refresh();
  138. ]]>
  139. </script>
  140. </button>
  141. <button id="button4" style="left:540px; top:67px; width:80px; height:15px; ">
  142. <caption>同牌号查询</caption>
  143. <script type="javascript" ev:event="onclick">
  144. <![CDATA[
  145. //这里根据列来查询列上面的钢卷
  146. model.removenode("/root/reqData");
  147. model.makeNode("/root/reqData");
  148. model.removenode("/root/datagrid1");
  149. model.makeNode("/root/datagrid1");
  150. model.duplicate("/root/reqData","/root/R_MAT_NO");
  151. model.duplicate("/root/reqData","/root/SPEC_STL_GRD");
  152. //这里要排除选中的卷
  153. model.duplicate("/root/reqData","/root/coil_no");
  154. commSubmit("UIJ010040-service","SpecStlGrd","glueAction.do");
  155. commAppendData("/root/datagrid1/coilCurLoadLoc_VO","/root/resData/coilCurLoadLoc_VO");
  156. model.refresh();
  157. ]]>
  158. </script>
  159. </button>
  160. <line id="line1" style="x1:20px; y1:300px; x2:620px; y2:300px; "/>
  161. <line id="line2" style="x1:115px; y1:55px; x2:130px; y2:55px; "/>
  162. <line id="line3" style="x1:115px; y1:70px; x2:130px; y2:70px; "/>
  163. <caption id="caption7" class="cell" style="left:20px; top:42px; width:42px; height:20px; ">厚度</caption>
  164. <input id="input2" ref="/root/THK" style="left:60px; top:42px; width:55px; height:20px; "/>
  165. <caption id="caption8" class="cell" style="left:20px; top:60px; width:42px; height:20px; ">宽度</caption>
  166. <input id="input3" ref="/root/SPEC_STL_GRD" style="left:440px; top:65px; width:100px; height:20px; "/>
  167. <input id="input4" ref="/root/WTH" style="left:60px; top:60px; width:55px; height:20px; "/>
  168. <input id="input5" ref="/root/THK_1" style="left:130px; top:42px; width:55px; height:20px; "/>
  169. <input id="output2" ref="/root/formData/errInfo" style="left:20px; top:305px; width:600px; height:115px; "/>
  170. <input id="input6" ref="/root/WTH_1" style="left:130px; top:60px; width:55px; height:20px; "/>
  171. <datagrid id="datagrid1" nodeset="/root/datagrid1/coilCurLoadLoc_VO/coilCurLoadLoc_Row" caption="钢卷号^钢种^实际厚度^实际宽度^订单厚度^订单宽度^钢卷长度^钢卷重量^钢卷外径^垛位^当前进程^余材区分^合同号^订单号^收货单位^合同单位^目的地" colsep="^" colwidth="83, 80, 61, 62, 62, 61, 62, 64, 58, 88, 62, 61, 100, 62, 100, 100, 100" defaultrows="10" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:85px; width:600px; height:210px; ">
  172. <col ref="OLD_SAMPL_NO"/>
  173. <col ref="SPEC_STL_GRD"/>
  174. <col ref="COIL_THK"/>
  175. <col ref="COIL_WTH"/>
  176. <col ref="INSTR_COIL_THK"/>
  177. <col ref="INSTR_COIL_WTH"/>
  178. <col ref="COIL_LEN"/>
  179. <col ref="ACT_WGT"/>
  180. <col ref="COIL_OUTDIA"/>
  181. <col ref="CUR_LOAD_LOC"/>
  182. <col ref="CUR_PROG_CD"/>
  183. <col ref="ORD_FL"/>
  184. <col ref="ORD_NO"/>
  185. <col ref="ORD_SEQ"/>
  186. <col ref="ORD_NM"/>
  187. <col ref="CUST_NM"/>
  188. <col ref="DEST_PCD_DESC"/>
  189. <script type="javascript" ev:event="onclick">
  190. <![CDATA[
  191. //这里增加点击事件,把钢卷号信息带到指定充当信息中
  192. var nodeSet1 = datagrid1.nodeset;
  193. var row = null;
  194. var OLD_SAMPL_NO = null;
  195. for(var i=0;i<datagrid1.selectedRows;i++){
  196. row = datagrid1.selectedRow(i);
  197. OLD_SAMPL_NO = model.getValue(nodeSet1+"["+row+"]/OLD_SAMPL_NO");
  198. model.setValue("/root/R_MAT_NO",OLD_SAMPL_NO);
  199. model.refresh();
  200. }
  201. ]]>
  202. </script>
  203. </datagrid>
  204. <button id="button1" style="left:540px; top:20px; width:70px; height:20px; text-align:right; background-image:../../images/save.gif; ">
  205. <caption>物料查询</caption>
  206. <script type="javascript" ev:event="onclick">
  207. <![CDATA[
  208. find();
  209. ]]>
  210. </script>
  211. </button>
  212. <caption id="caption2" class="cell" style="left:295px; top:20px; width:115px; height:20px; ">指定充当物料号</caption>
  213. <input id="input1" ref="/root/R_MAT_NO" style="left:410px; top:20px; width:125px; height:20px; "/>
  214. <select id="checkbox1" ref="/root/formData/SIGN_QIANGZHI" visibility="hidden" overflow="visible" appearance="full" style="left:464px; top:45px; width:70px; height:20px; border-style:none; ">
  215. <choices>
  216. <item>
  217. <label>强制替换</label>
  218. <value>Y</value>
  219. </item>
  220. </choices>
  221. <script type="javascript" ev:event="xforms-select">
  222. <![CDATA[
  223. if(checkbox1.value = "Y") {
  224. alert("强制替换有风险!请谨慎操作,后果自负");
  225. }
  226. ]]>
  227. </script>
  228. </select>
  229. <select id="checkbox7" ref="/root/formData/SIGN_CHEN_FEN" disabled="true" overflow="visible" appearance="full" style="left:346px; top:45px; width:55px; height:20px; border-style:none; ">
  230. <choices>
  231. <item>
  232. <label>同成分</label>
  233. <value>Y</value>
  234. </item>
  235. </choices>
  236. </select>
  237. <select id="checkbox8" ref="/root/formData/SING_CAIZHI" disabled="true" overflow="visible" appearance="full" style="left:403px; top:45px; width:55px; height:20px; border-style:none; ">
  238. <choices>
  239. <item>
  240. <label>同材质</label>
  241. <value>Y</value>
  242. </item>
  243. </choices>
  244. </select>
  245. <select id="checkbox9" ref="/root/formData/SIGN_STL" overflow="visible" appearance="full" style="left:285px; top:45px; width:55px; height:20px; border-style:none; ">
  246. <choices>
  247. <item>
  248. <label>同牌号</label>
  249. <value>Y</value>
  250. </item>
  251. </choices>
  252. </select>
  253. <select id="checkbox2" ref="/root/formData/SIGN_WGT" overflow="visible" appearance="full" style="left:285px; top:65px; width:110px; height:20px; border-style:none; ">
  254. <choices>
  255. <item>
  256. <label>是否检查重量</label>
  257. <value>Y</value>
  258. </item>
  259. </choices>
  260. </select>
  261. </xhtml:body>
  262. </xhtml:html>