UIH050800.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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[热轧作业>>钢卷库管理>>入库数据补录(UIH050600)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <searchData>
  14. <COIL_NO>R9-00</COIL_NO>
  15. <ORD_NO/>
  16. <CAR_NO/>
  17. <COIL_WGT/>
  18. <DEST_CD/>
  19. <CUST_NM/>
  20. <ORD_NM/>
  21. <DLIV_TP/>
  22. <BY_SEA_YN/>
  23. <EXLV_LINE_CD/>
  24. <DLIV_DIRNO/>
  25. </searchData>
  26. <LOVData>
  27. <CUST_NM/>
  28. <ORD_NM/>
  29. <DEST_CD/>
  30. <EXLV_LINE_CD/>
  31. </LOVData>
  32. <CD_SEQ/>
  33. <datagrid1/>
  34. <REG_ID/>
  35. <WK>
  36. <ENTRY_SHIFT/>
  37. <ENTRY_GROUP/>
  38. <ENTRY_REG/>
  39. <ENTRY_DTIME/>
  40. </WK>
  41. </root>
  42. </instance>
  43. </model>
  44. <script type="javascript" src="../../js/boaMsg.js"/>
  45. <script type="javascript" src="../../js/boaCommon.js"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. model.removenode("/root/reqData");
  49. model.makeNode("/root/reqData");
  50. commSubmit("UIH050800-service","success","glueAction.do");
  51. commAppendData("/root/LOVData/ORD_NM","/root/resData/ORDNM_VO");
  52. commAppendData("/root/LOVData/CUST_NM","/root/resData/CUSTNM_VO");
  53. commAppendData("/root/LOVData/EXLV_LINE_CD","/root/resData/EXLV_LINE_CD_VO");
  54. commAppendData("/root/WK/ENTRY_SHIFT_VO","/root/resData/ENTRY_SHIFT_VO");
  55. commAppendData("/root/WK/ENTRY_GROUP_VO","/root/resData/ENTRY_GROUP_VO");
  56. model.refresh();
  57. ]]>
  58. </script>
  59. <script type="javascript">
  60. <![CDATA[
  61. //页面初始化的时候需要获取登录的相关用户信息
  62. function Init(node) {
  63. InitParams(node);
  64. }
  65. //调用公共的初始化方法获得登录用户名
  66. function InitParams(node) {
  67. if (typeof node == "undefined" && typeof node != "object") return;
  68. model.removenode("/root/initData/rcvInfo");
  69. model.makeNode("/root/initData/rcvInfo");
  70. var nodeList = node.childNodes;
  71. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  72. for (var i = 0; i < nodeList.length; i++)
  73. node.appendChild(nodeList.item(i));
  74. }
  75. function find(){
  76. model.removenode("/root/reqData");
  77. model.makeNode("/root/reqData");
  78. model.duplicate("/root/reqData","/root/searchData/COIL_NO");
  79. model.duplicate("/root/reqData","/root/searchData/ORD_NO");
  80. model.duplicate("/root/reqData","/root/searchData/CAR_NO");
  81. commSubmit("UIH050800-service", "find", "glueAction.do");
  82. commAppendData("/root/datagrid1/DLIV_DIR_VO","/root/resData/DLIV_DIR_VO");
  83. model.refresh();
  84. }
  85. function save(){
  86. model.removenode("/root/reqData");
  87. model.makeNode("/root/reqData");
  88. commSendReq("/root/searchData");
  89. //这里加入登录用户名,会不会与已有的initData冲突
  90. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  91. //alert("REG_ID : "+model.getValue("/root/initData/rcvInfo/REG_ID"));
  92. commSubmit("UIH050800-service", "save", "glueAction.do");
  93. model.refresh();
  94. //需要清空相应的节点数据
  95. model.setValue("/root/searchData/COIL_NO","");
  96. model.setValue("/root/searchData/ORD_NO","");
  97. model.setValue("/root/searchData/CAR_NO","");
  98. model.refresh();
  99. if(model.getValue("root/resData/rs_VO/rs_Row")=="ERROR")
  100. {
  101. window.alert("钢卷已经出库,或者还在轧制过程中!");
  102. return;
  103. }
  104. //再查询一次
  105. alert(" 出库成功! ");
  106. find();
  107. }
  108. ]]>
  109. </script>
  110. </xhtml:head>
  111. <xhtml:body>
  112. <caption id="caption1" class="cell" style="left:0px; top:0px; width:100px; height:20px; ">出库数据录入</caption>
  113. <datagrid id="datagrid1" nodeset="/root/datagrid1/DLIV_DIR_VO/DLIV_DIR_Row" caption="钢卷号^合同号^车辆号^到站^专用线^客户单位^收货单位^钢种^钢卷厚度^钢卷宽度^重量^位置^判定等级^标准号^出库人^出库时间" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:980px; height:520px; ">
  114. <col editable="false" ref="OLD_SAMPL_NO" type="input" style="background-color:#ffffff; "/>
  115. <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
  116. <col editable="false" ref="TRANS_CAR_NO" type="input" style="background-color:#ffffff; "/>
  117. <col editable="false" ref="DEST_PCD_DESC" type="input" style="background-color:#ffffff; "/>
  118. <col editable="false" ref="EXLV_LINE_CD_DESC" type="input" style="background-color:#ffffff; "/>
  119. <col editable="false" ref="CUST_NM" type="input" style="background-color:#ffffff; "/>
  120. <col editable="false" ref="ORD_NM" type="input" style="background-color:#ffffff; "/>
  121. <col editable="false" ref="SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
  122. <col editable="false" ref="INSTR_COIL_THK" type="input" style="background-color:#ffffff; "/>
  123. <col editable="false" ref="INSTR_COIL_WTH" type="input" style="background-color:#ffffff; "/>
  124. <col editable="false" ref="ACT_WGT" type="input" style="background-color:#ffffff; "/>
  125. <col editable="false" ref="CUR_LOAD_LOC" type="input" style="background-color:#ffffff; "/>
  126. <col editable="false" ref="TOT_DEC_GRD" type="input" style="background-color:#ffffff; "/>
  127. <col editable="false" ref="SPEC_ABBSYM" type="input" style="background-color:#ffffff; "/>
  128. <col editable="false" ref="TRNF_REG" type="input" style="background-color:#ffffff; "/>
  129. <col editable="false" ref="TRNF_DTIME" type="input" style="background-color:#ffffff; "/>
  130. </datagrid>
  131. <input id="input1" ref="/root/searchData/COIL_NO" maxlength="13" style="left:95px; top:25px; width:105px; height:20px; background-color:#ffff99; "/>
  132. <caption id="caption2" class="cell" style="left:0px; top:25px; width:90px; height:20px; ">钢卷号</caption>
  133. <caption id="caption3" class="cell" style="left:205px; top:25px; width:90px; height:20px; ">合同号</caption>
  134. <input id="input2" ref="/root/searchData/ORD_NO" maxlength="12" style="left:300px; top:25px; width:105px; height:20px; background-color:#ffff99; "/>
  135. <caption id="caption4" class="cell" style="left:410px; top:25px; width:90px; height:20px; ">车辆号</caption>
  136. <input id="input3" ref="/root/searchData/CAR_NO" maxlength="20" style="left:505px; top:25px; width:105px; height:20px; background-color:#ffff99; ">
  137. <script type="javascript" ev:event="ondblclick">
  138. <![CDATA[
  139. //判断班次组入库人不能为空,时间不能为空
  140. if(model.getValue("/root/WK/ENTRY_SHIFT") == ""){
  141. alert(" 出库班次信息不能为空,请选择相应的出库班次! ");
  142. return;
  143. }
  144. if(model.getValue("/root/WK/ENTRY_GROUP") == ""){
  145. alert(" 出库班组信息不能为空,请选择相应的出库班组信息!! ");
  146. return;
  147. }
  148. if(model.getValue("/root/WK/ENTRY_REG") == ""){
  149. alert(" 出库人信息不能为空,请选择相应的出库人信息!! ");
  150. return;
  151. }
  152. if(model.getValue("/root/WK/ENTRY_DTIME") == ""){
  153. alert(" 出库时间信息不能为空,请输入相应的出库时间信息!! ");
  154. return;
  155. }
  156. //这里加入双击事件,在同一车号下可以输入多个钢卷号。便于操作
  157. //model.setValue("/root/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  158. //model.refresh();
  159. window.load("./UIH05_CAR_NO.xrw", "modal", "modalWin", "left:400; top:100; width:650px; height:500px");
  160. ]]>
  161. </script>
  162. </input>
  163. <caption id="caption5" class="cell" style="left:0px; top:55px; width:90px; height:20px; ">到站</caption>
  164. <caption id="caption6" class="cell" style="left:205px; top:55px; width:90px; height:20px; ">客户单位</caption>
  165. <caption id="caption7" class="cell" style="left:410px; top:55px; width:90px; height:20px; ">收货单位</caption>
  166. <caption id="caption8" class="cell" style="left:615px; top:25px; width:75px; height:20px; ">钢卷重量</caption>
  167. <input id="input4" ref="/root/searchData/COIL_WGT" maxlength="9" format="#,###" style="left:695px; top:25px; width:105px; height:20px; background-color:#ffff99; "/>
  168. <select1 id="combo1" ref="/root/searchData/DEST_CD" appearance="minimal" style="left:95px; top:55px; width:105px; height:20px; background-color:#ffff99; ">
  169. <choices>
  170. <itemset nodeset="/root/LOVData/DEST_CD_VO/DEST_CD_Row">
  171. <label ref="DEST_CD_DESC"/>
  172. <value ref="DEST_CD"/>
  173. </itemset>
  174. </choices>
  175. <hint>
  176. <![CDATA[通过选择运输方式来获取到站信息]]>
  177. </hint>
  178. </select1>
  179. <select1 id="combo2" ref="/root/searchData/CUST_NM" appearance="minimal" style="left:300px; top:55px; width:105px; height:20px; background-color:#ffff99; ">
  180. <choices>
  181. <itemset nodeset="/root/LOVData/CUSTNM_VO/CUSTNM_Row">
  182. <label ref="CUST_NM_DESC"/>
  183. <value ref="CUST_NM"/>
  184. </itemset>
  185. </choices>
  186. </select1>
  187. <select1 id="combo3" ref="/root/searchData/ORD_NM" appearance="minimal" style="left:505px; top:55px; width:105px; height:20px; background-color:#ffff99; ">
  188. <choices>
  189. <itemset nodeset="/root/LOVData/ORDNM_VO/ORDNM_Row">
  190. <label ref="ORD_NM_DESC"/>
  191. <value ref="ORD_NM"/>
  192. </itemset>
  193. </choices>
  194. </select1>
  195. <select1 id="combo4" ref="/root/searchData/DLIV_TP" appearance="minimal" style="left:695px; top:55px; width:105px; height:20px; background-color:#ffff99; ">
  196. <choices>
  197. <item>
  198. <label>公路(车辆)</label>
  199. <value>C</value>
  200. </item>
  201. <item>
  202. <label>铁路(火车)</label>
  203. <value>T</value>
  204. </item>
  205. </choices>
  206. <script type="javascript" ev:event="xforms-value-changed">
  207. <![CDATA[
  208. //选择不同的运输方式,给出不同的到站情况
  209. model.removenode("/root/reqData");
  210. model.makeNode("/root/reqData");
  211. model.setValue("/root/CD_SEQ","");
  212. var DLIV_TP = model.getValue("/root/searchData/DLIV_TP");
  213. var BY_SEA_YN = model.getValue("/root/searchData/BY_SEA_YN");
  214. if(DLIV_TP == "T"){
  215. model.setValue("/root/CD_SEQ","1");
  216. }else if(DLIV_TP == "C"){
  217. model.setValue("/root/CD_SEQ","2");
  218. }
  219. model.duplicate("/root/reqData","/root/CD_SEQ");
  220. commSubmit("UIH050800-service","select","glueAction.do");
  221. commAppendData("/root/LOVData/DEST_CD_VO","/root/resData/DEST_CD_VO");
  222. model.refresh();
  223. ]]>
  224. </script>
  225. <hint>
  226. <![CDATA[选择运输方式,获得到站信息]]>
  227. </hint>
  228. </select1>
  229. <caption id="caption9" class="cell" style="left:615px; top:55px; width:75px; height:20px; ">运输方式</caption>
  230. <select1 id="combo5" ref="/root/searchData/EXLV_LINE_CD" appearance="minimal" style="left:880px; top:55px; width:100px; height:20px; background-color:#ffff99; ">
  231. <choices>
  232. <itemset nodeset="/root/LOVData/EXLV_LINE_CD_VO/EXLV_LINE_CD_Row">
  233. <label ref="EXLV_LINE_CD_DESC"/>
  234. <value ref="EXLV_LINE_CD"/>
  235. </itemset>
  236. </choices>
  237. </select1>
  238. <caption id="caption10" class="cell" style="left:805px; top:55px; width:70px; height:20px; ">专用线</caption>
  239. <caption id="caption11" class="cell" visibility="hidden" style="left:815px; top:0px; width:60px; height:20px; ">是否水运</caption>
  240. <select1 id="combo6" ref="/root/searchData/BY_SEA_YN" visibility="hidden" appearance="minimal" style="left:880px; top:0px; width:95px; height:20px; background-color:#ffff99; ">
  241. <choices>
  242. <item>
  243. <label>Y</label>
  244. <value>Y</value>
  245. </item>
  246. <item>
  247. <label>N</label>
  248. <value>N</value>
  249. </item>
  250. </choices>
  251. </select1>
  252. <caption id="caption12" class="cell" style="left:805px; top:25px; width:70px; height:20px; ">发货指示号</caption>
  253. <input id="input5" ref="/root/searchData/DLIV_DIRNO" maxlength="12" style="left:880px; top:25px; width:100px; height:20px; background-color:#ffff99; "/>
  254. <caption id="caption21" class="cell" style="left:120px; top:0px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">班次</caption>
  255. <caption id="caption23" class="cell" style="left:265px; top:0px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">班组</caption>
  256. <select1 id="combo7" ref="/root/WK/ENTRY_REG" appearance="minimal" editmode="input" style="left:490px; top:0px; width:80px; height:20px; background-color:#ffff99; ">
  257. <choices>
  258. <item>
  259. <label>刘文</label>
  260. <value>刘文</value>
  261. </item>
  262. <item>
  263. <label>蔡伟平</label>
  264. <value>蔡伟平</value>
  265. </item>
  266. <item>
  267. <label>廖林敏</label>
  268. <value>廖林敏</value>
  269. </item>
  270. <item>
  271. <label>李斌</label>
  272. <value>李斌</value>
  273. </item>
  274. <item>
  275. <label>敖艳敏</label>
  276. <value>敖艳敏</value>
  277. </item>
  278. <item>
  279. <label>吴贤峰</label>
  280. <value>吴贤峰</value>
  281. </item>
  282. <item>
  283. <label>钟超</label>
  284. <value>钟超</value>
  285. </item>
  286. </choices>
  287. </select1>
  288. <caption id="caption13" class="cell" style="left:575px; top:0px; width:60px; height:20px; border-color:#000000; ">出库时间</caption>
  289. <select1 id="combo8" ref="/root/WK/ENTRY_SHIFT" appearance="minimal" style="left:180px; top:0px; width:80px; height:20px; background-color:#ffff99; ">
  290. <choices>
  291. <itemset nodeset="/root/WK/ENTRY_SHIFT_VO/ENTRY_SHIFT_Row">
  292. <label ref="LABEL"/>
  293. <value ref="VALUE"/>
  294. </itemset>
  295. </choices>
  296. </select1>
  297. <caption id="caption14" class="cell" style="left:430px; top:0px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">出库人</caption>
  298. <select1 id="combo9" ref="/root/WK/ENTRY_GROUP" appearance="minimal" style="left:325px; top:0px; width:100px; height:20px; background-color:#ffff99; ">
  299. <choices>
  300. <itemset nodeset="/root/WK/ENTRY_GROUP_VO/ENTRY_GROUP_Row">
  301. <label ref="LABEL"/>
  302. <value ref="VALUE"/>
  303. </itemset>
  304. </choices>
  305. </select1>
  306. <input id="input6" ref="/root/WK/ENTRY_DTIME" inputtype="date" format="yyyy-mm-dd" style="left:635px; top:0px; width:100px; height:20px; background-color:#ffff99; "/>
  307. </xhtml:body>
  308. </xhtml:html>