UID010050.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <formData>
  10. <searchInfo>
  11. <COIL_WGT>
  12. <item>
  13. <label/>
  14. <value/>
  15. </item>
  16. </COIL_WGT>
  17. <PROC_PATH>
  18. <item>
  19. <label/>
  20. <value/>
  21. </item>
  22. </PROC_PATH>
  23. </searchInfo>
  24. <ASC/>
  25. <ARRAY_NORM>ORD_NO</ARRAY_NORM>
  26. <PROC_PATH/>
  27. <COIL_WGT/>
  28. <SLAB_WTH_MIN/>
  29. <SLAB_WTH_MAX/>
  30. <slabAssRes/>
  31. </formData>
  32. <reqData>
  33. </reqData>
  34. <resData/>
  35. <gridData1>
  36. <EmpListResult_VO>
  37. </EmpListResult_VO>
  38. </gridData1>
  39. <corde>
  40. <EmpListResult_VO>
  41. </EmpListResult_VO>
  42. </corde>
  43. <corde2>
  44. <EmpListResult_VO>
  45. </EmpListResult_VO>
  46. </corde2>
  47. <fwdData>
  48. <UID010031>
  49. <ORD_NO/>
  50. <ORD_SEQ/>
  51. <URL/>
  52. </UID010031>
  53. </fwdData>
  54. </root>
  55. </instance>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
  59. datagrid1.colStatus(0)=false;
  60. button2.visible = true;
  61. button3.visible = true;
  62. button6.visible = false;
  63. model.makeValue("/root/reqData/SQLKEY","coil_wgt.select");
  64. commSubmit("UID010050-service","success","glueAction.do");
  65. errorMessage();
  66. model.copyNode("/root/formData/searchInfo/COIL_WGT","/root/resData/DropDownRes_VO");
  67. addall("/root/formData/searchInfo/COIL_WGT","FAC_STL_GRD","PRDNM_CD");
  68. combo2.refresh();
  69. combo2.select(combo2.length-1);
  70. model.makeValue("/root/reqData/SQLKEY","proc_path.select");
  71. commSubmit("UID010050-service","success","glueAction.do");
  72. errorMessage();
  73. model.copyNode("/root/formData/searchInfo/PROC_PATH","/root/resData/DropDownRes_VO");
  74. addall("/root/formData/searchInfo/PROC_PATH","PROC_PATH","PRDNM_CD");
  75. combo3.refresh();
  76. combo3.select(combo3.length-1);
  77. model.removenode("/root/reqData");
  78. ]]>
  79. </script>
  80. <script type="javascript">
  81. <![CDATA[
  82. //1、获取用户登录信息,只能在页面初始化函数中调用
  83. function InitParams(node)
  84. {
  85. if (typeof node == "undefined" && typeof node != "object") return;
  86. model.removenode("/root/initData/rcvInfo");
  87. model.makeNode("/root/initData/rcvInfo");
  88. var nodeList = node.childNodes;
  89. for (var i = 0; i < nodeList.length; i++)
  90. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  91. }
  92. //2. 页面初始化函数(必须)
  93. function Init(node)
  94. {
  95. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  96. // 在程序中会重建该节点,最好不要重名
  97. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  98. //...
  99. }
  100. //3、页面标题
  101. function setTitle()
  102. {
  103. return "工序计划 >> 板坯设计 >> 板坯组合设计"; // 如:return "进程管理 >> 订单进程现况查询";
  104. }
  105. function pageInitTree()
  106. {
  107. for(var i=1; i<datagrid1.rows; i++)
  108. {
  109. if( datagrid1.valueMatrix(i,11) == "Y")
  110. {
  111. datagrid1.outlinelevel(i) = 1;
  112. }
  113. else
  114. {
  115. datagrid1.outlinelevel(i) = 2;
  116. }
  117. }
  118. datagrid1.outlinebar = 4;
  119. datagrid1.treecolor = "red";
  120. }
  121. //4. 页面按键动作
  122. // 查询按键
  123. function find()
  124. {
  125. model.removenode("/root/reqData");
  126. model.makeNode("/root/reqData");
  127. model.makeValue("/root/reqData/COIL_WGT",model.getValue("/root/formData/COIL_WGT"));
  128. model.makeValue("/root/reqData/PROC_PATH",model.getValue("/root/formData/PROC_PATH"));
  129. model.makeValue("/root/reqData/ARRAY_NORM",model.getValue("/root/formData/ARRAY_NORM"));
  130. model.makeValue("/root/reqData/ASC",model.getValue("/root/formData/ASC"));
  131. model.makeValue("/root/reqData/SLAB_WTH_MIN",model.getValue("/root/formData/SLAB_WTH_MIN"));
  132. model.makeValue("/root/reqData/SLAB_WTH_MAX",model.getValue("/root/formData/SLAB_WTH_MAX"));
  133. model.makeValue("/root/reqData/slabAssRes",model.getValue("/root/formData/slabAssRes"));
  134. commSubmit("UID010050-service","findSlabDnRes","glueAction.do");
  135. errorMessage();
  136. model.copyNode("/root/gridData1/EmpListResult_VO","/root/resData/EmpListResult_VO");
  137. model.removenode("/root/resData/EmpListResult_VO");
  138. model.refresh();
  139. pageInitTree();
  140. model.refresh();
  141. }
  142. // 保存按键
  143. function save()
  144. {
  145. model.removenode("/root/gridData1/sendInfo");
  146. model.makeNode("/root/gridData1/sendInfo");
  147. var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
  148. var j = 0;
  149. for(var i = 1; i<=count; i++)
  150. {
  151. var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
  152. if(CHK == 'true')
  153. {
  154. model.duplicate("/root/gridData1/sendInfo","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]");
  155. }
  156. else
  157. {
  158. j++;
  159. }
  160. }
  161. if(j == count)
  162. {
  163. window.alert(" 请选择组合板坏信息进行确认! "," 提示信息 ");
  164. return;
  165. }
  166. commSendReq("/root/gridData1/sendInfo");
  167. commSubmit("UID010050-service","saveSumSlabDnRes","glueAction.do");
  168. errorMessage();
  169. window.alert(" 保存成功! "," 提示信息 ");
  170. find();
  171. model.refresh();
  172. }
  173. // 新增按键
  174. function create()
  175. {
  176. }
  177. // 删除按键
  178. function remove()
  179. {
  180. if(commComfirmBox(" 确认分解板坏组合结果? "," 提示信息 ")=='0') return;
  181. model.removenode("/root/gridData1/sendInfo");
  182. model.makeNode("/root/gridData1/sendInfo");
  183. var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
  184. var j = 1;
  185. for(var i = 1; i<=count; i++)
  186. {
  187. var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
  188. if(CHK == 'true')
  189. {
  190. model.duplicate("/root/gridData1/sendInfo","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]");
  191. }
  192. }
  193. commSendReq("/root/gridData1/sendInfo");
  194. commSubmit("UID010050-service","deleteSumSlabDnRes","glueAction.do");
  195. errorMessage();
  196. find();
  197. model.refresh();
  198. }
  199. //增加特殊要求 10.15 wxy
  200. function fowardUID010031(gridID) {
  201. if(gridID.col == gridID.colRef("INGR_YN")) {
  202. model.makeValue("/root/fwdData/UID010031/ORD_NO", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_NO")));
  203. model.makeValue("/root/fwdData/UID010031/ORD_SEQ", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_SEQ")));
  204. model.makeValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
  205. var java = window.parent.javaScript;
  206. java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
  207. }
  208. }
  209. ]]>
  210. </script>
  211. </model>
  212. <script type="javascript" src="../../js/boaCommon.js"/>
  213. <script type="javascript" src="../../js/boaMsg.js"/>
  214. <script type="javascript" src="../../js/dCommon.js"/>
  215. </xhtml:head>
  216. <xhtml:body overflow="hidden" guideline="1,979;2,620;">
  217. <caption id="caption7" style="left:0px; top:5px; width:100px; height:20px; text-align:right; vertical-align:middle; background-color:#ccffcc; border-color:#000000; border-style:solid; ">组合板坯结果</caption>
  218. <line id="line2" style="x1:0px; y1:30px; x2:979px; y2:30px; "/>
  219. <line id="line3" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
  220. <caption id="caption1" class="cell" style="left:0px; top:35px; width:90px; height:20px; ">钢 号</caption>
  221. <select1 id="combo2" ref="/root/formData/COIL_WGT" appearance="minimal" style="left:92px; top:35px; width:110px; height:20px; ">
  222. <choices>
  223. <itemset nodeset="/root/formData/searchInfo/COIL_WGT/DropDownRes_Row">
  224. <label ref="FAC_STL_GRD"/>
  225. <value ref="PRDNM_CD"/>
  226. </itemset>
  227. </choices>
  228. </select1>
  229. <caption id="caption2" class="cell" style="left:212px; top:35px; width:90px; height:20px; ">通过工序</caption>
  230. <select1 id="combo3" ref="/root/formData/PROC_PATH" appearance="minimal" style="left:304px; top:35px; width:110px; height:20px; ">
  231. <choices>
  232. <itemset nodeset="/root/formData/searchInfo/PROC_PATH/DropDownRes_Row">
  233. <label ref="PROC_PATH"/>
  234. <value ref="PRDNM_CD"/>
  235. </itemset>
  236. </choices>
  237. </select1>
  238. <caption id="caption3" class="cell" style="left:423px; top:35px; width:90px; height:20px; ">板坯宽度</caption>
  239. <input id="input1" ref="/root/formData/SLAB_WTH_MIN" style="left:515px; top:35px; width:70px; height:20px; "/>
  240. <input id="input2" ref="/root/formData/SLAB_WTH_MAX" style="left:600px; top:35px; width:70px; height:20px; "/>
  241. <caption id="caption11" style="left:585px; top:40px; width:20px; height:15px; ">~</caption>
  242. <caption id="caption4" class="cell" style="left:723px; top:35px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">排列标准</caption>
  243. <select1 id="combo4" ref="/root/formData/ARRAY_NORM" appearance="minimal" style="left:815px; top:35px; width:110px; height:20px; border-color:#000000; ">
  244. <choices>
  245. <item>
  246. <label>订单号</label>
  247. <value>ORD_NO</value>
  248. </item>
  249. <item>
  250. <label>板坯号</label>
  251. <value>DSN_SLAB_NO</value>
  252. </item>
  253. <item>
  254. <label>厂内牌号</label>
  255. <value>FAC_STL_GRD</value>
  256. </item>
  257. <item>
  258. <label>钢卷宽度</label>
  259. <value>COIL_WTH</value>
  260. </item>
  261. <item>
  262. <label>钢卷厚度</label>
  263. <value>COIL_THK</value>
  264. </item>
  265. <item>
  266. <label>板坯宽度</label>
  267. <value>SLAB_WTH</value>
  268. </item>
  269. <item>
  270. <label>板坯长度</label>
  271. <value>SLAB_LEN</value>
  272. </item>
  273. <item>
  274. <label>板坯单重</label>
  275. <value>SLAB_WGT</value>
  276. </item>
  277. <item>
  278. <label>是否热送</label>
  279. <value>HCR_YN</value>
  280. </item>
  281. <item>
  282. <label>通过工序</label>
  283. <value>PROC_PATH</value>
  284. </item>
  285. </choices>
  286. </select1>
  287. <caption id="caption6" style="left:929px; top:35px; width:50px; height:20px; border-color:#000000; border-style:solid; "/>
  288. <bool id="bool1" select.background-image="#check" ref="/root/formData/ASC" style="left:928px; top:35px; width:25px; height:20px; background-image:#uncheck; "/>
  289. <caption id="caption5" style="left:948px; top:35px; width:35px; height:20px; text-align:center; ">ASC</caption>
  290. <datagrid id="datagrid1" nodeset="/root/gridData1/EmpListResult_VO/EmpListResult_Row" scroll="both" backcoloralternate="#f7f9f9" caption="选择^合同号^订单号^板坯号^厂内牌号^钢卷^钢卷^板坯^板坯^板坯^是否热送^组合区分^通过工序^特殊要求|选择^合同号^订单号^板坯号^厂内牌号^宽度^厚度^宽度^长度^单重^是否热送^组合区分^通过工序^特殊要求" colsep="^" colwidth="59, 90, 43, 104, 100, 52, 55, 59, 52, 57, 82, 79, 125, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" defaultrows="30" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:980px; height:555px; ">
  291. <col ref="CHK" type="checkbox">
  292. <script type="javascript" ev:event="xforms-value-changed">
  293. <![CDATA[
  294. var selectRow = datagrid1.row;
  295. //获取该行的订单号和选择框的值
  296. var COMB_YN = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(selectRow-1)+"]/COMB_YN");
  297. var P_DSN_SLAB_NO = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(selectRow-1)+"]/P_DSN_SLAB_NO");
  298. if(COMB_YN == "Y")
  299. {
  300. var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)" );//定义查询到的结果数
  301. var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(selectRow-1)+"]/CHK");
  302. var DSN_SLAB_NO = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(selectRow-1)+"]/DSN_SLAB_NO");
  303. for(var i = 1; i <= count; i++)
  304. {
  305. var P_DSN_SLAB_NO = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/P_DSN_SLAB_NO");
  306. if(DSN_SLAB_NO == P_DSN_SLAB_NO)
  307. {
  308. if(CHK == "true")
  309. {
  310. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/CHK","true");
  311. }
  312. else
  313. {
  314. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/CHK","false");
  315. }
  316. }
  317. }
  318. }
  319. else if(COMB_YN == "")
  320. {
  321. var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row[DSN_SLAB_NO="+P_DSN_SLAB_NO+"]/CHK");
  322. model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(selectRow-1)+"]/CHK",CHK);
  323. }
  324. model.refresh();
  325. ]]>
  326. </script>
  327. </col>
  328. <col ref="ORD_NO"/>
  329. <col ref="ORD_SEQ"/>
  330. <col ref="DSN_SLAB_NO"/>
  331. <col ref="FAC_STL_GRD"/>
  332. <col ref="COIL_WTH" style="text-align:right; "/>
  333. <col ref="COIL_THK" style="text-align:right; "/>
  334. <col ref="SLAB_WTH" style="text-align:right; "/>
  335. <col ref="SLAB_LEN" style="text-align:right; "/>
  336. <col ref="SLAB_WGT" style="text-align:right; "/>
  337. <col ref="HCR_YN"/>
  338. <col ref="COMB_YN"/>
  339. <col ref="PROC_PATH"/>
  340. <col ref="INGR_YN" style="text-decoration:underline; "/>
  341. <script type="javascript" ev:event="onclick">
  342. <![CDATA[
  343. fowardUID010031(datagrid1);
  344. ]]>
  345. </script>
  346. <col ref="P_DSN_SLAB_NO" visibility="hidden"/>
  347. <col ref="EMGMTR_YN" visibility="hidden"/>
  348. <col ref="SLAB_THK" visibility="hidden"/>
  349. <col ref="COIL_LEN" visibility="hidden"/>
  350. <col ref="COIL_WGT" visibility="hidden"/>
  351. <col ref="FAC_STL_GRP" visibility="hidden"/>
  352. <col ref="COIL_PACK_WGT_MIN" visibility="hidden"/>
  353. <col ref="COIL_PACK_WGT_MAX" visibility="hidden"/>
  354. <col ref="AUTODSN_YN" visibility="hidden"/>
  355. <col ref="GRAVITY" visibility="hidden"/>
  356. <col ref="SLAB_TRMTH_TP" visibility="hidden"/>
  357. </datagrid>
  358. <button id="button2" style="left:834px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
  359. <caption>板坯组合</caption>
  360. <script type="javascript" ev:event="onclick">
  361. <![CDATA[
  362. var ORDNO = datagrid1.valueMatrix( 1 , datagrid1.colRef("ORD_NO") );
  363. var ORDSEQ = datagrid1.valueMatrix( 1 , datagrid1.colRef("ORD_SEQ") );
  364. var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
  365. var j = 0;
  366. var SLAB_LEN_TOTAL = 0;//组合板坏的长度
  367. var SLAB_WGT_TOTAL = 0;//组合板坏的重量
  368. var p = 0;
  369. var arr = new Array();
  370. for(var i = 1; i<=count; i++)
  371. {
  372. var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
  373. var COMB_YN = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/COMB_YN");
  374. var ORD_NO = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/ORD_NO");
  375. var V_ORD_NO = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/ORD_NO");
  376. var V_ORD_SEQ = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/ORD_SEQ");
  377. if(COMB_YN == 'N' && CHK == 'true' && ORDNO == V_ORD_NO && ORDSEQ = V_ORD_SEQ )
  378. {
  379. arr[p] = i;//记录被组合的单块板坏位置
  380. p++;
  381. //单块短板坏的长度
  382. var SLAB_LEN_TEMP = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/SLAB_LEN");
  383. //单块短板坏的重量
  384. var SLAB_WGT_TEMP = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/SLAB_WGT");
  385. SLAB_LEN_TOTAL = SLAB_LEN_TOTAL + Number(SLAB_LEN_TEMP);
  386. SLAB_WGT_TOTAL = SLAB_WGT_TOTAL + Number(SLAB_WGT_TEMP);
  387. model.makeNode("/root/corde2/EmpListResult_VO/EmpListResult_Row["+p+"]")
  388. model.copyNode("/root/corde2/EmpListResult_VO/EmpListResult_Row["+p+"]","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]");
  389. }
  390. else
  391. {
  392. j++;
  393. }
  394. }
  395. if(j == count)
  396. {
  397. window.alert(" 请选择板坏设计信息进行组合! "," 提示信息 ");
  398. return;
  399. }
  400. if(j != count-2)
  401. {
  402. window.alert(" 组合板坏的数量必须2块,请确认! "," 提示信息 ");
  403. return;
  404. }
  405. var DSN_SLAB_NO = "P_DSN_SLAB_NO";
  406. var DSN_SLAB_NO_RES = querySlabMax(DSN_SLAB_NO, "gridData1", datagrid1);//获取结果板坏号
  407. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/CHK","true");
  408. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COMB_YN","Y");
  409. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/DSN_SLAB_NO",DSN_SLAB_NO_RES);
  410. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/SLAB_LEN",SLAB_LEN_TOTAL);
  411. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/SLAB_WGT",SLAB_WGT_TOTAL);
  412. //给选定组合的板坏赋值最终的组合板坏号
  413. model.setValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/P_DSN_SLAB_NO",DSN_SLAB_NO_RES);
  414. model.setValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COMB_YN","");
  415. model.setValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[2]/P_DSN_SLAB_NO",DSN_SLAB_NO_RES);
  416. model.setValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[2]/COMB_YN","");
  417. /*---------板坯组合条件限制--------------*/
  418. if(model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/SLAB_WTH") != model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[2]/SLAB_WTH"))
  419. {
  420. window.alert("请选择相同宽度的板坯进行组合!","提示信息");
  421. return;
  422. }
  423. if(model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/FAC_STL_GRD") != model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[2]/FAC_STL_GRD"))
  424. {
  425. window.alert("请选择相同厂内牌号的板坯进行组合!","提示信息");
  426. return;
  427. }
  428. if(model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/HCR_YN") != model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[2]/HCR_YN"))
  429. {
  430. window.alert("请选择相同去向的板坯进行组合!(是否热送)","提示信息");
  431. return;
  432. }
  433. /*---------板坯组合条件限制--------------*/
  434. /*----------------------给组合后的板坏的其余属性赋值----------------------------------------------------------------------------------------------------------------------*/
  435. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/ORD_NO",model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/ORD_NO"));
  436. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/SLAB_WTH",model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/SLAB_WTH"));
  437. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_WTH", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_WTH"));
  438. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_THK", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_THK"));
  439. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/HCR_YN", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/HCR_YN"));
  440. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/PROC_PATH", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/PROC_PATH"));
  441. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/P_DSN_SLAB_NO", "");
  442. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/EMGMTR_YN", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/EMGMTR_YN"));
  443. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/SLAB_THK", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/SLAB_THK"));
  444. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_LEN", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_LEN"));
  445. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_WGT", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_WGT"));
  446. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/FAC_STL_GRD", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/FAC_STL_GRD"));
  447. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/FAC_STL_GRP", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/FAC_STL_GRP"));
  448. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_PACK_WGT_MIN", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_PACK_WGT_MIN"));
  449. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_PACK_WGT_MAX", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_PACK_WGT_MAX"));
  450. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/AUTODSN_YN", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/AUTODSN_YN"));
  451. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/GRAVITY", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/GRAVITY"));
  452. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/SLAB_TRMTH_TP", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/SLAB_TRMTH_TP"));
  453. model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/ORD_SEQ", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/ORD_SEQ"));
  454. /*-----------------------给组合后的板坏的其余属性赋值-------------------------------------------------------------------------------------------------------------------*/
  455. model.duplicate("/root/gridData1/EmpListResult_VO","/root/corde/EmpListResult_VO/EmpListResult_Row");
  456. model.duplicate("/root/gridData1/EmpListResult_VO","/root/corde2/EmpListResult_VO/EmpListResult_Row[1]");
  457. model.duplicate("/root/gridData1/EmpListResult_VO","/root/corde2/EmpListResult_VO/EmpListResult_Row[2]");
  458. model.removenode("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+arr[1]+"]");
  459. model.removenode("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+arr[0]+"]");
  460. model.removenode("/root/corde/EmpListResult_VO");
  461. model.removenode("/root/corde2/EmpListResult_VO");
  462. model.refresh();
  463. pageInitTree();
  464. model.refresh();
  465. //------------------------------------------------------------------------------------------------------------------------
  466. ]]>
  467. </script>
  468. </button>
  469. <button id="button3" style="left:909px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
  470. <caption>组合确认</caption>
  471. <script type="javascript" ev:event="onclick">
  472. <![CDATA[
  473. save();
  474. ]]>
  475. </script>
  476. </button>
  477. <line id="line1" style="x1:0px; y1:0px; x2:979px; y2:0px; "/>
  478. <button id="button6" style="left:909px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
  479. <caption>板坯分解</caption>
  480. <script type="javascript" ev:event="onclick">
  481. <![CDATA[
  482. remove();
  483. ]]>
  484. </script>
  485. </button>
  486. <bool id="bool2" select.background-image="#check" ref="/root/formData/slabAssRes" style="left:0px; top:5px; width:25px; height:20px; background-image:#uncheck; ">
  487. <script type="javascript" ev:event="xforms-value-changed">
  488. <![CDATA[
  489. var slabAssRes = model.getValue("/root/formData/slabAssRes");
  490. find();
  491. if(slabAssRes == "true")
  492. {
  493. button2.visible = false;
  494. button3.visible = false;
  495. button6.visible = true;
  496. }
  497. else
  498. {
  499. button2.visible = true;
  500. button3.visible = true;
  501. button6.visible = false;
  502. }
  503. ]]>
  504. </script>
  505. </bool>
  506. </xhtml:body>
  507. </xhtml:html>