| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695 |
- <?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="">
- <resData/>
- <reqData/>
- <gridData1>
- <EmpListResult_VO/>
- </gridData1>
- <gridData2>
- <EmpListResult_VO>
- </EmpListResult_VO>
- </gridData2>
- <gridData3>
- <EmpListResult_VO>
- </EmpListResult_VO>
- </gridData3>
- <castNumber>
- <castNumber_left>
- <castNumber_left1/>
- <castNumber_left2/>
- <castNumber_left3/>
- <castNumber_left4/>
- <castNumber_left5/>
- </castNumber_left>
- <castNumber_right>
- <castNumber_right1/>
- <castNumber_right2/>
- <castNumber_right3/>
- <castNumber_right4/>
- <castNumber_right5/>
- </castNumber_right>
- <CASTNUMBER_LEFT/>
- <CASTNUMBER_RIGHT/>
- <charges_count_left/>
- <charges_count_right/>
- <charges_sum_right/>
- <charges_sum_left/>
- </castNumber>
- <BEFORE_YN>B</BEFORE_YN>
- <sendInfo/>
- <chargeNumber/>
- <slab_count/>
- <slabWgt_sum/>
- <castData>
- <CastNumbersRes_VO/>
- </castData>
- </root>
- </instance>
- <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 "进程管理 >> 订单进程现况查询";
- }
-
- //4. 页面按键动作
- // 查询按键
- function find()
- {
- model.removenode("/root/reqData");
- commSubmit("UID020040-service","findCastNo","glueAction.do");
- errorMessage();
- model.copyNode("/root/castData/CastNumbersRes_VO","/root/resData/CastNumbersRes_VO");
- var castCount = model.getXPathValue("count(/root/resData/CastNumbersRes_VO/CastNumbersRes_Row)");
- for(var i = 1; i <= castCount; i++)
- {
- model.setValue("/root/castNumber/castNumber_left/castNumber_left"+i,model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ"));
- model.setValue("/root/castNumber/castNumber_right/castNumber_right"+i,model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ"));
- if(i >= 5)
- {
- break;
- }
- }
- model.refresh();
- }
- // 保存按键
- function save()
- {
- model.removenode("/root/reqData");
- model.removenode("/root/sendInfo");
- model.makeNode("/root/sendInfo");
- model.duplicate("/root/sendInfo","/root/gridData1/EmpListResult_VO");
- model.duplicate("/root/sendInfo","/root/gridData2/EmpListResult_VO");
-
- commSendReq("/root/sendInfo");
- commSubmit("UID020040-service","saveCastInfoAfter","glueAction.do");
- errorMessage();
- model.refresh();
- }
- // 新增按键
- function create()
- {
- }
- // 删除按键
- function remove()
- {
-
- }
-
- function setColor(temp,color)
- {
- temp.attribute("background-color") = color;
- }
- function setCastNoValue(temp,flag)
- {
- /*if(flag == "left")
- {
- var CASTNUMBER_LEFT = model.getValue(ref);
- }
- else
- {
- var CASTNUMBER_RIGHT = model.getValue(ref);
- }
- */
-
-
- var ref = temp.attribute("ref");
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/CASTNUMBER",model.getValue(ref));
- commSubmit("UID020040-service","findCastInfo","glueAction.do");
- errorMessage();
- if(flag == "left")
- {
- model.setValue("/root/castNumber/CASTNUMBER_LEFT", model.getValue(ref));
- model.copyNode("/root/gridData1/EmpListResult_VO", "/root/resData/EmpListResult_VO");
- model.setValue("/root/castNumber/charges_count_left","0/" + model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)"));
- model.setValue("/root/castNumber/charges_sum_left",model.getXPathValue("sum(/root/gridData1/EmpListResult_VO/EmpListResult_Row/MAT_WGT)"));
- }
- else
- {
- model.setValue("/root/castNumber/CASTNUMBER_RIGHT", model.getValue(ref));
- model.copyNode("/root/gridData2/EmpListResult_VO", "/root/resData/EmpListResult_VO");
- model.setValue("/root/castNumber/charges_count_right",model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)"));
- model.setValue("/root/castNumber/charges_sum_right",model.getXPathValue("sum(/root/gridData2/EmpListResult_VO/EmpListResult_Row/MAT_WGT)"));
- }
- var castNo_left = model.getValue("/root/castNumber/CASTNUMBER_LEFT");
- var castNo_right = model.getValue("/root/castNumber/CASTNUMBER_RIGHT");
- if(castNo_left == castNo_right)
- {
- img1.visible = true;
- img2.visible = true;
- button4.visible = false;
- caption6.visible = false;
- radio2.visible = false;
- }
- else
- {
- img1.visible = false;
- img2.visible = false;
- button4.visible = true;
- caption6.visible = true;
- radio2.visible = true;
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/dCommon.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- img1.visible = false;
- img2.visible = false;
- datagrid1.colStatus(0)=false;
- datagrid2.colStatus(0)=false;
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,980;2,620;">
- <caption id="caption26" style="left:575px; top:5px; width:55px; height:20px; background-color:#ffff99; border-color:#000000; border-style:solid; "/>
- <caption id="caption6" style="left:305px; top:35px; width:85px; height:20px; background-color:#ccffcc; border-color:#000000; border-style:solid; "/>
- <select1 id="radio2" ref="/root/BEFORE_YN" appearance="full" cols="2" overflow="visible" style="left:315px; top:37px; width:70px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>前</label>
- <value>B</value>
- </item>
- <item>
- <label>后</label>
- <value>L</value>
- </item>
- </choices>
- </select1>
- <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <datagrid id="datagrid1" nodeset="/root/gridData1/EmpListResult_VO/EmpListResult_Row" backcoloralternate="#f7f9f9" caption="选择^序号^厂内牌号^厂内牌号组^钢水量^板坏^板坏^热装区分^预定出钢日期|选择^序号^厂内牌号^厂内牌号组^钢水量^宽度^块数^热装区分^预定出钢日期" colsep="^" colwidth="60, 33, 57, 100, 51, 44, 44, 50, 85" defaultrows="15" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:485px; height:235px; ">
- <col ref="CHK" type="checkbox">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var selectRow = datagrid1.row;
- var count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
- var chk_count = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row[CHK = 'true'])");
- model.setValue("/root/castNumber/charges_count_left",chk_count+"/"+count);
- caption4.refresh();
- ]]>
- </script>
- </col>
- <col ref="WITHIN_SUB_SEQ"/>
- <col ref="FAC_STL_GRD"/>
- <col ref="FAC_STL_GRP"/>
- <col ref="MAT_WGT" format="#,###" style="text-align:right; "/>
- <col ref="MAT_WTH" style="text-align:right; "/>
- <col ref="CMAT_CNT" style="text-align:right; "/>
- <col ref="HCR_YN"/>
- <col ref="SMS_DUEDATE"/>
- </datagrid>
- <datagrid id="datagrid3" nodeset="/root/gridData3/EmpListResult_VO/EmpListResult_Row" backcoloralternate="#f7f9f9" caption="板坏管理号^板坏^板坏^板坏^钢卷^钢卷^订单号^厂内牌号^厂内牌号组^平整分卷^组合设计^余材区分^热装区分^交货期|板坏管理号^宽度^长度^重量^厚度^宽度^订单号^厂内牌号^厂内牌号组^平整分卷^组合设计^余材区分^热装区分^交货期" colsep="^" colwidth="79, 49, 53, 50, 58, 65, 91, 82, 71, 77, 72, 39, 39, 87" defaultrows="15" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:335px; width:980px; height:285px; ">
- <col ref="MAT_SPEC_SEQ"/>
- <col ref="MAT_WTH"/>
- <col ref="MAT_LEN"/>
- <col ref="MAT_WGT" format="#,###"/>
- <col ref="ORD_THK"/>
- <col ref="ORD_WTH"/>
- <col ref="ORD_NO"/>
- <col ref="FAC_STL_GRD"/>
- <col ref="FAC_STL_GRP"/>
- <col ref="SPM_PROC_YN"/>
- <col ref="COMB_YN"/>
- <col ref="ORD_FL"/>
- <col ref="HCR_YN"/>
- <col ref="DELV_REQ_DATE"/>
- </datagrid>
- <line id="line1" style="x1:0px; y1:305px; x2:980px; y2:305px; "/>
- <datagrid id="datagrid2" nodeset="/root/gridData2/EmpListResult_VO/EmpListResult_Row" backcoloralternate="#f7f9f9" caption="选择^序号^厂内牌号^厂内牌号组^钢水量^板坏^板坏^热装区分^预定出钢日期|选择^序号^厂内牌号^厂内牌号组^钢水量^宽度^块数^热装区分^预定出钢日期" colsep="^" colwidth="60, 33, 57, 100, 51, 44, 44, 50, 86" defaultrows="15" mergecellsfixedrows="bycolrec" rowsep="|" style="left:495px; top:65px; width:485px; height:235px; ">
- <col ref="CHK" type="radio"/>
- <col ref="WITHIN_SUB_SEQ"/>
- <col ref="FAC_STL_GRD"/>
- <col ref="FAC_STL_GRP"/>
- <col ref="MAT_WGT" style="text-align:right; "/>
- <col ref="MAT_WTH" style="text-align:right; "/>
- <col ref="CMAT_CNT" style="text-align:right; "/>
- <col ref="HCR_YN"/>
- <col ref="SMS_DUEDATE"/>
- </datagrid>
- <line id="line4" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
- <caption id="caption1" ref="/root/castNumber/CASTNUMBER_LEFT" style="left:0px; top:35px; width:75px; height:20px; text-align:center; border-color:#000000; border-style:solid; "/>
- <caption id="caption3" style="left:90px; top:35px; width:40px; height:20px; text-align:center; background-color:#ccffcc; border-color:#000000; border-style:solid; ">炉数</caption>
- <caption id="caption4" ref="/root/castNumber/charges_count_left" style="left:135px; top:35px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
- <caption id="caption5" ref="/root/castNumber/charges_sum_left" format="#,###" style="left:215px; top:35px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
- <button id="button4" style="left:415px; top:35px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
- <caption>插 入..</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var castNo_left = model.getValue("/root/castNumber/CASTNUMBER_LEFT");
- var castNo_right = model.getValue("/root/castNumber/CASTNUMBER_RIGHT");
- if(castNo_left == castNo_right)//同一浇次之间的炉次调整
- {
- //alert("s");
-
- }
- else//不同浇次之间的炉次调整
- {
- var BEFORE_YN = model.getValue("/root/BEFORE_YN");
- var row_gridData2_later = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row[CHK='true']/WITHIN_SUB_SEQ");
- var row_gridData2 = 0;
- var count_gridData1 = model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)");
- var k = 1;
- var p = 1;
- var t = 0;//是否插入最后一行的判断
- var castNo_right = model.getValue("/root/castNumber/CASTNUMBER_RIGHT");
- for(var i = 1; i<=count_gridData1; i++)
- {
- row_gridData2 = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row[CHK='true']/WITHIN_SUB_SEQ");
- if(row_gridData2==0 || row_gridData2=="")
- {
- window.alert(" 请选择需要插入的具体位置! "," 提示信息 ");
- return;
- }
- var CHK = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+k+"]/CHK");
- if(CHK == "true")
- {
- //插入选定条数之前的
- if(BEFORE_YN == "B")
- {
- model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+k+"]","*["+row_gridData2+"]");
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+row_gridData2+"]/CHK", "false");
- }
- else
- {
- //如果插入的是最后一行的后面,则直接在末尾添加
- if(row_gridData2_later == (model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)")-t))
- {
- model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+k+"]");
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)")+"]/CHK", "false");
- t++;
- }
- else
- {
- model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData1/EmpListResult_VO/EmpListResult_Row["+k+"]","*["+(Number(row_gridData2)+Number(p))+"]");
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+(Number(row_gridData2)+Number(p))+"]/CHK", "false");
- p++;
- }
- }
-
- //删除一行
- model.removenode("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+k+"]");
-
- //表一中的序列号变化
- for(var j = 1; j<=model.getXPathValue("count(/root/gridData1/EmpListResult_VO/EmpListResult_Row)"); j++)
- {
- var seq = model.getValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+j+"]/WITHIN_SUB_SEQ");
- if(seq != j)
- {
- model.setValue("/root/gridData1/EmpListResult_VO/EmpListResult_Row["+j+"]/WITHIN_SUB_SEQ",j);
- }
- }
- //表二中的序列号和浇次号的变化
- for(var j = 1; j<=model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)"); j++)
- {
- var seq = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+j+"]/WITHIN_SUB_SEQ");
- var PMAT_SPEC_SEQ = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+j+"]/PMAT_SPEC_SEQ");
- if(seq != j)
- {
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+j+"]/WITHIN_SUB_SEQ",j);
- }
- if(PMAT_SPEC_SEQ != castNo_right)
- {
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+j+"]/PMAT_SPEC_SEQ",castNo_right);
- }
- }
- }
- else
- {
- k++;
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" style="left:910px; top:310px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
- <caption>板坏查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/reqData");
- var chargeNo = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row[CHK='true']/MAT_SPEC_SEQ");
- model.makeValue("/root/reqData/chargeNo", chargeNo);
- model.setValue("/root/chargeNumber", chargeNo);
- //alert("chargeNo="+ chargeNo);
- commSubmit("UID020040-service","findChargeInfo","glueAction.do");
- errorMessage();
- model.setValue("/root/slab_count",model.getXPathValue("count(/root/resData/EmpListResult_VO/EmpListResult_Row)"));
- model.setValue("/root/slabWgt_sum",model.getXPathValue("sum(/root/resData/EmpListResult_VO/EmpListResult_Row/MAT_WGT)"));
- model.copyNode("/root/gridData3/EmpListResult_VO","/root/resData/EmpListResult_VO");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption7" ref="/root/castNumber/CASTNUMBER_RIGHT" style="left:495px; top:35px; width:75px; height:20px; text-align:center; border-color:#000000; border-style:solid; "/>
- <caption id="caption8" style="left:585px; top:35px; width:40px; height:20px; text-align:center; background-color:#ccffcc; border-color:#000000; border-style:solid; ">炉数</caption>
- <caption id="caption9" ref="/root/castNumber/charges_count_right" style="left:630px; top:35px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
- <caption id="caption10" ref="/root/castNumber/charges_sum_right" format="#,###" style="left:710px; top:35px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
- <caption id="caption12" ref="/root/slabWgt_sum" style="left:315px; top:310px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
- <caption id="caption15" ref="/root/chargeNumber" style="left:100px; top:310px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
- <caption id="caption16" style="left:190px; top:310px; width:40px; height:20px; text-align:center; background-color:#ccffcc; border-color:#000000; border-style:solid; ">块数</caption>
- <caption id="caption17" ref="/root/slab_count" style="left:235px; top:310px; width:75px; height:20px; border-color:#000000; border-style:solid; "/>
- <caption id="caption11" style="left:80px; top:5px; width:55px; height:20px; background-color:#ffff99; border-color:#000000; border-style:solid; "/>
- <button id="button6" style="left:85px; top:5px; width:20px; height:20px; background-image:../../images/scroll_left_wl.gif; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
-
-
- var castCount = model.getXPathValue("count(/root/castData/CastNumbersRes_VO/CastNumbersRes_Row)");
- if(castCount > 5)
- {
- var castNumber_left1 = model.getValue("/root/castNumber/castNumber_left/castNumber_left1");
-
- for(var i = 1; i <= castCount; i++)
- {
-
- if(castNumber_left1 == model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ") && i != 1)
- {
- for(var j = 1; j <= 5; j++)
- {
- model.setValue("/root/castNumber/castNumber_left/castNumber_left"+j, model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+(i+j-2)+"]/MAT_SPEC_SEQ"));
- }
- break;
- }
-
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button7" style="left:110px; top:5px; width:20px; height:20px; background-image:../../images/scroll_right_wl.gif; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var castCount = model.getXPathValue("count(/root/castData/CastNumbersRes_VO/CastNumbersRes_Row)");
- if(castCount > 5)
- {
- var castNumber_left1 = model.getValue("/root/castNumber/castNumber_left/castNumber_left1");
-
- for(var i = 1; i <= castCount; i++)
- {
-
- if(castNumber_left1 == model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ") && (castCount-i) > 4)
- {
- for(var j = 1; j <= 5; j++)
- {
- model.setValue("/root/castNumber/castNumber_left/castNumber_left"+j, model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+(i+j)+"]/MAT_SPEC_SEQ"));
- }
- break;
- }
-
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption14" ref="/root/castNumber/castNumber_left/castNumber_left1" style="left:135px; top:5px; width:70px; height:20px; text-align:center; background-color:#ffffff; border-color:#000000; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- setColor(caption14, "#3366ff");
- setColor(caption18, "#ffffff");
- setColor(caption19, "#ffffff");
- setColor(caption20, "#ffffff");
- setColor(caption21, "#ffffff");
-
- setCastNoValue(caption14,"left");
- ]]>
- </script>
- </caption>
- <caption id="caption18" ref="/root/castNumber/castNumber_left/castNumber_left2" style="left:205px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- setColor(caption18, "#3366ff");
- setColor(caption14, "#ffffff");
- setColor(caption19, "#ffffff");
- setColor(caption20, "#ffffff");
- setColor(caption21, "#ffffff");
-
- setCastNoValue(caption18,"left");
- ]]>
- </script>
- </caption>
- <caption id="caption19" ref="/root/castNumber/castNumber_left/castNumber_left3" style="left:275px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- setColor(caption19, "#3366ff");
- setColor(caption14, "#ffffff");
- setColor(caption18, "#ffffff");
- setColor(caption20, "#ffffff");
- setColor(caption21, "#ffffff");
-
- setCastNoValue(caption19,"left");
- ]]>
- </script>
- </caption>
- <caption id="caption20" ref="/root/castNumber/castNumber_left/castNumber_left4" style="left:345px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- setColor(caption20, "#3366ff");
- setColor(caption14, "#ffffff");
- setColor(caption18, "#ffffff");
- setColor(caption19, "#ffffff");
- setColor(caption21, "#ffffff");
-
- setCastNoValue(caption20,"left");
- ]]>
- </script>
- </caption>
- <caption id="caption21" ref="/root/castNumber/castNumber_left/castNumber_left5" style="left:415px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- setColor(caption21, "#3366ff");
- setColor(caption14, "#ffffff");
- setColor(caption18, "#ffffff");
- setColor(caption19, "#ffffff");
- setColor(caption20, "#ffffff");
-
- setCastNoValue(caption21,"left");
- ]]>
- </script>
- </caption>
- <caption id="caption22" style="left:0px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; background-color:#66ff66; border-color:#000000; border-style:solid; ">对 象</caption>
- <caption id="caption23" ref="/root/castNumber/castNumber_right/castNumber_right4" style="left:840px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- setColor(caption23, "#3366ff");
- setColor(caption24, "#ffffff");
- setColor(caption27, "#ffffff");
- setColor(caption28, "#ffffff");
- setColor(caption29, "#ffffff");
-
- setCastNoValue(caption23);
- ]]>
- </script>
- </caption>
- <caption id="caption24" ref="/root/castNumber/castNumber_right/castNumber_right5" style="left:910px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- setColor(caption24, "#3366ff");
- setColor(caption23, "#ffffff");
- setColor(caption27, "#ffffff");
- setColor(caption28, "#ffffff");
- setColor(caption29, "#ffffff");
-
- setCastNoValue(caption24);
- ]]>
- </script>
- </caption>
- <button id="button8" style="left:580px; top:5px; width:20px; height:20px; background-image:../../images/scroll_left_wl.gif; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var castCount = model.getXPathValue("count(/root/castData/CastNumbersRes_VO/CastNumbersRes_Row)");
- if(castCount > 5)
- {
- var castNumber_right1 = model.getValue("/root/castNumber/castNumber_right/castNumber_right1");
-
- for(var i = 1; i <= castCount; i++)
- {
- if(castNumber_right1 == model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ") && i != 1)
- {
- for(var j = 1; j <= 5; j++)
- {
- model.setValue("/root/castNumber/castNumber_right/castNumber_right"+j, model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+(i+j-2)+"]/MAT_SPEC_SEQ"));
- }
- break;
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button9" style="left:605px; top:5px; width:20px; height:20px; background-image:../../images/scroll_right_wl.gif; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var castCount = model.getXPathValue("count(/root/castData/CastNumbersRes_VO/CastNumbersRes_Row)");
- if(castCount > 5)
- {
- var castNumber_right1 = model.getValue("/root/castNumber/castNumber_right/castNumber_right1");
-
- for(var i = 1; i <= castCount; i++)
- {
-
- if(castNumber_right1 == model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+i+"]/MAT_SPEC_SEQ") && (castCount-i) > 4)
- {
- for(var j = 1; j <= 5; j++)
- {
- model.setValue("/root/castNumber/castNumber_right/castNumber_right"+j, model.getValue("/root/castData/CastNumbersRes_VO/CastNumbersRes_Row["+(i+j)+"]/MAT_SPEC_SEQ"));
- }
- break;
- }
-
- }
-
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption27" ref="/root/castNumber/castNumber_right/castNumber_right1" style="left:630px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- setColor(caption27, "#3366ff");
- setColor(caption23, "#ffffff");
- setColor(caption24, "#ffffff");
- setColor(caption28, "#ffffff");
- setColor(caption29, "#ffffff");
-
- setCastNoValue(caption27);
- ]]>
- </script>
- </caption>
- <caption id="caption28" ref="/root/castNumber/castNumber_right/castNumber_right2" style="left:700px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- setColor(caption28, "#3366ff");
- setColor(caption23, "#ffffff");
- setColor(caption24, "#ffffff");
- setColor(caption29, "#ffffff");
- setColor(caption27, "#ffffff");
- setCastNoValue(caption28);
- ]]>
- </script>
- </caption>
- <caption id="caption29" ref="/root/castNumber/castNumber_right/castNumber_right3" style="left:770px; top:5px; width:70px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- setColor(caption29, "#3366ff");
- setColor(caption28, "#ffffff");
- setColor(caption23, "#ffffff");
- setColor(caption24, "#ffffff");
- setColor(caption27, "#ffffff");
-
- setCastNoValue(caption29);
- ]]>
- </script>
- </caption>
- <caption id="caption2" style="left:495px; top:5px; width:70px; height:20px; text-align:center; vertical-align:middle; background-color:#66ff66; border-color:#000000; border-style:solid; ">位 置</caption>
- <caption id="caption25" style="left:0px; top:310px; width:70px; height:20px; text-align:center; vertical-align:middle; background-color:#66ff66; border-color:#000000; border-style:solid; ">炉 次</caption>
- <img id="img1" src="../../images/down.gif" style="left:930px; top:35px; width:25px; height:20px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var arr = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row[CHK='true']/WITHIN_SUB_SEQ");
- if(arr>1)
- {
- model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]","*["+(arr-1)+"]");
- model.removenode("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+(Number(arr)+1)+"]");
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]/WITHIN_SUB_SEQ",arr);
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+(Number(arr)-1)+"]/WITHIN_SUB_SEQ",(Number(arr)-1));
- datagrid2.refresh();
- }
- ]]>
- </script>
- </img>
- <img id="img2" src="../../images/up.gif" style="left:955px; top:35px; width:25px; height:20px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var arr = model.getValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row[CHK='true']/WITHIN_SUB_SEQ");
- var count = model.getXPathValue("count(/root/gridData2/EmpListResult_VO/EmpListResult_Row)");
- if(arr<count)
- {
- if(arr <= (count-2))
- {
- model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]","*["+(Number(arr)+2)+"]");
- model.removenode("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]");
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]/WITHIN_SUB_SEQ",arr);
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+(Number(arr)+1)+"]/WITHIN_SUB_SEQ",(Number(arr)+1));
- }
- else
- {
- model.duplicate("/root/gridData2/EmpListResult_VO","/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]");
- model.removenode("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]");
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+arr+"]/WITHIN_SUB_SEQ",arr);
- model.setValue("/root/gridData2/EmpListResult_VO/EmpListResult_Row["+(Number(arr)+1)+"]/WITHIN_SUB_SEQ",(Number(arr)+1));
- }
- datagrid2.refresh();
- }
- ]]>
- </script>
- </img>
- <button id="button3" style="left:835px; top:310px; width:70px; height:20px; text-align:right; background-image:../../images/create.gif; ">
- <caption>指示确认</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var vleft = window.screenLeft + window.width/2 - 155;
- var vtop = window.screenTop + window.height/2 - 250;
- window.load("./UID020040_popup.xrw",
- "modal",
- "",
- "left:"+vleft+"; top:"+vtop+"; width:490; height:480; sysmenu:visible; min:visible; max:true; resize:true; caption:hidden;",
- "/root/initData", "/root/initData");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|