| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?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>
- <![CDATA[热轧非计划发货管理 > 发货处理 > 火车汽车下车计划回退(UIJ020500)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <initData/>
- <resData/>
- <reqData/>
- <searchData>
- <fromDate/>
- <toDate/>
- <SHIP_DIRNO/>
- <DLIV_TP/>
- <SHIP_COMP_NM/>
- <SHIP_PROG_CD/>
- <CUR_PROG_CD/>
- <LANE_TP/>
- <ENTERANCE_SEQ/>
- <DLIV_DIRNO/>
- </searchData>
- <datagrid1/>
- <ISCANCEL/>
- </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");
-
- //清空datagrid1
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- //判断发货指示时间是否为空
- var fromDate = model.getValue("/root/searchData/fromDate");
- var toDate = model.getValue("/root/searchData/toDate");
- var DLIV_TP = model.getValue("/root/searchData/DLIV_TP");
-
- if(fromDate == ""){
- alert(" 发货指示的开始时间不能为空,请选择相应的发货指示开始时间! ");
- return;
- }
- if(toDate == ""){
- alert(" 发货指示的结束时间不能为空,请选择相应的发货指示结束时间! ");
- return;
- }
- if(DLIV_TP == ""){
- alert(" 运输方式不能为空,请选择相应的运输方式! ");
- return;
- }
-
- //把相应的接点放入发送对象
- //初始化页面,查询的发货指示状态为03排车待机和材料进度"SFB"
- model.setValue("/root/searchData/SHIP_PROG_CD","03");
- model.duplicate("/root/reqData","/root/searchData/SHIP_PROG_CD");
- model.duplicate("/root/reqData","/root/searchData/fromDate");
- model.duplicate("/root/reqData","/root/searchData/toDate");
- model.setValue("/root/searchData/SHIP_DIRNO","");
- model.duplicate("/root/reqData","/root/searchData/SHIP_DIRNO");
- //这里物料进度为SFB,避免降级余才
- model.setValue("/root/searchData/CUR_PROG_CD","SFB");
- //5
- model.duplicate("/root/reqData","/root/searchData/CUR_PROG_CD");
- model.duplicate("/root/reqData","/root/searchData/fromDate");
- model.duplicate("/root/reqData","/root/searchData/toDate");
- model.duplicate("/root/reqData","/root/searchData/DLIV_TP");
- model.setValue("/root/searchData/LANE_TP","");
- model.duplicate("/root/reqData","/root/searchData/LANE_TP");
- model.setValue("/root/searchData/ENTERANCE_SEQ","");
- model.duplicate("/root/reqData","/root/searchData/ENTERANCE_SEQ");
- //11 这里的运输方式也一定是铁路运输,所以可以直接默认
- model.duplicate("/root/reqData","/root/searchData/SHIP_COMP_NM");
- model.duplicate("/root/reqData","/root/searchData/DLIV_TP");
- //这里查询写死为0
- model.setValue("/root/ISCANCEL","0");
- model.duplicate("/root/reqData","/root/ISCANCEL");
- model.duplicate("/root/reqData","/root/searchData/DLIV_DIRNO");
-
- commSubmit("UIJ020500-service","find","glueAction.do");
-
- commAppendData("/root/datagrid1/DLIVDIR_VO","/root/resData/DLIVDIR_VO");
-
- model.refresh();
- }
-
- //保存方法
- function save() {
- //这里必须判断,没有选中的行不能点击保存按钮。
- var mark = null;
- var ISCANCEL = null;
- var nodeSet1 = datagrid1.nodeset;
- for(var i=1;i<datagrid1.rows;i++){
- var chk = model.getValue(nodeSet1+"["+i+"]/CHK");
-
- if(chk == "Y"){
- mark = "Y";
- ISCANCEL = model.getValue(nodeSet1+"["+i+"]/ISCANCEL");
- break;
- }
- }
-
- if(mark == "Y"){
- if(ISCANCEL == "0"){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
- //这里加入登录用户名,会不会与已有的initData冲突
- model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
-
- commSubmit("UIJ020500-service","save","glueAction.do");
- model.refresh();
- }else if(ISCANCEL == "1"){
- alert(" 已经回退的计划,不能进行保存操作!! ");
- return;
- }
- }else{
- alert(" 没有选中的计划,不能点击保存按钮!! ");
- return;
- }
- find();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,-3;">
- <caption id="caption3" class="cell" style="left:650px; top:0px; width:95px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; "/>
- <caption id="caption5" class="cell" style="left:0px; top:0px; width:90px; height:20px; font-weight:bold; text-align:left; border-color:#000000; border-style:solid; ">发货指示时间</caption>
- <input id="input1" ref="/root/searchData/fromDate" inputtype="date" format="yyyy-mm-dd" style="left:90px; top:0px; width:115px; height:20px; background-color:#ffff99; "/>
- <input id="input2" ref="/root/searchData/toDate" inputtype="date" format="yyyy-mm-dd" style="left:235px; top:0px; width:115px; height:20px; background-color:#ffff99; "/>
- <caption id="caption1" style="left:205px; top:0px; width:30px; height:20px; text-align:center; vertical-align:middle; ">--</caption>
- <caption id="caption2" class="cell" style="left:380px; top:0px; width:75px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">运输指示号</caption>
- <input id="input6" ref="/root/searchData/DLIV_DIRNO" style="left:455px; top:0px; width:95px; height:20px; background-color:#ffff99; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/DLIVDIR_VO/DLIVDIR_Row" caption="选择^发货指示号^目的地^专用线^收货单位^合同单位^合同号^订单号^牌号^规格^是否回退标志^运输指示号^发货指示^发货指示^^^^^^^^^^^|选择^发货指示号^目的地^专用线^收货单位^合同单位^合同号^订单号^牌号^规格^是否回退标志^运输指示号^数量^重量^^^^^^^^^^^" colsep="^" colwidth="21, 85, 63, 70, 90, 90, 86, 50, 75, 70, 88, 88, 43, 43, 100, 32, 100, 53, 68, 100, 100, 100, 100, 100, 100" defaultrows="30" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:980px; height:570px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col editable="false" ref="SHIP_DIRNO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="DEST_PCD_DESC" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="EXLV_LINE_CD_DESC" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_NM" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="CUST_NM" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_SEQ" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="T_W" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ISCANCEL" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="DLIV_DIRNO" type="input" style="background-color:#ffffff; "/>
- <col ref="CNT"/>
- <col ref="ACT_WGT"/>
- <col ref="TRAIN_DLIVNO" visibility="hidden"/>
- <col ref="ALLOC_SEQ" type="input" visibility="hidden" style="background-color:#ffff99; "/>
- <col ref="TRANS_CAR_NO" type="input" visibility="hidden" style="background-color:#ffff99; "/>
- <col editmode="input" ref="LANE_TP" type="combo" visibility="hidden" style="background-color:#ffff99; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>A</label>
- <value>A</value>
- </item>
- <item>
- <label>B</label>
- <value>B</value>
- </item>
- </choices>
- </col>
- <col ref="ENTERANCE_SEQ" type="input" visibility="hidden" style="background-color:#ffff99; "/>
- <col ref="SM_CFNM" visibility="hidden"/>
- <col ref="DLIV_TP_NM" visibility="hidden"/>
- <col ref="GET_NO_PCD" visibility="hidden"/>
- <col ref="GET_OFF_PCD" visibility="hidden"/>
- <col ref="DEST_PCD" visibility="hidden"/>
- <col ref="EXLV_LINE_CD" visibility="hidden"/>
- </datagrid>
- <select1 id="combo2" ref="/root/searchData/DLIV_TP" appearance="minimal" style="left:865px; top:0px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <item>
- <label>火运</label>
- <value>T</value>
- </item>
- <item>
- <label>汽运</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="cell" style="left:770px; top:0px; width:95px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">运输方式</caption>
- <button id="button3" style="left:650px; top:0px; width:95px; height:20px; ">
- <caption>查询回退计划</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //清空发送接点
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //清空datagrid1
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- //判断发货指示时间是否为空
- var fromDate = model.getValue("/root/searchData/fromDate");
- var toDate = model.getValue("/root/searchData/toDate");
- var DLIV_TP = model.getValue("/root/searchData/DLIV_TP");
-
- if(fromDate == ""){
- alert(" 发货指示的开始时间不能为空,请选择相应的发货指示开始时间! ");
- return;
- }
- if(toDate == ""){
- alert(" 发货指示的结束时间不能为空,请选择相应的发货指示结束时间! ");
- return;
- }
- if(DLIV_TP == ""){
- alert(" 运输方式不能为空,请选择相应的运输方式! ");
- return;
- }
-
- //把相应的接点放入发送对象
- //初始化页面,查询的发货指示状态为03排车待机和材料进度"SFB"
- model.setValue("/root/searchData/SHIP_PROG_CD","03");
- model.duplicate("/root/reqData","/root/searchData/SHIP_PROG_CD");
- model.duplicate("/root/reqData","/root/searchData/fromDate");
- model.duplicate("/root/reqData","/root/searchData/toDate");
- model.setValue("/root/searchData/SHIP_DIRNO","");
- model.duplicate("/root/reqData","/root/searchData/SHIP_DIRNO");
- //这里物料进度为SFB,避免降级余才
- model.setValue("/root/searchData/CUR_PROG_CD","SFB");
- //5
- model.duplicate("/root/reqData","/root/searchData/CUR_PROG_CD");
- model.duplicate("/root/reqData","/root/searchData/fromDate");
- model.duplicate("/root/reqData","/root/searchData/toDate");
- model.duplicate("/root/reqData","/root/searchData/DLIV_TP");
- model.setValue("/root/searchData/LANE_TP","");
- model.duplicate("/root/reqData","/root/searchData/LANE_TP");
- model.setValue("/root/searchData/ENTERANCE_SEQ","");
- model.duplicate("/root/reqData","/root/searchData/ENTERANCE_SEQ");
- //11 这里的运输方式也一定是铁路运输,所以可以直接默认
- model.duplicate("/root/reqData","/root/searchData/SHIP_COMP_NM");
- model.duplicate("/root/reqData","/root/searchData/DLIV_TP");
- //人工指定查询取消
- model.setValue("/root/ISCANCEL","1");
- model.duplicate("/root/reqData","/root/ISCANCEL");
- model.duplicate("/root/reqData","/root/searchData/DLIV_DIRNO");
-
- commSubmit("UIJ020500-service","find","glueAction.do");
-
- commAppendData("/root/datagrid1/DLIVDIR_VO","/root/resData/DLIVDIR_VO");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" visibility="hidden" style="left:410px; top:130px; width:75px; height:20px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <button id="button2" visibility="hidden" style="left:620px; top:115px; width:90px; height:35px; ">
- <caption>button2</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|