UIG040070.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  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[炼钢作业 >> 板坯库管理 >> 板坯尺寸修改实绩登录与查询(UIG040070)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <searchData>
  14. <SCRAP_WGT/>
  15. <MATRL_END_CAUSE_CD/>
  16. <SLAB_NO/>
  17. </searchData>
  18. <comboData/>
  19. <gridData>
  20. <grid3/>
  21. <cutDirectGrid/>
  22. <cutResultGrid/>
  23. <grid1/>
  24. <grid2/>
  25. </gridData>
  26. <initData>
  27. <LG_CD>G03003,Z05001,Z05002</LG_CD>
  28. </initData>
  29. <codeData>
  30. </codeData>
  31. <formData>
  32. <REG_ID/>
  33. <MOD_CD/>
  34. <SLAB_NO/>
  35. <SCRAP_WGT/>
  36. <MATRL_END_CD/>
  37. <REG_SHIP/>
  38. <REG_GROUP/>
  39. <CUT_CNT/>
  40. </formData>
  41. </root>
  42. </instance>
  43. </model>
  44. <script type="javascript">
  45. <![CDATA[
  46. // 板坯分割修改原因
  47. var MODIFY_CODE = "";
  48. /*
  49. * 初始化页面
  50. */
  51. function Init(node) {
  52. InitParams(node);
  53. initPage();
  54. //shiftSearch();
  55. }
  56. function InitParams(node) {
  57. if (typeof node == "undefined" && typeof node != "object") return;
  58. model.removenode("/root/initData/rcvInfo");
  59. model.makeNode("/root/initData/rcvInfo");
  60. var nodeList = node.childNodes;
  61. for (var i = 0; i < nodeList.length; i++)
  62. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  63. }
  64. function initPage()
  65. {
  66. // commSubmit("UIG040070-service","success","glueAction.do");
  67. // commAppendData("/root/gridData/grid3/INIT_RESULT_VO","/root/resData/INIT_RESULT_VO");
  68. // datagrid5.refresh();
  69. //
  70. // datagrid1.cellAttribute("editable", 1,datagrid1.colRef("SLAB_LEN")) = "false";
  71. // datagrid1.cellAttribute("editable", 1,datagrid1.colRef("SIZE_DEC_FL")) = "false";
  72. commSendReq("/root/initData");
  73. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  74. model.copyNode("/root/codeData","/root/resData");
  75. model.refresh();
  76. model.setValue("/root/formData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  77. }
  78. function find(){
  79. commSendReq("/root/searchData");
  80. commSubmit("UIG040070-service","find","glueAction.do");
  81. commAppendData("/root/gridData/grid3/SearchMILLYARD_Result_VO","/root/resData/SearchMILLYARD_Result_VO");
  82. model.refresh();
  83. }
  84. function select()
  85. {
  86. model.setValue("/root/searchData/SLAB_NO",datagrid5.valueMatrix(datagrid5.row,datagrid5.colRef("SLAB_NO")));
  87. commSendReq("/root/searchData");
  88. commSubmit("UIG040070-service","select","glueAction.do");
  89. // datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")) = "";
  90. // 将分割指示信息在 分割指示对象表中显示
  91. commAppendData("/root/gridData/cutDirectGrid/CutDirectResult_VO","/root/resData/CutDirectResult_VO");
  92. // 将板坯实绩信息在分割实绩录入表的第一行显示,作为板坯的原始信息对照
  93. commAppendData("/root/gridData/cutResultGrid/CutResult_VO","/root/resData/CutResult_VO");
  94. datagrid3.refresh();
  95. //datagrid1.refresh();
  96. datagrid3.valueMatrix(1,datagrid3.colRef("CLF")) = " 修改前";
  97. }
  98. function save()
  99. {
  100. datagrid3.rowStatus(1) = 0;
  101. if(MODIFY_CODE == 2 || MODIFY_CODE == 3)
  102. {
  103. var loadLoc1 = datagrid3.valueMatrix(2,datagrid3.colRef("CUR_LOAD_LOC"));
  104. var loadLoc2 = datagrid3.valueMatrix(3,datagrid3.colRef("CUR_LOAD_LOC"));
  105. var len1 = loadLoc1.length;
  106. var len2 = loadLoc2.length;
  107. if((loadLoc1 == "" || loadLoc1 == null )
  108. ||(loadLoc2 == "" || loadLoc2 == null ))
  109. {
  110. alert("垛位不能为空");
  111. return;
  112. }
  113. if(loadLoc1.substr(0,1) == "L" && loadLoc2.substr(0,1) == "L"){
  114. if(len1 != 5 || len2 != 5){
  115. alert("垛位格式错误!");
  116. return;
  117. }
  118. }
  119. else if(loadLoc1.substr(0,1) == "Z" && loadLoc2.substr(0,1) == "Z"){
  120. if(len1 != 6 || len2 != 6){
  121. alert("垛位格式错误!");
  122. return;
  123. }
  124. }else{
  125. alert("垛位格式错误!");
  126. return;
  127. }
  128. // 修改分割实绩录入表格2,3行的行状态为UPDATE
  129. datagrid3.rowStatus(2) = 2;
  130. datagrid3.rowStatus(3) = 2;
  131. model1.removenode("/root/reqData");
  132. model1.makeNode("/root/reqData");
  133. commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStatus");
  134. model1.makeNode("/root/reqData/CutResult_Row[1]/MODIFY_CD");
  135. model1.makeNode("/root/reqData/CutResult_Row[2]/MODIFY_CD");
  136. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK");
  137. model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_THK");
  138. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH");
  139. model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_WTH");
  140. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN");
  141. model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_LEN");
  142. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT");
  143. model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_WGT");
  144. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_WKSHIFT");
  145. model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_WKSHIFT");
  146. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_WKGROUP");
  147. model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_WKGROUP");
  148. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_EMP_NO");
  149. model1.makeNode("/root/reqData/CutResult_Row[2]/SIZE_UPDT_EMP_NO");
  150. model1.makeNode("/root/reqData/CutResult_Row[1]/UPDT_BEF_SLABNO");
  151. model1.makeNode("/root/reqData/CutResult_Row[2]/UPDT_BEF_SLABNO");
  152. model1.makeNode("/root/reqData/UPDT_BEF_SLAB_NO");
  153. model1.setValue("/root/reqData/UPDT_BEF_SLAB_NO",model1.getValue("/root/searchData/SLAB_NO"));
  154. model1.makeNode("/root/reqData/SUB_SLAB_NO");
  155. model1.setValue("/root/reqData/SUB_SLAB_NO",model1.getValue("/root/searchData/SLAB_NO").substr(0,12));
  156. model1.setValue("/root/reqData/CutResult_Row[1]/MODIFY_CD",datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")));
  157. model1.setValue("/root/reqData/CutResult_Row[2]/MODIFY_CD",datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")));
  158. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_WKSHIFT",datagrid1.valueMatrix(1,datagrid1.colRef("WKSHIFT")));
  159. model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_WKSHIFT",datagrid1.valueMatrix(1,datagrid1.colRef("WKSHIFT")));
  160. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_WKGROUP",datagrid1.valueMatrix(1,datagrid1.colRef("GROUP")));
  161. model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_WKGROUP",datagrid1.valueMatrix(1,datagrid1.colRef("GROUP")));
  162. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_EMP_NO",datagrid1.valueMatrix(1,datagrid1.colRef("REG_ID")));
  163. model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_EMP_NO",datagrid1.valueMatrix(1,datagrid1.colRef("REG_ID")));
  164. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_THK")));
  165. model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_THK",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_THK")));
  166. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WTH")));
  167. model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_WTH",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WTH")));
  168. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_LEN")));
  169. model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_LEN",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_LEN")));
  170. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")));
  171. model1.setValue("/root/reqData/CutResult_Row[2]/SIZE_UPDT_BEF_WGT",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")));
  172. model1.setValue("/root/reqData/CutResult_Row[1]/UPDT_BEF_SLABNO",model1.getValue("/root/searchData/SLAB_NO"));
  173. model1.setValue("/root/reqData/CutResult_Row[2]/UPDT_BEF_SLABNO",model1.getValue("/root/searchData/SLAB_NO"));
  174. commSubmit("UIG040070-service","save1","glueAction.do");
  175. }
  176. // 如果修改原因是全废钢
  177. else if(MODIFY_CODE == 4 )
  178. {
  179. // 设置板坯结束状态为废钢
  180. model1.setValue("/root/searchData/MATRL_END_CAUSE_CD",2);
  181. commSendReq("/root/searchData");
  182. model1.makeNode("/root/reqData/rowStatus");
  183. model1.setValue("/root/reqData/rowStatus","u");
  184. model1.makeNode("/root/reqData/SUB_SLAB_NO");
  185. model1.makeNode("/root/reqData/SCRAP_WGT");
  186. model1.setValue("/root/reqData/SUB_SLAB_NO",model1.getValue("/root/searchData/SLAB_NO").substr(0,12));
  187. model1.setValue("/root/reqData/SCRAP_WGT",model1.getValue("/root/searchData/SCRAP_WGT"));
  188. commSubmit("UIG040070-service","save2","glueAction.do");
  189. }
  190. // 如果修改原因是部分废钢,则还可以切出一块板坯来
  191. else if(MODIFY_CODE == 5)
  192. {
  193. // 修改分割实绩录入表格2行的行状态为UPDATE
  194. datagrid3.rowStatus(2) = 2;
  195. model1.removenode("/root/reqData");
  196. model1.makeNode("/root/reqData");
  197. commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStatus");
  198. model1.makeNode("/root/reqData/CutResult_Row[1]/SUB_SLAB_NO");
  199. model1.makeNode("/root/reqData/CutResult_Row[1]/SCRAP_WGT");
  200. // 用于模糊查询修改前,修改后的板坯信息
  201. model1.setValue("/root/reqData/CutResult_Row[1]/SUB_SLAB_NO",model1.getValue("/root/searchData/SLAB_NO").substr(0,12));
  202. model1.setValue("/root/reqData/CutResult_Row[1]/SCRAP_WGT",model1.getValue("/root/searchData/SCRAP_WGT"));
  203. model1.makeNode("/root/reqData/CutResult_Row[1]/MODIFY_CD");
  204. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK");
  205. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH");
  206. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN");
  207. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT");
  208. model1.makeNode("/root/reqData/CutResult_Row[1]/WKSHIFT");
  209. model1.makeNode("/root/reqData/CutResult_Row[1]/GROUP");
  210. model1.makeNode("/root/reqData/CutResult_Row[1]/REG_ID");
  211. model1.setValue("/root/reqData/CutResult_Row[1]/WKSHIFT",datagrid1.valueMatrix(1,datagrid1.colRef("WKSHIFT")));
  212. model1.setValue("/root/reqData/CutResult_Row[1]/GROUP",datagrid1.valueMatrix(1,datagrid1.colRef("GROUP")));
  213. model1.setValue("/root/reqData/CutResult_Row[1]/REG_ID",datagrid1.valueMatrix(1,datagrid1.colRef("REG_ID")));
  214. model1.setValue("/root/reqData/CutResult_Row[1]/MODIFY_CD",datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")));
  215. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_THK")));
  216. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WTH")));
  217. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_LEN")));
  218. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")));
  219. commSubmit("UIG040070-service","save4","glueAction.do");
  220. }
  221. else if(MODIFY_CODE == 1)
  222. {
  223. // 修改分割实绩录入表格2行的行状态为UPDATE
  224. datagrid3.rowStatus(2) = 2;
  225. model1.removenode("/root/reqData");
  226. model1.makeNode("/root/reqData");
  227. model1.makeNode("/root/reqData/SUB_SLAB_NO");
  228. model1.setValue("/root/reqData/SUB_SLAB_NO",model1.getValue("/root/searchData/SLAB_NO").substr(0,12));
  229. commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStatus");
  230. model1.makeNode("/root/reqData/CutResult_Row[1]/MODIFY_CD");
  231. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK");
  232. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH");
  233. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN");
  234. model1.makeNode("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT");
  235. model1.makeNode("/root/reqData/CutResult_Row[1]/WKSHIFT");
  236. model1.makeNode("/root/reqData/CutResult_Row[1]/GROUP");
  237. model1.makeNode("/root/reqData/CutResult_Row[1]/REG_ID");
  238. model1.setValue("/root/reqData/CutResult_Row[1]/WKSHIFT",datagrid1.valueMatrix(1,datagrid1.colRef("WKSHIFT")));
  239. model1.setValue("/root/reqData/CutResult_Row[1]/GROUP",datagrid1.valueMatrix(1,datagrid1.colRef("GROUP")));
  240. model1.setValue("/root/reqData/CutResult_Row[1]/REG_ID",datagrid1.valueMatrix(1,datagrid1.colRef("REG_ID")));
  241. model1.setValue("/root/reqData/CutResult_Row[1]/MODIFY_CD",datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")));
  242. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_THK",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_THK")));
  243. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WTH",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WTH")));
  244. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_LEN",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_LEN")));
  245. model1.setValue("/root/reqData/CutResult_Row[1]/SIZE_UPDT_BEF_WGT",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")));
  246. commSubmit("UIG040070-service","save3","glueAction.do");
  247. }
  248. commAppendData("/root/gridData/grid2/CorrectedResult_VO","/root/resData/CorrectedResult_VO");
  249. datagrid4.refresh();
  250. alert(model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
  251. }
  252. ]]>
  253. </script>
  254. <script type="javascript" src="../../js/boaCommon.js"/>
  255. </xhtml:head>
  256. <xhtml:body guideline="1,980;2,615;">
  257. <caption id="caption10" class="cell" style="left:0px; top:215px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">分割指示对象</caption>
  258. <datagrid id="datagrid2" nodeset="/root/gridData/cutDirectGrid/CutDirectResult_VO/CutDirectResult_Row" disabled="true" allowuserresize="false" caption="板坯号^分割^厚度^宽度^长度" colsep="^" colwidth="99, 60, 60, 54, 76" defaultrows="3" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:235px; width:355px; height:120px; border-color:#000000; ">
  259. <col ref="SLAB_NO"/>
  260. <col ref="SLAB_CUT_SEQ"/>
  261. <col editable="false" ref="SLAB_THK" type="input"/>
  262. <col editable="false" ref="SLAB_WTH" type="input"/>
  263. <col editable="false" ref="SLAB_LEN" type="input"/>
  264. </datagrid>
  265. <caption id="caption1" class="cell" style="left:360px; top:215px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">分割实绩录入</caption>
  266. <datagrid id="datagrid3" nodeset="/root/gridData/cutResultGrid/CutResult_VO/CutResult_Row" caption="区分^板坯号^厚度^宽度^长度^重量^长度判定^垛位^废钢量^" colsep="^" colwidth="80, 97, 46, 50, 55, 60, 52, 90, 100, 5" defaultrows="4" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:360px; top:235px; width:620px; height:120px; border-color:#000000; ">
  267. <col ref="CLF"/>
  268. <col ref="SLAB_NO"/>
  269. <col ref="SLAB_THK" type="input" style="background-color:#ffff99; "/>
  270. <col ref="SLAB_WTH" type="input" style="background-color:#ffff99; "/>
  271. <col ref="SLAB_LEN" type="input" style="background-color:#ffff99; "/>
  272. <col ref="SLAB_WGT" type="input" style="background-color:#ffff99; "/>
  273. <col ref="SIZE_DEC_FL" type="combo" style="background-color:#ffff99; ">
  274. <choices>
  275. <item>
  276. <label>合格</label>
  277. <value>1</value>
  278. </item>
  279. <item>
  280. <label>不合格</label>
  281. <value>2</value>
  282. </item>
  283. </choices>
  284. </col>
  285. <col ref="CUR_LOAD_LOC" type="input" style="background-color:#ffff99; "/>
  286. <col/>
  287. <col ref="ORL_LOAD_LOC" visibility="hidden"/>
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. if(datagrid3.col == datagrid3.colRef("SLAB_LEN"))
  291. {
  292. //板坯分割生成新的板坯后,根据新板坯的长宽厚计算出板坯重量
  293. var slabThk = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_THK"));
  294. var slabWth = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_WTH"));
  295. var slabLen = datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_LEN"));
  296. var slabWgt = Math.round(parseInt(slabThk)*parseInt(slabWth)*parseInt(slabLen)*7.8/1000000);
  297. datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("SLAB_WGT")) = slabWgt;
  298. if(datagrid1.valueMatrix(1,datagrid1.colRef("MODIFY_CD")) == "05"){
  299. var scrapWgt = datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")) - slabWgt;
  300. model.makeNode("/root/searchData/SCRAP_WGT");
  301. model.setValue("/root/searchData/SCRAP_WGT",scrapWgt);
  302. input2.value = scrapWgt;
  303. input2.refresh();
  304. }
  305. }
  306. ]]>
  307. </script>
  308. </datagrid>
  309. <caption id="caption2" class="cell" style="left:0px; top:362px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">切割实绩</caption>
  310. <datagrid id="datagrid4" nodeset="/root/gridData/grid2/CorrectedResult_VO/CorrectedResult_Row" disabled="true" caption="板坯号^修改前^修改前^修改前^修改前^修改后^修改后^修改后^修改后^修改原因^产品余材区分^牌号^登录人^班次^组|板坯号^厚度^宽度^长度^重量^厚度^宽度^长度^重量^修改原因^产品余材区分^牌号^登录人^班次^组" colsep="^" colwidth="90, 60, 60, 60, 60, 60, 60, 60, 60, 75, 60, 60, 90, 60, 60" defaultrows="12" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:382px; width:980px; height:233px; border-color:#000000; ">
  311. <col editable="false" ref="SLAB_NO" type="input"/>
  312. <col editable="false" ref="SIZE_UPDT_BEF_THK" type="input"/>
  313. <col editable="false" ref="SIZE_UPDT_BEF_WTH" type="input"/>
  314. <col editable="false" ref="SIZE_UPDT_BEF_LEN" type="input"/>
  315. <col editable="false" ref="SIZE_UPDT_BEF_WGT" type="input"/>
  316. <col editable="false" ref="SIZE_UPDT_AFT_THK" type="input"/>
  317. <col editable="false" ref="SIZE_UPDT_AFT_WTH" type="input"/>
  318. <col editable="false" ref="SIZE_UPDT_AFT_LEN" type="input"/>
  319. <col editable="false" ref="SIZE_UPDT_AFT_WGT" type="input"/>
  320. <col ref="SIZE_UPDT_CAUSE_CD"/>
  321. <col ref="ORD_FL"/>
  322. <col editable="false" ref="STL_GRD" type="input"/>
  323. <col editable="false" ref="SIZE_UPDT_EMP_NO" type="input"/>
  324. <col ref="SIZE_UPDT_WKGROUP"/>
  325. <col ref="SIZE_UPDT_WKSHIFT"/>
  326. </datagrid>
  327. <caption id="caption3" class="cell" style="left:780px; top:215px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">废钢量</caption>
  328. <input id="input2" ref="/root/searchData/SCRAP_WGT" format="999999-9999999" style="left:880px; top:215px; width:100px; height:20px; background-color:#ffff99; "/>
  329. <line id="line2" style="x1:0px; y1:210px; x2:980px; y2:210px; "/>
  330. <line id="line3" style="x1:1px; y1:0px; x2:980px; y2:0px; "/>
  331. <line id="line5" style="x1:101px; y1:375px; x2:980px; y2:375px; "/>
  332. <datagrid id="datagrid5" nodeset="/root/gridData/grid3/SearchMILLYARD_Result_VO/SearchMILLYARD_Result_Row" caption="选择^板坯号^牌号^精整区分^精整作业实绩代码^厚度^宽度^长度^板坯重量" colsep="^" colwidth="41, 106, 100, 100, 128, 100, 100, 100, 100" defaultrows="9" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:35px; width:980px; height:170px; ">
  333. <col ref="CHK" type="radio"/>
  334. <col editable="false" ref="SLAB_NO" type="input"/>
  335. <col editable="false" ref="STL_GRD" type="input"/>
  336. <col ref="CORRECT_YN"/>
  337. <col editable="false" ref="CORRECT_RSLT_CD" type="input"/>
  338. <col editable="false" ref="SLAB_THK" type="input"/>
  339. <col editable="false" ref="SLAB_WTH" type="input"/>
  340. <col editable="false" ref="SLAB_LEN" type="input"/>
  341. <col editable="false" ref="SLAB_WGT" type="input"/>
  342. <script type="javascript" ev:event="xforms-select">
  343. <![CDATA[
  344. select();
  345. ]]>
  346. </script>
  347. </datagrid>
  348. <input id="input3" ref="/root/searchData/SLAB_NO" style="left:85px; top:5px; width:100px; height:20px; background-color:#ffff99; "/>
  349. <caption id="caption4" class="cell" style="left:0px; top:5px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">待二切板坯号</caption>
  350. <script type="javascript" ev:event="onkeypress">
  351. <![CDATA[
  352. if(event.keyCode == 13){
  353. find();
  354. }
  355. ]]>
  356. </script>
  357. <select1 id="combo1" ref="/root/formData/MOD_CD" appearance="minimal" style="left:560px; top:215px; width:90px; height:20px; ">
  358. <choices>
  359. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G03003']">
  360. <label ref="SM_CFNM"/>
  361. <value ref="SM_CD"/>
  362. </itemset>
  363. </choices>
  364. <script type="javascript" ev:event="xforms-select">
  365. <![CDATA[
  366. // 获得板坯分割修改原因
  367. MODIFY_CODE = combo1.value;
  368. for(var i = datagrid3.rows ; i > datagrid3.fixedRows + 1 ; i--) datagrid3.removeRow(true);
  369. // 如果修改原因是指示分割 或是 未指示分割
  370. if(MODIFY_CODE == 2 ||MODIFY_CODE == 3)
  371. {
  372. // 将分割实绩录入表第一行的数据复制到第2,3行,设置长度,长度判定为可编辑,以进行分割实绩的录入,修改
  373. // 重量根据板坯长*宽*厚*密度 得出
  374. model1.duplicate("/root/gridData/cutResultGrid/CutResult_VO","/root/resData/CutResult_VO/CutResult_Row");
  375. model1.duplicate("/root/gridData/cutResultGrid/CutResult_VO","/root/resData/CutResult_VO/CutResult_Row");
  376. datagrid3.refresh();
  377. datagrid2.refresh();
  378. datagrid3.valueMatrix(2,datagrid3.colRef("CLF")) = " 第一次修改 ";
  379. datagrid3.valueMatrix(3,datagrid3.colRef("CLF")) = " 第二次修改 ";
  380. //分割生成新的两块板坯,板坯号为原板坯的前12位 + 原板坯号预留13位0分别设置位1,2
  381. var oldSlabNo = datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_NO"));
  382. datagrid3.valueMatrix(2,datagrid3.colRef("SLAB_NO")) = oldSlabNo.substr(0,12) + '1';
  383. datagrid3.valueMatrix(3,datagrid3.colRef("SLAB_NO")) = oldSlabNo.substr(0,12) + '2';
  384. datagrid3.valueMatrix(2,datagrid3.colRef("SIZE_DEC_FL")) = "1";
  385. datagrid3.valueMatrix(3,datagrid3.colRef("SIZE_DEC_FL")) = "1";
  386. datagrid3.valueMatrix(2,datagrid3.colRef("CUR_LOAD_LOC")) = "";
  387. datagrid3.valueMatrix(3,datagrid3.colRef("CUR_LOAD_LOC")) = "";
  388. }
  389. else if(MODIFY_CODE == 1)
  390. {
  391. // 将分割实绩录入表第一行的数据复制到第2,设置长度,长度判定为可编辑,以进行分割实绩的录入,修改
  392. // 重量根据板坯长*宽*厚*密度 得出
  393. model1.duplicate("/root/gridData/cutResultGrid/CutResult_VO","/root/resData/CutResult_VO/CutResult_Row");
  394. datagrid3.refresh();
  395. datagrid2.refresh();
  396. datagrid3.valueMatrix(2,datagrid3.colRef("CLF")) = " 尺寸修改 ";
  397. datagrid3.valueMatrix(2,datagrid3.colRef("SIZE_DEC_FL")) = "1";
  398. }
  399. else if(MODIFY_CODE == 5)
  400. {
  401. // 将分割实绩录入表第一行的数据复制到第2,设置长度,长度判定为可编辑,以进行分割实绩的录入,修改
  402. // 重量根据板坯长*宽*厚*密度 得出
  403. model1.duplicate("/root/gridData/cutResultGrid/CutResult_VO","/root/resData/CutResult_VO/CutResult_Row");
  404. datagrid3.refresh();
  405. datagrid2.refresh();
  406. datagrid3.valueMatrix(1,datagrid3.colRef("CLF")) = " 修改前 ";
  407. datagrid3.valueMatrix(2,datagrid3.colRef("CLF")) = " 部分废钢 ";
  408. datagrid3.valueMatrix(2,datagrid3.colRef("SIZE_DEC_FL")) = "1";
  409. }
  410. else if(MODIFY_CODE == 4)
  411. {
  412. model.setValue("/root/searchData/SCRAP_WGT",datagrid3.valueMatrix(1,datagrid3.colRef("SLAB_WGT")));
  413. input2.refresh();
  414. }
  415. ]]>
  416. </script>
  417. </select1>
  418. <caption id="caption5" class="cell" style="left:475px; top:215px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">修改原因</caption>
  419. <select1 id="combo2" ref="/root/formData/REG_SHIP" appearance="minimal" style="left:705px; top:5px; width:55px; height:20px; ">
  420. <choices>
  421. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'Z05001']">
  422. <label ref="SM_CFNM"/>
  423. <value ref="SM_CD"/>
  424. </itemset>
  425. </choices>
  426. </select1>
  427. <caption id="caption6" class="cell" style="left:660px; top:5px; width:45px; height:20px; font-weight:bold; border-color:#000000; ">班次</caption>
  428. <select1 id="combo3" ref="/root/formData/REG_GROUP" appearance="minimal" style="left:810px; top:5px; width:55px; height:20px; ">
  429. <choices>
  430. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'Z05002']">
  431. <label ref="SM_CFNM"/>
  432. <value ref="SM_CD"/>
  433. </itemset>
  434. </choices>
  435. </select1>
  436. <caption id="caption7" class="cell" style="left:765px; top:5px; width:45px; height:20px; font-weight:bold; border-color:#000000; ">班组</caption>
  437. <caption id="caption8" class="cell" style="left:870px; top:5px; width:50px; height:20px; font-weight:bold; border-color:#000000; ">操作人</caption>
  438. <input id="input1" ref="/root/formData/REG_ID" disabled="true" style="left:920px; top:5px; width:60px; height:20px; "/>
  439. <input id="input4" ref="/root/formData/CUT_CNT" disabled="true" format="999999-9999999" style="left:650px; top:215px; width:40px; height:20px; ">
  440. <script type="javascript" ev:event="xforms-value-changed">
  441. <![CDATA[
  442. if(combo1.value != "02") return;
  443. ]]>
  444. </script>
  445. </input>
  446. </xhtml:body>
  447. </xhtml:html>