fa6e55fa1c10e8c969befa2dc59c78c763c9ad2b.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
  3. <?xml-stylesheet href="../css/bCommon.css" type="text/css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>
  7. <![CDATA[品质判定>>成分判定>>板坯流正常转申请界面]]>
  8. </xhtml:title>
  9. <model id="model1">
  10. <instance id="instance1">
  11. <root xmlns="">
  12. <example>Sample</example>
  13. <getData>
  14. <BTIME/>
  15. <ETIME/>
  16. </getData>
  17. <BPNO/>
  18. <SQZT>0</SQZT>
  19. <datagrid1/>
  20. <ASK_CFM_JR_DESC/>
  21. <ASK_CFM_ZZ_DESC/>
  22. <ASK_CFM_QY_DESC/>
  23. <ASK_CFM_RCL_DESC/>
  24. <ASK_CFM_LGPD_DESC/>
  25. <CFPDYQ/>
  26. <LHResult_Row>
  27. <SLH/>
  28. <XLH/>
  29. </LHResult_Row>
  30. <datagrid2/>
  31. <datagrid3/>
  32. <datagrid4/>
  33. <resData/>
  34. </root>
  35. </instance>
  36. </model>
  37. <script type="javascript" src="../../js/boaCommon.js"/>
  38. <script type="javascript" src="../../js/b01.js"/>
  39. <script type="javascript">
  40. <![CDATA[
  41. function find()
  42. {
  43. model.removenode("/root/reqData");
  44. model.makeValue("/root/reqData/BTIME" , input1.value);
  45. model.makeValue("/root/reqData/ETIME" , input2.value);
  46. model.makeValue("/root/reqData/BPNO" , input3.value);
  47. model.makeValue("/root/reqData/SQZT" , combo1.value);
  48. commSubmit("UIB030351-service" , "find" , "glueAction.do");
  49. model.copyNode("/root/datagrid1" , "/root/resData/lzsqResult_VO");
  50. model.refresh();
  51. output1.value = getSumWGT();
  52. }
  53. function confirm()
  54. {
  55. //if(beGridChanged(datagrid1)=="0")
  56. //return;
  57. model.removenode("/root/reqData");
  58. model.makeNode("/root/reqData");
  59. //for(var i=0;i<datagrid1.rows;i++){
  60. //
  61. //datagrid1.rowStatus(i) = 2;
  62. //}
  63. //b01MultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
  64. //model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));
  65. //model.makeValue("/root/reqData/JR_DESC" , input4.value);
  66. //model.makeValue("/root/reqData/ZZ_DESC" , input5.value);
  67. //model.makeValue("/root/reqData/QY_DESC" , input6.value);
  68. //model.makeValue("/root/reqData/RCL_DESC" , input7.value);
  69. //model.makeValue("/root/reqData/LGPD_DESC" , input8.value);
  70. var iRow=datagrid1.rows; //grid的行数
  71. //alert(iRow);
  72. var flag=false; //用于判断行是否被选中
  73. for(var i=1;i<iRow;i++)
  74. {
  75. if(datagrid1.valueMatrix(i,1)=="true")
  76. {
  77. flag= true;
  78. //model.makeValue("/root/reqData/CHK" , datagrid1.valueMatrix(i,1));
  79. model.makeValue("/root/reqData["+i+"]/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));
  80. model.makeValue("/root/reqData["+i+"]/JR_DESC" , input4.value);
  81. model.makeValue("/root/reqData["+i+"]/ZZ_DESC" , input5.value);
  82. model.makeValue("/root/reqData["+i+"]/QY_DESC" , input6.value);
  83. model.makeValue("/root/reqData["+i+"]/RCL_DESC" , input7.value);
  84. model.makeValue("/root/reqData["+i+"]/LGPD_DESC" ,input8.value);
  85. model.makeValue("/root/reqData["+i+"]/CFPDYQ" , input9.value);
  86. model.makeValue("/root/reqData["+i+"]/SLAB_NO",datagrid1.valueMatrix(i,2));
  87. }
  88. }
  89. if(flag==false)
  90. {
  91. window.alert("请选择你要确定的项","提示");
  92. return;
  93. }
  94. commSubmit("UIB030351-service", "confirm", "glueAction.do");
  95. input4.value="";
  96. input5.value="";
  97. input6.value="";
  98. input7.value="";
  99. input8.value="";
  100. input9.value="";
  101. //datagrid1.clearStatus();
  102. }
  103. function cancleConfirm()
  104. {
  105. //if(beGridChanged(datagrid1)=="0")
  106. // return;
  107. model.removenode("/root/reqData");
  108. model.makeNode("/root/reqData");
  109. var flag=false;
  110. for(var i=0;i<datagrid1.rows;i++)
  111. {
  112. if(datagrid1.valueMatrix(i , 1) == "true" && datagrid1.valueMatrix(i , 13) == "正常流转")
  113. {
  114. window.alert(datagrid1.valueMatrix(i , 2)+"已正常流转,不能取消确认。", "提示");
  115. return;
  116. }
  117. if(datagrid1.valueMatrix(i,1)=="true")
  118. {
  119. flag= true;
  120. model.makeValue("/root/reqData["+i+"]/SLAB_NO",datagrid1.valueMatrix(i,2));
  121. }
  122. }
  123. if(flag==false)
  124. {
  125. window.alert("请选择你要取消的项","提示");
  126. return;
  127. }
  128. if(commComfirmBox("确定要取消吗?","提示")==0)
  129. return;
  130. //b01MultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
  131. //model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));
  132. commSubmit("UIB030351-service", "cancleConfirm", "glueAction.do");
  133. //datagrid1.clearStatus();
  134. }
  135. function getSumWGT()
  136. {
  137. var totalWGT = 0;
  138. for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
  139. {
  140. if(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")) == "")
  141. {
  142. }else{
  143. totalWGT = totalWGT + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")));
  144. }
  145. }
  146. return totalWGT;
  147. }
  148. ]]>
  149. </script>
  150. </xhtml:head>
  151. <xhtml:body pagewidth="920" pageheight="680">
  152. <button id="button1" visibility="visible" style="left:640px; top:15px; width:50px; height:20px; background-color:#00ccff; ">
  153. <caption>查询</caption>
  154. <script type="javascript" ev:event="onclick">
  155. <![CDATA[
  156. find();
  157. ]]>
  158. </script>
  159. </button>
  160. <line id="line1" style="x1:170px; y1:25px; x2:195px; y2:25px; "/>
  161. <input id="input1" ref="/root/getData/BTIME" inputtype="date" format="yyyy-mm-dd" style="left:70px; top:15px; width:100px; height:20px; "/>
  162. <input id="input2" ref="/root/getData/ETIME" inputtype="date" format="yyyy-mm-dd" style="left:195px; top:15px; width:100px; height:20px; "/>
  163. <caption id="caption1" style="left:15px; top:15px; width:60px; height:20px; ">申请时间</caption>
  164. <caption id="caption2" style="left:320px; top:15px; width:45px; height:20px; ">板坯号</caption>
  165. <caption id="caption3" style="left:480px; top:15px; width:50px; height:20px; ">申请状态</caption>
  166. <caption id="caption4" class="cell" style="left:725px; top:600px; width:100px; height:20px; ">重量合计</caption>
  167. <output id="output1" style="left:725px; top:620px; width:100px; height:20px; "/>
  168. <line id="line2" style="x1:730px; y1:640px; x2:805px; y2:640px; "/>
  169. <input id="input3" ref="/root/BPNO" style="left:360px; top:15px; width:100px; height:20px; "/>
  170. <datagrid id="datagrid1" nodeset="/root/datagrid1/lzsqResult_Row" caption="选择^板坯号^申请状态^申请时间^板坯状态^板坯去向^是否在库^合同号^订单号^实际规格^实际牌号^计划牌号^成分等级^判定方式^外观等级^精整方法^余材区分^板坯重量^LF^RH^VD^加热要求^轧制要求^取样要求^热处理要求^炼钢判定及处理要求^成品判定及处理要求^流转申请确认人^流转申请确时间" colsep="^" colwidth="35, 100, 70, 90, 120, 70, 60, 90, 45, 80, 80, 80, 60, 60, 60, 60, 60, 60, 100, 100, 100, 100, 100, 100, 100, 130, 127, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:50px; width:695px; height:310px; ">
  171. <col ref="CHK" type="checkbox" style="text-align:left; "/>
  172. <col ref="SLAB_NO" style="font-weight:bold; text-decoration:underline; text-align:left; cursor:hand; "/>
  173. <col ref="ASK_TP"/>
  174. <col ref="SLAB_INGR_DEC_DTIME"/>
  175. <col ref="CUR_PROG_CD"/>
  176. <col ref="SLAB_RT"/>
  177. <col ref="SLAB_STAT"/>
  178. <col ref="ORD_NO"/>
  179. <col ref="ORD_SEQ"/>
  180. <col ref="TWL"/>
  181. <col ref="STL_GRD"/>
  182. <col ref="BEF_STL_GRD"/>
  183. <col ref="SLAB_INGR_DEC_GRD"/>
  184. <col ref="SLAB_INGR_DEC_KIND"/>
  185. <col ref="EXTSHAPE_GRD"/>
  186. <col ref="SF_METHOD"/>
  187. <col ref="ORD_FL"/>
  188. <col ref="SLAB_WGT"/>
  189. <col ref="LF"/>
  190. <col ref="RH"/>
  191. <col ref="VD"/>
  192. <col ref="ASK_CFM_JR_DESC" type="input"/>
  193. <col ref="ASK_CFM_ZZ_DESC" type="input"/>
  194. <col ref="ASK_CFM_QY_DESC" type="input"/>
  195. <col ref="ASK_CFM_RCL_DESC" type="input"/>
  196. <col ref="ASK_CFM_LGPD_DESC" type="input"/>
  197. <col ref="CFPDYQ" type="input"/>
  198. <col ref="ASK_CFM_ID"/>
  199. <col ref="ASK_CFM_DTIME"/>
  200. <script type="javascript" ev:event="onclick">
  201. <![CDATA[
  202. var row=datagrid1.row;
  203. if(row<=0)
  204. return;
  205. if(datagrid1.col != datagrid1.colRef("SLAB_NO") || datagrid1.row < datagrid1.fixedRows)
  206. return;
  207. var BPNO=datagrid1.valueMatrix(row,2);
  208. //alert(BPNO);
  209. model.removenode("/root/reqData");
  210. model.makeValue("/root/reqData/BPNO",BPNO);
  211. commSubmit("UIB030351-service","getlh", "glueAction.do");
  212. model.copyNode("/root/datagrid2" , "/root/resData/SResult_VO");
  213. model.copyNode("/root/datagrid3" , "/root/resData/ZResult_VO");
  214. model.copyNode("/root/datagrid4" , "/root/resData/XResult_VO");
  215. model.refresh();
  216. ]]>
  217. </script>
  218. </datagrid>
  219. <select1 id="combo1" ref="/root/SQZT" appearance="minimal" style="left:530px; top:15px; width:100px; height:20px; ">
  220. <choices>
  221. <item>
  222. <label>正在申请</label>
  223. <value>0</value>
  224. </item>
  225. <item>
  226. <label>确认申请</label>
  227. <value>1</value>
  228. </item>
  229. </choices>
  230. </select1>
  231. <button id="button2" style="left:700px; top:15px; width:55px; height:20px; background-color:#00ff00; ">
  232. <caption>确认申请</caption>
  233. <script type="javascript" ev:event="onclick">
  234. <![CDATA[
  235. confirm();
  236. find();
  237. ]]>
  238. </script>
  239. </button>
  240. <button id="button3" style="left:760px; top:15px; width:55px; height:20px; background-color:#00ff00; ">
  241. <caption>取消申请</caption>
  242. <script type="javascript" ev:event="onclick">
  243. <![CDATA[
  244. cancleConfirm();
  245. find();
  246. ]]>
  247. </script>
  248. </button>
  249. <caption id="caption5" style="left:5px; top:375px; width:65px; height:35px; background-color:#00ccff; ">加热要求</caption>
  250. <input id="input4" ref="/root/ASK_CFM_JR_DESC" autonext="true" style="left:70px; top:375px; width:625px; height:35px; "/>
  251. <caption id="caption6" style="left:5px; top:420px; width:65px; height:35px; background-color:#00ccff; ">轧制要求</caption>
  252. <caption id="caption7" style="left:5px; top:465px; width:65px; height:35px; background-color:#00ccff; ">取样要求</caption>
  253. <caption id="caption8" style="left:5px; top:510px; width:65px; height:35px; background-color:#00ccff; ">热处理要求</caption>
  254. <caption id="caption9" style="left:5px; top:555px; width:65px; height:35px; background-color:#00ccff; ">炼钢判定及处理要求</caption>
  255. <input id="input5" ref="/root/ASK_CFM_ZZ_DESC" style="left:70px; top:420px; width:625px; height:35px; "/>
  256. <input id="input6" ref="/root/ASK_CFM_QY_DESC" style="left:70px; top:465px; width:625px; height:35px; "/>
  257. <input id="input7" ref="/root/ASK_CFM_RCL_DESC" style="left:70px; top:510px; width:625px; height:35px; "/>
  258. <input id="input8" ref="/root/ASK_CFM_LGPD_DESC" style="left:70px; top:555px; width:625px; height:35px; "/>
  259. <input id="input9" ref="/root/CFPDYQ" style="left:70px; top:600px; width:625px; height:35px; "/>
  260. <caption id="caption10" style="left:5px; top:600px; width:65px; height:35px; background-color:#00ccff; ">成品判定及处理要求</caption>
  261. <caption id="caption11" class="cell" style="left:725px; top:600px; width:100px; height:20px; ">重量合计</caption>
  262. <output id="output2" style="left:725px; top:620px; width:100px; height:20px; "/>
  263. <datagrid id="datagrid2" nodeset="/root/datagrid2/SResult_Row" caption="成分(上炉)^元素值" colsep="^" colwidth="100, 95" mergecellsfixedrows="bycolrec" rowsep="|" style="left:710px; top:50px; width:200px; height:160px; ">
  264. <col ref="CHEM_CD"/>
  265. <col ref="CHEM_VAL"/>
  266. </datagrid>
  267. <datagrid id="datagrid3" nodeset="/root/datagrid3/ZResult_Row" caption="成分(当前)^元素值" colsep="^" colwidth="100, 96" mergecellsfixedrows="bycolrec" rowsep="|" style="left:710px; top:225px; width:200px; height:160px; ">
  268. <col ref="CHEM_CD"/>
  269. <col ref="CHEM_VAL"/>
  270. </datagrid>
  271. <datagrid id="datagrid4" nodeset="/root/datagrid4/XResult_Row" caption="成分(下炉)^元素值" colsep="^" colwidth="100, 95" mergecellsfixedrows="bycolrec" rowsep="|" style="left:710px; top:405px; width:200px; height:170px; ">
  272. <col ref="CHEM_CD"/>
  273. <col ref="CHEM_VAL"/>
  274. </datagrid>
  275. </xhtml:body>
  276. </xhtml:html>