f25effebd28346a2875640ac9179c8d4086986b4.svn-base 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. <![CDATA[炼钢作业 >> 板坯库管理 >> 中厚板坯料充当(UIG040110) ]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. <LG_CD>E01015</LG_CD>
  13. </initData>
  14. <searchData>
  15. <STL_GRD>
  16. </STL_GRD>
  17. <MIN_SLAB_THK>0</MIN_SLAB_THK>
  18. <MAX_SLAB_THK>420</MAX_SLAB_THK>
  19. <MIN_SLAB_WTH>0</MIN_SLAB_WTH>
  20. <MAX_SLAB_WTH>20000</MAX_SLAB_WTH>
  21. <SLAB_NO/>
  22. <CF>Y</CF>
  23. <CC>Y</CC>
  24. <DZ>Y</DZ>
  25. <PH>Y</PH>
  26. <DSN_SLAB_NO/>
  27. <SUB_DSN_SLAB_NO/>
  28. <USER/>
  29. <CHARGE_NO/>
  30. <GD/>
  31. <CD/>
  32. <L2_SCH_NO/>
  33. </searchData>
  34. <formData/>
  35. <gridData>
  36. <gridUnorderSlab/>
  37. <gridSlabIns/>
  38. </gridData>
  39. <codeData/>
  40. </root>
  41. </instance>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. // commSendReq("/root/initData");
  45. // commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  46. // model.copyNode("/root/codeData","/root/resData");
  47. // model.refresh();
  48. ]]>
  49. </script>
  50. </model>
  51. <script type="javascript" src="../../js/boaCommon.js"/>
  52. <script type="javascript" src="../../js/boaMsg.js"/>
  53. <script type="javascript" src="../../js/Common.js"/>
  54. <script type="javascript" src="../../js/mesCommon.js"/>
  55. <script type="javascript" src="../../js/boaMsg.js"/>
  56. <script type="javascript" src="../../js/boaCommon.js"/>
  57. <script type="javascript" src="../../js/dCommon.js"/>
  58. <script type="javascript">
  59. <![CDATA[
  60. function Init(node) {
  61. // if (window.parent != null) {
  62. // var java = window.parent.javaScript;
  63. // var node = java.getInitDataNode();
  64. // if (node != null) {
  65. // copyNode(node, "/root/formData/searchInfo");
  66. // }
  67. // }
  68. if (typeof node == "undefined" && typeof node != "object") return;
  69. model.removenode("/root/initData/rcvInfo");
  70. model.makeNode("/root/initData/rcvInfo");
  71. var nodeList = node.childNodes;
  72. for (var i = 0; i < nodeList.length; i++)
  73. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  74. commSendReq("/root/initData");
  75. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  76. model.copyNode("/root/codeData","/root/resData");
  77. model.refresh();
  78. }
  79. function find(){
  80. input3.value = model.getValue("/root/initData/rcvInfo/REG_ID");
  81. commSendReq("/root/searchData");
  82. commSubmit("UIG040110-service","findUnorderSlabs","glueAction.do");
  83. commAppendData("/root/gridData/gridUnorderSlab/UNORDER_SLABS_VO","/root/resData/UNORDER_SLABS_VO");
  84. model.setValue("/root/searchData/SLAB_NO","");
  85. gridUnorderSlab.rebuild();
  86. model.refresh();
  87. check();
  88. }
  89. function save(){
  90. commSendReq("/root/searchData");
  91. model.duplicate("/root/searchData","/root/searchData/USER");
  92. commSubmit("UIG040110-service","saveSlabRep","glueAction.do");
  93. find();
  94. }
  95. function check(){
  96. model.setValue("/root/searchData/SLAB_NO",gridUnorderSlab.valueMatrix(gridUnorderSlab.row,gridUnorderSlab.colRef("SLAB_NO")));
  97. commSendReq("/root/searchData");
  98. commSubmit("UIG040110-service","findSlabIns","glueAction.do");
  99. commAppendData("/root/gridData/gridSlabIns/SLAB_INS_VO","/root/resData/SLAB_INS_VO");
  100. model.refresh();
  101. }
  102. ]]>
  103. </script>
  104. </xhtml:head>
  105. <xhtml:body pagewidth="980" pageheight="620" style="font-family:宋体; font-size:12pt; ">
  106. <group id="groupSearch" ref="/root/searchData" style="left:0px; top:0px; width:970px; height:35px; ">
  107. <caption id="cptStlGrd" class="cell" style="left:0px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">牌号</caption>
  108. <caption id="cptSlabThk" class="cell" style="left:125px; top:0px; width:71px; height:20px; font-weight:bold; border-color:#000000; ">板坯宽度</caption>
  109. <caption id="cptSlabWth" class="cell" style="left:305px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯宽度</caption>
  110. <input id="inputStlGrd" ref="STL_GRD" style="left:60px; top:0px; width:60px; height:20px; "/>
  111. <input id="inputMinSlabThk" ref="MIN_SLAB_THK" style="left:365px; top:0px; width:50px; height:20px; "/>
  112. <input id="inputMaxSlabThk" ref="MAX_SLAB_THK" style="left:420px; top:0px; width:50px; height:20px; "/>
  113. <input id="inputMinSlabWth" ref="MIN_SLAB_WTH" style="left:185px; top:0px; width:50px; height:20px; "/>
  114. <input id="inputMaxSlabWth" ref="MAX_SLAB_WTH" style="left:240px; top:0px; width:50px; height:20px; "/>
  115. <select id="checkCF" ref="CF" overflow="visible" appearance="full" style="left:825px; top:5px; width:45px; height:15px; border-style:none; ">
  116. <choices>
  117. <item>
  118. <label>成份</label>
  119. <value>Y</value>
  120. </item>
  121. </choices>
  122. </select>
  123. <select id="checkCC" ref="CC" overflow="visible" appearance="full" style="left:870px; top:5px; width:45px; height:15px; border-style:none; ">
  124. <choices>
  125. <item>
  126. <label>尺寸</label>
  127. <value>Y</value>
  128. </item>
  129. </choices>
  130. </select>
  131. <select id="checkDZ" ref="DZ" overflow="visible" appearance="full" style="left:915px; top:5px; width:45px; height:15px; border-style:none; ">
  132. <choices>
  133. <item>
  134. <label>单重</label>
  135. <value>Y</value>
  136. </item>
  137. </choices>
  138. </select>
  139. <select id="checkPH" ref="PH" overflow="visible" appearance="full" style="left:780px; top:5px; width:45px; height:15px; border-style:none; ">
  140. <choices>
  141. <item>
  142. <label>牌号</label>
  143. <value>Y</value>
  144. </item>
  145. </choices>
  146. </select>
  147. <caption id="caption1" class="cell" style="left:485px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">炉次号</caption>
  148. <input id="input1" ref="CHARGE_NO" style="left:545px; top:0px; width:70px; height:20px; "/>
  149. <select id="checkbox1" ref="CD" overflow="visible" appearance="full" style="left:675px; top:5px; width:45px; height:15px; border-style:none; ">
  150. <choices>
  151. <item>
  152. <label>充当</label>
  153. <value>Y</value>
  154. </item>
  155. </choices>
  156. <script type="javascript" ev:event="xforms-value-changed">
  157. <![CDATA[
  158. if(model.getValue("/root/searchData/CD") == "Y"){
  159. model.setValue("/root/searchData/GD","");
  160. model.setValue("/root/searchData/CF","Y");
  161. model.setValue("/root/searchData/PH","Y");
  162. model.refresh();
  163. }
  164. ]]>
  165. </script>
  166. </select>
  167. <select id="checkbox2" ref="GD" overflow="visible" appearance="full" style="left:625px; top:5px; width:45px; height:15px; border-style:none; ">
  168. <choices>
  169. <item>
  170. <label>挂单</label>
  171. <value>Y</value>
  172. </item>
  173. </choices>
  174. <script type="javascript" ev:event="xforms-value-changed">
  175. <![CDATA[
  176. if(model.getValue("/root/searchData/GD") == "Y"){
  177. model.setValue("/root/searchData/CD","");
  178. model.setValue("/root/searchData/CF","");
  179. model.setValue("/root/searchData/PH","");
  180. model.refresh();
  181. }
  182. ]]>
  183. </script>
  184. </select>
  185. <input id="input3" ref="/root/searchData/USER" visibility="hidden" editable="false" style="left:730px; top:10px; width:40px; height:20px; "/>
  186. </group>
  187. <datagrid id="gridUnorderSlab" nodeset="/root/gridData/gridUnorderSlab/UNORDER_SLABS_VO/UNORDER_SLABS_Row" caption="选择^板坯号^牌号^板坯^板坯^板坯^板坯^板坯|选择^板坯号^牌号^厚度^宽度^长度^重量^垛位" colsep="^" colwidth="45, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" ref="/root/gridData/gridUnorderSlab" style="left:0px; top:35px; width:980px; height:270px; ">
  188. <col checkvalue="true,false" ref="CHK" type="radio"/>
  189. <col ref="SLAB_NO"/>
  190. <col ref="STL_GRD"/>
  191. <col ref="SLAB_THK"/>
  192. <col ref="SLAB_WTH"/>
  193. <col ref="SLAB_LEN"/>
  194. <col ref="SLAB_WGT"/>
  195. <col ref="CUR_LOAD_LOC"/>
  196. <script type="javascript" ev:event="xforms-select">
  197. <![CDATA[
  198. check();
  199. ]]>
  200. </script>
  201. </datagrid>
  202. <datagrid id="gridSlabIns" nodeset="/root/gridData/gridSlabIns/SLAB_INS_VO/SLAB_INS_Row" caption="选择^计划号^子坯计划号^板坯号^牌号^计划板坯信息^计划板坯信息^计划板坯信息^计划板坯信息^计划板坯信息|选择^计划号^子坯计划号^板坯号^牌号^厚度^宽度^长度^重量^caption5" colsep="^" colwidth="46, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:335px; width:980px; height:275px; ">
  203. <col checkvalue="true,false" ref="CHK" type="radio"/>
  204. <col ref="L2_SCH_NO"/>
  205. <col ref="SUB_DSN_SLAB_NO"/>
  206. <col ref="DSN_SLAB_NO"/>
  207. <col ref="FAC_STL_GRD"/>
  208. <col ref="SLAB_THK"/>
  209. <col ref="SLAB_WTH"/>
  210. <col ref="SLAB_LEN"/>
  211. <col ref="SLAB_WGT"/>
  212. <col/>
  213. <script type="javascript" ev:event="xforms-select">
  214. <![CDATA[
  215. model.setValue("/root/searchData/DSN_SLAB_NO",gridSlabIns.valueMatrix(gridSlabIns.row,gridSlabIns.colRef("DSN_SLAB_NO")));
  216. model.setValue("/root/searchData/SUB_DSN_SLAB_NO",gridSlabIns.valueMatrix(gridSlabIns.row,gridSlabIns.colRef("SUB_DSN_SLAB_NO")));
  217. ]]>
  218. </script>
  219. </datagrid>
  220. <caption id="caption2" class="cell" style="left:0px; top:315px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">计划号</caption>
  221. <input id="input2" ref="/root/searchData/L2_SCH_NO" style="left:60px; top:315px; width:130px; height:20px; "/>
  222. </xhtml:body>
  223. </xhtml:html>