f2798725585a4015c4ed43f9bfe266914c7326f2.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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[炼钢作业 >> 板坯库管理 >> 热轧计划板坯替换]]>
  7. </xhtml:title>
  8. <model id="model1" autocdata="false">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. <searchInfo>
  13. <LG_CD/>
  14. </searchInfo>
  15. </initData>
  16. <codeData>
  17. <EmpListResult_VO/>
  18. </codeData>
  19. <formData>
  20. <searchInfo>
  21. <ROLL_MANA_NO/>
  22. </searchInfo>
  23. <searchForm>
  24. <SLABTHK/>
  25. <SLABWTH/>
  26. <SLABLEN/>
  27. <STLGRD/>
  28. <ORDNO/>
  29. <ORDSEQ/>
  30. <SLABNO/>
  31. </searchForm>
  32. <updateForm>
  33. <slabNo1/>
  34. <slabNo2/>
  35. <REG_ID/>
  36. </updateForm>
  37. </formData>
  38. <gridData>
  39. </gridData>
  40. <gridData2>
  41. <ListResult_1_VO/>
  42. </gridData2>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. //if (window.parent == null) Init();
  48. // pageInit();
  49. ]]>
  50. </script>
  51. </model>
  52. <script type="javascript" src="../../js/boaCommon.js"/>
  53. <script type="javascript" src="../../js/dCommon.js"/>
  54. <script type="javascript" src="../../js/boaMsg.js"/>
  55. <script type="javascript" src="../../js/mesCommon.js">
  56. <![CDATA[
  57. submitID = "UID080010-service";
  58. function Init()
  59. {
  60. }
  61. function X(node) {
  62. InitParams(node);
  63. exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO",
  64. "/root/codeData/ListResult_1_VO", "/root/codeData/ListResult_2_VO");
  65. pageInitX();
  66. model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
  67. }
  68. function pageInitX()
  69. {
  70. commSubmit(submitID,"findRollManaNo","glueAction.do");
  71. model.copyNode("/root/codeData/EmpListResult_VO","/root/resData/EmpListResult_VO");
  72. model.refresh();
  73. model.removenode("/root/resData/EmpListResult_VO");
  74. rollnumber.select(0);
  75. //model.removenode("/root/reqData");
  76. model.refresh();
  77. }
  78. /*function pageInit() {
  79. model.removenode("/root/reqData");
  80. model.removenode("/root/resData");
  81. //model.setValue("/root/ORD_REM_WGT_SUM","");
  82. model.refresh();
  83. var datagrid = datagrid1;
  84. datagrid.isReadOnly(0, 0, datagrid.rows-1, datagrid.cols-1) = true;
  85. datagrid.subtotal("clear", -1, 0);
  86. }*/
  87. function find() {
  88. exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
  89. model.setValue("/root/formData/updateForm/slabNo1","");
  90. model.setValue("/root/formData/updateForm/slabNo2","");
  91. //pageInit();
  92. model.removenode("/root/gridData2/ListResult_1_VO");
  93. model.removenode("/root/reqData");
  94. //model.removenode("/root/resData");
  95. model.refresh();
  96. }
  97. function save() {}
  98. function create() {}
  99. function remove() {}
  100. function excelExport() {
  101. return datagrid1;
  102. }
  103. ]]>
  104. </script>
  105. </xhtml:head>
  106. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  107. <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#F7F9F9" caption="选择^轧辊单元^轧辊内顺序^板坯号^生产流水号^板坯^板坯^板坯^板坯^厂内牌号^合同号^订单号|选择^轧辊单元^轧辊内顺序^板坯号^生产流水号^厚度^宽度^长度^重量^厂内牌号^合同号^订单号" colsep="^" colwidth="32, 48, 49, 70, 74, 60, 57, 58, 62, 85, 107, 81" extendlastcol="false" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" subtotalposition="below" style="left:0px; top:85px; width:485px; height:535px; border-style:solid; border-right-style:sunken; ">
  108. <col ref="CHK" type="radio" style="text-align:left; "/>
  109. <col ref="ROLL_MANA_NO" style="text-align:center; "/>
  110. <col ref="ROLL_SLAB_SEQ" style="text-align:center; "/>
  111. <col ref="SLAB_NO" style="text-align:left; "/>
  112. <col ref="COIL_NO" style="text-align:left; "/>
  113. <col ref="SLAB_THK" format="#,###"/>
  114. <col ref="SLAB_WTH" format="#,###"/>
  115. <col ref="SLAB_LEN" format="#,###"/>
  116. <col ref="SLAB_WGT" format="#,###"/>
  117. <col ref="STL_GRD"/>
  118. <col ref="ORD_NO"/>
  119. <col ref="ORD_SEQ"/>
  120. <script type="javascript" ev:event="onclick">
  121. <![CDATA[
  122. if(datagrid1.row <= 1) return;
  123. if (!datagrid1.isCell(event.target)) return;
  124. //alert(datagrid1.col);
  125. //alert(datagrid1.valueMatrix(datagrid1.row,2));
  126. if(datagrid1.col == 1)
  127. {
  128. model.removenode("/root/reqData");
  129. model.makeNode("/root/reqData");
  130. var slabNo = datagrid1.valueMatrix(datagrid1.row,4)
  131. model.setValue("/root/formData/updateForm/slabNo1",slabNo);
  132. model.setValue("/root/formData/updateForm/slabNo2","");
  133. var slabThk = datagrid1.valueMatrix(datagrid1.row,6);
  134. var slabWth = datagrid1.valueMatrix(datagrid1.row,7);
  135. var slabLen = datagrid1.valueMatrix(datagrid1.row,8);
  136. var stlGrd = datagrid1.valueMatrix(datagrid1.row,10);
  137. var ordNo = datagrid1.valueMatrix(datagrid1.row,11);
  138. var ordSeq = datagrid1.valueMatrix(datagrid1.row,12);
  139. model.setValue("/root/formData/searchForm/SLABTHK",slabThk);
  140. model.setValue("/root/formData/searchForm/SLABWTH",slabWth);
  141. model.setValue("/root/formData/searchForm/SLABLEN",slabLen);
  142. model.setValue("/root/formData/searchForm/STLGRD",stlGrd);
  143. model.setValue("/root/formData/searchForm/ORDNO",ordNo);
  144. model.setValue("/root/formData/searchForm/ORDSEQ",ordSeq);
  145. model.setValue("/root/formData/searchForm/SLABNO",slabNo);
  146. commSendReq("/root/formData/searchForm");
  147. commSubmit(submitID,"findReplaceSlab","glueAction.do")
  148. //exec("/root/formData/searchForm", "", "findReplaceSlab", "/root/gridData/ListResult_1_VO");
  149. //pageInit();
  150. model.makeNode("/root/gridData2/ListResult_1_VO");
  151. model.copyNode("/root/gridData2/ListResult_1_VO","/root/resData/ListResult_1_VO");
  152. model.removenode("/root/reqData");
  153. //model.removenode("/root/resData");
  154. //model.removenode("/root/resData/ListResult_1_VO");
  155. //model.setValue("/root/formData/searchForm/SPECSTLGRD",V_WTH_MAXI);
  156. model.refresh();
  157. }
  158. ]]>
  159. </script>
  160. </datagrid>
  161. <caption id="caption1" class="cell" style="left:0px; top:5px; width:60px; height:20px; text-align:center; border-style:solid; ">轧辊单元</caption>
  162. <select1 id="rollnumber" ref="/root/formData/searchInfo/ROLL_MANA_NO" appearance="minimal" editmode="inputsearch" style="left:61px; top:5px; width:90px; height:20px; ">
  163. <choices>
  164. <itemset nodeset="/root/codeData/EmpListResult_VO/EmpListResult_Row">
  165. <label ref="ROLL_MANA_NO_2"/>
  166. <value ref="ROLL_MANA_NO"/>
  167. </itemset>
  168. </choices>
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. //find();
  172. ]]>
  173. </script>
  174. </select1>
  175. <datagrid id="datagrid2" nodeset="/root/gridData2/ListResult_1_VO/ListResult_1_Row" backcoloralternate="#F7F9F9" caption="选择^板坯号^板坯^板坯^板坯^板坯^厂内牌号^是否订单材^板坯当前状态^合同号^订单号^板坯切割时间|选择^板坯号^厚度^宽度^长度^重量^厂内牌号^是否订单材^板坯当前状态^合同号^订单号^板坯切割时间" colsep="^" colwidth="32, 70, 60, 57, 58, 62, 71, 75, 100, 100, 56, 100" extendlastcol="false" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" subtotalposition="below" style="left:495px; top:85px; width:485px; height:535px; border-style:solid; border-right-style:sunken; ">
  176. <col ref="CHK2" type="radio" style="text-align:left; "/>
  177. <col ref="SLAB_NO" style="text-align:left; "/>
  178. <col ref="SLAB_THK" format="#,###"/>
  179. <col ref="SLAB_WTH" format="#,###"/>
  180. <col ref="SLAB_LEN" format="#,###"/>
  181. <col ref="SLAB_WGT" format="#,###"/>
  182. <col ref="STL_GRD"/>
  183. <col ref="ORD_FL"/>
  184. <col ref="CUR_PROG_CD"/>
  185. <col ref="ORD_NO"/>
  186. <col ref="ORD_SEQ"/>
  187. <col ref="SLAB_CUT_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  188. <script type="javascript" ev:event="onclick">
  189. <![CDATA[
  190. if(datagrid2.row <= 1) return;
  191. if (!datagrid2.isCell(event.target)) return;
  192. //alert(datagrid1.col);
  193. //alert(datagrid1.valueMatrix(datagrid1.row,2));
  194. if(datagrid2.col == 1)
  195. {
  196. model.removenode("/root/reqData");
  197. model.makeNode("/root/reqData");
  198. var slabNo2 = datagrid2.valueMatrix(datagrid2.row,2)
  199. model.setValue("/root/formData/updateForm/slabNo2",slabNo2);
  200. }
  201. ]]>
  202. </script>
  203. </datagrid>
  204. <button id="button2" style="left:410px; top:65px; width:75px; height:20px; background-image:../../images/find.gif; border-color:#ffffff; border-style:solid; ">
  205. <caption>替 换</caption>
  206. <script type="javascript" ev:event="onclick">
  207. <![CDATA[
  208. if(model.getValue("/root/gridData/ListResult_0_VO/ListResult_0_Row[CHK='true']/SLAB_NO") == "" || model.getValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[CHK2='true']/SLAB_NO") == "")
  209. {
  210. window.alert("请选择请选择替换或者被替换板坯后再进行替换操作!","提示信息!");
  211. return;
  212. }
  213. if(model.getValue("/root/gridData/ListResult_0_VO/ListResult_0_Row[CHK='true']/SLAB_NO") == model.getValue("/root/formData/updateForm/slabNo2") || model.getValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[CHK2='true']/SLAB_NO") == model.getValue("/root/formData/updateForm/slabNo1"))
  214. {
  215. window.alert("请不要进行重复操作,重新选择板坯后再进行替换操作!","提示信息!");
  216. return;
  217. }
  218. model.setValue("/root/formData/updateForm/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  219. commSendReq("/root/formData/updateForm");
  220. commSubmit(submitID,"updateRollWorkSlab","glueAction.do")
  221. //--------------------------------------------------------------------------------------------------------
  222. //var node = instance1.selectSingleNode("/root/resData/errorData_VO/errorData_Row");
  223. var node = instance1.selectSingleNode("/root/resData/errorData_VO");
  224. if(node != null)
  225. {
  226. //window.alert(model.getValue("/root/resData/errorData_VO/errorData_Row"), "提示信息");
  227. return;
  228. }
  229. //--------------------------------------------------------------------------------------------------------
  230. //errorMessage();
  231. model.setValue("/root/gridData/ListResult_0_VO/ListResult_0_Row[CHK='true']/SLAB_NO",model.getValue("/root/formData/updateForm/slabNo2"));
  232. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[CHK2='true']/SLAB_NO",model.getValue("/root/formData/updateForm/slabNo1"));
  233. model.setValue("/root/gridData/ListResult_0_VO/ListResult_0_Row[CHK='true']/CHK","false");
  234. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[CHK2='true']/CHK2","false");
  235. //var yesNo = model.getValue("/root/resData/AYY_VO/AYY_Row");
  236. //window.alert(yesNo , "提示");
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </button>
  241. <caption id="caption2" style="left:240px; top:35px; width:508px; height:20px; color:#ff0000; background-color:#ffff99; border-color:#000000; border-style:solid; ">板坯替换操作需谨慎,操作完之前或之后需通知相关部门及时查看或核对计划信息,谢谢合作!</caption>
  242. <line id="line2" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
  243. <line id="line1" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  244. <line id="line3" style="x1:490px; y1:60px; x2:490px; y2:620px; "/>
  245. <caption id="caption3" style="left:0px; top:65px; width:100px; height:20px; background-color:#ccffff; border-color:#000000; border-style:solid; ">热轧计划信息表</caption>
  246. <caption id="caption4" style="left:495px; top:65px; width:100px; height:20px; background-color:#ccffff; border-color:#000000; border-style:solid; ">可替换板坯信息表</caption>
  247. <button id="button1" visibility="hidden" style="left:410px; top:10px; width:100px; height:20px; ">
  248. <caption>find</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. find();
  252. ]]>
  253. </script>
  254. </button>
  255. </xhtml:body>
  256. </xhtml:html>