9feca286f9a98c801de99d7acbe9faa6a45b4040.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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[热轧作业>>热轧作业实绩>>废钢处理登录与查询(UIH020060)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <resData/>
  12. <reqData/>
  13. <searchData>
  14. <SCRAP_CAUSE_CD/>
  15. <COIL_NO/>
  16. <SCRAP_WGT/>
  17. <SCRAP_TREATE_DTIME/>
  18. <SCRAP_EMP_NO/>
  19. <SCRAP_WKSHIFT/>
  20. <SCRAP_WKGROUP/>
  21. </searchData>
  22. <datagrid1>
  23. </datagrid1>
  24. <scrapCauseCdList/>
  25. <sum>
  26. <SUMCOILNO/>
  27. <SUMSCRAPWGT/>
  28. </sum>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. //清空发送接点
  34. model.removenode("/root/reqData");
  35. model.makeNode("/root/reqData");
  36. commSubmit("UIH020060-service","init","glueAction.do");
  37. //废钢原因
  38. model.duplicate("/root/scrapCauseCdList","/root/resData/scrapCauseCdList_VO");
  39. //废钢块数
  40. var SUMCOILNO = model.getValue("/root/resData/sumCoil_No_VO/sumCoil_No_Row/SUMCOILNO");
  41. model.setValue("/root/sum/SUMCOILNO",SUMCOILNO);
  42. //废钢量
  43. var SUMSCRAPWGT = model.getValue("/root/resData/sumCoil_No_VO/sumCoil_No_Row/SUMSCRAPWGT");
  44. model.setValue("/root/sum/SUMSCRAPWGT",SUMSCRAPWGT);
  45. //废钢查询处理
  46. model.duplicate("/root/datagrid1","/root/resData/searchDisuseCoilNoList_VO");
  47. model.refresh();
  48. ]]>
  49. </script>
  50. </model>
  51. <script type="javascript">
  52. <![CDATA[
  53. //查询方法,条件是废钢原因
  54. function find(){
  55. //清空发送接点
  56. model.removenode("/root/reqData");
  57. model.makeNode("/root/reqData");
  58. //清空废钢查询处理接点
  59. model.removenode("/root/datagrid1");
  60. model.makeNode("/root/datagrid1");
  61. //清空废钢块数和废钢量字段
  62. model.removenode("/root/sum/SUMCOILNO");
  63. model.makeNode("/root/sum/SUMCOILNO");
  64. model.removenode("/root/sum/SUMSCRAPWGT");
  65. model.makeNode("/root/sum/SUMSCRAPWGT");
  66. //修改流程,初始化和查询都是查询全部的信息。因此调用初始化方法,屏蔽原来的带废钢原因的查询方法
  67. commSubmit("UIH020060-service","init","glueAction.do");
  68. //废钢查询处理
  69. model.duplicate("/root/datagrid1","/root/resData/searchDisuseCoilNoList_VO");
  70. //分别取出废钢块数和废钢量
  71. var SUMCOILNO = model.getValue("/root/resData/sumCoil_No_VO/sumCoil_No_Row/SUMCOILNO");
  72. var SUMSCRAPWGT = model.getValue("/root/resData/sumCoil_No_VO/sumCoil_No_Row/SUMSCRAPWGT");
  73. model.setValue("/root/sum/SUMCOILNO",SUMCOILNO);
  74. model.setValue("/root/sum/SUMSCRAPWGT",SUMSCRAPWGT);
  75. model.refresh();
  76. }
  77. //保存方法
  78. function save(){
  79. //判断废钢原因是否为空
  80. var SCRAP_CAUSE_CD = model.getValue("/root/searchData/SCRAP_CAUSE_CD");
  81. //判断钢卷号不能为空
  82. var COIL_NO = model.getValue("/root/searchData/COIL_NO");
  83. //判断废钢处理重量
  84. var SCRAP_WGT = model.getValue("/root/searchData/SCRAP_WGT");
  85. //判断废钢处理时间
  86. var SCRAP_TREATE_DTIME = model.getValue("/root/searchData/SCRAP_TREATE_DTIME");
  87. //判断班次
  88. var SCRAP_WKSHIFT = model.getValue("/root/searchData/SCRAP_WKSHIFT");
  89. //判断组
  90. var SCRAP_WKGROUP = model.getValue("/root/searchData/SCRAP_WKGROUP");
  91. //判断废钢登录人
  92. var SCRAP_EMP_NO = model.getValue("/root/searchData/SCRAP_EMP_NO");
  93. if(COIL_NO == ""){
  94. alert(" 钢卷号不能为空,请输入相应的钢卷号 ");
  95. return;
  96. }else if(SCRAP_WGT == ""){
  97. alert(" 钢卷重量信息不能为空,请输入相关的钢卷重量信息! ");
  98. return;
  99. }else if(SCRAP_CAUSE_CD == ""){
  100. alert(" 废钢原因不能为空,请选择相应的废钢原因选项! ");
  101. return;
  102. }else if(SCRAP_TREATE_DTIME == ""){
  103. alert(" 废钢处理时间不能为空,请选择相应的时间! ");
  104. return;
  105. }else if(SCRAP_WKSHIFT == ""){
  106. alert(" 班次信息不能为空,请选择相应的班次信息! ");
  107. return;
  108. }else if(SCRAP_WKGROUP == ""){
  109. alert(" 组信息不能为空,请选择相应的组! ");
  110. return;
  111. }else if(SCRAP_EMP_NO == ""){
  112. alert(" 废钢登录人信息不能为空,请输入相映的废钢登录人信息! ");
  113. return;
  114. }
  115. //清空发送接点
  116. model.removenode("/root/reqData");
  117. model.makeNode("/root/reqData");
  118. //清空废钢查询处理接点
  119. model.removenode("/root/datagrid1");
  120. model.makeNode("/root/datagrid1");
  121. //清空废钢块数和废钢量字段
  122. model.removenode("/root/sum/SUMCOILNO");
  123. model.makeNode("/root/sum/SUMCOILNO");
  124. model.removenode("/root/sum/SUMSCRAPWGT");
  125. model.makeNode("/root/sum/SUMSCRAPWGT");
  126. //传入废钢处理原因
  127. model.duplicate("/root/reqData","/root/searchData/SCRAP_CAUSE_CD");
  128. //传入钢卷号
  129. model.duplicate("/root/reqData","/root/searchData/COIL_NO");
  130. //传入废钢处理重量
  131. model.duplicate("/root/reqData","/root/searchData/SCRAP_WGT");
  132. //传入废钢处理时间
  133. model.duplicate("/root/reqData","/root/searchData/SCRAP_TREATE_DTIME");
  134. //传入班次
  135. model.duplicate("/root/reqData","/root/searchData/SCRAP_WKSHIFT");
  136. //传入组
  137. model.duplicate("/root/reqData","/root/searchData/SCRAP_WKGROUP");
  138. //传入废钢登录人
  139. model.duplicate("/root/reqData","/root/searchData/SCRAP_EMP_NO");
  140. commSubmit("UIH020060-service","save","glueAction.do");
  141. model.refresh();
  142. //取出后台返回的钢卷号不存在的情况
  143. if(model.getValue("root/resData/rs_VO/rs_Row")=="error")
  144. {
  145. window.alert("输入的钢卷号不存在,请确定后再保存!");
  146. return;
  147. }
  148. find();
  149. model.refresh();
  150. }
  151. ]]>
  152. </script>
  153. <script type="javascript" src="../../js/boaMsg.js"/>
  154. <script type="javascript" src="../../js/boaCommon.js"/>
  155. </xhtml:head>
  156. <xhtml:body guideline="2,0;">
  157. <caption id="caption1" class="cell" style="left:207px; top:5px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢处理重量</caption>
  158. <input id="input1" ref="/root/searchData/SCRAP_WGT" maxlength="9" format="9999999999999" style="left:299px; top:5px; width:110px; height:20px; background-color:#ffff99; "/>
  159. <caption id="caption3" class="cell" style="left:430px; top:5px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢原因</caption>
  160. <select1 id="combo1" ref="/root/searchData/SCRAP_CAUSE_CD" appearance="minimal" editmode="input" style="left:522px; top:5px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  161. <choices>
  162. <itemset nodeset="/root/scrapCauseCdList/scrapCauseCdList_VO/scrapCauseCdList_Row">
  163. <label ref="LABEL"/>
  164. <value ref="VALUE"/>
  165. </itemset>
  166. </choices>
  167. </select1>
  168. <caption id="caption4" style="left:410px; top:5px; width:35px; height:20px; ">Kg</caption>
  169. <caption id="caption5" class="cell" style="left:637px; top:5px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢处理时间</caption>
  170. <input id="input2" ref="/root/searchData/SCRAP_TREATE_DTIME" inputtype="date" style="left:729px; top:5px; width:110px; height:20px; background-color:#ffff99; "/>
  171. <select1 id="combo3" ref="/root/searchData/SCRAP_WKSHIFT" appearance="minimal" style="left:92px; top:35px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  172. <choices>
  173. <item>
  174. <label>a</label>
  175. <value>a</value>
  176. </item>
  177. <item>
  178. <label>b</label>
  179. <value>b</value>
  180. </item>
  181. <item>
  182. <label>c</label>
  183. <value>c</value>
  184. </item>
  185. </choices>
  186. </select1>
  187. <caption id="caption6" class="cell" style="left:0px; top:35px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">班次</caption>
  188. <select1 id="combo4" ref="/root/searchData/SCRAP_WKGROUP" appearance="minimal" style="left:299px; top:35px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  189. <choices>
  190. <item>
  191. <label>1</label>
  192. <value>1</value>
  193. </item>
  194. <item>
  195. <label>2</label>
  196. <value>2</value>
  197. </item>
  198. <item>
  199. <label>3</label>
  200. <value>3</value>
  201. </item>
  202. </choices>
  203. </select1>
  204. <caption id="caption7" class="cell" style="left:207px; top:35px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">班组</caption>
  205. <caption id="caption8" class="cell" style="left:429px; top:35px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢登录人</caption>
  206. <input id="input3" ref="/root/searchData/SCRAP_EMP_NO" maxlength="10" style="left:521px; top:35px; width:110px; height:20px; background-color:#ffff99; "/>
  207. <caption id="caption9" class="cell" style="left:0px; top:70px; width:90px; height:20px; font-weight:bold; text-align:left; border-color:#000000; border-style:solid; ">废钢查询处理</caption>
  208. <datagrid id="datagrid1" nodeset="/root/datagrid1/searchDisuseCoilNoList_VO/searchDisuseCoilNoList_Row" allowuserresize="false" caption="钢卷号^生产流水号^外径^内径^实重量^合同号^废钢原因^废钢处理时间^废钢处理重量" colsep="^" colwidth="100, 110, 110, 110, 110, 110, 110, 110, 107" defaultrows="24" rowsep="|" ergecellsfixedrows="bycolrec" style="left:0px; top:90px; width:980px; height:505px; ">
  209. <col editable="false" ref="COIL_NO" type="input" style="background-color:#ffffff; "/>
  210. <col editable="false" ref="COIL_NO_L" type="input" style="background-color:#ffffff; "/>
  211. <col editable="false" ref="COIL_OUTDIA" type="input" style="text-align:right; background-color:#ffffff; "/>
  212. <col editable="false" ref="COIL_INDIA" type="input" style="text-align:right; background-color:#ffffff; "/>
  213. <col editable="false" ref="ACT_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  214. <col editable="false" ref="ORG_ORD_NO1" type="input" style="background-color:#ffffff; "/>
  215. <col editable="false" ref="SCRAP_CAUSE_CD" type="input" style="background-color:#ffffff; "/>
  216. <col editable="false" ref="SCRAP_TREATE_DTIME" type="input" format="yyyy-mm-dd hh:mm:ss" style="background-color:#ffffff; "/>
  217. <col editable="false" ref="SCRAP_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  218. </datagrid>
  219. <caption id="caption10" class="cell" style="left:570px; top:65px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢块数</caption>
  220. <input id="input4" ref="/root/sum/SUMCOILNO" style="left:662px; top:65px; width:110px; height:20px; background-color:#ffff99; "/>
  221. <caption id="caption11" class="cell" style="left:777px; top:65px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢量</caption>
  222. <input id="input5" ref="/root/sum/SUMSCRAPWGT" style="left:869px; top:65px; width:110px; height:20px; background-color:#ffff99; "/>
  223. <caption id="caption12" class="cell" style="left:0px; top:5px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">钢卷号</caption>
  224. <input id="input6" ref="/root/searchData/COIL_NO" maxlength="13" style="left:92px; top:5px; width:110px; height:20px; background-color:#ffff99; "/>
  225. <line id="line1" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  226. <line id="line2" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
  227. </xhtml:body>
  228. </xhtml:html>