| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
- <?xml-stylesheet href="../css/bCommon.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[统计管理>>现况分析>>板坯现况查询]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <StDate/>
- <EndDate/>
- <StlGrd/>
- <CHARGE_NO/>
- <SHEN_STIME/>
- <SHEN_ETIME/>
- <stlgrd/>
- <chargeNo1/>
- </formData>
- <reqData/>
- <resData/>
- <datagrid1/>
- <datagrid2/>
- <datagrid3/>
- <aaa>
- <a/>
- <b/>
- <c/>
- <d/>
- <e/>
- <f/>
- </aaa>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(window.parent==null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/b01.js"/>
- <script type="javascript">
- <![CDATA[
- function Init(node)
- {
- input2.value = commCurDate();
- input3.value = commCurDate();
- }
- function find()
- {
- if(commDiffDay(input2value,input3.value)>10)
- {
- window.alert("查询时间不能超过10天");
- return;
- }
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSendReq("/root/formData");
- model.makeValue("/root/reqData/CHARGENO" , input1.value.Trim());//炉号
- if(input7.value.Trim() == "")
- {
- model.makeValue("/root/reqData/CHARGENO1" , input1.value.Trim());//炉号
- }
- else
- {
- model.makeValue("/root/reqData/CHARGENO1" , input7.value.Trim());
- }
- model.makeValue("/root/reqData/SHEN_SDTIME", input2.value.Trim()+"0000");//生产开始时间
- model.makeValue("/root/reqData/SHEN_EDTIME", input3.value.Trim()+"9999");//生产结束时间
- model.makeValue("/root/reqData/STLGRD" , input5.value.Trim());
-
- commSubmit("UIB030201-service", "find", "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/ListResult_1_VO");
- model.copyNode("/root/datagrid2" , "/root/resData/ListResult_2_VO");
- model.copyNode("/root/datagrid3" , "/root/resData/ListResult_3_VO");
- model.refresh();
-
- tongji();
- }
-
- function tongji()
- {
- datagrid1.rebuildStyle();
- datagrid2.rebuildStyle();
- datagrid3.rebuildStyle();
- datagrid1.rebuild();
- datagrid2.rebuild();
- datagrid3.rebuild();
- input4.value = datagrid1.rows-datagrid1.fixedRows;
- /////////////--------------------------------------------
- input6.value = datagrid2.rows-datagrid2.fixedRows;
- /////////////--------------------------------------------
- input8.value = datagrid3.rows-datagrid3.fixedRows;
- datagrid1.subtotal("sum", -1, datagrid1.colRef("SLAB_WGT"), "#,###", "background-color:#99ff99", 1, "统计");
- datagrid2.subtotal("sum", -1, datagrid2.colRef("SLAB_WGT"), "#,###", "background-color:#99ff99", 1, "统计");
- datagrid3.subtotal("sum", -1, datagrid3.colRef("SLAB_WGT"), "#,###", "background-color:#99ff99", 1, "统计");
- // datagrid1.subtotal("count", -1, datagrid1.colRef("ORD_NO"), "#,###", "background-color:#99ff99", 1, "统计");
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line3" style="x1:0px; y1:27px; x2:980px; y2:27px; "/>
- <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:820px; top:5px; width:1px; height:1px; "/>
- <input id="input1" ref="/root/formData/CHARGE_NO" style="left:80px; top:5px; width:100px; height:20px; "/>
- <caption id="caption1" class="cell" style="left:310px; top:5px; width:100px; height:20px; ">生产日期</caption>
- <input id="input2" ref="/root/formData/SHEN_STIME" inputtype="date" style="left:410px; top:5px; width:100px; height:20px; "/>
- <line id="line2" style="x1:510px; y1:15px; x2:530px; y2:15px; "/>
- <input id="input3" ref="/root/formData/SHEN_ETIME" inputtype="date" style="left:535px; top:5px; width:100px; height:20px; "/>
- <caption id="caption2" class="cell" style="left:0px; top:5px; width:80px; height:20px; ">炉号</caption>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/ListResult_1_Row" caption="板坯号^合同号^订单号^计划规格^实际规格^计划牌号^实际牌号^重量^外观等级^精整方法^余材区分^过渡坯" colsep="^" colwidth="100, 76, 60, 100, 100, 100, 100, 65, 70, 86, 76, 100" defaultrows="30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:50px; width:979px; height:181px; ">
- <col ref="SLAB_NO"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="INSTR_TWL"/>
- <col ref="TWL"/>
- <col ref="STL_GRD"/>
- <col ref="BEF_STL_GRD"/>
- <col ref="SLAB_WGT" format="#,###"/>
- <col ref="EXTSHAPE_GRD" visibility="hidden"/>
- <col disabled="true" ref="SF_METHOD" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>全面精整</label>
- <value>A</value>
- </item>
- <item>
- <label>待精整</label>
- <value>D</value>
- </item>
- <item>
- <label>精整完成</label>
- <value>E</value>
- </item>
- <item>
- <label>无精整</label>
- <value>N</value>
- </item>
- <item>
- <label>部分精整</label>
- <value>P</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ORD_FL" type="combo">
- <choices>
- <item>
- <label>订单材</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="LAST_SLAB_YN"/>
- </datagrid>
- <caption id="caption3" class="cell" style="left:0px; top:30px; width:100px; height:20px; ">生产总量</caption>
- <caption id="caption4" class="cell" style="left:0px; top:234px; width:100px; height:20px; ">在库量</caption>
- <caption id="caption5" class="cell" style="left:0px; top:439px; width:100px; height:20px; ">出库量</caption>
- <datagrid id="datagrid2" nodeset="/root/datagrid2/ListResult_2_Row" caption="板坯号^合同号^订单号^计划规格^实际规格^计划牌号^实际牌号^重量^外观等级^精整方法^余材区分^过渡坯" colsep="^" colwidth="100, 76, 60, 100, 100, 100, 100, 65, 70, 86, 76, 100" defaultrows="30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:254px; width:979px; height:181px; ">
- <col ref="SLAB_NO"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="INSTR_TWL"/>
- <col ref="TWL"/>
- <col ref="STL_GRD"/>
- <col ref="BEF_STL_GRD"/>
- <col ref="SLAB_WGT" format="#,###"/>
- <col ref="EXTSHAPE_GRD" visibility="hidden"/>
- <col disabled="true" ref="SF_METHOD" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>全面精整</label>
- <value>A</value>
- </item>
- <item>
- <label>待精整</label>
- <value>D</value>
- </item>
- <item>
- <label>精整完成</label>
- <value>E</value>
- </item>
- <item>
- <label>无精整</label>
- <value>N</value>
- </item>
- <item>
- <label>部分精整</label>
- <value>P</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ORD_FL" type="combo">
- <choices>
- <item>
- <label>订单材</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="LAST_SLAB_YN"/>
- </datagrid>
- <datagrid id="datagrid3" nodeset="/root/datagrid3/ListResult_3_Row" caption="板坯号^合同号^订单号^计划规格^实际规格^计划牌号^实际牌号^重量^外观等级^精整方法^余材区分^过渡坯" colsep="^" colwidth="100, 76, 60, 100, 100, 100, 100, 65, 70, 86, 76, 100" defaultrows="30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:459px; width:979px; height:158px; ">
- <col ref="SLAB_NO"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="INSTR_TWL"/>
- <col ref="TWL"/>
- <col ref="STL_GRD"/>
- <col ref="BEF_STL_GRD"/>
- <col ref="SLAB_WGT" format="#,###"/>
- <col ref="EXTSHAPE_GRD" visibility="hidden"/>
- <col disabled="true" ref="SF_METHOD" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>全面精整</label>
- <value>A</value>
- </item>
- <item>
- <label>待精整</label>
- <value>D</value>
- </item>
- <item>
- <label>精整完成</label>
- <value>E</value>
- </item>
- <item>
- <label>无精整</label>
- <value>N</value>
- </item>
- <item>
- <label>部分精整</label>
- <value>P</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ORD_FL" type="combo">
- <choices>
- <item>
- <label>订单材</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="LAST_SLAB_YN"/>
- </datagrid>
- <input id="input4" ref="/root/aaa/a" style="left:195px; top:30px; width:100px; height:20px; "/>
- <caption id="caption7" class="cell" style="left:115px; top:30px; width:80px; height:20px; ">总快数:</caption>
- <caption id="caption9" class="cell" style="left:110px; top:235px; width:80px; height:20px; ">总快数:</caption>
- <input id="input6" ref="/root/aaa/c" style="left:190px; top:235px; width:100px; height:20px; "/>
- <input id="input8" ref="/root/aaa/f" style="left:185px; top:440px; width:100px; height:20px; "/>
- <caption id="caption11" class="cell" style="left:105px; top:440px; width:80px; height:20px; ">总快数:</caption>
- <caption id="caption6" class="cell" style="left:650px; top:5px; width:100px; height:20px; ">牌号</caption>
- <input id="input5" ref="/root/formData/stlgrd" style="left:750px; top:5px; width:100px; height:20px; "/>
- <line id="line4" style="x1:180px; y1:15px; x2:190px; y2:15px; "/>
- <input id="input7" ref="/root/formData/chargeNo1" style="left:190px; top:5px; width:100px; height:20px; "/>
- </xhtml:body>
- </xhtml:html>
|