| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- <?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>
- <![CDATA[热轧作业>>钢卷库管理>>入库数据补录(UIH050600)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <searchData>
- <COIL_NO>R9-00</COIL_NO>
- <ORD_NO/>
- <CAR_NO/>
- <COIL_WGT/>
- <DEST_CD/>
- <CUST_NM/>
- <ORD_NM/>
- <DLIV_TP/>
- <BY_SEA_YN/>
- <EXLV_LINE_CD/>
- <DLIV_DIRNO/>
- </searchData>
- <LOVData>
- <CUST_NM/>
- <ORD_NM/>
- <DEST_CD/>
- <EXLV_LINE_CD/>
- </LOVData>
- <CD_SEQ/>
- <datagrid1/>
- <REG_ID/>
- <WK>
- <ENTRY_SHIFT/>
- <ENTRY_GROUP/>
- <ENTRY_REG/>
- <ENTRY_DTIME/>
- </WK>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- commSubmit("UIH050800-service","success","glueAction.do");
-
- commAppendData("/root/LOVData/ORD_NM","/root/resData/ORDNM_VO");
-
- commAppendData("/root/LOVData/CUST_NM","/root/resData/CUSTNM_VO");
-
- commAppendData("/root/LOVData/EXLV_LINE_CD","/root/resData/EXLV_LINE_CD_VO");
-
- commAppendData("/root/WK/ENTRY_SHIFT_VO","/root/resData/ENTRY_SHIFT_VO");
-
- commAppendData("/root/WK/ENTRY_GROUP_VO","/root/resData/ENTRY_GROUP_VO");
-
- model.refresh();
- ]]>
- </script>
- <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");
-
- model.duplicate("/root/reqData","/root/searchData/ORD_NO");
-
- model.duplicate("/root/reqData","/root/searchData/CAR_NO");
-
- commSubmit("UIH050800-service", "find", "glueAction.do");
-
- commAppendData("/root/datagrid1/DLIV_DIR_VO","/root/resData/DLIV_DIR_VO");
-
- model.refresh();
-
- }
-
- function save(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- commSendReq("/root/searchData");
-
- //这里加入登录用户名,会不会与已有的initData冲突
- model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
-
- //alert("REG_ID : "+model.getValue("/root/initData/rcvInfo/REG_ID"));
-
- commSubmit("UIH050800-service", "save", "glueAction.do");
-
- model.refresh();
-
- //需要清空相应的节点数据
- model.setValue("/root/searchData/COIL_NO","");
- model.setValue("/root/searchData/ORD_NO","");
- model.setValue("/root/searchData/CAR_NO","");
-
- model.refresh();
-
- if(model.getValue("root/resData/rs_VO/rs_Row")=="ERROR")
- {
- window.alert("钢卷已经出库,或者还在轧制过程中!");
- return;
- }
- //再查询一次
-
- alert(" 出库成功! ");
-
- find();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption1" class="cell" style="left:0px; top:0px; width:100px; height:20px; ">出库数据录入</caption>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/DLIV_DIR_VO/DLIV_DIR_Row" caption="钢卷号^合同号^车辆号^到站^专用线^客户单位^收货单位^钢种^钢卷厚度^钢卷宽度^重量^位置^判定等级^标准号^出库人^出库时间" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:980px; height:520px; ">
- <col editable="false" ref="OLD_SAMPL_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="TRANS_CAR_NO" 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="CUST_NM" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_NM" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="INSTR_COIL_THK" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="INSTR_COIL_WTH" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ACT_WGT" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="CUR_LOAD_LOC" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="TOT_DEC_GRD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_ABBSYM" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="TRNF_REG" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="TRNF_DTIME" type="input" style="background-color:#ffffff; "/>
- </datagrid>
- <input id="input1" ref="/root/searchData/COIL_NO" maxlength="13" style="left:95px; top:25px; width:105px; height:20px; background-color:#ffff99; "/>
- <caption id="caption2" class="cell" style="left:0px; top:25px; width:90px; height:20px; ">钢卷号</caption>
- <caption id="caption3" class="cell" style="left:205px; top:25px; width:90px; height:20px; ">合同号</caption>
- <input id="input2" ref="/root/searchData/ORD_NO" maxlength="12" style="left:300px; top:25px; width:105px; height:20px; background-color:#ffff99; "/>
- <caption id="caption4" class="cell" style="left:410px; top:25px; width:90px; height:20px; ">车辆号</caption>
- <input id="input3" ref="/root/searchData/CAR_NO" maxlength="20" style="left:505px; top:25px; width:105px; height:20px; background-color:#ffff99; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //判断班次组入库人不能为空,时间不能为空
- if(model.getValue("/root/WK/ENTRY_SHIFT") == ""){
- alert(" 出库班次信息不能为空,请选择相应的出库班次! ");
- return;
- }
-
- if(model.getValue("/root/WK/ENTRY_GROUP") == ""){
- alert(" 出库班组信息不能为空,请选择相应的出库班组信息!! ");
- return;
- }
-
- if(model.getValue("/root/WK/ENTRY_REG") == ""){
- alert(" 出库人信息不能为空,请选择相应的出库人信息!! ");
- return;
- }
-
- if(model.getValue("/root/WK/ENTRY_DTIME") == ""){
- alert(" 出库时间信息不能为空,请输入相应的出库时间信息!! ");
- return;
- }
-
- //这里加入双击事件,在同一车号下可以输入多个钢卷号。便于操作
- //model.setValue("/root/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
- //model.refresh();
- window.load("./UIH05_CAR_NO.xrw", "modal", "modalWin", "left:400; top:100; width:650px; height:500px");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="cell" style="left:0px; top:55px; width:90px; height:20px; ">到站</caption>
- <caption id="caption6" class="cell" style="left:205px; top:55px; width:90px; height:20px; ">客户单位</caption>
- <caption id="caption7" class="cell" style="left:410px; top:55px; width:90px; height:20px; ">收货单位</caption>
- <caption id="caption8" class="cell" style="left:615px; top:25px; width:75px; height:20px; ">钢卷重量</caption>
- <input id="input4" ref="/root/searchData/COIL_WGT" maxlength="9" format="#,###" style="left:695px; top:25px; width:105px; height:20px; background-color:#ffff99; "/>
- <select1 id="combo1" ref="/root/searchData/DEST_CD" appearance="minimal" style="left:95px; top:55px; width:105px; height:20px; background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/LOVData/DEST_CD_VO/DEST_CD_Row">
- <label ref="DEST_CD_DESC"/>
- <value ref="DEST_CD"/>
- </itemset>
- </choices>
- <hint>
- <![CDATA[通过选择运输方式来获取到站信息]]>
- </hint>
- </select1>
- <select1 id="combo2" ref="/root/searchData/CUST_NM" appearance="minimal" style="left:300px; top:55px; width:105px; height:20px; background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/LOVData/CUSTNM_VO/CUSTNM_Row">
- <label ref="CUST_NM_DESC"/>
- <value ref="CUST_NM"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/searchData/ORD_NM" appearance="minimal" style="left:505px; top:55px; width:105px; height:20px; background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/LOVData/ORDNM_VO/ORDNM_Row">
- <label ref="ORD_NM_DESC"/>
- <value ref="ORD_NM"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo4" ref="/root/searchData/DLIV_TP" appearance="minimal" style="left:695px; top:55px; width:105px; height:20px; background-color:#ffff99; ">
- <choices>
- <item>
- <label>公路(车辆)</label>
- <value>C</value>
- </item>
- <item>
- <label>铁路(火车)</label>
- <value>T</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //选择不同的运输方式,给出不同的到站情况
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.setValue("/root/CD_SEQ","");
-
- var DLIV_TP = model.getValue("/root/searchData/DLIV_TP");
- var BY_SEA_YN = model.getValue("/root/searchData/BY_SEA_YN");
-
- if(DLIV_TP == "T"){
- model.setValue("/root/CD_SEQ","1");
- }else if(DLIV_TP == "C"){
- model.setValue("/root/CD_SEQ","2");
- }
-
- model.duplicate("/root/reqData","/root/CD_SEQ");
-
- commSubmit("UIH050800-service","select","glueAction.do");
-
- commAppendData("/root/LOVData/DEST_CD_VO","/root/resData/DEST_CD_VO");
-
- model.refresh();
- ]]>
- </script>
- <hint>
- <![CDATA[选择运输方式,获得到站信息]]>
- </hint>
- </select1>
- <caption id="caption9" class="cell" style="left:615px; top:55px; width:75px; height:20px; ">运输方式</caption>
- <select1 id="combo5" ref="/root/searchData/EXLV_LINE_CD" appearance="minimal" style="left:880px; top:55px; width:100px; height:20px; background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/LOVData/EXLV_LINE_CD_VO/EXLV_LINE_CD_Row">
- <label ref="EXLV_LINE_CD_DESC"/>
- <value ref="EXLV_LINE_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="cell" style="left:805px; top:55px; width:70px; height:20px; ">专用线</caption>
- <caption id="caption11" class="cell" visibility="hidden" style="left:815px; top:0px; width:60px; height:20px; ">是否水运</caption>
- <select1 id="combo6" ref="/root/searchData/BY_SEA_YN" visibility="hidden" appearance="minimal" style="left:880px; top:0px; width:95px; height:20px; background-color:#ffff99; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption12" class="cell" style="left:805px; top:25px; width:70px; height:20px; ">发货指示号</caption>
- <input id="input5" ref="/root/searchData/DLIV_DIRNO" maxlength="12" style="left:880px; top:25px; width:100px; height:20px; background-color:#ffff99; "/>
- <caption id="caption21" class="cell" style="left:120px; top:0px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">班次</caption>
- <caption id="caption23" class="cell" style="left:265px; top:0px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">班组</caption>
- <select1 id="combo7" ref="/root/WK/ENTRY_REG" appearance="minimal" editmode="input" style="left:490px; top:0px; width:80px; height:20px; background-color:#ffff99; ">
- <choices>
- <item>
- <label>刘文</label>
- <value>刘文</value>
- </item>
- <item>
- <label>蔡伟平</label>
- <value>蔡伟平</value>
- </item>
- <item>
- <label>廖林敏</label>
- <value>廖林敏</value>
- </item>
- <item>
- <label>李斌</label>
- <value>李斌</value>
- </item>
- <item>
- <label>敖艳敏</label>
- <value>敖艳敏</value>
- </item>
- <item>
- <label>吴贤峰</label>
- <value>吴贤峰</value>
- </item>
- <item>
- <label>钟超</label>
- <value>钟超</value>
- </item>
- </choices>
- </select1>
- <caption id="caption13" class="cell" style="left:575px; top:0px; width:60px; height:20px; border-color:#000000; ">出库时间</caption>
- <select1 id="combo8" ref="/root/WK/ENTRY_SHIFT" appearance="minimal" style="left:180px; top:0px; width:80px; height:20px; background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/WK/ENTRY_SHIFT_VO/ENTRY_SHIFT_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption14" class="cell" style="left:430px; top:0px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">出库人</caption>
- <select1 id="combo9" ref="/root/WK/ENTRY_GROUP" appearance="minimal" style="left:325px; top:0px; width:100px; height:20px; background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/WK/ENTRY_GROUP_VO/ENTRY_GROUP_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <input id="input6" ref="/root/WK/ENTRY_DTIME" inputtype="date" format="yyyy-mm-dd" style="left:635px; top:0px; width:100px; height:20px; background-color:#ffff99; "/>
- </xhtml:body>
- </xhtml:html>
|