| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415 |
- <?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[炼钢作业 >> 板坯库管理 >> 板坯外销发运(UIG080010)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <searchData>
- <SLAB_NO/>
- <PICKSTORAGETIME/>
- <LISTNUMBER/>
- <TRAINWAGON/>
- <PACTNO/>
- <PLANDATE/>
- </searchData>
- <datagrid1/>
- <resData/>
- <reqData/>
- <saveData>
- <PLT_TRS_CAR_NO/>
- <PLT_TRS_WKSHIFT>1</PLT_TRS_WKSHIFT>
- <PLT_TRS_WKGROUP>甲</PLT_TRS_WKGROUP>
- <PLT_TRS_EMP_ID/>
- <NUMBER/>
- <PLAN_ID/>
- <BPH/>
- </saveData>
- <datagrid2/>
- <tempData/>
- <datagrid3/>
- <Updata>
- <rowStuts>u</rowStuts>
- </Updata>
- <BK/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
-
- ]]>
- </script>
- </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/SLAB_NO" , input1.value);
- commSubmit("UIG080010-service" , "find" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/UIG080010Result_VO");
- model.refresh();
-
-
- }
-
- //发运操作
- function save(){
-
- // 表格中的行数
- var gridRows = datagrid1.rows - datagrid1.fixedRows;
-
- //清空发送接点
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //控制输入数据不能为空,前提是该行已经CHK 选择
- for(var i = datagrid1.fixedRows ; i < (gridRows + datagrid1.fixedRows) ; i++){
-
- if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) == "Y" &&
- ( input8.value== "" || input3.value=="" ) ){
-
- alert(" 提交数据有误,发运号或车辆号不能有空值 ");return;
- }
-
- if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) == "Y" &&
- ( datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_OUT_TP")) == "不允许出库")){
-
- alert(" 坯料不允许出库,联系质检! ");return;
- }
- }
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/NUMBER",model.getValue("/root/saveData/NUMBER"));
- model.makeValue("/root/reqData/PLAN_ID" , input3.value);
- //window.alert(model.getValue("/root/saveData/NUMBER"));
- model.makeValue("/root/reqData/PLT_TRS_WKGROUP" , combo2.value);
- model.makeValue("/root/reqData/PLT_TRS_CAR_NO" , input8.value);
- model.makeValue("/root/reqData/PLT_TRS_WKSHIFT" , combo1.value);
- model.makeValue("/root/reqData/PLT_TRS_EMP_ID" , input11.value);
- model.makeNode("/root/reqData");
- for(var i=0;i<datagrid1.rows;i++){
- datagrid1.rowStatus(i) = 2;
- }
- model.refresh();
-
- //model.makeValue("/root/saveData/BPH", datagrid1.valueMatrix(datagrid1.row, datagrid1.colRef("SERIALNUMBER")));
-
- b01MultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
-
- commSubmit("UIG080010-service","save","glueAction.do");
-
- model.copyNode("/root/BK" , "/root/resData/BK_VO");
-
- var messages = model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row");
- if(messages != "")
- {
- alert(messages);
- }
-
- BK.visible = true;button8.visible = true;
- datagrid1.clearStatus();
- find();
- }
-
- function saveback(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- for(var i=0;i<datagrid2.rows;i++){
- datagrid2.rowStatus(i) = 2;
- /*var chk = datagrid2.valueMatrix(i,datagrid2.colRef("CHK"));
- if(chk == "Y")
- {
- if(datagrid2.valueMatrix(i,datagrid2.colRef("MEMO")) == "")
- {
- alert("请输入退回原因!");
- return;
- }
- }*/
- }
- model.refresh();
- b01MultiUpdate(datagrid2,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
- model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));//getLoggingInInfo();//获取登录人信息
- commSubmit("UIG080010-service","saveBack","glueAction.do");
- model.copyNode("/root/BK" , "/root/resData/BK_VO");
- var messages = model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row");
- if(messages != "")
- {
- alert(messages);
- }
- BK.visible = true;button8.visible = true;
- datagrid2.clearStatus();
- find1();
-
- }
-
-
- function find1()
- {
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/PICKSTORAGETIME" , input2.value);
- model.makeValue("/root/reqData/LISTNUMBER" , input6.value);
- model.makeValue("/root/reqData/TRAINWAGON" , input4.value);
- model.makeValue("/root/reqData/PACTNO" , input5.value);
- commSubmit("UIG080010-service" , "find1" , "glueAction.do");
- model.copyNode("/root/datagrid2" , "/root/resData/UIG080010Result1_VO");
- model.refresh();
- }
-
- function find2()
- {
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/PLANDATE" , input10.value);
- commSubmit("UIG080010-service" , "find2" , "glueAction.do");
- model.copyNode("/root/datagrid3" , "/root/resData/UIG080010Result2_VO");
- model.refresh();
- }
-
- // function call_righ_UIG080010()
- // {
- // var rowId = datagrid2.row;
- // //设置跺位查询的默认跺位为 L 开头的炼钢板坯库
- // model.setValue("/root/tempData","L");
- // window.load("UIG040044.xrw","modal","", "left:600; top:78; width:320; height:480; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
- // datagrid2.valueMatrix(rowId,datagrid2.colRef("BUTTRESS")) = model.getValue("/root/tempData");
- // model1.removenode("/root/tempData");
- // model1.makeNode("/root/tempData");
- //
- // }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620" guideline="1,71;" style="border-color:#c0c0c0; border-style:solid; ">
- <caption id="caption1" style="left:-1px; top:214px; width:45px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">板坯号</caption>
- <input id="input1" ref="/root/searchData/SLAB_NO" style="left:39px; top:214px; width:100px; height:20px; "/>
- <caption id="caption2" style="left:579px; top:214px; width:45px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">班次</caption>
- <caption id="caption3" style="left:684px; top:214px; width:45px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">班组</caption>
- <caption id="caption4" style="left:789px; top:214px; width:45px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">登录人</caption>
- <select1 id="combo1" ref="/root/saveData/PLT_TRS_WKSHIFT" appearance="minimal" style="left:624px; top:214px; width:40px; height:20px; ">
- <choices>
- <item>
- <label>早</label>
- <value>1</value>
- </item>
- <item>
- <label>中</label>
- <value>2</value>
- </item>
- <item>
- <label>晚</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/saveData/PLT_TRS_WKGROUP" appearance="minimal" style="left:729px; top:214px; width:40px; height:20px; ">
- <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>
- </choices>
- </select1>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/UIG080010Result_Row" scroll="both" allowuserresize="true" caption="选择^板坯号^钢码^合同号^炉次号^出库判定^板坯^板坯^板坯^板坯^板坯^堆置位置^外销日期^外观等级^成分判定等级^瑕疵代码1^瑕疵代码2^瑕疵代码3^瑕疵代码4^班次^班组^登录人^明细号^车辆号^发运号^热送区分|选择^板坯号^钢码^合同号^炉次号^出库判定^厚度^宽度^长度^重量^称重重量(吨)^堆置位置^外销日期^外观等级^成分判定等级^瑕疵代码1^瑕疵代码2^瑕疵代码3^瑕疵代码4^班次^班组^登录人^明细号^车辆号^发运号^热送区分" colsep="^" colwidth="31, 100, 75, 100, 81, 100, 39, 39, 38, 39, 100, 70, 100, 39, 45, 100, 100, 100, 100, 67, 69, 47, 100, 100, 100, 100" defaultrows="9" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:-1px; top:244px; width:949px; height:195px; border-color:#000000; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col editable="false" ref="SLAB_NO" type="input"/>
- <col editable="false" ref="STL_GRD" type="input"/>
- <col ref="L2_SCH_NO"/>
- <col editable="false" ref="CHARGE_NO" type="input"/>
- <col ref="SLAB_OUT_TP"/>
- <col editable="false" ref="SLAB_THK" type="input"/>
- <col editable="false" ref="SLAB_WTH" type="input"/>
- <col editable="false" ref="SLAB_LEN" type="input"/>
- <col editable="false" ref="SLAB_WGT" type="input"/>
- <col editable="false" ref="WEIGHT_WGT" type="input"/>
- <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
- <col editable="false" ref="PLT_TRS_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="EXTSHAPE_GRD"/>
- <col ref="SLAB_INGR_DEC_GRD"/>
- <col ref="CRK_CD1" type="output"/>
- <col ref="CRK_CD2" type="output"/>
- <col ref="CRK_CD3" type="output"/>
- <col ref="CRK_CD4" type="output"/>
- <col ref="PLT_TRS_WKSHIFT" visibility="hidden"/>
- <col ref="PLT_TRS_WKGROUP" visibility="hidden"/>
- <col ref="PLT_TRS_EMP_ID" visibility="hidden"/>
- <col ref="NUMBER" visibility="hidden"/>
- <col ref="PLT_TRS_CAR_NO" visibility="hidden"/>
- <col ref="PLAN_ID" visibility="hidden"/>
- <col ref="HCR_CLF"/>
- </datagrid>
- <caption id="caption5" style="left:0px; top:445px; width:60px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">外销日期</caption>
- <datagrid id="datagrid2" nodeset="/root/datagrid2/UIG080010Result1_Row" allowuserresize="true" caption="选择^板坯号^发运号^合同号^明细号^车辆号^发运时间^发运操作人^发运班次^发运班组^板坯^板坯^板坯^板坯^板坯^板坯退回放置位置^退回原因^炉号^收货单位^连铸号^产线^牌号^订货单位|选择^板坯号^发运号^合同号^明细号^车辆号^发运时间^发运操作人^发运班次^发运班组^厚度^宽度^长度^重量^过磅重量^板坯退回放置位置^退回原因^炉号^收货单位^连铸号^产线^牌号^订货单位" colsep="^" colwidth="43, 91, 100, 70, 83, 71, 100, 85, 72, 78, 32, 33, 33, 51, 100, 90, 100, 78, 100, 100, 100, 100, 100" defaultrows="18" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:-1px; top:469px; width:949px; height:230px; border-color:#000000; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col editable="false" ref="SERIALNUMBER" type="input"/>
- <col ref="PLANVEHICLEID" type="input"/>
- <col editable="false" ref="PACTNO" type="input"/>
- <col key="false" ref="LISTNUMBER" type="input"/>
- <col key="false" ref="TRAINWAGON" type="input"/>
- <col ref="PICKSTORAGETIME"/>
- <col key="false" ref="PICKSTORAGEMAN" type="input"/>
- <col key="false" ref="CLASSORDER" type="input"/>
- <col key="false" ref="CLASSTEAM" type="input"/>
- <col editable="false" ref="THICK" type="input"/>
- <col editable="false" ref="WIDTH" type="input"/>
- <col editable="false" ref="LENGTH" type="input"/>
- <col editable="false" ref="WEIGHT" type="input"/>
- <col key="false" ref="GBZL" type="input"/>
- <col ref="BUTTRESS" type="inputbutton" style="background-color:#ffff99; "/>
- <col editable="true" ref="MEMO" type="input" style="background-color:#ffff99; "/>
- <col ref="STOVENO"/>
- <col ref="INCEPTCORPNAME"/>
- <col ref="CCMID"/>
- <col ref="CXLY"/>
- <col ref="STEEL"/>
- <col ref="BUYERCODE"/>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- datagrid2.rowStatus(datagrid2.row) = 0;
- ]]>
- </script>
- </datagrid>
- <input id="input2" ref="/root/searchData/PICKSTORAGETIME" inputtype="date" style="left:60px; top:445px; width:100px; height:20px; "/>
- <caption id="caption7" style="left:334px; top:444px; width:45px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">车辆号</caption>
- <caption id="caption8" style="left:494px; top:444px; width:50px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">板坯号</caption>
- <caption id="caption9" style="left:179px; top:444px; width:45px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">发运号</caption>
- <input id="input4" ref="/root/searchData/TRAINWAGON" style="left:379px; top:444px; width:100px; height:20px; "/>
- <input id="input5" ref="/root/searchData/PACTNO" style="left:544px; top:444px; width:100px; height:20px; "/>
- <input id="input6" ref="/root/searchData/LISTNUMBER" style="left:224px; top:444px; width:100px; height:20px; "/>
- <button id="button1" style="left:664px; top:444px; width:55px; height:20px; background-color:#99ccff; border-style:solid; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find1();
- ]]>
- </script>
- </button>
- <button id="button2" style="left:824px; top:444px; width:55px; height:20px; background-color:#99ccff; border-color:#000000; border-style:solid; ">
- <caption>退回</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- saveback()
- ]]>
- </script>
- </button>
- <button id="button3" visibility="visible" style="left:149px; top:214px; width:45px; height:20px; background-color:#99ccff; border-style:solid; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var name = model.getValue("/root/initData/rcvInfo/REG_NM");
- input11.value = name;
- find();
- ]]>
- </script>
- </button>
- <caption id="caption10" visibility="hidden" style="left:194px; top:204px; width:45px; height:20px; font-weight:bold; color:#000000; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">明细号</caption>
- <input id="input7" ref="/root/saveData/NUMBER" visibility="hidden" style="left:194px; top:224px; width:100px; height:20px; "/>
- <caption id="caption11" style="left:449px; top:214px; width:45px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">车辆号</caption>
- <input id="input8" ref="/root/saveData/PLT_TRS_CAR_NO" style="left:494px; top:214px; width:65px; height:20px; "/>
- <input id="input3" ref="/root/saveData/PLAN_ID" style="left:344px; top:214px; width:85px; height:20px; " editable="false"/>
- <caption id="caption6" style="left:299px; top:214px; width:45px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">发运号</caption>
- <datagrid id="datagrid3" nodeset="/root/datagrid3/UIG080010Result2_Row" allowuserresize="true" caption="选择^合同号^收货单位^到站^发运号^计划号^发运车数^排车量^排车日期^牌号^车牌号^发运类型^运输类型|选择^合同号^收货单位^到站^发运号^计划号^发运车数^排车量^排车日期^牌号^车牌号^发运类型^运输类型" colsep="^" colwidth="43, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" defaultrows="18" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:4px; top:25px; width:945px; height:175px; border-color:#000000; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col key="false" ref="PACTNO" type="input"/>
- <col ref="INCEPTCORPNAME"/>
- <col ref="STATIONNAME"/>
- <col key="false" ref="ASKPLAN_ID" type="input"/>
- <col ref="PACTINDEXDETAIL"/>
- <col ref="SENDQUANTITY"/>
- <col ref="WEIGHT"/>
- <col ref="PLANDATE"/>
- <col ref="STEELCODE"/>
- <col ref="VECIHLENO"/>
- <col ref="NAME_ TRANSTYPE"/>
- <col ref="NAME_ TRAINTYPE"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- datagrid2.rowStatus(datagrid2.row) = 0;
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var fayunno = datagrid3.valueMatrix(datagrid3.row , datagrid3.colRef("ASKPLAN_ID"))
- var carno = datagrid3.valueMatrix(datagrid3.row , datagrid3.colRef("VECIHLENO"))
-
- input3.value = fayunno;
- input8.value = carno;
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption12" style="left:0px; top:0px; width:45px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">发运号</caption>
- <input id="input9" style="left:45px; top:0px; width:100px; height:20px; "/>
- <caption id="caption13" style="left:160px; top:0px; width:60px; height:20px; font-weight:bold; vertical-align:middle; background-color:#99ccff; border-color:#000000; border-style:solid; ">排车时间</caption>
- <button id="button4" style="left:330px; top:0px; width:55px; height:20px; background-color:#99ccff; border-style:solid; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find2();
- ]]>
- </script>
- </button>
- <input id="input10" ref="/root/searchData/PLANDATE" inputtype="date" style="left:220px; top:0px; width:105px; height:20px; "/>
- <button id="button5" visibility="hidden" style="left:244px; top:205px; width:30px; height:20px; background-color:#ccffff; border-style:solid; ">
- <caption>保存</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <button id="button6" visibility="hidden" style="left:469px; top:9px; width:100px; height:20px; ">
- <caption>button6</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <button id="button7" visibility="hidden" style="left:629px; top:9px; width:100px; height:20px; ">
- <caption>button7</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <datagrid id="BK" nodeset="/root/BK/BK_Row" visibility="hidden" scroll="vertical" caption="板坯号^操作情况" colsep="^" colwidth="141, 152" rowsep="|" style="left:284px; top:304px; width:335px; height:110px; ">
- <col ref="SLAB_NO" type="input"/>
- <col ref="TISHI" type="input"/>
- </datagrid>
- <button id="button8" visibility="hidden" style="left:579px; top:304px; width:25px; height:20px; ">
- <caption>╳</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- BK.visible = false;
- button8.visible = false;
- ]]>
- </script>
- </button>
- <input id="input11" ref="/root/saveData/PLT_TRS_EMP_ID" style="left:834px; top:214px; width:100px; height:20px; "/>
- </xhtml:body>
- </xhtml:html>
|