| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- <?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[炼钢作业 >> 板坯库管理 >> 热轧原料库入出库明细查询(UIG040800)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <SLAB_NO/>
- <REG_FROM_TIME/>
- <STL_GRD/>
- <REG_END_TIME/>
- <FROM_DATE/>
- <FROM_TIME>000000</FROM_TIME>
- <END_DATE/>
- <END_TIME>235959</END_TIME>
- <SLAB_FAC/>
- <SLAB_STOCK_TYPE/>
- <SLAB_MIN_LEN>0</SLAB_MIN_LEN>
- <SLAB_MAX_LEN>100000</SLAB_MAX_LEN>
- <SLAB_MIN_WTH>0</SLAB_MIN_WTH>
- <SLAB_MAX_WTH>100000</SLAB_MAX_WTH>
- <IGR_LAG_FROM_DTIME>-999999999</IGR_LAG_FROM_DTIME>
- <IGR_LAG_TO_DTIME>999999999</IGR_LAG_TO_DTIME>
- <CUT_LAG_FROM_DTIME>-999999999</CUT_LAG_FROM_DTIME>
- <CUT_LAG_TO_DTIME>999999999</CUT_LAG_TO_DTIME>
- <ORD_NO/>
- <ORD_SEQ/>
- <TYPE/>
- <SLAB_STOCK_EXT_TYPE/>
- <ROLL_MANA_NO/>
- </formData>
- <grid/>
- <reqData/>
- <resData/>
- <initResult/>
- <totalData>
- <slabCnt/>
- <slabWgt/>
- </totalData>
- <initData>
- <LG_CD>D01003,D01001,G04001,G04002</LG_CD>
- </initData>
- <codeData>
- <ORD_SEQ/>
- </codeData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- initPage();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function excelExport(){
- return datagrid1;
- }
- function initPage(){
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
- commSendReq("root/reqData");
- commSubmit("UIG04COMBOX-service","stlSch","glueAction.do");//提交服务
- model.duplicate("/root/initResult","/root/resData");//复制结点
- model.refresh();
- }
-
- function find(){
- if(input4.value == "")
- {
- if(commDiffDay(input5.value,input6.value)>10)
- {
- window.alert("查询时间不能超过10天");
- return;
- }
- }
- if(model.getValue("/root/formData/END_DATE") == null || model.getValue("/root/formData/END_DATE") == "" || model.getValue("/root/formData/REG_FROM_TIME") == null || model.getValue("/root/formData/REG_FROM_TIME") == ""){
- var curDate = CurentDate();
- model.setValue("/root/formData/END_DATE",curDate);
- model.setValue("/root/formData/FROM_DATE",curDate);
- }
-
- model.setValue("/root/formData/REG_END_TIME",model.getValue("/root/formData/END_DATE") + model.getValue("/root/formData/END_TIME"));
- model.setValue("/root/formData/REG_FROM_TIME",model.getValue("/root/formData/FROM_DATE") + model.getValue("/root/formData/FROM_TIME"));
-
- commSendReq("/root/formData");
- if(model.getValue("/root/formData/TYPE") == "enter"){
- commSubmit("UIG040800-service","enter","glueAction.do");
- }else if (model.getValue("/root/formData/TYPE") == "exit"){
- commSubmit("UIG040800-service","exit","glueAction.do");
- }else{
- model.setValue("/root/formData/TYPE","enter");
- commSubmit("UIG040800-service","enter","glueAction.do");
- }
- //alert("a");
- commAppendData("/root/grid/SLAB_TAKEIN_RESULT_VO","/root/resData/SLAB_TAKEIN_RESULT_VO");
-
-
- datagrid1.refresh();
- var slabCnt = 0;
- var slabWgt = 0;
- datagrid1.refresh();
- for(var i = 1 ; i < datagrid1.rows-1 ; i++){
- datagrid1.valueMatrix(i+1,datagrid1.colRef("SEQ")) = i;
- slabCnt = slabCnt + 1;
- slabWgt = slabWgt + parseFloat(datagrid1.valueMatrix(i+1,datagrid1.colRef("SLAB_WGT")));
- }
-
- model.setValue("/root/totalData/slabCnt",slabCnt);
- model.setValue("/root/totalData/slabWgt",slabWgt/1000);
- output1.refresh();
- output2.refresh();
-
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/G02.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- </xhtml:head>
- <xhtml:body>
- <datagrid id="datagrid1" nodeset="/root/grid/SLAB_TAKEIN_RESULT_VO/SLAB_TAKEIN_RESULT_Row" caption="序号^板坯号^钢种^厚^宽^长^重量^堆垛位置^入库时间^合同号^工序^工序^工序^订单号^开浇时间^浇铸结束时间^判定时间^caption1^判定滞后时间(小时)^切割时间^切割滞后时间(小时)^备注|序号^板坯号^钢种^厚^宽^长^重量^堆垛位置^入库时间^合同号^RH^LF^坑冷^订单号^开浇时间^浇铸结束时间^判定时间^caption1^判定滞后时间(小时)^切割时间^切割滞后时间(小时)^备注" colsep="^" colwidth="38, 100, 100, 50, 50, 50, 70, 100, 120, 100, 31, 32, 43, 100, 100, 100, 100, 100, 100, 100, 100, 264" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:980px; height:525px; ">
- <col ref="SEQ"/>
- <col editable="false" ref="SLAB_NO" type="input"/>
- <col editable="false" ref="STL_GRD" type="input"/>
- <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="CUR_LOAD_LOC" type="input"/>
- <col editable="false" ref="SLAB_STOCK_ENT_DTIME" type="input" format="yyyy-mm-dd hh:nn"/>
- <col ref="ORD_NO"/>
- <col ref="RH"/>
- <col ref="LF"/>
- <col ref="KL"/>
- <col ref="ORD_SEQ"/>
- <col ref="CASTING_STA_DTIME" format="yyyy-mm-dd hh:nn"/>
- <col ref="CASTING_END_DTIME" format="yyyy-mm-dd hh:nn"/>
- <col ref="INGR_DEC_DTIME" format="yyyy-mm-dd hh:nn"/>
- <col/>
- <col ref="CUT_LAG_DTIME"/>
- <col ref="SLAB_CUT_DTIME" format="yyyy-mm-dd hh:nn"/>
- <col ref="CUT_LAG_DTIME"/>
- <col ref="REMARKS" type="input"/>
- </datagrid>
- <caption id="caption10" class="cell" style="left:835px; top:5px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
- <caption id="caption11" style="left:820px; top:6px; width:20px; height:20px; font-weight:bold; ">块</caption>
- <caption id="caption12" style="left:960px; top:5px; width:20px; height:20px; font-weight:bold; ">吨</caption>
- <line id="line2" style="x1:730px; y1:25px; x2:790px; y2:25px; "/>
- <line id="line3" style="x1:880px; y1:25px; x2:960px; y2:25px; "/>
- <caption id="caption9" class="cell" style="left:720px; top:5px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">块数合计</caption>
- <output id="output1" ref="/root/totalData/slabCnt" style="left:780px; top:5px; width:40px; height:20px; text-align:center; "/>
- <output id="output2" ref="/root/totalData/slabWgt" style="left:895px; top:5px; width:65px; height:20px; text-align:center; "/>
- <caption id="caption1" class="cell" style="left:0px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯号</caption>
- <select1 id="combo1" ref="/root/formData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:489px; top:0px; width:90px; height:20px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/initResult/resData/STL_GRD_SELECT_VO/STL_GRD_SELECT_Row">
- <label ref="FAC_STL_GRD"/>
- <value ref="FAC_CODE"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/formData/SLAB_FAC" appearance="minimal" editmode="inputsearch" style="left:215px; top:25px; width:90px; height:20px; text-align:left; ">
- <choices>
- <item>
- <label>一钢厂</label>
- <value>一钢</value>
- </item>
- <item>
- <label>二钢厂</label>
- <value>二钢</value>
- </item>
- <item>
- <label>三钢厂</label>
- <value>三钢</value>
- </item>
- <item>
- <label>全部</label>
- <value/>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell" style="left:155px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">产 地</caption>
- <caption id="caption13" class="cell" style="left:0px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">入库时间</caption>
- <caption id="caption4" class="cell" style="left:429px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">钢 种</caption>
- <input id="input2" ref="/root/formData/FROM_TIME" class="input" format="hh:nn:ss" style="left:205px; top:0px; width:65px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/formData/REG_END_TIME") == null || model.getValue("/root/formData/REG_END_TIME") == ""||
- model.getValue("/root/formData/REG_FROM_TIME") > model.getValue("/root/formData/REG_END_TIME")){
- model.setValue("/root/formData/REG_END_TIME",model.getValue("/root/formData/REG_FROM_TIME"));
- input6.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/formData/END_TIME" class="input" format="hh:nn:ss" style="left:369px; top:0px; width:56px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/formData/REG_FROM_TIME") == null || model.getValue("/root/formData/REG_FROM_TIME") == ""||
- model.getValue("/root/formData/REG_FROM_TIME") > model.getValue("/root/formData/REG_END_TIME")){
- model.setValue("/root/formData/REG_FROM_TIME",model.getValue("/root/formData/REG_END_TIME"));
- input5.refresh();
- }
- ]]>
- </script>
- </input>
- <line id="line4" style="x1:269px; y1:10px; x2:279px; y2:10px; "/>
- <input id="input4" ref="/root/formData/SLAB_NO" style="left:60px; top:25px; width:90px; height:20px; "/>
- <input id="input5" ref="/root/formData/FROM_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:115px; top:0px; width:90px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/formData/END_DATE") == null || model.getValue("/root/formData/END_DATE") == ""||
- model.getValue("/root/formData/FROM_DATE") > model.getValue("/root/formData/END_DATE")){
- model.setValue("/root/formData/END_DATE",model.getValue("/root/formData/FROM_DATE"));
- input6.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="input6" ref="/root/formData/END_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:279px; top:0px; width:90px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/formData/FROM_DATE") == null || model.getValue("/root/formData/FROM_DATE") == ""||
- model.getValue("/root/formData/FROM_DATE") > model.getValue("/root/formData/END_DATE")){
- model.setValue("/root/formData/FROM_DATE",model.getValue("/root/formData/END_DATE"));
- input5.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" class="cell" style="left:584px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">入库类型</caption>
- <select1 id="combo8" ref="/root/formData/SLAB_STOCK_TYPE" appearance="minimal" style="left:644px; top:0px; width:60px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G04001' or LG_CD = 'A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/formData/SLAB_MIN_LEN" appearance="minimal" editmode="input" style="left:370px; top:25px; width:60px; height:20px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'D01003']">
- <label ref="SM_CD"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo4" ref="/root/formData/SLAB_MAX_LEN" appearance="minimal" editmode="input" style="left:437px; top:25px; width:65px; height:20px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'D01003']">
- <label ref="SM_CD"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="cell" style="left:310px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">长度范围</caption>
- <line id="line1" style="x1:431px; y1:35px; x2:436px; y2:35px; "/>
- <caption id="caption15" class="cell" style="left:507px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">宽度范围</caption>
- <select1 id="combo11" ref="/root/formData/SLAB_MIN_WTH" appearance="minimal" editmode="input" style="left:567px; top:25px; width:60px; height:20px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'D01001']">
- <label ref="SM_CD"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo12" ref="/root/formData/SLAB_MAX_WTH" appearance="minimal" editmode="input" style="left:634px; top:25px; width:65px; height:20px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'D01001']">
- <label ref="SM_CD"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <line id="line6" style="x1:628px; y1:35px; x2:633px; y2:35px; "/>
- <input id="input7" ref="/root/formData/CUT_LAG_FROM_DTIME" visibility="hidden" style="left:606px; top:50px; width:63px; height:20px; "/>
- <input id="input8" ref="/root/formData/IGR_LAG_TO_DTIME" visibility="hidden" style="left:456px; top:50px; width:63px; height:20px; "/>
- <input id="input9" ref="/root/formData/CUT_LAG_TO_DTIME" visibility="hidden" style="left:670px; top:50px; width:58px; height:20px; "/>
- <caption id="caption26" class="cell" visibility="hidden" style="left:310px; top:50px; width:82px; height:20px; font-weight:bold; border-color:#000000; ">判定滞后时间</caption>
- <caption id="caption27" class="cell" visibility="hidden" style="left:520px; top:50px; width:86px; height:20px; font-weight:bold; border-color:#000000; ">切割滞后时间</caption>
- <input id="input1" ref="/root/formData/IGR_LAG_FROM_DTIME" visibility="hidden" style="left:392px; top:50px; width:63px; height:20px; "/>
- <caption id="caption6" class="cell" style="left:0px; top:50px; width:90px; height:20px; vertical-align:middle; ">合同号</caption>
- <select1 id="combo5" ref="/root/formData/ORD_SEQ" appearance="minimal" editmode="search" style="left:174px; top:50px; width:45px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/ORD_SEQ/rs_VO/rs_Row">
- <label ref="ORD_SEQ"/>
- <value ref="ORD_SEQ"/>
- </itemset>
- </choices>
- </select1>
- <input id="input10" ref="/root/formData/ORD_NO" maxlength="12" style="left:92px; top:50px; width:80px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/formData/ORD_SEQ", "");
- commSendReq("/root/formData");
- commSubmit("UIG040200-service","seq","glueAction.do");
- //model.setValue("/root/formData/searchInfo/ORD_SEQ", model.getValue("/root/codeData/ORD_SEQ/ListResult_0_VO/ListResult_0_Row[ORD_SEQ != '']/ORD_SEQ"));
- model.copyNode("/root/codeData/ORD_SEQ","/root/resData");
- ]]>
- </script>
- </input>
- <select1 id="combo6" ref="/root/formData/TYPE" appearance="minimal" style="left:60px; top:0px; width:55px; height:20px; ">
- <choices>
- <item>
- <label>入库</label>
- <value>enter</value>
- </item>
- <item>
- <label>出库</label>
- <value>exit</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="cell" style="left:720px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">出库类型</caption>
- <select1 id="combo7" ref="/root/formData/SLAB_STOCK_EXT_TYPE" appearance="minimal" style="left:780px; top:25px; width:60px; height:20px; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'G04002' or LG_CD = 'A']">
- <label ref="SM_EFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|