4a408fe4ae75fbd36c9d6516e8e079ea7d201969.svn-base 94 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <reqData>
  10. </reqData>
  11. <resData/>
  12. <SlabDnRst>
  13. <ListResult_0_VO/>
  14. </SlabDnRst>
  15. <MatDnRst>
  16. <ListResult_1_VO/>
  17. </MatDnRst>
  18. <formData>
  19. <FacStlGrp/>
  20. <FacStlGrd/>
  21. <SlabWth/>
  22. <SlabThk_1/>
  23. <SlabThk_2/>
  24. <RangeCoilThk>
  25. <FrCoilThk/>
  26. <ToCoilThk/>
  27. </RangeCoilThk>
  28. <DevTerm>
  29. <FrDevlmtDate/>
  30. <ToDevlmtDate/>
  31. </DevTerm>
  32. <castDnRst/>
  33. <matSpecSeq/>
  34. <MatTp>01</MatTp>
  35. <CoilThkGroup/>
  36. <CoilThk/>
  37. <subMatSpecSeq/>
  38. </formData>
  39. <initData>
  40. <FacStlGrp>
  41. <IncludeAll>A</IncludeAll>
  42. </FacStlGrp>
  43. <FacStlGrd>
  44. <IncludeAll>A</IncludeAll>
  45. <FacStlGrd/>
  46. </FacStlGrd>
  47. <DevTerm>
  48. <FromNum>35</FromNum>
  49. <ToNum>0</ToNum>
  50. <DateFormat>YYYYMMDD</DateFormat>
  51. </DevTerm>
  52. <rcvInfo/>
  53. <BIZ_TP>CoilThickGroup</BIZ_TP>
  54. <tempStlGrd/>
  55. </initData>
  56. <slab_count/>
  57. <wth_count/>
  58. <gridData>
  59. <sendInfo/>
  60. </gridData>
  61. <slab_wgt_sum/>
  62. </root>
  63. </instance>
  64. <script type="javascript" src="../../js/boaMsg.js"/>
  65. <script type="javascript" src="../../js/boaCommon.js"/>
  66. <script type="javascript" src="../../js/mesCommon.js"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. var GLOBAL_CHEM = "";
  70. function lpad(str, len, fill) {
  71. if (fill == null) fill = " ";
  72. str = str + "";
  73. while( str.length < len ) str = fill + str;
  74. return str;
  75. }
  76. var submitCommID = "UIDCommCode-service";
  77. var subimtDateID = "UIDCommDate-service";
  78. var submitMainID = "UID020021-service";
  79. //1、获取用户登录信息,只能在页面初始化函数中调用
  80. function InitParams(node)
  81. {
  82. if (typeof node == "undefined" && typeof node != "object") return;
  83. model.removenode("/root/initData/rcvInfo");
  84. model.makeNode("/root/initData/rcvInfo");
  85. var nodeList = node.childNodes;
  86. for (var i = 0; i < nodeList.length; i++)
  87. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  88. }
  89. //2. 页面初始化函数(必须)
  90. function Init(node)
  91. {
  92. //InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  93. // 在程序中会重建该节点,最好不要重名
  94. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  95. //...
  96. pageInit();
  97. }
  98. //3、页面标题
  99. function setTitle()
  100. {
  101. return "工序计划 >> 炉次浇次设计 >> 炉次浇次编制"; // 如:return "进程管理 >> 订单进程现况查询";
  102. }
  103. function pageInit()
  104. {
  105. // Populate values (连铸牌号-combo)
  106. commSendReq("/root/initData/FacStlGrp");
  107. commSubmit(submitCommID ,"findNormal" ,"glueAction.do" );
  108. model.copyNode("/root/formData/FacStlGrp" ,"/root/resData/DCommCodeResult_VO" );
  109. model.removenode("/root/reqData");
  110. // Populate values (厂内牌号-combo)
  111. commSendReq("/root/initData/FacStlGrd");
  112. commSubmit(submitCommID ,"findFacStlGrd" , "glueAction.do" );
  113. model.copyNode("/root/formData/FacStlGrd" , "/root/resData/DCommCodeResult_VO");
  114. model.removenode("/root/reqData");
  115. // Populate values (发货指示期间-combo)
  116. commSendReq("/root/initData/DevTerm");
  117. commSubmit(subimtDateID ,"success" ,"glueAction.do" );
  118. model.setValue("/root/formData/DevTerm/FrDevlmtDate" , model.getValue("/root/resData/DateResultList_VO/DateResultList_Row/FR_DATE"));
  119. model.setValue("/root/formData/DevTerm/ToDevlmtDate" , model.getValue("/root/resData/DateResultList_VO/DateResultList_Row/TO_DATE"));
  120. model.removenode("/root/reqData");
  121. // 板坯宽度
  122. commSendReq("/root/initData/FacStlGrd");
  123. commSubmit(submitCommID ,"searchSlabDnWidth" , "glueAction.do" );
  124. model.copyNode("/root/formData/SlabWth" , "/root/resData/DCommCodeResult_VO");
  125. model.removenode("/root/reqData");
  126. // 钢卷厚度
  127. commSendReq("/root/initData");
  128. commSubmit(submitCommID ,"numMinMaxByBizTp" , "glueAction.do" );
  129. model.copyNode("/root/formData/CoilThk" , "/root/resData/DCommCodeResult_VO");
  130. model.removenode("/root/reqData");
  131. model.removenode("/root/resData/DCommCodeResult_VO");
  132. cb_FacStlGrp.select(0);
  133. cb_FacStlGrd.select(0);
  134. cb_SlabWth.select(0);
  135. cb_CoilThkGrp.select(0);
  136. model.refresh();
  137. }
  138. function calculateSummary()
  139. {
  140. var count = model.getXPathValue("count(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row[COMB_YN != ''])");
  141. var chk_count = model.getXPathValue("count(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row[CHK = 'Y' and COMB_YN != ''])");
  142. model.setValue("/root/slab_count",chk_count+"/"+count);
  143. var chk_wgt = model.getXPathValue("sum(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row[CHK = 'Y' and COMB_YN != '']/SLAB_WGT)");
  144. var wgt = model.getXPathValue("sum(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row[COMB_YN != '']/SLAB_WGT)");
  145. //alert("wgt="+chk_wgt+"/"+wgt)
  146. model.setValue("/root/slab_wgt_sum",chk_wgt+"/"+wgt);
  147. model.setValue("/root/wth_count",model.getXPathValue("sum(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL >= 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq]/MAT_WGT)"));
  148. }
  149. function find()
  150. {
  151. model.removeNodeset(dg1.nodeset);
  152. model.removeNodeset(dg2.nodeset);
  153. model.removeNodeset(dg3.nodeset);
  154. //model.refresh();
  155. model.makeValue("/root/formData/FACSTLGED",model.getValue("/root/formData/FacStlGrd"));
  156. model.makeValue("/root/formData/FACSTLGEP",model.getValue("/root/formData/FacStlGrp"));
  157. if(model.getValue("/root/formData/SlabWth") == '1')
  158. {
  159. model.makeValue("/root/formData/SALABWTH","");
  160. }
  161. else
  162. {
  163. model.makeValue("/root/formData/SALABWTH",model.getValue("/root/formData/SlabWth"));
  164. }
  165. submitID = submitMainID;
  166. exec("/root/formData", "", "find", "/root/SlabDnRst/ListResult_0_VO", "/root/MatDnRst/ListResult_1_VO");
  167. // commSendReq("/root/formData");
  168. // commSubmit("UID020020-service", "find", "glueAction.do");
  169. // model.copyNode("/root/SlabDnRst/ListResult_0_VO" , "/root/resData/ListResult_0_VO");
  170. // model.copyNode("/root/MatDnRst/ListResult_1_VO" , "/root/resData/ListResult_1_VO");
  171. // model.removenode("/root/reqData");
  172. //
  173. calculateSummary();
  174. model.removenode("/root/reqData");
  175. model.removenode("/root/resData");
  176. model.refresh();
  177. cb_CastSpecSeq.select(0);
  178. commGridLevels(dg1,0);
  179. // commGridLevels(dg3,0);
  180. }
  181. function save()
  182. {
  183. var pbWidth = 200;
  184. var pbHeight = 100;
  185. var width = htmlwindow.screen.width;
  186. var height = htmlwindow.screen.height;
  187. var left = (width - pbWidth) / 2;
  188. var top = (height - pbHeight) / 2;
  189. var progressBar = body.createChild("xforms:group", "id:progressBar;left:" + left + "px; top:" + top + "px; width:" + pbWidth + "px; height:" + pbHeight + "px; popup:true; showeffect:blend 300; background-color:#dddddd; background-image:../../images/wait.gif; background-position:center; background-stretch:no-stretch;");
  190. commSendReq("/root/MatDnRst");
  191. commSubmit(submitMainID,"save","glueAction.do");
  192. model.removenode("/root/reqData");
  193. body.removeChild("progressBar");
  194. //errorMessage();
  195. model.refresh();
  196. }
  197. function create()
  198. {
  199. //model.setValue("/root/formData/MatTp","01");
  200. commSendReq("/root/formData/MatTp");
  201. commSubmit(submitMainID,"add" ,"glueAction.do" );
  202. var vCnt = model.getXPathValue("count(/root/resData/ListResult_1_VO/ListResult_1_Row)");
  203. model.duplicate("/root/MatDnRst/ListResult_1_VO" ,"/root/resData/ListResult_1_VO/ListResult_1_Row["+ vCnt +"]" );
  204. model.removenode("/root/reqData");
  205. //model.removenode("/root/resData/ListResult_1_VO");
  206. //errorMessage();
  207. model.refresh();
  208. cb_CastSpecSeq.select(cb_CastSpecSeq.length - 1);
  209. //model.refresh();
  210. }
  211. function chageSelect()
  212. {
  213. var sChgSpecSeq = dg2.valueMatrix( dg2.row, dg2.colRef("MAT_SPEC_SEQ") );
  214. if(sChgSpecSeq == "")
  215. {
  216. window.alert("请选择炉次!","提示信息");
  217. return;
  218. }
  219. var sFacStlGrd = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRD");
  220. var iSlabRows = Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"])" ));
  221. var iChgWeights = Number(model.getXPathValue("sum (/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WGT)"));
  222. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRP", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRP") );
  223. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/PATH_PROC_CD", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/PATH_PROC_CD") );
  224. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WTH", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WTH") );
  225. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_THK", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_THK") );
  226. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/HCR_YN", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/HCR_YN") );
  227. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/CMAT_CNT" , iSlabRows );
  228. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WGT" , iChgWeights );
  229. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRD", sFacStlGrd );
  230. model.refresh();
  231. }
  232. function remove()
  233. {
  234. model.removenode("/root/gridData/sendInfo");
  235. model.makeNode("/root/gridData/sendInfo");
  236. var count = model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)");
  237. var castDnRst = model.getValue("/root/formData/castDnRst");
  238. if(castDnRst == "")
  239. {
  240. window.alert("请选择需要删除的浇次","提示信息");
  241. return;
  242. }
  243. //var j = 0;
  244. //var flag = "true";
  245. for(var i = 1; i<=count; i++)
  246. {
  247. //var CHK = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/CHK");
  248. if(castDnRst == model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/MAT_SPEC_SEQ"))
  249. {
  250. model.duplicate("/root/gridData/sendInfo","/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]");
  251. }
  252. //if(castDnRst == model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/PMAT_SPEC_SEQ"))
  253. //{
  254. // window.alert("要删除该浇次,请先删除该浇次中的所有炉次","提示信息");
  255. // flag = "false";
  256. // break;
  257. //}
  258. }
  259. //if(flag == "false")
  260. //{
  261. // return;
  262. //}
  263. if(commComfirmBox(" 确认删除该浇次? "," 提示信息 ")=='0') return;
  264. commSendReq("/root/gridData/sendInfo");
  265. commSubmit(submitMainID,"deleteMatDnRst","glueAction.do");
  266. find();
  267. calculateSummary();
  268. model.refresh();
  269. }
  270. var dg2_currRow = -1; //dg2.onrowchanged
  271. ]]>
  272. </script>
  273. <script type="javascript" ev:event="xforms-ready">
  274. <![CDATA[
  275. //dg1.fixedcellcheckbox(0,dg1.colRef("CHK"))=true;
  276. //dg1.colStatus(0)=false;
  277. pageInit();
  278. ]]>
  279. </script>
  280. </model>
  281. </xhtml:head>
  282. <xhtml:body pagewidth="980" pageheight="620" guideline="1,980;2,619;" style="font-family:Tahoma; font-size:11pt; ">
  283. <caption id="ct_01" class="cell" style="left:0px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; ">厂内牌号组</caption>
  284. <select1 id="cb_FacStlGrp" ref="/root/formData/FacStlGrp" appearance="minimal" editmode="inputsearch" style="left:82px; top:5px; width:100px; height:20px; ">
  285. <choices>
  286. <itemset nodeset="/root/formData/FacStlGrp/DCommCodeResult_Row">
  287. <label ref="SM_CFNM"/>
  288. <value ref="SM_CD"/>
  289. </itemset>
  290. </choices>
  291. </select1>
  292. <caption id="ct_02" class="cell" style="left:187px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; ">厂内牌号</caption>
  293. <select1 id="cb_FacStlGrd" ref="/root/formData/FacStlGrd" appearance="minimal" editmode="inputsearch" style="left:269px; top:5px; width:100px; height:20px; ">
  294. <choices>
  295. <itemset nodeset="/root/formData/FacStlGrd/DCommCodeResult_Row">
  296. <label ref="FAC_STL_GRD_NM"/>
  297. <value ref="FAC_STL_GRD"/>
  298. </itemset>
  299. </choices>
  300. </select1>
  301. <caption id="ct_03" class="cell" style="left:374px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; ">板坯宽度</caption>
  302. <select1 id="cb_SlabWth" ref="/root/formData/SlabWth" appearance="minimal" style="left:456px; top:5px; width:100px; height:20px; ">
  303. <choices>
  304. <itemset nodeset="/root/formData/SlabWth/DCommCodeResult_Row">
  305. <label ref="SLAB_WTH_NM"/>
  306. <value ref="SLAB_WTH"/>
  307. </itemset>
  308. </choices>
  309. </select1>
  310. <caption id="ct_04" class="cell" style="left:561px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; ">钢卷厚度</caption>
  311. <caption id="ct_05" class="cell" style="left:748px; top:5px; width:54px; height:20px; text-align:center; vertical-align:middle; ">交货期</caption>
  312. <input id="ip_FrDate" ref="/root/formData/DevTerm/FrDevlmtDate" editable="false" inputtype="date" style="left:803px; top:5px; width:84px; height:20px; "/>
  313. <caption id="caption2" style="left:881px; top:8px; width:20px; height:20px; text-align:center; vertical-align:bottom; ">~</caption>
  314. <input id="ip_ToDate" ref="/root/formData/DevTerm/ToDevlmtDate" editable="false" inputtype="date" style="left:896px; top:5px; width:84px; height:20px; "/>
  315. <line id="line_01" visibility="visible" style="x1:980px; y1:30px; x2:0px; y2:30px; border-color:#ff0000; "/>
  316. <datagrid id="dg1" nodeset="/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row" backcoloralternate="#f7f9f9" caption="选择^订单号^订单号^厂内牌号^厂内牌号组^产线^冷卷^冷卷^热卷^热卷^板坯^板坯^板坯^热装区分^组合区分^交货期^用户特殊要求|选择^订单号^订单号^厂内牌号^厂内牌号组^产线^宽度^厚度^宽度^厚度^宽度^长度^重量^热装区分^组合区分^交货期^用户特殊要求" colsep="^" colwidth="40, 78, 21, 56, 82, 43, 45, 44, 43, 43, 43, 43, 43, 32, 32, 66, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sort" frozencols="1" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:0px; top:65px; width:527px; height:555px; border-style:solid; border-right-style:sunken; ">
  317. <col checkvalue="Y,N" ref="CHK" type="checkbox" style="text-align:left; "/>
  318. <col ref="ORD_NO" type="output" style="text-align:left; "/>
  319. <col ref="ORD_SEQ" style="text-align:left; "/>
  320. <col ref="FAC_STL_GRD" style="text-align:left; "/>
  321. <col ref="FAC_STL_GRP" style="text-align:left; "/>
  322. <col ref="PROD_LINE" style="text-align:left; "/>
  323. <col ref="C_COIL_WTH" style="text-align:right; "/>
  324. <col ref="C_COIL_THK" style="text-align:right; "/>
  325. <col ref="COIL_WTH" style="text-align:right; "/>
  326. <col ref="COIL_THK" style="text-align:right; "/>
  327. <col ref="SLAB_WTH" style="text-align:right; "/>
  328. <col ref="SLAB_LEN" format="#,###" style="text-align:right; "/>
  329. <col ref="SLAB_WGT" format="#,###" style="text-align:right; "/>
  330. <col ref="HCR_YN"/>
  331. <col ref="COMB_YN"/>
  332. <col ref="ORD_DEVLMT_DATE" style="text-align:left; "/>
  333. <col ref="CHEM" style="text-align:left; "/>
  334. <col ref="DSN_SLAB_NO" visibility="hidden"/>
  335. <col ref="P_DSN_SLAB_NO" visibility="hidden"/>
  336. <col ref="FAC_STL_GRP" visibility="hidden"/>
  337. <col ref="EMGMTR_YN" visibility="hidden"/>
  338. <col ref="PROC_PATH" visibility="hidden"/>
  339. <col ref="SLAB_THK" visibility="hidden"/>
  340. <col ref="SCARFING_PROC_YN" visibility="hidden"/>
  341. <col ref="SPM_PROC_YN" visibility="hidden"/>
  342. <col ref="COIL_LEN" visibility="hidden"/>
  343. <col ref="COIL_WGT" visibility="hidden"/>
  344. <col ref="SLAB_TRMTH_TP" visibility="hidden"/>
  345. <col ref="LEVEL" visibility="hidden"/>
  346. <col ref="GRAVITY" visibility="hidden"/>
  347. <col ref="COIL_INDIA" visibility="hidden"/>
  348. <col ref="LEVEL" visibility="hidden"/>
  349. <col ref="COIL_OUTDIA" visibility="hidden"/>
  350. <col ref="AUTODSN_YN" visibility="hidden"/>
  351. <col ref="KEEPWARM_YN" visibility="hidden"/>
  352. <script type="javascript" ev:event="xforms-value-changed">
  353. <![CDATA[
  354. var vRefPDsnSlabNo = dg1.colRef("P_DSN_SLAB_NO");
  355. var vPDsnSlabNo = dg1.valueMatrix(dg1.row, vRefPDsnSlabNo);
  356. //alert( "P_DSN_SLAB_NO => ["+ vPDsnSlabNo + "]" );
  357. if( vPDsnSlabNo != "" )
  358. {
  359. dg1.valueMatrix(dg1.row, vRefChk) = model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row[DSN_SLAB_NO = "+ vPDsnSlabNo +"]/CHK");
  360. }
  361. else
  362. {
  363. var vRefDsnSlabNo = dg1.colRef("DSN_SLAB_NO");
  364. var vDsnSlabNo = dg1.valueMatrix(dg1.row, vRefDsnSlabNo);
  365. var vCnt = model.getXPathValue("count(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row[P_DSN_SLAB_NO = "+ vDsnSlabNo +"])");
  366. if( vCnt != 0 )
  367. {
  368. var vRefChk = dg1.colRef("CHK");
  369. var vChk = dg1.valueMatrix(dg1.row, vRefChk);
  370. var vMatchCnt = 0;
  371. var vRefPDsnSlabNo = dg1.colRef("P_DSN_SLAB_NO");
  372. for( var i = dg1.row; i < dg1.rows; i++ )
  373. {
  374. if( dg1.valueMatrix(i, vRefPDsnSlabNo) == vDsnSlabNo )
  375. {
  376. vMatchCnt++;
  377. dg1.valueMatrix(i, vRefChk) = vChk;
  378. if( vChk == 'Y' )
  379. dg1.addStatus(i, "update");
  380. else dg1.removeStatus(i,"");
  381. }
  382. if( vMatchCnt >= vCnt )
  383. {
  384. break;
  385. }
  386. }
  387. dg1.refresh();
  388. }
  389. }
  390. var selectRow = dg1.row;
  391. calculateSummary();
  392. caption1.refresh();
  393. caption7.refresh();
  394. ]]>
  395. </script>
  396. <script type="javascript" ev:event="xforms-select">
  397. <![CDATA[
  398. model.setValue("/root/initData/tempStlGrd",dg1.valueMatrix(dg1.row,dg1.colRef("FAC_STL_GRD")));
  399. ]]>
  400. </script>
  401. </datagrid>
  402. <button id="button2" style="left:565px; top:35px; width:75px; height:20px; font-weight:bold; text-align:right; vertical-align:middle; background-image:../../images/find.gif; border-color:#ffffff; border-style:solid; ">
  403. <caption>板坯选定</caption>
  404. <script type="javascript" ev:event="DOMActivate">
  405. <![CDATA[
  406. model.refresh();
  407. // Validate CAST_NO
  408. var vCastSpecSeq = cb_CastSpecSeq.value;
  409. if( vCastSpecSeq == "" )
  410. {
  411. model.alert("Please, choice the target cast!!!");
  412. return;
  413. }
  414. // Validate CHAREG_NO
  415. var vCharSpecSeq = "";
  416. var vRowCnt = 0;
  417. for( var i = 1; i < dg2.rows; i++ )
  418. {
  419. if( dg2.valueMatrix( i, dg2.colRef("CHK") ) == 'Y' )
  420. {
  421. vRowCnt++;
  422. vCharSpecSeq = dg2.valueMatrix( i, dg2.colRef("MAT_SPEC_SEQ") );
  423. }
  424. }
  425. if( vRowCnt == 0 )
  426. {
  427. model.alert("Please, choice the target charge!!!");
  428. return;
  429. }
  430. // Validate Resourced-SLAB_NO
  431. var vUpdatedArr = dg1.getUpdateData("update").split('|');
  432. vRowCnt = vUpdatedArr.length - 2; // Excepting 2 rows (One is Column's Ref, another one is Last-splited(Space)
  433. if( vRowCnt == 0 )
  434. {
  435. model.alert("Please, choice the slab to move!!!");
  436. return;
  437. }
  438. var vTargetRow = 1 + Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)"));
  439. //alert("vTargetRow --= " + vTargetRow);
  440. var idx = 0;
  441. var vRefChk = dg1.colRef("CHK");
  442. var vLevel = 0;
  443. //alert("123456789".substring(0,4));
  444. //add by wangli -----------------------------------***************************
  445. var vLastMatSpecSeq = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP >= '03' and PMAT_SPEC_SEQ= /root/formData/matSpecSeq]/MAT_SPEC_SEQ)");
  446. //alert("=====" +model.getValue("/root/formData/matSpecSeq"));
  447. var tempSeq = model.getValue("/root/formData/matSpecSeq");
  448. //alert("vLastMatSpecSeq +" +vLastMatSpecSeq);
  449. model.setValue("/root/formData/subMatSpecSeq","0"+vLastMatSpecSeq);
  450. var vSubLastMatSpecSeq = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP >= '03' and PMAT_SPEC_SEQ= /root/formData/subMatSpecSeq]/MAT_SPEC_SEQ)");
  451. //var vSubLastMatSpecSeq = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP >= '04' and PMAT_SPEC_SEQ = /root/formData/subMatSpecSeq]/MAT_SPEC_SEQ)");
  452. if(vSubLastMatSpecSeq == "NaN")
  453. {
  454. }else
  455. {
  456. vLastMatSpecSeq = vSubLastMatSpecSeq;
  457. }
  458. if( vLastMatSpecSeq == "NaN" )
  459. {
  460. vLastMatSpecSeq = "000";
  461. }
  462. else
  463. {
  464. vLastMatSpecSeq = String(vLastMatSpecSeq).substring(Number(String(vLastMatSpecSeq).length)-4,Number(String(vLastMatSpecSeq).length));
  465. //alert("vLastMatSpecSeq="+vLastMatSpecSeq);
  466. }
  467. //alert(vLastMatSpecSeq);
  468. var k = 1;
  469. var g = 1;
  470. //add by wangli -----------------------------------**********************
  471. //alert("model.getValue(/root/formData/matSpecSeq) ="+model.getValue("/root/formData/matSpecSeq"));
  472. var seqCount = model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = /root/formData/matSpecSeq])");
  473. var h = 0;
  474. //alert("seqCount="+seqCount);
  475. /****----------------------------- update at 2009-04-01--------------------------------****/
  476. var slabCount2 = model.getXPathValue("count(/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row)");
  477. //alert(" slabCount2 = " + slabCount2);
  478. var m = 0;
  479. var CHEM_YN = "CHEM";
  480. var chem_count = 0;
  481. var slab_rt="H";
  482. for(var i = 1; i <= slabCount2; i++)
  483. {
  484. var chk = model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/CHK");
  485. var ORD = model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/ORD_NO");
  486. if(chk == 'Y')
  487. {
  488. //alert("i = "+i);
  489. chem_count++;
  490. if (chem_count == 1)
  491. {
  492. CHEM_YN = model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/CHEM");
  493. }
  494. else
  495. {
  496. if(CHEM_YN != model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/CHEM"))
  497. {
  498. window.alert("所选的坯料含有不同用户的特殊要求,请确认!","提示信息")
  499. return;
  500. }
  501. }
  502. var lel2 = Number(model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/LEVEL"))+2;
  503. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LEVEL" , lel2 );
  504. var iNextMatSeq = (m+1) + Number(vLastMatSpecSeq);
  505. //alert("iNextMatSeq==" + iNextMatSeq);
  506. m++;
  507. iNextMatSeq = iNextMatSeq+"";
  508. for(var j = iNextMatSeq.length; j < 4; j++)
  509. {
  510. iNextMatSeq = "0" + iNextMatSeq;
  511. }
  512. iNextMatSeq = vCharSpecSeq + iNextMatSeq;
  513. //alert(" iNextMatSeq =" +iNextMatSeq);
  514. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_SPEC_SEQ" , iNextMatSeq );
  515. if( lel2 == 3 )
  516. {
  517. //alert("lel2");
  518. //等级为3 的上一级单位号码赋炉次号
  519. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , vCharSpecSeq );
  520. if(model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COMB_YN") == 'Y')
  521. {
  522. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "2" );
  523. }
  524. else
  525. {
  526. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "0" );
  527. }
  528. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , g+Number(seqCount));
  529. g++;
  530. k= 1;
  531. //alert("kkkkkksssskkkkk" + k);
  532. }
  533. else
  534. {
  535. //等级为4 的上一级单位号码赋母板坯号
  536. var slab_sum_no = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq and DSN_SLAB_NO="+model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/P_DSN_SLAB_NO")+"]/MAT_SPEC_SEQ");
  537. //alert("slab_sum_no="+ slab_sum_no);
  538. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , slab_sum_no);
  539. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "0" );
  540. //alert("oooooooooookkkk = " + k);
  541. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , k);
  542. k++;
  543. // if(k >= 5)
  544. // {
  545. // k = 1;
  546. // }
  547. }
  548. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_TP" , "0" + lel2 );
  549. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EXP_MAT_NO" , "" );
  550. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRD" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/FAC_STL_GRD" ) );
  551. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRP" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/FAC_STL_GRP" ) );
  552. //添加外销板坯业务 20180830 wl
  553. if( ORD.substring(0,1) == '7' )
  554. {
  555. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_RT" , "W" );
  556. }
  557. else
  558. {
  559. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_RT" , "H" );
  560. }
  561. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/TREAT_RT_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("TREAT_RT_CD" ))
  562. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PATH_PROC_CD" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/PROC_PATH" ) ); //dg1.valueMatrix( idx, dg1.colRef("PATH_PROC_CD" ))
  563. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LINE_PROC_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("LINE_PROC_CD" ))
  564. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_THK" ,model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SLAB_THK" ) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_THK" ))
  565. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WTH" ,model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SLAB_WTH" ) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_WTH" ))
  566. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN" ,model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SLAB_LEN" ) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN" ))
  567. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MIN" , "" ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN_MIN" ))
  568. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MAX" , "" ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN_MAX" ))
  569. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WGT" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SLAB_WGT" ) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_WGT" ))
  570. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_TERM_TIME" , "" ); //dg1.valueMatrix( idx, dg1.colRef("CCM_TERM_TIME" ))
  571. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WID_CHG_FL" , "" ); //dg1.valueMatrix( idx, dg1.colRef("WID_CHG_FL" ))
  572. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/HCR_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/HCR_YN" ) );
  573. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EMGMTR_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/EMGMTR_YN" ) ); //dg1.valueMatrix( idx, dg1.colRef("EMGMTR_YN" ))
  574. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SMS_DUEDATE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SMS_DUEDATE" ))
  575. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PRC_LINE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("PRC_LINE" ))
  576. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_PRC_LINE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("CCM_PRC_LINE" ))
  577. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROG_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("PROG_CD" ))
  578. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SLAB_CUT_SEQ" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SLAB_CUT_SEQ" ))
  579. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSG_RATE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("DSG_RATE" ))
  580. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/OVER_ROLL_YN" , "N" ); //dg1.valueMatrix( idx, dg1.colRef("OVER_ROLL_YN" ))
  581. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SAMPLE_CUT" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SAMPLE_CUT" ))
  582. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_FL" , "1" ); //dg1.valueMatrix( idx, dg1.colRef("ORD_FL" ))
  583. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_NO" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/ORD_NO" ) );
  584. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_SEQ" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/ORD_SEQ" ) );
  585. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DELV_REQ_DATE" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/ORD_DEVLMT_DATE" ) );
  586. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPM_PROC_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SPM_PROC_YN" ) ); //dg1.valueMatrix( idx, dg1.colRef("SPM_PROC_YN" ))
  587. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SCARPING_PROC_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/SCARFING_PROC_YN" ) ); //dg1.valueMatrix( idx, dg1.colRef("SCARPING_PROC_YN" ))
  588. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SEND_STS" , "01" ); //dg1.valueMatrix( idx, dg1.colRef("SEND_STS" ))
  589. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COMB_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COMB_YN" ) );
  590. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_THK" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_THK" ) );
  591. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WTH" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_WTH" ) );
  592. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_LEN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_LEN" ) );
  593. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WGT" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_WGT" ) );
  594. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CHK" , "false" );
  595. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSN_SLAB_NO" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/DSN_SLAB_NO" ) );
  596. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/P_DSN_SLAB_NO" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/P_DSN_SLAB_NO" ) );
  597. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/GRAVITY" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/GRAVITY" ) );
  598. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_INDIA" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_INDIA" ) );
  599. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_OUTDIA" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/COIL_OUTDIA" ) );
  600. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/AUTODSN_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/AUTODSN_YN" ) );
  601. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/KEEPWARM_YN" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/KEEPWARM_YN" ) );
  602. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROD_LINE" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/PROD_LINE" ) );
  603. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/C_COIL_THK" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/C_COIL_THK" ) );
  604. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/C_COIL_WTH" , model.getValue("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]/C_COIL_WTH" ) );
  605. vTargetRow++;
  606. model.removenode("/root/SlabDnRst/ListResult_0_VO/ListResult_0_Row["+i+"]");
  607. i--;
  608. }
  609. }
  610. if(GLOBAL_CHEM != "" && GLOBAL_CHEM != null && GLOBAL_CHEM != CHEM_YN){
  611. window.alert("所选的坯料含有不同用户的特殊要求,请确认!","提示信息")
  612. find();
  613. return;
  614. }
  615. if(GLOBAL_CHEM == "" || GLOBAL_CHEM == null){
  616. GLOBAL_CHEM = CHEM_YN;
  617. }
  618. /****----------------------------- update at 2009-04-01--------------------------------****/
  619. /***<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  620. for( var i = 0; i < vRowCnt; i++ )
  621. {
  622. //获取选择板坯的行号ROW NUMBER
  623. idx = Number( vUpdatedArr[h + 1].split('^')[1] ); // Extracting rowNum from vUpdatedArr[i + 1]
  624. // if( dg1.valueMatrix(idx, vRefChk) == 'Y' ) {
  625. if( (vUpdatedArr[h].split('^')[2]) == 'Y' )
  626. {
  627. //浇次等级: 1
  628. //炉次等级: 2
  629. //板坯: 3
  630. //被组合板坯:4
  631. vLevel = Number(dg1.valueMatrix(idx, dg1.colRef("LEVEL"))) + 2;//级数加2,以保证其符合炉次浇次的级数
  632. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LEVEL" , vLevel );
  633. //**********************************************
  634. var iNextMatSeq = (i+1) + Number(vLastMatSpecSeq);
  635. iNextMatSeq = iNextMatSeq + "";
  636. for(var j = iNextMatSeq.length; j < 4; j++)
  637. {
  638. iNextMatSeq = "0" + iNextMatSeq;
  639. }
  640. iNextMatSeq = vCharSpecSeq + iNextMatSeq;
  641. //**********************************************
  642. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_SPEC_SEQ" , iNextMatSeq );
  643. // model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , dg1.valueMatrix( idx, dg1.colRef("PMAT_SPEC_SEQ" )) );
  644. if( vLevel == 3 )
  645. {
  646. //等级为3 的上一级单位号码赋炉次号
  647. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , vCharSpecSeq );
  648. if(dg1.valueMatrix( idx, dg1.colRef("COMB_YN")) == 'Y')
  649. {
  650. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "2" );
  651. }
  652. else
  653. {
  654. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "0" );
  655. }
  656. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , g+Number(seqCount));
  657. g++;
  658. }
  659. else
  660. {
  661. //等级为4 的上一级单位号码赋母板坯号
  662. var slab_sum_no = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq and DSN_SLAB_NO="+dg1.valueMatrix( idx, dg1.colRef("P_DSN_SLAB_NO"))+"]/MAT_SPEC_SEQ");
  663. //alert("slab_sum_no="+ slab_sum_no);
  664. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , slab_sum_no);
  665. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , "0" );
  666. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , k);
  667. k++;
  668. if(k >= 3)
  669. {
  670. k = 1;
  671. }
  672. }
  673. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_TP" , "0" + vLevel );
  674. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EXP_MAT_NO" , "" );
  675. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRD" , dg1.valueMatrix( idx, dg1.colRef("FAC_STL_GRD" )) );
  676. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRP" , dg1.valueMatrix( idx, dg1.colRef("FAC_STL_GRP" )) );
  677. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_RT" , "H" );
  678. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/TREAT_RT_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("TREAT_RT_CD" ))
  679. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PATH_PROC_CD" , dg1.valueMatrix( idx, dg1.colRef("PROC_PATH" )) ); //dg1.valueMatrix( idx, dg1.colRef("PATH_PROC_CD" ))
  680. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LINE_PROC_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("LINE_PROC_CD" ))
  681. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_THK" , dg1.valueMatrix( idx, dg1.colRef("SLAB_THK" )) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_THK" ))
  682. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WTH" , dg1.valueMatrix( idx, dg1.colRef("SLAB_WTH" )) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_WTH" ))
  683. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN" , dg1.valueMatrix( idx, dg1.colRef("SLAB_LEN" )) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN" ))
  684. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MIN" , "" ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN_MIN" ))
  685. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MAX" , "" ); //dg1.valueMatrix( idx, dg1.colRef("MAT_LEN_MAX" ))
  686. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WGT" , dg1.valueMatrix( idx, dg1.colRef("SLAB_WGT" )) ); //dg1.valueMatrix( idx, dg1.colRef("MAT_WGT" ))
  687. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_TERM_TIME" , "" ); //dg1.valueMatrix( idx, dg1.colRef("CCM_TERM_TIME" ))
  688. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WID_CHG_FL" , "" ); //dg1.valueMatrix( idx, dg1.colRef("WID_CHG_FL" ))
  689. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/HCR_YN" , dg1.valueMatrix( idx, dg1.colRef("HCR_YN" )) );
  690. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EMGMTR_YN" , dg1.valueMatrix( idx, dg1.colRef("EMGMTR_YN" )) ); //dg1.valueMatrix( idx, dg1.colRef("EMGMTR_YN" ))
  691. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SMS_DUEDATE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SMS_DUEDATE" ))
  692. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PRC_LINE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("PRC_LINE" ))
  693. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_PRC_LINE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("CCM_PRC_LINE" ))
  694. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROG_CD" , "" ); //dg1.valueMatrix( idx, dg1.colRef("PROG_CD" ))
  695. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SLAB_CUT_SEQ" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SLAB_CUT_SEQ" ))
  696. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSG_RATE" , "" ); //dg1.valueMatrix( idx, dg1.colRef("DSG_RATE" ))
  697. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/OVER_ROLL_YN" , "N" ); //dg1.valueMatrix( idx, dg1.colRef("OVER_ROLL_YN" ))
  698. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SAMPLE_CUT" , "" ); //dg1.valueMatrix( idx, dg1.colRef("SAMPLE_CUT" ))
  699. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_FL" , "1" ); //dg1.valueMatrix( idx, dg1.colRef("ORD_FL" ))
  700. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_NO" , dg1.valueMatrix( idx, dg1.colRef("ORD_NO" )) );
  701. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_SEQ" , dg1.valueMatrix( idx, dg1.colRef("ORD_SEQ" )) );
  702. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DELV_REQ_DATE" , dg1.valueMatrix( idx, dg1.colRef("ORD_DEVLMT_DATE" )) );
  703. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPM_PROC_YN" , dg1.valueMatrix( idx, dg1.colRef("SPM_PROC_YN" )) ); //dg1.valueMatrix( idx, dg1.colRef("SPM_PROC_YN" ))
  704. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SCARPING_PROC_YN" , dg1.valueMatrix( idx, dg1.colRef("SCARFING_PROC_YN" )) ); //dg1.valueMatrix( idx, dg1.colRef("SCARPING_PROC_YN" ))
  705. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SEND_STS" , "01" ); //dg1.valueMatrix( idx, dg1.colRef("SEND_STS" ))
  706. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COMB_YN" , dg1.valueMatrix( idx, dg1.colRef("COMB_YN" )) );
  707. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_THK" , dg1.valueMatrix( idx, dg1.colRef("COIL_THK" )) );
  708. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WTH" , dg1.valueMatrix( idx, dg1.colRef("COIL_WTH" )) );
  709. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_LEN" , dg1.valueMatrix( idx, dg1.colRef("COIL_LEN" )) );
  710. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WGT" , dg1.valueMatrix( idx, dg1.colRef("COIL_WGT" )) );
  711. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CHK" , "false" );
  712. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSN_SLAB_NO" , dg1.valueMatrix( idx, dg1.colRef("DSN_SLAB_NO" )) );
  713. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/P_DSN_SLAB_NO" , dg1.valueMatrix( idx, dg1.colRef("P_DSN_SLAB_NO" )) );
  714. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/GRAVITY" , dg1.valueMatrix( idx, dg1.colRef("GRAVITY" )) );
  715. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_INDIA" , dg1.valueMatrix( idx, dg1.colRef("COIL_INDIA" )) );
  716. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_OUTDIA" , dg1.valueMatrix( idx, dg1.colRef("COIL_OUTDIA" )) );
  717. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/AUTODSN_YN" , dg1.valueMatrix( idx, dg1.colRef("AUTODSN_YN" )) );
  718. vTargetRow++;
  719. //dg1.addStatus(idx, "delete");
  720. //dg1.rowHidden(idx) = true;
  721. dg1.deleteRow(idx, false);
  722. //idx = idx - 1;
  723. }
  724. // else
  725. // {
  726. // }
  727. h++;
  728. }<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<****/
  729. //calculateSummary();
  730. //chageSelect();
  731. var sChgSpecSeq = dg2.valueMatrix( dg2.row, dg2.colRef("MAT_SPEC_SEQ") );
  732. if(sChgSpecSeq == "")
  733. {
  734. window.alert("请选择炉次!","提示信息");
  735. return;
  736. }
  737. var sFacStlGrd = dg3.valueMatrix( 2, dg3.colRef("FAC_STL_GRD" ) );
  738. var iSlabRows = Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"])" ));
  739. var iChgWeights = Number(model.getXPathValue("sum (/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WGT)"));
  740. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRD", sFacStlGrd );
  741. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/CMAT_CNT" , iSlabRows );
  742. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WGT" , iChgWeights );
  743. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRP", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRP") );
  744. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/PATH_PROC_CD", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/PATH_PROC_CD") );
  745. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WTH", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WTH") );
  746. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_THK", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_THK") );
  747. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/HCR_YN", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/HCR_YN") );
  748. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRD", model.getValue("/root/initData/tempStlGrd") );
  749. //model.setValue("/root/initData/tempStlGrd","");
  750. model.refresh();
  751. commGridLevels(dg1,0);
  752. ]]>
  753. </script>
  754. </button>
  755. <datagrid id="dg2" nodeset="/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 2 and PMAT_SPEC_SEQ = /root/formData/castDnRst]" scroll="auto" backcoloralternate="#f7f9f9" caption="选择^管理号^管理号^厂内牌号^板坯块数^炉次重量|选择^浇次^炉次^厂内牌号^板坯块数^炉次重量" colsep="^" colwidth="40, 82, 82, 97, 75, 75" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:532px; top:65px; width:448px; height:180px; text-align:center; ">
  756. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  757. <col ref="PMAT_SPEC_SEQ"/>
  758. <col ref="MAT_SPEC_SEQ"/>
  759. <col ref="FAC_STL_GRD"/>
  760. <col ref="CMAT_CNT" format="#,###" style="text-align:right; "/>
  761. <col ref="MAT_WGT" format="#,###" style="text-align:right; "/>
  762. <script type="javascript" ev:event="onrowchanged">
  763. <![CDATA[
  764. model.setValue("/root/formData/matSpecSeq", dg2.valueMatrix(dg2.row, dg2.colRef("MAT_SPEC_SEQ")));
  765. dg3.rebuild();
  766. if (dg2_currRow != -1)
  767. {
  768. dg2.valueMatrix(dg2_currRow, dg2.colRef("CHK") ) = "N";
  769. }
  770. dg2_currRow = dg2.row;
  771. dg2.valueMatrix(dg2_currRow, dg2.colRef("CHK") ) = "Y";
  772. model.setValue("/root/wth_count",model.getXPathValue("sum(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq]/MAT_WGT)"));
  773. caption9.refresh();
  774. model.refresh();
  775. ]]>
  776. </script>
  777. </datagrid>
  778. <datagrid id="dg3" nodeset="/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq]" scroll="auto" backcoloralternate="#f7f9f9" caption="选择^管理板坯号^厂内牌号^产线^冷卷^冷卷^热卷^热卷^板坯^板坯^板坯^热装区分^计划余材^caption1|选择^管理板坯号^厂内牌号^产线^宽度^厚度^宽度^厚度^宽度^长度^重量^热装区分^计划余材^caption1" colsep="^" colwidth="40, 71, 50, 41, 45, 44, 45, 45, 45, 45, 45, 32, 32, 100, 100, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:532px; top:280px; width:448px; height:340px; ">
  779. <col ref="CHK" type="checkbox">
  780. <script type="javascript" ev:event="xforms-value-changed">
  781. <![CDATA[
  782. /*var selectRow = dg3.row;
  783. var count = model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)");
  784. for(var i = 1; i<=count; i++)
  785. {
  786. var CHK = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/CHK");
  787. var PMAT_SPEC_SEQ = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/PMAT_SPEC_SEQ");
  788. if(CHK == "true" && PMAT_SPEC_SEQ == model.getValue("/root/formData/matSpecSeq"))
  789. {
  790. var MAT_SPEC_SEQ1 = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/MAT_SPEC_SEQ");
  791. for(var j = 1; j<=count; j++)
  792. {
  793. var MAT_SPEC_SEQ2 = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+j+"]/MAT_SPEC_SEQ");
  794. if(MAT_SPEC_SEQ2 > MAT_SPEC_SEQ1)
  795. {
  796. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+j+"]/CHK", "true");
  797. }
  798. }
  799. }
  800. }
  801. model.refresh();*/
  802. ]]>
  803. </script>
  804. </col>
  805. <col ref="MAT_SPEC_SEQ" style="text-align:left; padding-left:2; "/>
  806. <col ref="FAC_STL_GRD" style="text-align:left; padding-left:2; "/>
  807. <col ref="PROD_LINE"/>
  808. <col ref="C_COIL_WTH"/>
  809. <col ref="C_COIL_THK"/>
  810. <col ref="COIL_WTH"/>
  811. <col ref="COIL_THK"/>
  812. <col ref="MAT_WTH" format="#,###" style="text-align:right; "/>
  813. <col ref="MAT_LEN" type="input" format="#,###" style="text-align:right; background-color:#ffff99; "/>
  814. <col ref="MAT_WGT" type="output" format="#,###" style="text-align:right; "/>
  815. <col ref="HCR_YN"/>
  816. <col ref="ORD_FL"/>
  817. <col ref="PMAT_SPEC_SEQ" visibility="hidden"/>
  818. <col ref="MAT_THK" visibility="hidden"/>
  819. <col ref="GRAVITY" visibility="hidden"/>
  820. <script type="javascript" ev:event="xforms-value-changed">
  821. <![CDATA[
  822. var iGravity = Number(dg3.valueMatrix(dg3.row,dg3.colRef("GRAVITY")));
  823. var iSlabThk = Number(dg3.valueMatrix(dg3.row,dg3.colRef("MAT_THK")));
  824. var iSlabWth = Number(dg3.valueMatrix(dg3.row,dg3.colRef("MAT_WTH")));
  825. var iSlabLen = Number(dg3.valueMatrix(dg3.row,dg3.colRef("MAT_LEN")));
  826. var iSlabWgt = Math.ceil( (iSlabLen * iSlabWth * iSlabThk * iGravity * 1000) / 1000000000 );
  827. dg3.valueMatrix(dg3.row,dg3.colRef("MAT_WGT")) = iSlabWgt;
  828. calculateSummary();
  829. chageSelect();
  830. model.refresh();
  831. ]]>
  832. </script>
  833. </datagrid>
  834. <button id="bt_AddRestSlab" style="left:830px; top:250px; width:75px; height:20px; font-weight:bold; text-align:right; vertical-align:middle; background-image:../../images/btn_create.gif; border-color:#ffffff; border-style:solid; ">
  835. <caption>余材添加</caption>
  836. <script type="javascript" ev:event="DOMActivate">
  837. <![CDATA[
  838. if( dg3.rows <= dg3.fixedRows ) {
  839. return;
  840. }
  841. for(var i=1; i<=dg3.rows; i++)
  842. {
  843. if( dg3.valueMatrix(i, dg3.colRef("CHK")) == "true" )
  844. {
  845. var a=i;
  846. break;
  847. }
  848. }
  849. var vLastMatSpecSeq = dg3.valueMatrix(a, dg3.colRef("MAT_SPEC_SEQ"));
  850. var sChgSpecSeq = dg2.valueMatrix( dg2.row, dg2.colRef("MAT_SPEC_SEQ") );
  851. var iNextMatSeq = sChgSpecSeq + lpad(Number(vLastMatSpecSeq.substring(5)) + 1, 4, '0');
  852. /*var vLastMatSpecSeq = dg3.valueMatrix( dg3.rows - 1, dg3.colRef("MAT_SPEC_SEQ") );
  853. //var iNextMatSeq = 1 + parseInt(model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP >= '03']/MAT_SPEC_SEQ)"));
  854. var iNextMatSeq = 0;
  855. var sChgSpecSeq = dg2.valueMatrix( dg2.row, dg2.colRef("MAT_SPEC_SEQ") );
  856. //var count = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP >= '03' and substring(MAT_SPEC_SEQ,5,4))])");
  857. var maxValue = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP >= '03' and PMAT_SPEC_SEQ = /root/formData/matSpecSeq]/MAT_SPEC_SEQ)");
  858. //alert("maxValue="+maxValue);
  859. //maxValue = substring(maxValue,5,4);
  860. if(maxValue != "NaN")
  861. {
  862. maxValue = Number(String(maxValue).substring(String(maxValue).length-4,String(maxValue).length)) + 1;
  863. iNextMatSeq = sChgSpecSeq + lpad(maxValue, 4, '0');
  864. // for(var i = 1; i <= count; i++)
  865. // {
  866. // if(i<9)
  867. // {
  868. // iNextMatSeq = sChgSpecSeq + "000" + (Number(i)+1);
  869. // }
  870. // else if(i>=9 && i<99)
  871. // {
  872. // iNextMatSeq = sChgSpecSeq +"00"+ (Number(i)+1);
  873. // }
  874. // else
  875. // {
  876. // iNextMatSeq = sChgSpecSeq +"0"+ (Number(i)+1);
  877. // }
  878. // }
  879. //iNextMatSeq = iNextMatSeq + "";
  880. //for(i = iNextMatSeq.length; i < 8; i++)
  881. //{
  882. // iNextMatSeq = "0" + iNextMatSeq;
  883. //}
  884. //model.alert( "iNextMatSeq = ["+ iNextMatSeq +"]" );
  885. */
  886. var vTargetRow = 1 + Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)"));
  887. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LEVEL" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/LEVEL" ) );
  888. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_SPEC_SEQ" , iNextMatSeq ); //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_SPEC_SEQ" )
  889. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PMAT_SPEC_SEQ" ) );
  890. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_TP" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_TP" ) );
  891. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EXP_MAT_NO" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/EXP_MAT_NO" ) );
  892. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , Number(model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/WITHIN_SUB_SEQ" ))+ 1 );
  893. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CMAT_CNT" ) );
  894. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/FAC_STL_GRD" ) );
  895. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRP" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/FAC_STL_GRP" ) );
  896. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_RT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_RT" ) );
  897. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/TREAT_RT_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/TREAT_RT_CD" ) );
  898. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PATH_PROC_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PATH_PROC_CD" ) );
  899. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LINE_PROC_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/LINE_PROC_CD" ) );
  900. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_THK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_THK" ) );
  901. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WTH" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_WTH" ) );
  902. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN" ) );
  903. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MIN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN_MIN" ) );
  904. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MAX" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN_MAX" ) );
  905. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WGT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_WGT" ) );
  906. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_TERM_TIME" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CCM_TERM_TIME" ) );
  907. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WID_CHG_FL" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/WID_CHG_FL" ) );
  908. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/HCR_YN" , "C" ); //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/HCR_YN" )
  909. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EMGMTR_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/EMGMTR_YN" ) );
  910. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SMS_DUEDATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SMS_DUEDATE" ) );
  911. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PRC_LINE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PRC_LINE" ) );
  912. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_PRC_LINE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CCM_PRC_LINE" ) );
  913. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROG_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PROG_CD" ) );
  914. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SLAB_CUT_SEQ" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SLAB_CUT_SEQ" ) );
  915. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSG_RATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/DSG_RATE" ) );
  916. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/OVER_ROLL_YN" ,"Y" );
  917. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SAMPLE_CUT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SAMPLE_CUT" ) );
  918. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_FL" , "2" ); //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_FL" )
  919. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_NO" , "");//model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_NO" ) );
  920. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_SEQ" , "");//model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_SEQ" ) );
  921. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DELV_REQ_DATE" , "");//model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/DELV_REQ_DATE" ) );
  922. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPM_PROC_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SPM_PROC_YN" ) );
  923. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SCARPING_PROC_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SCARPING_PROC_YN" ) );
  924. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SEND_STS" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SEND_STS" ) );
  925. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COMB_YN" , "N" ); //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COMB_YN" )
  926. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_THK" , "0");//model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_THK" ) );
  927. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WTH" , "0");//model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_WTH" ) );
  928. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_LEN" , "0");//model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_LEN" ) );
  929. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WGT" , "0");//model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_WGT" ) );
  930. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CHK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CHK" ) );
  931. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSN_SLAB_NO" , "" );
  932. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/P_DSN_SLAB_NO" , "" );
  933. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/GRAVITY" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/GRAVITY" ) );
  934. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_INDIA" , "0");//model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_INDIA" ) );
  935. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_OUTDIA" , "0");//model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_OUTDIA" ) );
  936. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/AUTODSN_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/AUTODSN_YN" ) );
  937. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/KEEPWARM_YN" , "N");//model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/KEEPWARM_YN" ) );
  938. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROD_LINE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PROD_LINE" ) );
  939. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/C_COIL_THK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/C_COIL_THK" ) );
  940. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/C_COIL_WTH" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/C_COIL_WTH" ) );
  941. model.setValue("/root/wth_count",model.getXPathValue("sum(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 3 and PMAT_SPEC_SEQ=/root/formData/matSpecSeq]/MAT_WGT)"));
  942. //commAddRow(dg3);
  943. chageSelect();
  944. model.refresh();
  945. ]]>
  946. </script>
  947. </button>
  948. <button id="button4" style="left:755px; top:250px; width:75px; height:20px; font-weight:bold; text-align:right; background-image:../../images/btn_save.gif; border-color:#ffffff; border-style:solid; ">
  949. <caption>炉次选定</caption>
  950. <script type="javascript" ev:event="DOMActivate">
  951. <![CDATA[
  952. var sChgSpecSeq = dg2.valueMatrix( dg2.row, dg2.colRef("MAT_SPEC_SEQ") );
  953. if(sChgSpecSeq == "")
  954. {
  955. window.alert("请选择炉次!","提示信息");
  956. return;
  957. }
  958. var sFacStlGrd = dg3.valueMatrix( 2, dg3.colRef("FAC_STL_GRD" ) );
  959. var iSlabRows = Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"])" ));
  960. var iChgWeights = Number(model.getXPathValue("sum (/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WGT)"));
  961. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRD", sFacStlGrd );
  962. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/CMAT_CNT" , iSlabRows );
  963. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WGT" , iChgWeights );
  964. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRP", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/FAC_STL_GRP") );
  965. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/PATH_PROC_CD", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/PATH_PROC_CD") );
  966. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WTH", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_WTH") );
  967. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_THK", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/MAT_THK") );
  968. model.setValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ sChgSpecSeq +"]/HCR_YN", model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[PMAT_SPEC_SEQ = "+ sChgSpecSeq +"]/HCR_YN") );
  969. model.refresh();
  970. ]]>
  971. </script>
  972. </button>
  973. <button id="button5" style="left:905px; top:250px; width:75px; height:20px; font-weight:bold; text-align:right; background-image:../../images/btn_delete.gif; border-color:#ffffff; border-style:solid; ">
  974. <caption>板坯删除</caption>
  975. <script type="javascript" ev:event="onclick">
  976. <![CDATA[
  977. model.removenode("/root/gridData/sendInfo");
  978. model.makeNode("/root/gridData/sendInfo");
  979. var count = model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)");
  980. var j = 0;
  981. for(var i = 1; i<=count; i++)
  982. {
  983. var CHK = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/CHK");
  984. //var MAT_TP = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/MAT_TP");
  985. //var PMAT_SPEC_SEQ = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/PMAT_SPEC_SEQ");
  986. //alert("CHK=" + CHK);
  987. //if(PMAT_SPEC_SEQ == model.getValue("/root/formData/matSpecSeq"))
  988. if(CHK == "true")
  989. {
  990. model.duplicate("/root/gridData/sendInfo","/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]");
  991. j++;
  992. //model.removenode("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+j+"]");
  993. }
  994. }
  995. if(j == 0)
  996. {
  997. window.alert("请选择需要删除的板坯","提示信息");
  998. return;
  999. }
  1000. if(commComfirmBox(" 确认删除该炉次中的板坯? "," 提示信息 ")=='0') return;
  1001. commSendReq("/root/gridData/sendInfo");
  1002. commSubmit(submitMainID,"deleteMatDnRst","glueAction.do");
  1003. find();
  1004. calculateSummary();
  1005. model.refresh();
  1006. ]]>
  1007. </script>
  1008. </button>
  1009. <line id="line2" style="x1:530px; y1:275px; x2:980px; y2:275px; border-color:#ff0000; "/>
  1010. <caption id="caption3" style="left:530px; top:255px; width:60px; height:22px; font-family:Tahoma; font-weight:bold; vertical-align:middle; ">炉次编制</caption>
  1011. <caption id="caption4" style="left:650px; top:35px; width:60px; height:20px; font-family:Tahoma; font-weight:bold; vertical-align:middle; ">浇次编制</caption>
  1012. <caption id="caption5" style="left:0px; top:40px; width:85px; height:21px; font-family:Tahoma; font-weight:bold; vertical-align:middle; ">选定对象板坯</caption>
  1013. <line id="line3" visibility="visible" style="x1:980px; y1:60px; x2:0px; y2:60px; border-color:#ff0000; "/>
  1014. <button id="bt_AddCharge" style="left:830px; top:35px; width:75px; height:20px; font-weight:bold; text-align:right; background-image:../../images/btn_create.gif; border-color:#ffffff; border-style:solid; ">
  1015. <caption>添加炉次</caption>
  1016. <script type="javascript" ev:event="DOMActivate">
  1017. <![CDATA[
  1018. // Validate CAST_NO
  1019. var vCastSpecSeq = cb_CastSpecSeq.value;
  1020. if( vCastSpecSeq == "" )
  1021. {
  1022. model.alert("Please, choice the target cast!!!");
  1023. return;
  1024. }
  1025. //model.alert("===> ["+ model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '02'])") +"]");
  1026. var vLastMatSpecSeq = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '02' and starts-with(MAT_SPEC_SEQ,"+model.getValue("/root/formData/castDnRst")+")]/MAT_SPEC_SEQ)");
  1027. //alert("..............vLastMatSpecSeq="+vLastMatSpecSeq);
  1028. //var iNextMatSeq = 1 + parseInt(vLastMatSpecSeq);
  1029. //(iNextMatSeq + "").substring(
  1030. //var vLastMatSpecSeq = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '02' and PMAT_SPEC_SEQ = /root/formData/castDnRst]/MAT_SPEC_SEQ");
  1031. //vLastMatSpecSeq = vLastMatSpecSeq.substring(3);
  1032. //var vLastMatSpecSeq = model.getXPathValue("max(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '02' and PMAT_SPEC_SEQ = /root/formData/castDnRst]/MAT_SPEC_SEQ)");
  1033. //var vLastMatSpecSeq = dg2.valueMatrix( dg2.rows - 1, dg2.colRef("MAT_SPEC_SEQ") );
  1034. //model.alert("vLastMatSpecSeq = ["+ vLastMatSpecSeq +"]");
  1035. if( vLastMatSpecSeq == "NaN" )
  1036. {
  1037. vLastMatSpecSeq = "00";
  1038. }
  1039. else
  1040. {
  1041. vLastMatSpecSeq = String(vLastMatSpecSeq).substring(Number(String(vLastMatSpecSeq).length)-2,Number(String(vLastMatSpecSeq).length));
  1042. }
  1043. var iNextMatSeq = 1 + Number(vLastMatSpecSeq);
  1044. for(i = String(iNextMatSeq).length; i < 2; i++)
  1045. {
  1046. iNextMatSeq = "0" + iNextMatSeq;
  1047. }
  1048. var CHARGE_SEQ = Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[LEVEL = 2 and PMAT_SPEC_SEQ = /root/formData/castDnRst])"))+1;
  1049. iNextMatSeq = vCastSpecSeq + iNextMatSeq;
  1050. //var iNextMatSeq = 1 + parseInt(model.getXPathValue("max (/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '02' and PMAT_SPEC_SEQ = "+ model.getValue("/root/formData/castDnRst") +"]/MAT_SPEC_SEQ)"));
  1051. //model.alert( "iNextMatSeq = ["+ iNextMatSeq +"]" );
  1052. var vTargetRow = 1 + Number(model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)"));
  1053. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LEVEL" , 2 );
  1054. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_SPEC_SEQ" , iNextMatSeq ); //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_SPEC_SEQ" )
  1055. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PMAT_SPEC_SEQ" , vCastSpecSeq );
  1056. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_TP" , "02" );
  1057. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EXP_MAT_NO" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/EXP_MAT_NO" ) );
  1058. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WITHIN_SUB_SEQ" , CHARGE_SEQ );
  1059. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CMAT_CNT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CMAT_CNT" ) );
  1060. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/FAC_STL_GRD" ) );
  1061. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/FAC_STL_GRP" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/FAC_STL_GRP" ) );
  1062. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_RT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_RT" ) );
  1063. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/TREAT_RT_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/TREAT_RT_CD" ) );
  1064. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PATH_PROC_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PATH_PROC_CD" ) );
  1065. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/LINE_PROC_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/LINE_PROC_CD" ) );
  1066. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_THK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_THK" ) );
  1067. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WTH" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_WTH" ) );
  1068. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN" ) );
  1069. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MIN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN_MIN" ) );
  1070. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_LEN_MAX" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_LEN_MAX" ) );
  1071. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/MAT_WGT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/MAT_WGT" ) );
  1072. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_TERM_TIME" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CCM_TERM_TIME" ) );
  1073. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/WID_CHG_FL" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/WID_CHG_FL" ) );
  1074. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/HCR_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/HCR_YN" ) );
  1075. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/EMGMTR_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/EMGMTR_YN" ) );
  1076. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SMS_DUEDATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SMS_DUEDATE" ) );
  1077. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PRC_LINE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PRC_LINE" ) );
  1078. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CCM_PRC_LINE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/CCM_PRC_LINE" ) );
  1079. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROG_CD" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PROG_CD" ) );
  1080. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SLAB_CUT_SEQ" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SLAB_CUT_SEQ" ) );
  1081. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSG_RATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/DSG_RATE" ) );
  1082. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/OVER_ROLL_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/OVER_ROLL_YN" ) );
  1083. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SAMPLE_CUT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SAMPLE_CUT" ) );
  1084. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_FL" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_FL" ) );
  1085. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_NO" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_NO" ) );
  1086. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/ORD_SEQ" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/ORD_SEQ" ) );
  1087. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DELV_REQ_DATE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/DELV_REQ_DATE" ) );
  1088. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SPM_PROC_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SPM_PROC_YN" ) );
  1089. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SCARPING_PROC_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/SCARPING_PROC_YN" ) );
  1090. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/SEND_STS" , "01" );
  1091. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COMB_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COMB_YN" ) );
  1092. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_THK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_THK" ) );
  1093. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WTH" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_WTH" ) );
  1094. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_LEN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_LEN" ) );
  1095. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_WGT" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_WGT" ) );
  1096. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/CHK" , "N" );
  1097. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/DSN_SLAB_NO" , "" );
  1098. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/P_DSN_SLAB_NO" , "" );
  1099. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/GRAVITY" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/GRAVITY" ) );
  1100. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_INDIA" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_INDIA" ) );
  1101. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/COIL_OUTDIA" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/COIL_OUTDIA" ));
  1102. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/AUTODSN_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/AUTODSN_YN" ));
  1103. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/KEEPWARM_YN" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/KEEPWARM_YN" ));
  1104. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/PROD_LINE" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/PROD_LINE" ));
  1105. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/C_COIL_THK" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/C_COIL_THK" ));
  1106. model.makeValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+ vTargetRow +"]/C_COIL_WTH" , model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_SPEC_SEQ = "+ vLastMatSpecSeq +"]/C_COIL_WTH" ));
  1107. model.refresh();
  1108. dg2.rebuild();
  1109. dg2.topRow = dg2.row;
  1110. ]]>
  1111. </script>
  1112. </button>
  1113. <button id="button8" style="left:905px; top:35px; width:75px; height:20px; font-weight:bold; text-align:right; background-image:../../images/btn_delete.gif; border-color:#ffffff; border-style:solid; ">
  1114. <caption>删除炉次</caption>
  1115. <script type="javascript" ev:event="onclick">
  1116. <![CDATA[
  1117. model.removenode("/root/gridData/sendInfo");
  1118. model.makeNode("/root/gridData/sendInfo");
  1119. var count = model.getXPathValue("count(/root/MatDnRst/ListResult_1_VO/ListResult_1_Row)");
  1120. var j = 0;
  1121. //var flag = "true";
  1122. for(var i = 1; i<=count; i++)
  1123. {
  1124. var CHK = model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/CHK");
  1125. if(CHK == "Y")
  1126. {
  1127. //model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/MAT_SPEC_SEQ");
  1128. model.duplicate("/root/gridData/sendInfo","/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]");
  1129. j++;
  1130. }
  1131. //if(model.getValue("/root/formData/matSpecSeq") == model.getValue("/root/MatDnRst/ListResult_1_VO/ListResult_1_Row["+i+"]/PMAT_SPEC_SEQ"))
  1132. //{
  1133. // window.alert("要删除该炉次,请先删除该炉次中的所有板坯","提示信息");
  1134. // flag = "false";
  1135. // break;
  1136. //}
  1137. }
  1138. //if(flag == "false")
  1139. //{
  1140. // return;
  1141. //}
  1142. if(j == 0)
  1143. {
  1144. window.alert("请选择需要删除的炉次信息","提示信息");
  1145. return;
  1146. }
  1147. if(commComfirmBox(" 确认删除该炉次? "," 提示信息 ")=='0') return;
  1148. commSendReq("/root/gridData/sendInfo");
  1149. commSubmit(submitMainID,"deleteMatDnRst","glueAction.do");
  1150. find();
  1151. calculateSummary();
  1152. model.refresh();
  1153. ]]>
  1154. </script>
  1155. </button>
  1156. <select1 id="cb_CastSpecSeq" ref="/root/formData/castDnRst" appearance="minimal" style="left:725px; top:35px; width:100px; height:20px; ">
  1157. <choices>
  1158. <itemset nodeset="/root/MatDnRst/ListResult_1_VO/ListResult_1_Row[MAT_TP = '01']">
  1159. <label ref="MAT_SPEC_SEQ"/>
  1160. <value ref="MAT_SPEC_SEQ"/>
  1161. </itemset>
  1162. </choices>
  1163. <script type="javascript" ev:event="xforms-select">
  1164. <![CDATA[
  1165. model.setValue("/root/formData/matSpecSeq", "");
  1166. dg2.rebuild();
  1167. dg3.rebuild();
  1168. //dg2.refresh();
  1169. ]]>
  1170. </script>
  1171. </select1>
  1172. <caption id="caption6" class="cell" style="left:83px; top:35px; width:97px; height:20px; text-align:center; vertical-align:middle; ">选定块数:重量</caption>
  1173. <caption id="caption7" ref="/root/slab_count" style="left:185px; top:35px; width:65px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
  1174. <caption id="caption8" class="cell" style="left:587px; top:250px; width:64px; height:20px; text-align:center; vertical-align:middle; ">板坯总重量</caption>
  1175. <caption id="caption9" ref="/root/wth_count" format="#,###" style="left:652px; top:250px; width:100px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
  1176. <select1 id="cb_CoilThkGrp" ref="/root/formData/CoilThkGroup" appearance="minimal" style="left:643px; top:5px; width:100px; height:20px; ">
  1177. <choices>
  1178. <itemset nodeset="/root/formData/CoilThk/DCommCodeResult_Row">
  1179. <label ref="MATDN_STD_RANGE"/>
  1180. <value ref="MATDN_STD_NM"/>
  1181. </itemset>
  1182. </choices>
  1183. </select1>
  1184. <line id="line1" visibility="visible" style="x1:980px; y1:0px; x2:0px; y2:0px; border-color:#ff0000; "/>
  1185. <caption id="caption1" ref="/root/slab_wgt_sum" style="left:255px; top:35px; width:75px; height:20px; text-align:right; border-color:#000000; border-style:solid; "/>
  1186. <caption id="caption10" class="cell" style="left:339px; top:35px; width:55px; height:20px; text-align:center; vertical-align:middle; ">板坯长度</caption>
  1187. <input id="input1" ref="/root/formData/SlabThk_1" style="left:395px; top:35px; width:78px; height:20px; "/>
  1188. <input id="input2" ref="/root/formData/SlabThk_2" style="left:482px; top:35px; width:78px; height:20px; "/>
  1189. <line id="line4" style="x1:472px; y1:45px; x2:483px; y2:45px; "/>
  1190. <button id="button1" visibility="hidden" style="left:400px; top:15px; width:100px; height:20px; ">
  1191. <caption>button1</caption>
  1192. <script type="javascript" ev:event="onclick">
  1193. <![CDATA[
  1194. find();
  1195. ]]>
  1196. </script>
  1197. </button>
  1198. <button id="button3" visibility="hidden" style="left:645px; top:25px; width:60px; height:20px; ">
  1199. <caption>button1</caption>
  1200. <script type="javascript" ev:event="onclick">
  1201. <![CDATA[
  1202. save();
  1203. ]]>
  1204. </script>
  1205. </button>
  1206. </xhtml:body>
  1207. </xhtml:html>