9a2772a0c360b132827b120508d9fda94f797233.svn-base 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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[炼钢作业 >> 炼钢作业实绩 >> 板坯切割实绩查询与录入(UIG020090)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. <LG_CD>G02004</LG_CD>
  13. </initData>
  14. <formData>
  15. <CHARGE_NO/>
  16. <SUB_CHARGE_CODE/>
  17. <CHEM_SEQ>01</CHEM_SEQ>
  18. <FAC_STL_GRD/>
  19. <SUB_CHARGE_NO/>
  20. <REG_EMP_ID/>
  21. </formData>
  22. <searchData/>
  23. <codeData/>
  24. <gridData>
  25. <grid1/>
  26. <grid2/>
  27. <grid3/>
  28. </gridData>
  29. <MESSAGES/>
  30. <combData>
  31. <CHEM_SEQ/>
  32. </combData>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. initPage();
  38. ]]>
  39. </script>
  40. </model>
  41. <script type="javascript" src="../../js/boaCommon.js"/>
  42. <script type="javascript" src="../../js/boaMsg.js"/>
  43. <script type="javascript" src="../../js/mesCommon.js"/>
  44. <script type="javascript">
  45. <![CDATA[
  46. function initPage(){
  47. commSendReq("/root/initData");
  48. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  49. model.copyNode("/root/codeData","/root/resData");
  50. model.refresh();
  51. }
  52. function save(){
  53. if(!check("datagrid2","SUB_CHARGE_CODE")){
  54. alert("炉次选择错误!");
  55. return;
  56. }
  57. if(!check("datagrid2","CHEM_SEQ")){
  58. alert("炉次成分错误!");
  59. return;
  60. }
  61. model.removenode("/root/reqData");
  62. model.makeNode("/root/reqData");
  63. model.duplicate("/root/reqData","/root/formData/REG_EMP_ID");
  64. commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStatus");
  65. commSubmit("UIG020090-service","save","glueAction.do");
  66. model.setValue("/root/MESSAGES",model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
  67. alert(model.getValue("/root/MESSAGES"));
  68. find();
  69. }
  70. function find(){
  71. if(model.getValue("/root/formData/SUB_CHARGE_NO") == ""){
  72. model.setValue("/root/formData/SUB_CHARGE_NO",model.getValue("/root/formData/CHARGE_NO"));
  73. }
  74. commSendReq("/root/formData");
  75. commSubmit("UIG020090-service","find","glueAction.do");
  76. model.copyNode("/root/gridData/grid1","/root/resData/rs1_VO");
  77. model.copyNode("/root/gridData/grid2","/root/resData/rs2_VO");
  78. model.refresh();
  79. input5.value = model.getValue("/root/initData/rcvInfo/REG_ID");
  80. // if(datagrid2.rows - datagrid2.fixedRows > 0){
  81. // datagrid1.colAttribute(datagrid1.colRef("CHK"),"disabled") = "true";
  82. // datagrid1.rebuild();
  83. // }
  84. }
  85. function select(){
  86. model.setValue("/root/formData/FAC_STL_GRD",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("STL_GRD")));
  87. model.setValue("/root/formData/SUB_CHARGE_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHARGE_NO")));
  88. commSendReq("/root/formData");
  89. commSubmit("UIG020090-service","init","glueAction.do");
  90. model.copyNode("/root/combData/CHEM_SEQ","/root/resData/rs4_VO");
  91. commSendReq("/root/formData");
  92. commSubmit("UIG020090-service","select","glueAction.do");
  93. model.copyNode("/root/gridData/grid3","/root/resData/rs3_VO");
  94. find();
  95. }
  96. function deselect(){
  97. model.setValue("/root/formData/STL_GRD","");
  98. model.setValue("/root/formData/SUB_CHARGE_CODE","");
  99. }
  100. function autoSelect(grid){
  101. var gridID = (typeof grid == 'string')?document.controls(grid):grid;
  102. var tempval = gridID.valueMatrix(gridID.row,gridID.col);
  103. for(var i = gridID.fixedRows ; i <= gridID.rows - gridID.fixedRows+1; i++){
  104. if(gridID.valueMatrix(i,gridID.colRef("CHK")) == "Y"){
  105. gridID.valueMatrix(i,gridID.col) = tempval;
  106. }
  107. }
  108. model.refresh();
  109. }
  110. function check(grid,colstr){
  111. var temp1 = "";
  112. var temp2 = "";
  113. var gridID = (typeof grid == 'string')?document.controls(grid):grid;
  114. for(var i = gridID.fixedRows ; i <= gridID.rows - gridID.fixedRows+1; i++){
  115. if(gridID.valueMatrix(i,gridID.colRef("CHK")) == "Y"){
  116. if(temp1 == ""){
  117. temp1 = gridID.valueMatrix(i,gridID.colRef(colstr));
  118. continue;
  119. }else{
  120. temp2 = gridID.valueMatrix(i,gridID.colRef(colstr));
  121. }
  122. if(temp1 != temp2){
  123. return false;
  124. }
  125. temp1 = temp2;
  126. continue;
  127. }
  128. }
  129. return true;
  130. }
  131. ]]>
  132. </script>
  133. </xhtml:head>
  134. <xhtml:body>
  135. <datagrid id="datagrid1" nodeset="/root/gridData/grid1/rs1_Row" caption="选择^原始炉号^分炉炉号^钢种^钢水重量^分炉原因^板坯块数^板坯重量^分炉状态^操作人^操作时间^班次^班组^divide_type" colsep="^" colwidth="53, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="above" style="left:0px; top:40px; width:645px; height:200px; ">
  136. <col checkvalue="Y,N" ref="CHK" type="radio" visibility="visible"/>
  137. <col ref="SUB_CHARGE_NO"/>
  138. <col ref="CHARGE_NO"/>
  139. <col ref="STL_GRD"/>
  140. <col ref="CHARGE_WGT" type="input" format="999999-9999999"/>
  141. <col ref="SUB_CHARGE_CODE" type="combo">
  142. <choices>
  143. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G02004']">
  144. <label ref="SM_CFNM"/>
  145. <value ref="SM_CD"/>
  146. </itemset>
  147. </choices>
  148. </col>
  149. <col ref="SLAB_CNT"/>
  150. <col ref="SLAB_WGT"/>
  151. <col ref="CHARGE_STAT"/>
  152. <col ref="REG_ID"/>
  153. <col ref="REG_DTIME"/>
  154. <col ref="REG_SHIFT"/>
  155. <col ref="REG_GROUP"/>
  156. <col ref="DIVIDE_TYPE" visibility="hidden"/>
  157. <script type="javascript" ev:event="onclick">
  158. <![CDATA[
  159. if(datagrid1.col == datagrid1.colRef("CHK")){
  160. select();
  161. }
  162. ]]>
  163. </script>
  164. </datagrid>
  165. <caption id="caption2" class="cell" style="left:0px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">炉次号</caption>
  166. <datagrid id="datagrid2" nodeset="/root/gridData/grid2/rs2_Row" caption="选择^分炉炉号^原始炉号^分炉板坯号^原始板坯号^分炉原因^试样代码^牌号^规格^重量^成份等级^操作人^操作时间^班次^班组^divide_type|选择^分炉炉号^原始炉号^分炉板坯号^原始板坯号^分炉原因^试样代码^牌号^规格^重量^成份等级^操作人^操作时间^班次^班组^divide_type" colsep="^" colwidth="32, 90, 90, 90, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:265px; width:645px; height:335px; ">
  167. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  168. <col ref="CHARGE_NO"/>
  169. <col ref="SUB_CHARGE_NO"/>
  170. <col ref="SLAB_NO"/>
  171. <col ref="SUB_SLAB_NO"/>
  172. <col ref="SUB_CHARGE_CODE" type="combo">
  173. <choices>
  174. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G02004']">
  175. <label ref="SM_CFNM"/>
  176. <value ref="SM_CD"/>
  177. </itemset>
  178. </choices>
  179. </col>
  180. <col ref="CHEM_SEQ" type="combo">
  181. <choices>
  182. <itemset nodeset="/root/combData/CHEM_SEQ/rs4_Row">
  183. <label ref="LABEL"/>
  184. <value ref="VALUE"/>
  185. </itemset>
  186. </choices>
  187. </col>
  188. <col ref="STL_GRD"/>
  189. <col ref="SLAB_SIZE"/>
  190. <col ref="SLAB_WGT"/>
  191. <col ref="SLAB_INGR_DEC_GRD"/>
  192. <col ref="REG_ID"/>
  193. <col ref="REG_DTIME"/>
  194. <col ref="REG_SHIFT"/>
  195. <col ref="REG_GROUP"/>
  196. <col ref="DIVIDE_TYPE" visibility="hidden"/>
  197. <script type="javascript" ev:event="xforms-value-changed">
  198. <![CDATA[
  199. if(datagrid2.col == datagrid2.colRef("SUB_CHARGE_CODE") || datagrid2.col == datagrid2.colRef("CHEM_SEQ")){
  200. autoSelect("datagrid2");
  201. }
  202. ]]>
  203. </script>
  204. </datagrid>
  205. <caption id="caption3" class="cell" style="left:0px; top:25px; width:82px; height:16px; font-weight:bold; border-color:#000000; ">分炉炉次信息</caption>
  206. <caption id="caption4" class="cell" style="left:0px; top:250px; width:82px; height:16px; font-weight:bold; border-color:#000000; ">分炉坯料信息</caption>
  207. <button id="button2" style="left:895px; top:19px; width:85px; height:20px; background-image:../../../../xgmes3/WebContents/images/save2.gif; ">
  208. <caption>增加炉次</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. datagrid1.addRow();
  212. ]]>
  213. </script>
  214. </button>
  215. <input id="input1" ref="/root/formData/CHARGE_NO" style="left:60px; top:0px; width:110px; height:20px; "/>
  216. <datagrid id="datagrid3" nodeset="/root/gridData/grid3/rs3_Row" caption="成分代码^炼钢最小值要求^炼钢最大值要求^判定最小值要求^判定最大值要求^实绩值|成分代码^炼钢最小值要求^炼钢最大值要求^判定最小值要求^判定最大值要求^实绩值" colsep="^" colwidth="38, 60, 60, 60, 60, 50" mergecellsfixedrows="bycolrec" rowsep="|" style="left:650px; top:40px; width:330px; height:560px; ">
  217. <col ref="CHEM_CD"/>
  218. <col ref="CHEM_MIN1"/>
  219. <col ref="CHEM_MAX1"/>
  220. <col ref="CHEM_MIN"/>
  221. <col ref="CHEM_MAX"/>
  222. <col ref="CHEM_VAL"/>
  223. </datagrid>
  224. <caption id="caption1" class="cell" style="left:650px; top:25px; width:84px; height:16px; font-weight:bold; border-color:#000000; ">炉次成分信息</caption>
  225. <select1 id="combo1" ref="/root/formData/CHEM_SEQ" appearance="minimal" style="left:740px; top:20px; width:90px; height:20px; ">
  226. <choices>
  227. <itemset nodeset="/root/combData/CHEM_SEQ/rs4_Row">
  228. <label ref="LABEL"/>
  229. <value ref="VALUE"/>
  230. </itemset>
  231. </choices>
  232. <script type="javascript" ev:event="xforms-value-changed">
  233. <![CDATA[
  234. commSendReq("/root/formData");
  235. commSubmit("UIG020090-service","select","glueAction.do");
  236. model.copyNode("/root/gridData/grid3","/root/resData/rs3_VO");
  237. model.refresh();
  238. ]]>
  239. </script>
  240. </select1>
  241. <input id="input5" ref="/root/formData/REG_EMP_ID" visibility="hidden" editable="false" style="left:840px; top:20px; width:25px; height:17px; background-color:#c0c0c0; "/>
  242. </xhtml:body>
  243. </xhtml:html>