073a510f6d5a430b08d3d4aa8548821e93016a85.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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[炼钢作业 >> 炼钢作业实绩 >> 预处理实绩查询与录入(UIG020010)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <KR_CHARGE_NO/>
  13. <LAST_STEPNO/>
  14. </formData>
  15. <gridData>
  16. <grid1>
  17. </grid1>
  18. <grid2>
  19. </grid2>
  20. <grid3>
  21. </grid3>
  22. </gridData>
  23. <comboData/>
  24. <resData/>
  25. <reqData/>
  26. </root>
  27. </instance>
  28. </model>
  29. <script type="javascript">
  30. <![CDATA[
  31. function find()
  32. {
  33. commSendReq("/root/formData");
  34. commSubmit("UIG020010-service","find","glueAction.do");
  35. model.copyNode("/root/gridData/grid1","/root/resData/searchKrResult_VO");
  36. model.copyNode("/root/gridData/grid2","/root/resData/searchKrResult_VO");
  37. model.copyNode("/root/gridData/grid3","/root/resData/searchKrResult_VO");
  38. model.refresh();
  39. //判断datagrid1中是否有数据存在,无数据则为其增加一行使能输入
  40. if(datagrid1.rows==1)
  41. {
  42. datagrid1.addRow();
  43. }
  44. if(datagrid2.rows==2)
  45. {
  46. datagrid2.addRow();
  47. }
  48. if(datagrid3.rows==2)
  49. {
  50. datagrid3.addRow();
  51. }
  52. }
  53. function save()
  54. {
  55. var KrStat = "1";
  56. model.removenode("/root/reqData");
  57. model.makeNode("/root/reqData");
  58. model.makeValue("/root/reqData/IRON_RECV_WGT",datagrid1.valueMatrix(1,datagrid1.colRef("IRON_RECV_WGT")));
  59. model.makeValue("/root/reqData/LD_NO",datagrid1.valueMatrix(1,datagrid1.colRef("LD_NO")));
  60. model.makeValue("/root/reqData/LD_ARRIV_DTIME",datagrid1.valueMatrix(1,datagrid1.colRef("LD_ARRIV_DTIME")));
  61. model.makeValue("/root/reqData/STA_DTIME",datagrid1.valueMatrix(1,datagrid1.colRef("STA_DTIME")));
  62. model.makeValue("/root/reqData/END_DTIME",datagrid1.valueMatrix(1,datagrid1.colRef("END_DTIME")));
  63. model.makeValue("/root/reqData/LD_DEP_DTIME",datagrid1.valueMatrix(1,datagrid1.colRef("LD_DEP_DTIME")));
  64. model.makeValue("/root/reqData/KR_NO",datagrid1.valueMatrix(1,datagrid1.colRef("KR_NO")));
  65. model.makeValue("/root/reqData/WKSHIFT",datagrid1.valueMatrix(1,datagrid1.colRef("WKSHIFT")));
  66. model.makeValue("/root/reqData/WKGROUP",datagrid1.valueMatrix(1,datagrid1.colRef("WKGROUP")));
  67. model.makeValue("/root/reqData/REG_ID",datagrid1.valueMatrix(1,datagrid1.colRef("REG_ID")));
  68. model.makeValue("/root/reqData/KR_CHARGE_NO",model.getValue("/root/formData/KR_CHARGE_NO"));
  69. model.makeValue("/root/reqData/END_TEMP",datagrid2.valueMatrix(2,datagrid2.colRef("END_TEMP")));
  70. model.makeValue("/root/reqData/MGO_WKER_INPUT_WGT",datagrid2.valueMatrix(2,datagrid2.colRef("MGO_WKER_INPUT_WGT")));
  71. model.makeValue("/root/reqData/CAO_WKER_INPUT_WGT",datagrid2.valueMatrix(2,datagrid2.colRef("CAO_WKER_INPUT_WGT")));
  72. commSubmit("UIG020010-service","save","glueAction.do");
  73. }
  74. function rightClick(){
  75. var checkValue = model.getValue("/root/formData/KR_CHARGE_NO");
  76. if(checkValue == null || checkValue == "")return;
  77. var tstvalue = parseInt(checkValue.substr(4,5),10);
  78. tstvalue = (tstvalue + 1) + "";
  79. var strLen = tstvalue.length;
  80. checkValue = checkValue.substr(0,4);
  81. for(var i = 0 ; i < (5 - strLen) ; i++){
  82. checkValue = checkValue + "0";
  83. }
  84. checkValue = checkValue + tstvalue;
  85. model.setValue("/root/formData/KR_CHARGE_NO",checkValue);
  86. find();
  87. }
  88. function leftClick(){
  89. var checkValue = model.getValue("/root/formData/KR_CHARGE_NO");
  90. if(checkValue == null || checkValue == "")return;
  91. var tstvalue = parseInt(checkValue.substr(4,5),10);
  92. tstvalue = (tstvalue - 1) + "";
  93. var strLen = tstvalue.length;
  94. checkValue = checkValue.substr(0,4);
  95. for(var i = 0 ; i < (5 - strLen) ; i++){
  96. checkValue = checkValue + "0";
  97. }
  98. checkValue = checkValue + tstvalue;
  99. model.setValue("/root/formData/KR_CHARGE_NO",checkValue);
  100. find();
  101. }
  102. ]]>
  103. </script>
  104. <script type="javascript" src="../../js/boaCommon.js"/>
  105. <script type="javascript" src="../../js/G02.js"/>
  106. </xhtml:head>
  107. <xhtml:body guideline="1,980;">
  108. <caption id="caption2" class="cell" style="left:0px; top:5px; width:80px; height:20px; border-color:#000000; ">处理序号</caption>
  109. <datagrid id="datagrid1" nodeset="/root/gridData/grid1/searchKrResult_Row" allowuserresize="false" caption="处理日期^铁水重量^发生时刻^铁水包号^到达时刻^开始时刻^完成时刻^离开时刻^站号^班次^组^作业人" colsep="^" colwidth="86, 60, 80, 54, 115, 115, 115, 115, 50, 50, 50, 90" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:35px; width:980px; height:45px; border-color:#000000; ">
  110. <col ref="TREAT_DATE"/>
  111. <col ref="IRON_RECV_WGT" type="input" format="#,###" style="background-color:#ffff99; "/>
  112. <col ref="OCR_DTIME"/>
  113. <col ref="LD_NO" type="combo" style="background-color:#ffff99; ">
  114. <choices>
  115. <item>
  116. <label>S01</label>
  117. <value>S01</value>
  118. </item>
  119. <item>
  120. <label>S02</label>
  121. <value>S02</value>
  122. </item>
  123. <item>
  124. <label>S03</label>
  125. <value>S03</value>
  126. </item>
  127. <item>
  128. <label>S04</label>
  129. <value>S04</value>
  130. </item>
  131. <item>
  132. <label>S05</label>
  133. <value>S05</value>
  134. </item>
  135. <item>
  136. <label>S06</label>
  137. <value>S06</value>
  138. </item>
  139. <item>
  140. <label>S07</label>
  141. <value>S07</value>
  142. </item>
  143. <item>
  144. <label>S08</label>
  145. <value>S08</value>
  146. </item>
  147. <item>
  148. <label/>
  149. <value/>
  150. </item>
  151. </choices>
  152. </col>
  153. <col ref="LD_ARRIV_DTIME" type="inputdate" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffff99; "/>
  154. <col ref="STA_DTIME" type="inputdate" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffff99; "/>
  155. <col ref="END_DTIME" type="inputdate" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffff99; "/>
  156. <col ref="LD_DEP_DTIME" type="inputdate" format="yyyy-mm-dd hh:nn:ss" style="background-color:#ffff99; "/>
  157. <col editmode="inputsearch" ref="KR_NO" type="combo" style="background-color:#ffff99; ">
  158. <choices>
  159. <item>
  160. <label>K1</label>
  161. <value>1</value>
  162. </item>
  163. <item>
  164. <label>K2</label>
  165. <value>2</value>
  166. </item>
  167. </choices>
  168. </col>
  169. <col editmode="inputsearch" ref="WKSHIFT" type="combo" style="background-color:#ffff99; ">
  170. <choices>
  171. <item>
  172. <label>早班</label>
  173. <value>1</value>
  174. </item>
  175. <item>
  176. <label>中班</label>
  177. <value>2</value>
  178. </item>
  179. <item>
  180. <label>晚班</label>
  181. <value>3</value>
  182. </item>
  183. <item>
  184. <label/>
  185. <value/>
  186. </item>
  187. </choices>
  188. </col>
  189. <col editmode="inputsearch" ref="WKGROUP" type="combo" style="background-color:#ffff99; ">
  190. <choices>
  191. <item>
  192. <label>甲</label>
  193. <value>1</value>
  194. </item>
  195. <item>
  196. <label>乙</label>
  197. <value>2</value>
  198. </item>
  199. <item>
  200. <label>丙</label>
  201. <value>3</value>
  202. </item>
  203. <item>
  204. <label>丁</label>
  205. <value>4</value>
  206. </item>
  207. </choices>
  208. </col>
  209. <col ref="REG_ID" type="input" style="background-color:#ffff99; "/>
  210. </datagrid>
  211. <datagrid id="datagrid2" nodeset="/root/gridData/grid2/searchKrResult_Row" allowuserresize="false" caption="处理后硫含量^处理后磷含量^处理后碳含量^处理后锰含量^处理后硅含量^处理后锑含量^结束温度^处理前扒渣与否^处理后扒渣与否^MgO设定值^CaO设定值^MgO使用量^CaO使用量|处理后硫含量^处理后磷含量^处理后碳含量^处理后锰含量^处理后硅含量^处理后锑含量^结束温度^处理前扒渣与否^处理后扒渣与否^MgO设定值^CaO设定值^MgO使用量^CaO使用量" colsep="^" colwidth="66, 66, 61, 65, 66, 65, 75, 75, 75, 93, 83, 95, 91" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:84px; width:980px; height:76px; border-color:#000000; ">
  212. <col ref="TREAT_AFT_S_WGT"/>
  213. <col ref="TREAT_AFT_P_WGT"/>
  214. <col ref="TREAT_AFT_C_WGT"/>
  215. <col ref="TREAT_AFT_MN_WGT"/>
  216. <col ref="TREAT_AFT_SI_WGT"/>
  217. <col ref="TREAT_AFT_TI_WGT"/>
  218. <col ref="END_TEMP" type="input" format="#,###" style="background-color:#ffff99; "/>
  219. <col ref="BEF_SLAG_REMOVE_YN"/>
  220. <col ref="AFT_SLAG_REMOVE_YN"/>
  221. <col ref="MGO_CAL_WGT"/>
  222. <col ref="CAO_CAL_WGT"/>
  223. <col ref="MGO_WKER_INPUT_WGT" type="input" format="#,###" style="background-color:#ffff99; "/>
  224. <col ref="CAO_WKER_INPUT_WGT" type="input" format="#,###" style="background-color:#ffff99; "/>
  225. </datagrid>
  226. <datagrid id="datagrid3" nodeset="/root/gridData/grid3/searchKrResult_Row" allowuserresize="false" caption="搅伴^ 搅伴^ 搅伴^扒前渣^扒前渣^扒前渣^扒前渣^扒后渣^扒后渣^扒后渣^扒后渣|作业时间^开始时刻^结束时刻^扒前渣量^作业时间^开始时刻^结束时刻^扒后渣量^作业时间^开始时刻^结束时刻" colsep="^" colwidth="80, 105, 105, 60, 80, 105, 101, 60, 80, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:165px; width:980px; height:115px; border-color:#000000; ">
  227. <col ref="MIX_TREAT_HOUR"/>
  228. <col ref="MIX_STA_DTIME"/>
  229. <col ref="MIX_END_DTIME"/>
  230. <col ref="BEF_SLAG_REMOVE_WGT"/>
  231. <col ref="BEF_SLAG_REMOVE_HOUR"/>
  232. <col ref="BEF_SLAG_REMOVE_STA_DTIME"/>
  233. <col ref="BEF_SLAG_REMOVE_END_DTIME"/>
  234. <col ref="AFT_SLAG_REMOVE_WGT"/>
  235. <col ref="AFT_SLAG_REMOVE_HOUR"/>
  236. <col ref="AFT_SLAG_REMOVE_STA_DTIME"/>
  237. <col ref="AFT_SLAG_REMOVE_END_DTIME"/>
  238. </datagrid>
  239. <line id="line4" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
  240. <line id="line2" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
  241. <input id="input1" ref="/root/formData/KR_CHARGE_NO" style="left:85px; top:5px; width:85px; height:20px; ">
  242. <script type="javascript" ev:event="xforms-value-changed">
  243. <![CDATA[
  244. find();
  245. ]]>
  246. </script>
  247. </input>
  248. <button id="button3" style="left:200px; top:8px; width:20px; height:20px; background-image:../../images/cal_next_m.gif; ">
  249. <caption/>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. rightClick();
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="button4" style="left:175px; top:8px; width:20px; height:20px; background-image:../../images/cal_pre_m.gif; ">
  257. <caption/>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. leftClick();
  261. ]]>
  262. </script>
  263. </button>
  264. </xhtml:body>
  265. </xhtml:html>