| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <?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[炼钢作业 >> 板坯库管理 >> 炼钢板坯库出库明细查询]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <SLAB_NO/>
- <SLAB_RT/>
- <STL_GRD/>
- <REG_FROM_TIME/>
- <REG_END_TIME/>
- <ORD_NO/>
- <SLAB_WTH_MIN>0</SLAB_WTH_MIN>
- <SLAB_WTH_MAX>10000</SLAB_WTH_MAX>
- </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();
- input5.value = commCurDate();
- input6.value = commCurDate();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function excelExport(){
- return datagrid1;
- }
- function find(){
- 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("UIG040301-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")));
- }
- datagrid1.refresh();
- //出库时间为空时则是炼钢入库时间,字体特殊显示
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- var actCol = datagrid1.colRef("YARD_EXT_DTIME");
- datagrid1.cellStyle("color" , i , actCol) = "#000000";
- var isnull = datagrid1.valueMatrix(i,datagrid1.colRef("SMS_YARD_EXT_DTIME"));
- if(null == isnull || "" == isnull) {
- datagrid1.cellStyle("color" , i , actCol) = "#696969";
- }
- }
- 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:242px; top:0px; 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:470px; 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="caption4" class="cell" style="left:409px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">钢 种</caption>
- <caption id="caption5" class="cell" style="left:590px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯去向</caption>
- <input id="input4" ref="/root/formData/SLAB_NO" style="left:303px; top:0px; width:100px; height:20px; "/>
- <datagrid id="datagrid1" nodeset="/root/grid/SLAB_TAKEIN_RESULT_VO/SLAB_TAKEIN_RESULT_Row" caption="板坯号^钢种^厚^宽^长^重量^称重重量^堆垛位置^冶炼时间^出库时间^SMS_YARD_EXT_DTIMERE^合同号^备注|板坯号^钢种^厚^宽^长^重量^称重重量^堆垛位置^冶炼时间^出库时间^SMS_YARD_EXT_DTIMERE^合同号^备注" colsep="^" colwidth="100, 100, 50, 50, 50, 70, 66, 100, 100, 100,120, 100, 264" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:45px; width:980px; height:555px; ">
- <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="BOF_STA_DTIME" format="yyyy-mm-dd hh:nn"/>
- <col editable="false" ref="YARD_EXT_DTIME" type="input" format="yyyy-mm-dd hh:nn"/>
- <col ref="SMS_YARD_EXT_DTIME" visibility="hidden"/>
- <col editable="false" ref="ORD_NO" type="input"/>
- <col ref="REMARKS" type="input"/>
- </datagrid>
- <caption id="caption13" class="cell" style="left:0px; top:0px; width:64px; height:20px; font-weight:bold; border-color:#000000; ">出库时间</caption>
- <line id="line4" style="x1:146px; y1:10px; x2:151px; y2:10px; "/>
- <input id="input5" ref="/root/formData/REG_FROM_TIME" class="input" inputtype="date" style="left:61px; 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:150px; 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>
- <caption id="caption2" class="cell" style="left:740px; top:0px; width:61px; height:20px; font-weight:bold; border-color:#000000; ">合同号</caption>
- <input id="input1" ref="/root/formData/ORD_NO" style="left:802px; top:0px; width:95px; height:20px; "/>
- <select1 id="combo2" ref="/root/formData/SLAB_RT" appearance="minimal" editmode="inputsearch" style="left:651px; top:0px; 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>W</value>
- </item>
- <item>
- <label>---全部---</label>
- <value/>
- </item>
- </choices>
- </select1>
- <button id="button2" visibility="hidden" style="left:900px; top:2px; width:100px; height:20px; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <caption id="caption10" class="cell" style="left:835px; top:25px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
- <caption id="caption11" style="left:820px; top:26px; width:20px; height:20px; font-weight:bold; ">块</caption>
- <caption id="caption12" style="left:960px; top:25px; width:20px; height:20px; font-weight:bold; ">吨</caption>
- <line id="line2" style="x1:780px; y1:43px; x2:820px; y2:43px; "/>
- <line id="line3" style="x1:895px; y1:43px; x2:960px; y2:43px; "/>
- <output id="output1" ref="/root/totalData/slabCnt" style="left:780px; top:25px; width:40px; height:20px; text-align:center; "/>
- <caption id="caption9" class="cell" style="left:720px; top:25px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">块数合计</caption>
- <output id="output2" ref="/root/totalData/slabWgt" style="left:895px; top:25px; width:65px; height:20px; text-align:center; "/>
- <caption id="caption3" class="cell" style="left:0px; top:22px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯宽度</caption>
- <input id="input2" ref="/root/formData/SLAB_WTH_MIN" style="left:60px; top:22px; width:85px; height:20px; "/>
- <input id="input3" ref="/root/formData/SLAB_WTH_MAX" style="left:150px; top:22px; width:85px; height:20px; "/>
- </xhtml:body>
- </xhtml:html>
|