| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
- <?xml-stylesheet href="../css/bCommon.css" type="text/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>
- <![CDATA[品质判定>>成分判定>>板坯流正常转申请界面]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <example>Sample</example>
- <getData>
- <BTIME/>
- <ETIME/>
- </getData>
- <BPNO/>
- <SQZT>0</SQZT>
- <datagrid1/>
- <ASK_CFM_JR_DESC/>
- <ASK_CFM_ZZ_DESC/>
- <ASK_CFM_QY_DESC/>
- <ASK_CFM_RCL_DESC/>
- <ASK_CFM_LGPD_DESC/>
- <CFPDYQ/>
- <LHResult_Row>
- <SLH/>
- <XLH/>
- </LHResult_Row>
- <datagrid2/>
- <datagrid3/>
- <datagrid4/>
- <resData/>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/b01.js"/>
- <script type="javascript">
- <![CDATA[
- function find()
- {
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/BTIME" , input1.value);
- model.makeValue("/root/reqData/ETIME" , input2.value);
- model.makeValue("/root/reqData/BPNO" , input3.value);
- model.makeValue("/root/reqData/SQZT" , combo1.value);
- commSubmit("UIB030351-service" , "find" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/lzsqResult_VO");
-
- model.refresh();
- output1.value = getSumWGT();
- }
-
- function confirm()
- {
- //if(beGridChanged(datagrid1)=="0")
- //return;
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //for(var i=0;i<datagrid1.rows;i++){
- //
- //datagrid1.rowStatus(i) = 2;
- //}
- //b01MultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
- //model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));
- //model.makeValue("/root/reqData/JR_DESC" , input4.value);
- //model.makeValue("/root/reqData/ZZ_DESC" , input5.value);
- //model.makeValue("/root/reqData/QY_DESC" , input6.value);
- //model.makeValue("/root/reqData/RCL_DESC" , input7.value);
- //model.makeValue("/root/reqData/LGPD_DESC" , input8.value);
- var iRow=datagrid1.rows; //grid的行数
- //alert(iRow);
- var flag=false; //用于判断行是否被选中
- for(var i=1;i<iRow;i++)
- {
- if(datagrid1.valueMatrix(i,1)=="true")
- {
- flag= true;
- //model.makeValue("/root/reqData/CHK" , datagrid1.valueMatrix(i,1));
- model.makeValue("/root/reqData["+i+"]/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));
- model.makeValue("/root/reqData["+i+"]/JR_DESC" , input4.value);
- model.makeValue("/root/reqData["+i+"]/ZZ_DESC" , input5.value);
- model.makeValue("/root/reqData["+i+"]/QY_DESC" , input6.value);
- model.makeValue("/root/reqData["+i+"]/RCL_DESC" , input7.value);
- model.makeValue("/root/reqData["+i+"]/LGPD_DESC" ,input8.value);
- model.makeValue("/root/reqData["+i+"]/CFPDYQ" , input9.value);
- model.makeValue("/root/reqData["+i+"]/SLAB_NO",datagrid1.valueMatrix(i,2));
- }
-
- }
- if(flag==false)
- {
- window.alert("请选择你要确定的项","提示");
- return;
- }
-
- commSubmit("UIB030351-service", "confirm", "glueAction.do");
- input4.value="";
- input5.value="";
- input6.value="";
- input7.value="";
- input8.value="";
- input9.value="";
- //datagrid1.clearStatus();
- }
-
- function cancleConfirm()
- {
- //if(beGridChanged(datagrid1)=="0")
- // return;
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- var flag=false;
- for(var i=0;i<datagrid1.rows;i++)
- {
- if(datagrid1.valueMatrix(i , 1) == "true" && datagrid1.valueMatrix(i , 13) == "正常流转")
- {
- window.alert(datagrid1.valueMatrix(i , 2)+"已正常流转,不能取消确认。", "提示");
- return;
- }
- if(datagrid1.valueMatrix(i,1)=="true")
- {
- flag= true;
- model.makeValue("/root/reqData["+i+"]/SLAB_NO",datagrid1.valueMatrix(i,2));
- }
- }
- if(flag==false)
- {
- window.alert("请选择你要取消的项","提示");
- return;
- }
- if(commComfirmBox("确定要取消吗?","提示")==0)
- return;
-
- //b01MultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
- //model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));
- commSubmit("UIB030351-service", "cancleConfirm", "glueAction.do");
-
- //datagrid1.clearStatus();
- }
-
- function getSumWGT()
- {
- var totalWGT = 0;
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")) == "")
- {
- }else{
- totalWGT = totalWGT + parseFloat(datagrid1.valueMatrix(i ,datagrid1.colRef("SLAB_WGT")));
- }
- }
- return totalWGT;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="920" pageheight="680">
- <button id="button1" visibility="visible" style="left:640px; top:15px; width:50px; height:20px; background-color:#00ccff; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:170px; y1:25px; x2:195px; y2:25px; "/>
- <input id="input1" ref="/root/getData/BTIME" inputtype="date" format="yyyy-mm-dd" style="left:70px; top:15px; width:100px; height:20px; "/>
- <input id="input2" ref="/root/getData/ETIME" inputtype="date" format="yyyy-mm-dd" style="left:195px; top:15px; width:100px; height:20px; "/>
- <caption id="caption1" style="left:15px; top:15px; width:60px; height:20px; ">申请时间</caption>
- <caption id="caption2" style="left:320px; top:15px; width:45px; height:20px; ">板坯号</caption>
- <caption id="caption3" style="left:480px; top:15px; width:50px; height:20px; ">申请状态</caption>
- <caption id="caption4" class="cell" style="left:725px; top:600px; width:100px; height:20px; ">重量合计</caption>
- <output id="output1" style="left:725px; top:620px; width:100px; height:20px; "/>
- <line id="line2" style="x1:730px; y1:640px; x2:805px; y2:640px; "/>
- <input id="input3" ref="/root/BPNO" style="left:360px; top:15px; width:100px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/lzsqResult_Row" caption="选择^板坯号^申请状态^申请时间^板坯状态^板坯去向^是否在库^合同号^订单号^实际规格^实际牌号^计划牌号^成分等级^判定方式^外观等级^精整方法^余材区分^板坯重量^LF^RH^VD^加热要求^轧制要求^取样要求^热处理要求^炼钢判定及处理要求^成品判定及处理要求^流转申请确认人^流转申请确时间" colsep="^" colwidth="35, 100, 70, 90, 120, 70, 60, 90, 45, 80, 80, 80, 60, 60, 60, 60, 60, 60, 100, 100, 100, 100, 100, 100, 100, 130, 127, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:50px; width:695px; height:310px; ">
- <col ref="CHK" type="checkbox" style="text-align:left; "/>
- <col ref="SLAB_NO" style="font-weight:bold; text-decoration:underline; text-align:left; cursor:hand; "/>
- <col ref="ASK_TP"/>
- <col ref="SLAB_INGR_DEC_DTIME"/>
- <col ref="CUR_PROG_CD"/>
- <col ref="SLAB_RT"/>
- <col ref="SLAB_STAT"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="TWL"/>
- <col ref="STL_GRD"/>
- <col ref="BEF_STL_GRD"/>
- <col ref="SLAB_INGR_DEC_GRD"/>
- <col ref="SLAB_INGR_DEC_KIND"/>
- <col ref="EXTSHAPE_GRD"/>
- <col ref="SF_METHOD"/>
- <col ref="ORD_FL"/>
- <col ref="SLAB_WGT"/>
- <col ref="LF"/>
- <col ref="RH"/>
- <col ref="VD"/>
- <col ref="ASK_CFM_JR_DESC" type="input"/>
- <col ref="ASK_CFM_ZZ_DESC" type="input"/>
- <col ref="ASK_CFM_QY_DESC" type="input"/>
- <col ref="ASK_CFM_RCL_DESC" type="input"/>
- <col ref="ASK_CFM_LGPD_DESC" type="input"/>
- <col ref="CFPDYQ" type="input"/>
- <col ref="ASK_CFM_ID"/>
- <col ref="ASK_CFM_DTIME"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row=datagrid1.row;
- if(row<=0)
- return;
- if(datagrid1.col != datagrid1.colRef("SLAB_NO") || datagrid1.row < datagrid1.fixedRows)
- return;
- var BPNO=datagrid1.valueMatrix(row,2);
- //alert(BPNO);
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/BPNO",BPNO);
- commSubmit("UIB030351-service","getlh", "glueAction.do");
-
- model.copyNode("/root/datagrid2" , "/root/resData/SResult_VO");
- model.copyNode("/root/datagrid3" , "/root/resData/ZResult_VO");
- model.copyNode("/root/datagrid4" , "/root/resData/XResult_VO");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <select1 id="combo1" ref="/root/SQZT" appearance="minimal" style="left:530px; top:15px; width:100px; height:20px; ">
- <choices>
- <item>
- <label>正在申请</label>
- <value>0</value>
- </item>
- <item>
- <label>确认申请</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <button id="button2" style="left:700px; top:15px; width:55px; height:20px; background-color:#00ff00; ">
- <caption>确认申请</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- confirm();
- find();
- ]]>
- </script>
- </button>
- <button id="button3" style="left:760px; top:15px; width:55px; height:20px; background-color:#00ff00; ">
- <caption>取消申请</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- cancleConfirm();
- find();
- ]]>
- </script>
- </button>
- <caption id="caption5" style="left:5px; top:375px; width:65px; height:35px; background-color:#00ccff; ">加热要求</caption>
- <input id="input4" ref="/root/ASK_CFM_JR_DESC" autonext="true" style="left:70px; top:375px; width:625px; height:35px; "/>
- <caption id="caption6" style="left:5px; top:420px; width:65px; height:35px; background-color:#00ccff; ">轧制要求</caption>
- <caption id="caption7" style="left:5px; top:465px; width:65px; height:35px; background-color:#00ccff; ">取样要求</caption>
- <caption id="caption8" style="left:5px; top:510px; width:65px; height:35px; background-color:#00ccff; ">热处理要求</caption>
- <caption id="caption9" style="left:5px; top:555px; width:65px; height:35px; background-color:#00ccff; ">炼钢判定及处理要求</caption>
- <input id="input5" ref="/root/ASK_CFM_ZZ_DESC" style="left:70px; top:420px; width:625px; height:35px; "/>
- <input id="input6" ref="/root/ASK_CFM_QY_DESC" style="left:70px; top:465px; width:625px; height:35px; "/>
- <input id="input7" ref="/root/ASK_CFM_RCL_DESC" style="left:70px; top:510px; width:625px; height:35px; "/>
- <input id="input8" ref="/root/ASK_CFM_LGPD_DESC" style="left:70px; top:555px; width:625px; height:35px; "/>
- <input id="input9" ref="/root/CFPDYQ" style="left:70px; top:600px; width:625px; height:35px; "/>
- <caption id="caption10" style="left:5px; top:600px; width:65px; height:35px; background-color:#00ccff; ">成品判定及处理要求</caption>
- <caption id="caption11" class="cell" style="left:725px; top:600px; width:100px; height:20px; ">重量合计</caption>
- <output id="output2" style="left:725px; top:620px; width:100px; height:20px; "/>
- <datagrid id="datagrid2" nodeset="/root/datagrid2/SResult_Row" caption="成分(上炉)^元素值" colsep="^" colwidth="100, 95" mergecellsfixedrows="bycolrec" rowsep="|" style="left:710px; top:50px; width:200px; height:160px; ">
- <col ref="CHEM_CD"/>
- <col ref="CHEM_VAL"/>
- </datagrid>
- <datagrid id="datagrid3" nodeset="/root/datagrid3/ZResult_Row" caption="成分(当前)^元素值" colsep="^" colwidth="100, 96" mergecellsfixedrows="bycolrec" rowsep="|" style="left:710px; top:225px; width:200px; height:160px; ">
- <col ref="CHEM_CD"/>
- <col ref="CHEM_VAL"/>
- </datagrid>
- <datagrid id="datagrid4" nodeset="/root/datagrid4/XResult_Row" caption="成分(下炉)^元素值" colsep="^" colwidth="100, 95" mergecellsfixedrows="bycolrec" rowsep="|" style="left:710px; top:405px; width:200px; height:170px; ">
- <col ref="CHEM_CD"/>
- <col ref="CHEM_VAL"/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|