| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <?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[炼钢作业 >> 板坯库管理 >> 炼钢板坯库入库明细查询(UIG040300)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <SLAB_NO/>
- <STL_GRD/>
- <REG_END_TIME/>
- <REG_FROM_TIME/>
- <SLAB_RT/>
- </formData>
- <grid/>
- <initResult/>
- <reqData/>
- <resData/>
- <totalData>
- <slabCnt/>
- <slabWgt/>
- </totalData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- commSubmit("UIG04COMBOX-service","stlSch","glueAction.do");//提交服务
- model.duplicate("/root/initResult","/root/resData");//复制结点
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function excelExport(){
- return datagrid1;
- }
-
- function find(){
- if(input4.value == "")
- {
- if(commDiffDay(input5.value,input6.value)>10)
- {
- window.alert("查询时间不能超过10天");
- return;
- }
- }
- if(model.getValue("/root/formData/REG_END_TIME") == null || model.getValue("/root/formData/REG_END_TIME") == "" || model.getValue("/root/formData/REG_FROM_TIME") == null || model.getValue("/root/formData/REG_FROM_TIME") == ""){
- var curDate = CurentDate();
- model.setValue("/root/formData/REG_END_TIME",curDate);
- model.setValue("/root/formData/REG_FROM_TIME",curDate);
- }
- commSendReq("/root/formData");
- commSubmit("UIG040300-service","find","glueAction.do");
-
- 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"/>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption1" class="cell" style="left:0px; top:0px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">板 坯 号</caption>
- <select1 id="combo1" ref="/root/formData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:525px; top:0px; width:113px; 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>
- <caption id="caption5" class="cell" style="left:437px; top:0px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">钢 种</caption>
- <input id="input4" ref="/root/formData/SLAB_NO" style="left:86px; top:0px; width:100px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/grid/SLAB_TAKEIN_RESULT_VO/SLAB_TAKEIN_RESULT_Row" disabled="false" caption="板坯号^钢种^厚^宽^长^重量^称重重量^堆垛位置^去向^冶炼时间^入库时间^合同号(中厚板)^备注|板坯号^钢种^厚^宽^长^重量^称重重量^堆垛位置^去向^冶炼时间^入库时间^合同号(中厚板)^备注" colsep="^" colwidth="100, 100, 50, 50, 50, 70, 70, 100, 57, 100, 120, 107, 264" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:50px; width:980px; height:550px; ">
- <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 ref="WEIGHT_WGT"/>
- <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
- <col ref="SLAB_RT" type="combo">
- <choices>
- <item>
- <label>卷板</label>
- <value>H</value>
- </item>
- <item>
- <label>中板</label>
- <value>Z</value>
- </item>
- <item>
- <label>厚板</label>
- <value>P</value>
- </item>
- </choices>
- </col>
- <col ref="BOF_STA_DTIME" format="yyyy-mm-dd hh:nn"/>
- <col editable="false" ref="SMS_YARD_ENT_DTIME" type="input" format="yyyy-mm-dd hh:nn"/>
- <col editable="false" ref="ORD_NO" type="input"/>
- <col ref="REMARKS" type="input"/>
- </datagrid>
- <caption id="caption13" class="cell" style="left:195px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">入库时间</caption>
- <input id="input5" ref="/root/formData/REG_FROM_TIME" class="input" inputtype="date" style="left:256px; top:0px; width:85px; 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="input6" ref="/root/formData/REG_END_TIME" class="input" inputtype="date" style="left:345px; top:0px; width:85px; 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:341px; y1:10px; x2:346px; y2:10px; "/>
- <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; "/>
- <select1 id="combo2" ref="/root/formData/SLAB_RT" appearance="minimal" editmode="inputsearch" style="left:61px; top:25px; width:83px; height:20px; text-align:left; ">
- <choices>
- <item>
- <label>卷板</label>
- <value>H</value>
- </item>
- <item>
- <label>中板</label>
- <value>Z</value>
- </item>
- <item>
- <label>厚板</label>
- <value>P</value>
- </item>
- <item>
- <label>---全部---</label>
- <value/>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="cell" style="left:0px; top:25px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯去向</caption>
- </xhtml:body>
- </xhtml:html>
|