| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.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>预装车</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <resData/>
- <reqData/>
- <datagrid1/>
- <searchData>
- <COIL_NO/>
- </searchData>
- <saveData>
- <CHK/>
- <OLD_SAMPL_NO/>
- <ACT_WGT/>
- <CUR_LOAD_LOC/>
- </saveData>
- <sumData>
- <SUM_COILRST_CNT/>
- <SUM_COILRST_WGT/>
- </sumData>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript">
- <![CDATA[
- //页面初始化的时候需要获取登录的相关用户信息
- function Init(node) {
- InitParams(node);
- }
- //调用公共的初始化方法获得登录用户名
- 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;
- node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
- for (var i = 0; i < nodeList.length; i++)
- node.appendChild(nodeList.item(i));
- }
-
- function find(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.duplicate("/root/reqData","/root/searchData/COIL_NO");
-
- commSubmit("UIH051300-service", "find", "glueAction.do");
-
- commAppendData("/root/datagrid1/coilResult_VO","/root/resData/coilResult_VO");
-
- model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
- model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
-
- model.refresh();
-
- }
-
- function findCoil(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- commSubmit("UIH051300-service", "findCoil", "glueAction.do");
-
- commAppendData("/root/datagrid1/coilResult_VO","/root/resData/coilResult_VO");
-
- model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
- model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <caption id="caption10" class="cell" style="left:555px; top:40px; width:80px; height:20px; "/>
- <caption id="caption8" class="cell" style="left:715px; top:40px; width:75px; height:20px; "/>
- <caption id="caption6" class="cell" style="left:635px; top:40px; width:80px; height:20px; "/>
- <caption id="caption7" class="cell" style="left:810px; top:40px; width:75px; height:20px; "/>
- <caption id="caption2" class="cell" style="left:885px; top:40px; width:75px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/coilResult_VO/coilResult_Row" caption="预装车标志^钢卷号^重量^实际规格^合同号^订单号^综合判定等级^进程状态^垛位^订单规格" colsep="^" colwidth="78, 100, 90, 100, 100, 90, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:60px; width:960px; height:515px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="OLD_SAMPL_NO" type="input" maxlength="13" style="background-color:#ffff99; "/>
- <col ref="ACT_WGT" type="input" format="#,###" style="background-color:#ffff99; "/>
- <col ref="T_W"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="TOT_DEC_GRD"/>
- <col ref="CUR_PROG_CD"/>
- <col ref="CUR_LOAD_LOC" type="input" maxlength="9" style="background-color:#ffff99; "/>
- <col ref="IT_IW"/>
- </datagrid>
- <caption id="caption4" class="cell" style="left:0px; top:15px; width:60px; height:20px; ">钢卷号</caption>
- <input id="input3" ref="/root/searchData/COIL_NO" maxlength="20" style="left:60px; top:15px; width:125px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[通过输入钢卷号查询需要预装的卷]]>
- </hint>
- </input>
- <button id="button2" style="left:885px; top:40px; width:75px; height:20px; ">
- <caption>增加行</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //点击按钮,在表格的选中位置增加行
- datagrid1.addRow();
- ]]>
- </script>
- </button>
- <button id="button4" style="left:810px; top:40px; width:75px; height:20px; ">
- <caption>取消行</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //点击按钮,在表格的选中位置增加行
- var nodeSet1 = datagrid1.nodeset;
- var row = null;
- for(var i=0;i<datagrid1.selectedRows;i++){
- row = datagrid1.selectedRow(i);
- }
- if(row != null){
- datagrid1.deleteRow(row);
- }
- datagrid1.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[删除鼠标选中的行]]>
- </hint>
- </button>
- <button id="button3" style="left:635px; top:40px; width:80px; height:20px; ">
- <caption>预装车卷选中</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //这里加入登录用户名,会不会与已有的initData冲突
- model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
-
- // var nodeSet1 = datagrid1.nodeset;
- // var chk = null;
- // var OLD_SAMPL_NO = null;
- // var ACT_WGT = null;
- // var CUR_LOAD_LOC = null;
- // for(var i=1;i<datagrid1.rows;i++){
- // chk = model.getValue(nodeSet1+"["+i+"]/CHK");
- //
- // if(chk == "Y"){
- // model.setValue("/root/saveData/CHK",chk);
- // OLD_SAMPL_NO = model.getValue(nodeSet1+"["+i+"]/OLD_SAMPL_NO");
- // model.setValue("/root/saveData/OLD_SAMPL_NO",OLD_SAMPL_NO);
- // ACT_WGT = model.getValue(nodeSet1+"["+i+"]/ACT_WGT");
- // model.setValue("/root/saveData/ACT_WGT",ACT_WGT);
- // CUR_LOAD_LOC = model.getValue(nodeSet1+"["+i+"]/CUR_LOAD_LOC");
- // model.setValue("/root/saveData/CUR_LOAD_LOC",CUR_LOAD_LOC);
- //
- // model.duplicate("/root/reqData","/root/saveData/CHK");
- // model.duplicate("/root/reqData","/root/saveData/OLD_SAMPL_NO");
- // model.duplicate("/root/reqData","/root/saveData/ACT_WGT");
- // model.duplicate("/root/reqData","/root/saveData/CUR_LOAD_LOC");
- //
- // model.refresh();
- // }
- // }
-
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
-
- commSubmit("UIH051300-service", "saveCoil", "glueAction.do");
-
- alert("预装车成功!!!!");
- //查询预装车
- findCoil();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" style="left:715px; top:40px; width:75px; height:20px; ">
- <caption>预装车查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- findCoil();
- ]]>
- </script>
- </button>
- <button id="button6" style="left:555px; top:40px; width:80px; height:20px; ">
- <caption>预装车卷取消</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //这里加入登录用户名,会不会与已有的initData冲突
- model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
-
- var nodeSet1 = datagrid1.nodeset;
- for(var i=1;i<datagrid1.rows;i++){
- var CHK = model.getValue(nodeSet1+"["+i+"]/CHK");
-
- if(CHK == "Y"){
- if(model.getValue(nodeSet1+"["+i+"]/CUR_LOAD_LOC") == ""){
- alert("第"+i+"行的垛位信息为空,不能进行预装车取消!!");
- return;
- }
- }
- }
-
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
-
- commSubmit("UIH051300-service", "CancelCoil", "glueAction.do");
-
- model.refresh();
-
- alert(" 预装车取消成功!!!!! ");
-
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "ERROR"){
- alert(" 录入的垛位信息上面已经存在钢卷!! ");
- return;
- }
-
- findCoil();
- ]]>
- </script>
- </button>
- <output id="output5" ref="/root/sumData/SUM_COILRST_WGT" format="#,###" style="left:362px; top:586px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
- <output id="output6" ref="/root/sumData/SUM_COILRST_CNT" format="#,###" style="left:172px; top:586px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
- <caption id="caption1" class="cell" style="left:0px; top:585px; width:85px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">上表统计:</caption>
- <caption id="caption11" class="cell" style="left:90px; top:586px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总块数</caption>
- <caption id="caption12" class="cell" style="left:265px; top:586px; width:95px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总重量(吨)</caption>
- </xhtml:body>
- </xhtml:html>
|