| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <?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>车辆号</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <resData/>
- <reqData/>
- <DLIV_TP/>
- <ORD_NO/>
- <CAR_NO/>
- <datagrid1>
- <CHK/>
- <COIL_NO/>
- <COIL_WGT/>
- <DEST_CD/>
- </datagrid1>
- <DLIV_DIRNO/>
- <CUST_NM/>
- <ORD_NM/>
- <EXLV_LINE_CD/>
- <REG_ID/>
- <ORD_SEQ/>
- <formData>
- <R_ORD_NO/>
- <R_ORD_SEQ/>
- <R_MAT_NO/>
- <SIGN_STL/>
- <SIGN_CHEN_FEN/>
- <SING_CAIZHI/>
- <SIGN_QIANGZHI/>
- <P_REG_ID/>
- </formData>
- <ORD_YN>Y</ORD_YN>
- <WK>
- <ENTRY_SHIFT/>
- <ENTRY_GROUP/>
- <ENTRY_REG/>
- <ENTRY_DTIME/>
- </WK>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="650" pageheight="500">
- <caption id="caption8" class="cell" style="left:0px; top:40px; width:75px; height:20px; "/>
- <caption id="caption7" class="cell" style="left:395px; top:40px; width:75px; height:20px; "/>
- <caption id="caption6" class="cell" style="left:250px; top:40px; width:115px; height:20px; "/>
- <caption id="caption2" class="cell" style="left:470px; top:40px; width:75px; height:20px; "/>
- <caption id="caption1" class="cell" style="left:545px; top:40px; width:65px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/YZCCoil_VO/YZCCoil_Row" caption="选择^钢卷号^重量^到站" colsep="^" colwidth="110, 179, 167, 152" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:60px; width:610px; height:215px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox" style="background-color:#ffff99; "/>
- <col ref="COIL_NO" type="input" maxlength="13" style="background-color:#ffff99; "/>
- <col ref="COIL_WGT" type="input" format="#,###" style="background-color:#ffff99; "/>
- <col ref="DEST_CD" type="input" maxlength="20" style="background-color:#ffff99; "/>
- <hint>
- <![CDATA[同车的钢卷不同合同号时,需要分开两次输入]]>
- </hint>
- </datagrid>
- <caption id="caption4" class="cell" style="left:0px; top:5px; width:60px; height:20px; ">车辆号</caption>
- <input id="input3" ref="/root/CAR_NO" maxlength="20" style="left:60px; top:5px; width:80px; height:20px; background-color:#ffff99; "/>
- <caption id="caption3" class="cell" style="left:140px; top:5px; width:55px; height:20px; ">合同号</caption>
- <input id="input2" ref="/root/ORD_NO" style="left:195px; top:5px; width:100px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[老系统的合同号为月份+合同号的后4位。新系统的合同号必须输入合同号加订单号]]>
- </hint>
- </input>
- <select1 id="combo4" ref="/root/DLIV_TP" appearance="minimal" style="left:535px; top:5px; width:70px; height:20px; background-color:#ffff99; ">
- <choices>
- <item>
- <label>公路(车辆)</label>
- <value>C</value>
- </item>
- <item>
- <label>铁路(火车)</label>
- <value>T</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="cell" style="left:470px; top:5px; width:65px; height:20px; ">运输方式</caption>
- <button id="button1" style="left:545px; top:40px; width:65px; height:20px; ">
- <caption>确定</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- var opp1 = window.opener;
- //这里需要获取前面页面的班次、组、工作人、出库时间
- model.setValue("/root/REG_ID",opp1.model.getValue("/root/REG_ID"));
- model.setValue("/root/WK/ENTRY_SHIFT",opp1.model.getValue("/root/WK/ENTRY_SHIFT"));
- model.setValue("/root/WK/ENTRY_GROUP",opp1.model.getValue("/root/WK/ENTRY_GROUP"));
- model.setValue("/root/WK/ENTRY_REG",opp1.model.getValue("/root/WK/ENTRY_REG"));
- model.setValue("/root/WK/ENTRY_DTIME",opp1.model.getValue("/root/WK/ENTRY_DTIME"));
- model.refresh();
-
- if(model.getValue("/root/ORD_NO") == ""){
- alert("合同号必须输入,老系统输入月份+后4位。新系统必须输全!");
- return;
- }
-
- if(model.getValue("/root/ORD_SEQ") == ""){
- alert("订单号必须输入,请通过新老系统合同转换获得!!");
- return;
- }
-
- //这里需要给出提示,充当存在风险,请确认好再进行
- var isUse = commComfirmBox("这里用的是强制充当功能,请确认待发的卷是否满足合同的牌号,规格,重量上下限等相应条件?","提示");
-
- if(isUse == "0"){
- //如果选择否的话,不进行相应操作
- //find();
- //bool1.value = "true";
- return;
- }
-
- var nodeSet1 = datagrid1.nodeset;
- for(var i=1;i<datagrid1.rows;i++){
- //这里增加了选择标志,所以只处理选择了的钢卷
- var chk = model.getValue(nodeSet1+"["+i+"]/CHK");
- if(chk == "Y"){
- var coil_no = model.getValue(nodeSet1+"["+i+"]/COIL_NO");
-
- if(coil_no != null){
- var ord_no = model.getValue("/root/ORD_NO");
- var ord_seq = model.getValue("/root/ORD_SEQ");
- var P_REG_ID = model.getValue("/root/WK/ENTRY_REG");
- model.setValue("/root/formData/R_ORD_NO",ord_no);
- model.setValue("/root/formData/R_ORD_SEQ",ord_seq);
- model.setValue("/root/formData/R_MAT_NO",coil_no);
- model.setValue("/root/formData/SIGN_STL","N");
- model.setValue("/root/formData/SIGN_CHEN_FEN","N");
- model.setValue("/root/formData/SING_CAIZHI","N");
- model.setValue("/root/formData/SIGN_QIANGZHI","Y");
- model.setValue("/root/formData/P_REG_ID",P_REG_ID);
-
- commSendReq("/root/formData");
- commSubmit("UIE031046-service","save","glueAction.do");
-
- if (model.getValue("/root/resData/errorData") != "") {
- //alert(model.getValue("/root/resData/errorData"));
- output1.value = model.getValue("/root/resData/errorData");
- alert("请查看充当错误提示信息!!");
- return;
- }
- }
- }
- }
- // alert("1 :"+model.getValue("/root/formData/R_ORD_NO"));
- // alert("2 :"+model.getValue("/root/formData/R_ORD_SEQ"));
- // alert("3 :"+model.getValue("/root/formData/R_MAT_NO"));
- // alert("4 :"+model.getValue("/root/formData/SIGN_STL"));
- // alert("5 :"+model.getValue("/root/formData/P_REG_ID"));
-
- if (model.getValue("/root/resData/errorData") != "") {
- //alert(model.getValue("/root/resData/errorData"));
- output1.value = model.getValue("/root/resData/errorData");
- alert("请查看充当错误提示信息!!");
- return;
- }else{
-
- // //保存需要出库的数据
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.duplicate("/root/reqData","/root/REG_ID");
- model.duplicate("/root/reqData","/root/DLIV_TP");
- model.duplicate("/root/reqData","/root/ORD_NO");
- model.duplicate("/root/reqData","/root/CAR_NO");
- model.duplicate("/root/reqData","/root/DLIV_DIRNO");
- model.duplicate("/root/reqData","/root/CUST_NM");
- model.duplicate("/root/reqData","/root/ORD_NM");
- model.duplicate("/root/reqData","/root/EXLV_LINE_CD");
- model.duplicate("/root/reqData","/root/WK/ENTRY_SHIFT");
- model.duplicate("/root/reqData","/root/WK/ENTRY_GROUP");
- model.duplicate("/root/reqData","/root/WK/ENTRY_REG");
- model.duplicate("/root/reqData","/root/WK/ENTRY_DTIME");
-
- for(var i=0;i<datagrid1.rows;i++){
- datagrid1.rowStatus(i) = 3;
- }
-
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
-
- commSubmit("UIH050800-service", "save", "glueAction.do");
-
- alert(" 出库成功!!! ");
- window.close();
- }
-
-
- ]]>
- </script>
- </button>
- <button id="button2" style="left:470px; top:40px; width:75px; height:20px; ">
- <caption>增加行</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //点击按钮,在表格的选中位置增加行
- datagrid1.addRow();
- var nodeSet1 = datagrid1.nodeset;
- for(var i=1;i<datagrid1.rows;i++){
- model.setValue(nodeSet1+"["+i+"]/COIL_NO","R9-00");
- model.refresh();
- }
- // var rw;
- // for(var i=0;i<=datagrid1.selectedRows;i++){
- // rw = datagrid1.selectedRow(i);
- //
- // if(Number(rw) == Number(datagrid1.Rows-1)){
- // //如果选中的是最后一行,在后面新加一行
- // datagrid1.addRow();
- // }else{
- // //如果不是最后一行的话,在选中行的下面加入一行
- // datagrid1.insertRow(Number(rw+1));
- // }
- // }
- ]]>
- </script>
- </button>
- <caption id="caption5" class="cell" style="left:295px; top:5px; width:50px; height:20px; ">订单号</caption>
- <input id="input1" ref="/root/ORD_SEQ" style="left:345px; top:5px; width:45px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[老系统的合同号为月份+合同号的后4位。新系统的合同号必须输入合同号加订单号]]>
- </hint>
- </input>
- <output id="output1" style="left:0px; top:285px; width:610px; height:200px; ">
- <hint>
- <![CDATA[钢卷充当错误提示的信息]]>
- </hint>
- </output>
- <button id="button3" style="left:250px; top:40px; width:115px; height:20px; ">
- <caption>新老系统合同号转换</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // //根据输入的合同号和钢卷来获取合同号和订单号
- // model.removenode("/root/reqData");
- // model.makeNode("/root/reqData");
- //
- // if(model.getValue("/root/ORD_NO") == ""){
- // alert(" 合同号必须输入,请确认后再点击转换按钮!!! ");
- // return;
- // }
- //
- // model.duplicate("/root/reqData","/root/ORD_NO");
- // model.duplicate("/root/reqData","/root/ORD_N_O");
- //
- // for(var i=0;i<datagrid1.rows;i++){
- // datagrid1.rowStatus(i) = 3;
- // }
- //
- // commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
- //
- // commSubmit("UIH050800-service", "save", "glueAction.do");
-
- if(model.getValue("/root/ORD_NO") == ""){
- alert(" 合同号为必输项,请输入后再点击转换按钮! ");
- return;
- }
- if(model.getValue("/root/ORD_YN") == ""){
- alert(" 转换标志位为必输项,请选择新老系统合同标志再点击转换按钮! ");
- return;
- }
- window.load("./UIH05_ORD_NO.xrw", "modal", "modalWin", "left:400; top:100; width:650px; height:500px");
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/ORD_YN" appearance="minimal" style="left:390px; top:5px; width:80px; height:20px; background-color:#ffff99; ">
- <choices>
- <item>
- <label>老系统合同号</label>
- <value>Y</value>
- </item>
- <item>
- <label>新系统合同号</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <button id="button4" style="left:395px; 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="button5" style="left:0px; top:40px; width:75px; height:20px; ">
- <caption>预装车卷查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //这里需要清空datagrid1
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- commSubmit("UIH050800-service", "searchYZC", "glueAction.do");
-
- commAppendData("/root/datagrid1/YZCCoil_VO","/root/resData/YZCCoil_VO");
-
- model.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|