| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <searchInfo>
- <COIL_WGT>
- <item>
- <label/>
- <value/>
- </item>
- </COIL_WGT>
- <PROC_PATH>
- <item>
- <label/>
- <value/>
- </item>
- </PROC_PATH>
- </searchInfo>
- <ASC/>
- <ARRAY_NORM>ORD_NO</ARRAY_NORM>
- <PROC_PATH/>
- <COIL_WGT/>
- <SLAB_WTH_MIN/>
- <SLAB_WTH_MAX/>
- <slabAssRes/>
- </formData>
- <reqData>
- </reqData>
- <resData/>
- <gridData1>
- <EmpListResult_VO>
- </EmpListResult_VO>
- </gridData1>
- <corde>
- <EmpListResult_VO>
- </EmpListResult_VO>
- </corde>
- <corde2>
- <EmpListResult_VO>
- </EmpListResult_VO>
- </corde2>
- <fwdData>
- <UID010031>
- <ORD_NO/>
- <ORD_SEQ/>
- <URL/>
- </UID010031>
- </fwdData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
- datagrid1.colStatus(0)=false;
-
- button2.visible = true;
- button3.visible = true;
- button6.visible = false;
-
- model.makeValue("/root/reqData/SQLKEY","coil_wgt.select");
- commSubmit("UID010050-service","success","glueAction.do");
- errorMessage();
- model.copyNode("/root/formData/searchInfo/COIL_WGT","/root/resData/DropDownRes_VO");
- addall("/root/formData/searchInfo/COIL_WGT","FAC_STL_GRD","PRDNM_CD");
- combo2.refresh();
- combo2.select(combo2.length-1);
-
- model.makeValue("/root/reqData/SQLKEY","proc_path.select");
- commSubmit("UID010050-service","success","glueAction.do");
- errorMessage();
- model.copyNode("/root/formData/searchInfo/PROC_PATH","/root/resData/DropDownRes_VO");
- addall("/root/formData/searchInfo/PROC_PATH","PROC_PATH","PRDNM_CD");
- combo3.refresh();
- combo3.select(combo3.length-1);
- model.removenode("/root/reqData");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //1、获取用户登录信息,只能在页面初始化函数中调用
- function InitParams(node)
- {
- if (typeof node == "undefined" && typeof node != "object") return;
- model.removenode("/root/initData/rcvInfo");
- model.makeNode("/root/initData/rcvInfo");
- var nodeList = node.childNodes;
- for (var i = 0; i < nodeList.length; i++)
- model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
- }
-
- //2. 页面初始化函数(必须)
- function Init(node)
- {
- InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
- // 在程序中会重建该节点,最好不要重名
- // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
- //...
- }
-
- //3、页面标题
- function setTitle()
- {
- return "工序计划 >> 板坯设计 >> 板坯组合设计"; // 如:return "进程管理 >> 订单进程现况查询";
- }
-
- function pageInitTree()
- {
- for(var i=1; i<datagrid1.rows; i++)
- {
- if( datagrid1.valueMatrix(i,11) == "Y")
- {
- datagrid1.outlinelevel(i) = 1;
- }
- else
- {
- datagrid1.outlinelevel(i) = 2;
- }
- }
-
- datagrid1.outlinebar = 4;
- datagrid1.treecolor = "red";
- }
-
- //4. 页面按键动作
- // 查询按键
- function find()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.makeValue("/root/reqData/COIL_WGT",model.getValue("/root/formData/COIL_WGT"));
- model.makeValue("/root/reqData/PROC_PATH",model.getValue("/root/formData/PROC_PATH"));
- model.makeValue("/root/reqData/ARRAY_NORM",model.getValue("/root/formData/ARRAY_NORM"));
- model.makeValue("/root/reqData/ASC",model.getValue("/root/formData/ASC"));
- model.makeValue("/root/reqData/SLAB_WTH_MIN",model.getValue("/root/formData/SLAB_WTH_MIN"));
- model.makeValue("/root/reqData/SLAB_WTH_MAX",model.getValue("/root/formData/SLAB_WTH_MAX"));
- model.makeValue("/root/reqData/slabAssRes",model.getValue("/root/formData/slabAssRes"));
-
- commSubmit("UID010050-service","findSlabDnRes","glueAction.do");
- errorMessage();
- model.copyNode("/root/gridData1/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.removenode("/root/resData/EmpListResult_VO");
- model.refresh();
- pageInitTree();
- model.refresh();
- }
- // 保存按键
- function save()
- {
- model.removenode("/root/gridData1/sendInfo");
- model.makeNode("/root/gridData1/sendInfo");
- var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
- var j = 0;
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
- if(CHK == 'true')
- {
- model.duplicate("/root/gridData1/sendInfo","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]");
- }
- else
- {
- j++;
- }
- }
- if(j == count)
- {
- window.alert(" 请选择组合板坏信息进行确认! "," 提示信息 ");
- return;
- }
- commSendReq("/root/gridData1/sendInfo");
- commSubmit("UID010050-service","saveSumSlabDnRes","glueAction.do");
- errorMessage();
- window.alert(" 保存成功! "," 提示信息 ");
- find();
- model.refresh();
- }
- // 新增按键
- function create()
- {
- }
- // 删除按键
- function remove()
- {
- if(commComfirmBox(" 确认分解板坏组合结果? "," 提示信息 ")=='0') return;
- model.removenode("/root/gridData1/sendInfo");
- model.makeNode("/root/gridData1/sendInfo");
- var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
- var j = 1;
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
- if(CHK == 'true')
- {
- model.duplicate("/root/gridData1/sendInfo","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]");
- }
- }
- commSendReq("/root/gridData1/sendInfo");
- commSubmit("UID010050-service","deleteSumSlabDnRes","glueAction.do");
- errorMessage();
- find();
- model.refresh();
- }
-
- //增加特殊要求 10.15 wxy
- function fowardUID010031(gridID) {
- if(gridID.col == gridID.colRef("INGR_YN")) {
- model.makeValue("/root/fwdData/UID010031/ORD_NO", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_NO")));
- model.makeValue("/root/fwdData/UID010031/ORD_SEQ", gridID.valueMatrix(gridID.row, gridID.colRef("ORD_SEQ")));
- model.makeValue("/root/fwdData/UID010031/URL", "../../B/B01/UIB015020.xrw");
- var java = window.parent.javaScript;
- java.open(model.instances(0).selectSingleNode("/root/fwdData/UID010031"));
- }
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/dCommon.js"/>
- </xhtml:head>
- <xhtml:body overflow="hidden" guideline="1,979;2,620;">
- <caption id="caption7" style="left:0px; top:5px; width:100px; height:20px; text-align:right; vertical-align:middle; background-color:#ccffcc; border-color:#000000; border-style:solid; ">组合板坯结果</caption>
- <line id="line2" style="x1:0px; y1:30px; x2:979px; y2:30px; "/>
- <line id="line3" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
- <caption id="caption1" class="cell" style="left:0px; top:35px; width:90px; height:20px; ">钢 号</caption>
- <select1 id="combo2" ref="/root/formData/COIL_WGT" appearance="minimal" style="left:92px; top:35px; width:110px; height:20px; ">
- <choices>
- <itemset nodeset="/root/formData/searchInfo/COIL_WGT/DropDownRes_Row">
- <label ref="FAC_STL_GRD"/>
- <value ref="PRDNM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="cell" style="left:212px; top:35px; width:90px; height:20px; ">通过工序</caption>
- <select1 id="combo3" ref="/root/formData/PROC_PATH" appearance="minimal" style="left:304px; top:35px; width:110px; height:20px; ">
- <choices>
- <itemset nodeset="/root/formData/searchInfo/PROC_PATH/DropDownRes_Row">
- <label ref="PROC_PATH"/>
- <value ref="PRDNM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="cell" style="left:423px; top:35px; width:90px; height:20px; ">板坯宽度</caption>
- <input id="input1" ref="/root/formData/SLAB_WTH_MIN" style="left:515px; top:35px; width:70px; height:20px; "/>
- <input id="input2" ref="/root/formData/SLAB_WTH_MAX" style="left:600px; top:35px; width:70px; height:20px; "/>
- <caption id="caption11" style="left:585px; top:40px; width:20px; height:15px; ">~</caption>
- <caption id="caption4" class="cell" style="left:723px; top:35px; width:90px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">排列标准</caption>
- <select1 id="combo4" ref="/root/formData/ARRAY_NORM" appearance="minimal" style="left:815px; top:35px; width:110px; height:20px; border-color:#000000; ">
- <choices>
- <item>
- <label>订单号</label>
- <value>ORD_NO</value>
- </item>
- <item>
- <label>板坯号</label>
- <value>DSN_SLAB_NO</value>
- </item>
- <item>
- <label>厂内牌号</label>
- <value>FAC_STL_GRD</value>
- </item>
- <item>
- <label>钢卷宽度</label>
- <value>COIL_WTH</value>
- </item>
- <item>
- <label>钢卷厚度</label>
- <value>COIL_THK</value>
- </item>
- <item>
- <label>板坯宽度</label>
- <value>SLAB_WTH</value>
- </item>
- <item>
- <label>板坯长度</label>
- <value>SLAB_LEN</value>
- </item>
- <item>
- <label>板坯单重</label>
- <value>SLAB_WGT</value>
- </item>
- <item>
- <label>是否热送</label>
- <value>HCR_YN</value>
- </item>
- <item>
- <label>通过工序</label>
- <value>PROC_PATH</value>
- </item>
- </choices>
- </select1>
- <caption id="caption6" style="left:929px; top:35px; width:50px; height:20px; border-color:#000000; border-style:solid; "/>
- <bool id="bool1" select.background-image="#check" ref="/root/formData/ASC" style="left:928px; top:35px; width:25px; height:20px; background-image:#uncheck; "/>
- <caption id="caption5" style="left:948px; top:35px; width:35px; height:20px; text-align:center; ">ASC</caption>
- <datagrid id="datagrid1" nodeset="/root/gridData1/EmpListResult_VO/EmpListResult_Row" scroll="both" backcoloralternate="#f7f9f9" caption="选择^合同号^订单号^板坯号^厂内牌号^钢卷^钢卷^板坯^板坯^板坯^是否热送^组合区分^通过工序^特殊要求|选择^合同号^订单号^板坯号^厂内牌号^宽度^厚度^宽度^长度^单重^是否热送^组合区分^通过工序^特殊要求" colsep="^" colwidth="59, 90, 43, 104, 100, 52, 55, 59, 52, 57, 82, 79, 125, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" defaultrows="30" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:980px; height:555px; ">
- <col ref="CHK" type="checkbox">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var selectRow = datagrid1.row;
-
- //获取该行的订单号和选择框的值
- var COMB_YN = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(selectRow-1)+"]/COMB_YN");
- var P_DSN_SLAB_NO = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(selectRow-1)+"]/P_DSN_SLAB_NO");
- if(COMB_YN == "Y")
- {
- var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)" );//定义查询到的结果数
- var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(selectRow-1)+"]/CHK");
- var DSN_SLAB_NO = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(selectRow-1)+"]/DSN_SLAB_NO");
- for(var i = 1; i <= count; i++)
- {
- var P_DSN_SLAB_NO = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/P_DSN_SLAB_NO");
- if(DSN_SLAB_NO == P_DSN_SLAB_NO)
- {
- if(CHK == "true")
- {
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/CHK","true");
- }
- else
- {
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(i)+"]/CHK","false");
- }
- }
- }
- }
- else if(COMB_YN == "")
- {
- var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row[DSN_SLAB_NO="+P_DSN_SLAB_NO+"]/CHK");
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+(selectRow-1)+"]/CHK",CHK);
- }
- model.refresh();
- ]]>
- </script>
- </col>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="DSN_SLAB_NO"/>
- <col ref="FAC_STL_GRD"/>
- <col ref="COIL_WTH" style="text-align:right; "/>
- <col ref="COIL_THK" style="text-align:right; "/>
- <col ref="SLAB_WTH" style="text-align:right; "/>
- <col ref="SLAB_LEN" style="text-align:right; "/>
- <col ref="SLAB_WGT" style="text-align:right; "/>
- <col ref="HCR_YN"/>
- <col ref="COMB_YN"/>
- <col ref="PROC_PATH"/>
- <col ref="INGR_YN" style="text-decoration:underline; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fowardUID010031(datagrid1);
- ]]>
- </script>
- <col ref="P_DSN_SLAB_NO" visibility="hidden"/>
- <col ref="EMGMTR_YN" visibility="hidden"/>
- <col ref="SLAB_THK" visibility="hidden"/>
- <col ref="COIL_LEN" visibility="hidden"/>
- <col ref="COIL_WGT" visibility="hidden"/>
- <col ref="FAC_STL_GRP" visibility="hidden"/>
- <col ref="COIL_PACK_WGT_MIN" visibility="hidden"/>
- <col ref="COIL_PACK_WGT_MAX" visibility="hidden"/>
- <col ref="AUTODSN_YN" visibility="hidden"/>
- <col ref="GRAVITY" visibility="hidden"/>
- <col ref="SLAB_TRMTH_TP" visibility="hidden"/>
- </datagrid>
- <button id="button2" style="left:834px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
- <caption>板坯组合</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var ORDNO = datagrid1.valueMatrix( 1 , datagrid1.colRef("ORD_NO") );
- var ORDSEQ = datagrid1.valueMatrix( 1 , datagrid1.colRef("ORD_SEQ") );
- var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
- var j = 0;
- var SLAB_LEN_TOTAL = 0;//组合板坏的长度
- var SLAB_WGT_TOTAL = 0;//组合板坏的重量
- var p = 0;
- var arr = new Array();
- for(var i = 1; i<=count; i++)
- {
- var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/CHK");
- var COMB_YN = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/COMB_YN");
- var ORD_NO = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/ORD_NO");
- var V_ORD_NO = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/ORD_NO");
- var V_ORD_SEQ = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/ORD_SEQ");
- if(COMB_YN == 'N' && CHK == 'true' && ORDNO == V_ORD_NO && ORDSEQ = V_ORD_SEQ )
- {
- arr[p] = i;//记录被组合的单块板坏位置
- p++;
- //单块短板坏的长度
- var SLAB_LEN_TEMP = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/SLAB_LEN");
- //单块短板坏的重量
- var SLAB_WGT_TEMP = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]/SLAB_WGT");
- SLAB_LEN_TOTAL = SLAB_LEN_TOTAL + Number(SLAB_LEN_TEMP);
- SLAB_WGT_TOTAL = SLAB_WGT_TOTAL + Number(SLAB_WGT_TEMP);
-
- model.makeNode("/root/corde2/EmpListResult_VO/EmpListResult_Row["+p+"]")
- model.copyNode("/root/corde2/EmpListResult_VO/EmpListResult_Row["+p+"]","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+i+"]");
- }
- else
- {
- j++;
- }
- }
- if(j == count)
- {
- window.alert(" 请选择板坏设计信息进行组合! "," 提示信息 ");
- return;
- }
- if(j != count-2)
- {
- window.alert(" 组合板坏的数量必须2块,请确认! "," 提示信息 ");
- return;
- }
- var DSN_SLAB_NO = "P_DSN_SLAB_NO";
- var DSN_SLAB_NO_RES = querySlabMax(DSN_SLAB_NO, "gridData1", datagrid1);//获取结果板坏号
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/CHK","true");
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COMB_YN","Y");
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/DSN_SLAB_NO",DSN_SLAB_NO_RES);
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/SLAB_LEN",SLAB_LEN_TOTAL);
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/SLAB_WGT",SLAB_WGT_TOTAL);
-
- //给选定组合的板坏赋值最终的组合板坏号
- model.setValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/P_DSN_SLAB_NO",DSN_SLAB_NO_RES);
- model.setValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COMB_YN","");
- model.setValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[2]/P_DSN_SLAB_NO",DSN_SLAB_NO_RES);
- model.setValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[2]/COMB_YN","");
-
- /*---------板坯组合条件限制--------------*/
- if(model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/SLAB_WTH") != model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[2]/SLAB_WTH"))
- {
- window.alert("请选择相同宽度的板坯进行组合!","提示信息");
- return;
- }
- if(model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/FAC_STL_GRD") != model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[2]/FAC_STL_GRD"))
- {
- window.alert("请选择相同厂内牌号的板坯进行组合!","提示信息");
- return;
- }
- if(model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/HCR_YN") != model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[2]/HCR_YN"))
- {
- window.alert("请选择相同去向的板坯进行组合!(是否热送)","提示信息");
- return;
- }
- /*---------板坯组合条件限制--------------*/
-
- /*----------------------给组合后的板坏的其余属性赋值----------------------------------------------------------------------------------------------------------------------*/
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/ORD_NO",model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/ORD_NO"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/SLAB_WTH",model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/SLAB_WTH"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_WTH", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_WTH"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_THK", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_THK"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/HCR_YN", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/HCR_YN"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/PROC_PATH", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/PROC_PATH"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/P_DSN_SLAB_NO", "");
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/EMGMTR_YN", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/EMGMTR_YN"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/SLAB_THK", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/SLAB_THK"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_LEN", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_LEN"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_WGT", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_WGT"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/FAC_STL_GRD", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/FAC_STL_GRD"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/FAC_STL_GRP", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/FAC_STL_GRP"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_PACK_WGT_MIN", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_PACK_WGT_MIN"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/COIL_PACK_WGT_MAX", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/COIL_PACK_WGT_MAX"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/AUTODSN_YN", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/AUTODSN_YN"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/GRAVITY", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/GRAVITY"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/SLAB_TRMTH_TP", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/SLAB_TRMTH_TP"));
- model.makeValue("/root/corde/EmpListResult_VO/EmpListResult_Row/ORD_SEQ", model.getValue("/root/corde2/EmpListResult_VO/EmpListResult_Row[1]/ORD_SEQ"));
- /*-----------------------给组合后的板坏的其余属性赋值-------------------------------------------------------------------------------------------------------------------*/
- model.duplicate("/root/gridData1/EmpListResult_VO","/root/corde/EmpListResult_VO/EmpListResult_Row");
- model.duplicate("/root/gridData1/EmpListResult_VO","/root/corde2/EmpListResult_VO/EmpListResult_Row[1]");
- model.duplicate("/root/gridData1/EmpListResult_VO","/root/corde2/EmpListResult_VO/EmpListResult_Row[2]");
- model.removenode("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+arr[1]+"]");
- model.removenode("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+arr[0]+"]");
-
- model.removenode("/root/corde/EmpListResult_VO");
- model.removenode("/root/corde2/EmpListResult_VO");
- model.refresh();
- pageInitTree();
- model.refresh();
- //------------------------------------------------------------------------------------------------------------------------
-
-
- ]]>
- </script>
- </button>
- <button id="button3" style="left:909px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
- <caption>组合确认</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:0px; y1:0px; x2:979px; y2:0px; "/>
- <button id="button6" style="left:909px; top:5px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
- <caption>板坯分解</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- remove();
- ]]>
- </script>
- </button>
- <bool id="bool2" select.background-image="#check" ref="/root/formData/slabAssRes" style="left:0px; top:5px; width:25px; height:20px; background-image:#uncheck; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var slabAssRes = model.getValue("/root/formData/slabAssRes");
- find();
- if(slabAssRes == "true")
- {
- button2.visible = false;
- button3.visible = false;
- button6.visible = true;
- }
- else
- {
- button2.visible = true;
- button3.visible = true;
- button6.visible = false;
- }
-
- ]]>
- </script>
- </bool>
- </xhtml:body>
- </xhtml:html>
|