| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
- <?xml-stylesheet type="text/css" href="../css/bCommon.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>
- <DATE/>
- <ENDDATE/>
- </formData>
- <reqData/>
- <resData/>
- <datagrid1/>
- <comboData>
- <Charge/>
- <StlGrd/>
- </comboData>
- <headLine>
- <SlabResult_VO>
- <SlabResult_Row>
- <ROWNUM>热连轧厂生产检验班报表</ROWNUM>
- <SLAB_NO/>
- <SLAB_THK/>
- <SLAB_WTH/>
- <SLAB_LEN/>
- <SLAB_WGT/>
- <STL_GRD/>
- <CRK_CD1/>
- <EXTSHAPE_DEC_DTIME/>
- <EXTSHAPE_DEC_EMP_ID/>
- <GR_SHIFT/>
- <GR_GROUP/>
- </SlabResult_Row>
- <SlabResult_Row>
- <ROWNUM>日期</ROWNUM>
- <SLAB_NO/>
- <SLAB_THK/>
- <SLAB_WTH/>
- <SLAB_LEN/>
- <SLAB_WGT/>
- <STL_GRD/>
- <CRK_CD1/>
- <EXTSHAPE_DEC_DTIME/>
- <EXTSHAPE_DEC_EMP_ID/>
- <GR_SHIFT/>
- <GR_GROUP>班组 & 班次</GR_GROUP>
- </SlabResult_Row>
- </SlabResult_VO>
- </headLine>
- <subTitle>
- <SlabResult_VO>
- <SlabResult_Row>
- <ROWNUM>序号</ROWNUM>
- <SLAB_NO>板坯号</SLAB_NO>
- <SLAB_THK>厚度</SLAB_THK>
- <SLAB_WTH>宽度</SLAB_WTH>
- <SLAB_LEN>长度</SLAB_LEN>
- <SLAB_WGT>重量(吨)</SLAB_WGT>
- <STL_GRD>钢号</STL_GRD>
- <CRK_CD1>不合格类别</CRK_CD1>
- <EXTSHAPE_DEC_DTIME>板坯判定日</EXTSHAPE_DEC_DTIME>
- <EXTSHAPE_DEC_EMP_ID>板坯判定人</EXTSHAPE_DEC_EMP_ID>
- <GR_SHIFT>检验班次</GR_SHIFT>
- <GR_GROUP>检验班组</GR_GROUP>
- </SlabResult_Row>
- </SlabResult_VO>
- </subTitle>
- <CNT>
- <YL/>
- <JY/>
- <FY/>
- <HG/>
- <PZ/>
- </CNT>
- </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)
- {
-
- input1.value = commCurDate();
- /*model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSubmit("UIB020310-service", "findC", "glueAction.do");
- model.copyNode("/root/comboData/Charge","/root/resData/ChargeResult_VO");
- model.copyNode("/root/comboData/StlGrd","/root/resData/StlGrdResult_VO");
- model.makeValue("/root/formData/StDate",model.getValue("/root/resData/DateResult_VO/DateResult_Row/F_DATE"));
- model.makeValue("/root/formData/EndDate",model.getValue("/root/resData/DateResult_VO/DateResult_Row/T_DATE"));
- model.refresh();*/
-
- }
-
- function find()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSendReq("/root/formData");
- commSubmit("UIB030050-service", "success", "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/ListResult_0_VO");
- model.refresh();
- }
-
- function excelExport()
- {
- saveExcelScript(datagrid1, "Sheet1");
- }
- function saveExcelScript(sDGridName, sExcelSheetName, saveType) {
- var sExcelName = window.fileDialog( "save", "", false, "SaveFileName", "xls", "Excel Files(*.xls)|*.xls" );
- if ( sExcelName == "" ) {
- return;
- }
- // var sCSVName = "C:\\TFSmartUpdater\\" + sExcelName.lastIndexOf(".") +".csv";
- var sCSVName = sExcelName +".csv";
- // alert("sExcelName = ["+ sExcelName +"]\nsCSVName = ["+ sCSVName + "]");
- eval(sDGridName).saveText(sCSVName, "\n", ",", '\:', true);
- ObjTFExcel.launchNewInstance(0); //Execute EXCEL
- ObjTFExcel.createWorkbook(); //Create new Workbook(for example:Sheet1,Sheet2,Sheet3) -- createWorkBook(Excel-TemplateFile)
- ObjTFExcel.loadCSV(sCSVName); //Loading Contents, from CSV to Excel
- //Setting up EXCEL Layout.
- var nRows = sDGridName.rows - 1;
- var nCols = sDGridName.cols;
- //All of the range
- ObjTFExcel.fontcolor( 01, 01, nRows, nCols ) = "#000000" ;
- ObjTFExcel.font ( 01, 01, nRows, nCols ) = "SimSun" ;
- //Header
- //Line 1 : Sheet Title
- ObjTFExcel.rowheight( 01 ) = 30 ;
- ObjTFExcel.bold ( 01, 01, 01, nCols ) = true ;
- ObjTFExcel.fontsize ( 01, 01, 01, nCols ) = 14 ;
- ObjTFExcel.underline( 01, 01, 01, nCols ) = 3 ;
- ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
- ObjTFExcel.valign ( 01, 01, 01, nCols ) ="top" ;
- ObjTFExcel.mergeCell( 01, 01, 01, nCols ) ;
- // ObjTFExcel.colwidth ( 01 ) = 100 ;
- //Line 2 : Date
- ObjTFExcel.rowheight( 02 ) = 18 ;
- ObjTFExcel.bold ( 02, 01, 02, 01 ) = true ;
- ObjTFExcel.fontsize ( 02, 01, 02, 01 ) = 9 ;
- ObjTFExcel.underline( 02, 01, 02, 01 ) = 0 ;
- ObjTFExcel.halign ( 02, 01, 02, 01 ) ="left" ;
- ObjTFExcel.valign ( 02, 01, 02, 01 ) ="middle" ;
- ObjTFExcel.mergeCell( 02, 01, 02, 03 ) ;
- // ObjTFExcel.colwidth ( 01 ) = 100 ;
- //Line 2 : Work-Group & Work-Part
- ObjTFExcel.rowHeight( 02 ) = 18 ;
- ObjTFExcel.bold ( 02, nCols - 2, 02, nCols ) = true ;
- ObjTFExcel.fontsize ( 02, nCols - 2, 02, nCols ) = 9 ;
- ObjTFExcel.underline( 02, nCols - 2, 02, nCols ) = 0 ;
- ObjTFExcel.halign ( 02, nCols - 2, 02, nCols ) ="right" ;
- ObjTFExcel.valign ( 02, nCols - 2, 02, nCols ) ="middle" ;
- ObjTFExcel.mergeCell( 02, nCols - 2, 02, nCols ) ;
- // ObjTFExcel.colwidth ( 01 ) = 100 ;
- //Query-Results Data
- var iRow = 3; // Header Line + 1;
- // ObjTFExcel.cellBgColor (iRow, 01, iRow , nCols ) = "#EEEEEE"; // Undefined...
- ObjTFExcel.setBorderColor(iRow, 01, nRows, nCols, "#000000");
- for(var i = 3; i <= nRows; i++ ) {
- ObjTFExcel.rowHeight( i ) = 18;
- }
- ObjTFExcel.bold (iRow, 01, nRows, nCols ) = false ;
- ObjTFExcel.fontsize (iRow, 01, nRows, nCols ) = 9 ;
- ObjTFExcel.underline(iRow, 01, nRows, nCols ) = 0 ;
- ObjTFExcel.valign (iRow, 01, nRows, nCols ) ="middle" ;
- ObjTFExcel.halign (iRow, 01, nRows, 01 ) ="center" ; //序号
- ObjTFExcel.colwidth ( 01 ) = 8 ;
- ObjTFExcel.halign (iRow, 02, nRows, 02 ) ="left" ; //板坯号
- ObjTFExcel.colwidth ( 02 ) = 20 ;
- ObjTFExcel.halign (iRow, 03, nRows, 03 ) ="left" ; //厚度
- ObjTFExcel.colwidth ( 03 ) = 20 ;
- ObjTFExcel.halign (iRow, 04, nRows, 04 ) ="left" ; //宽度
- ObjTFExcel.colwidth ( 04 ) = 20 ;
- ObjTFExcel.halign (iRow, 05, nRows, 05 ) ="left" ; //长度
- ObjTFExcel.colwidth ( 05 ) = 20 ;
- ObjTFExcel.halign (iRow, 06, nRows, 06 ) ="left" ; //重量(吨)
- ObjTFExcel.colwidth ( 06 ) = 20 ;
- ObjTFExcel.halign (iRow, 07, nRows, 07 ) ="left" ; //钢号
- ObjTFExcel.colwidth ( 07 ) = 20 ;
- ObjTFExcel.halign (iRow, 08, nRows, 08 ) ="center" ; //不合格类别
- ObjTFExcel.colwidth ( 08 ) = 12 ;
- ObjTFExcel.halign (iRow, 09, nRows, 09 ) ="right" ; //板坯判定日
- ObjTFExcel.colwidth ( 09 ) = 20 ;
- ObjTFExcel.setFormat(iRow, 09, nRows, 09, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
-
- ObjTFExcel.halign (iRow, 10, nRows, 10 ) ="center" ; //板坯判定人
- ObjTFExcel.colwidth ( 10 ) = 10 ;
- ObjTFExcel.halign (iRow, 11, nRows, 11 ) ="left" ; //检验班次
- ObjTFExcel.colwidth ( 11 ) = 8 ;
- ObjTFExcel.halign (iRow, 12, nRows, 12 ) ="right" ; //检验班组
- ObjTFExcel.colwidth ( 12 ) = 8 ;
- /*ObjTFExcel.halign (iRow, 13, nRows, 13 ) ="left" ; //最终修改人
- ObjTFExcel.colwidth ( 13 ) = 12 ;
- ObjTFExcel.halign (iRow, 14, nRows, 14 ) ="center" ; //最终修改时间
- ObjTFExcel.colwidth ( 14 ) = 20 ;
- ObjTFExcel.setFormat(iRow, 14, nRows, 14, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
- */
- ObjTFExcel.sheetName(1) = sExcelSheetName;
- ObjTFExcel.save(sExcelName); //Saving EXCEL
- ObjTFExcel.close(); //Closing EXCEL. (You must be closed EXCEL !!!)
- window.exec("EXCEL.EXE", sExcelName); //Openning EXCEL
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <caption id="caption4" class="cell" style="left:0px; top:5px; width:80px; height:20px; border-color:#000000; border-style:solid; ">日期</caption>
- <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:820px; top:5px; width:1px; height:1px; "/>
- <input id="input1" ref="/root/formData/DATE" inputtype="date" format="yyyy-mm-dd" style="left:90px; top:5px; width:100px; height:20px; "/>
- <button id="button1" visibility="hidden" style="left:355px; top:5px; width:100px; height:20px; ">
- <caption>find</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <multilinegrid id="multilinegrid1" nodeset="/root/datagrid1/ListResult_0_Row" caption="日 期^日 期^原料^合格原料^合格产量^成材率^合格率^工艺次小计^凸度^浪形^辊印^压痕^划伤^凸块^异物压入^光亮带^重量不良^厚度不良^宽度不良^边损^楔形^麻点^卷形不良^折叠^塔形^不平度^性能次^废品^其他^钢质次小计^夹杂^裂纹^凹坑^分层^气泡^其它|日 期^日 期^原料^合格原料^合格产量^成材率^合格率^工艺次小计^凸度^浪形^辊印^压痕^划伤^凸块^异物压入^光亮带^重量不良^厚度不良^宽度不良^边损^楔形^麻点^卷形不良^折叠^塔形^不平度^性能次^废品^其他^钢质次小计^夹杂^裂纹^凹坑^分层^气泡^其它" colsep="^" colwidth="50, 50, 80, 80, 80, 80, 80, 75, 50, 50, 50, 50, 50, 50, 63, 50, 71, 70, 71, 50, 50, 50, 72, 50, 50, 50, 50, 50, 50, 70, 50, 50, 50, 50, 50, 50" fixedcols="2" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:40px; width:980px; height:580px; ">
- <row>
- <col ref="SEQ" rowspan="2"/>
- <col ref="DANGRI"/>
- <col ref="SLAB_WGT"/>
- <col ref="HGYL"/>
- <col ref="HGL"/>
- <col ref="CCL" visibility="hidden"/>
- <col ref="HGLV"/>
- <col ref="GYC_LEIJI"/>
- <col ref="GYC_TUDU"/>
- <col ref="GYC_LANGXING"/>
- <col ref="GYC_GUNYIN"/>
- <col ref="GYC_YAHENG"/>
- <col ref="GYC_HUASHANG"/>
- <col ref="GYC_TUKUAI"/>
- <col ref="GYC_YIWU"/>
- <col ref="GYC_GUANGLIANG"/>
- <col ref="GYC_ZHONGLIANG"/>
- <col ref="GYC_HOUDU"/>
- <col ref="GYC_KUANDU"/>
- <col ref="GYC_BIANSUN"/>
- <col ref="GYC_XIEXING"/>
- <col ref="GYC_MADIAN"/>
- <col ref="GYC_JUANXING"/>
- <col ref="GYC_ZHEDIE"/>
- <col ref="GYC_TAXING"/>
- <col ref="GYC_BUPING"/>
- <col ref="GYC_XINGNENG"/>
- <col ref="GYC_FEIPIN"/>
- <col ref="GYC_QITA"/>
- <col ref="GZC_LEIJI"/>
- <col ref="GZC_JIAZA"/>
- <col ref="GZC_LIEHEN"/>
- <col ref="GZC_AOKENG"/>
- <col ref="GZC_FENCENG"/>
- <col ref="GZC_QIPAO"/>
- <col ref="GZC_QITA"/>
- </row>
- <row>
- <col ref="LEIJI"/>
- <col ref="SLAB_WGT_LJ"/>
- <col ref="HGYL_LJ"/>
- <col ref="HGL_LJ"/>
- <col ref="CCL_LJ" visibility="hidden"/>
- <col ref="HGLV_LJ"/>
- <col ref="GYC_LEIJI_LJ"/>
- <col ref="GYC_TUDU_LJ"/>
- <col ref="GYC_LANGXING_LJ"/>
- <col ref="GYC_GUNYIN_LJ"/>
- <col ref="GYC_YAHENG_LJ"/>
- <col ref="GYC_HUASHANG_LJ"/>
- <col ref="GYC_TUKUAI_LJ"/>
- <col ref="GYC_YIWU_LJ"/>
- <col ref="GYC_GUANGLIANG_LJ"/>
- <col ref="GYC_ZHONGLIANG_LJ"/>
- <col ref="GYC_HOUDU_LJ"/>
- <col ref="GYC_KUANDU_LJ"/>
- <col ref="GYC_BIANSUN_LJ"/>
- <col ref="GYC_XIEXING_LJ"/>
- <col ref="GYC_MADIAN_LJ"/>
- <col ref="GYC_JUANXING_LJ"/>
- <col ref="GYC_ZHEDIE_LJ"/>
- <col ref="GYC_TAXING_LJ"/>
- <col ref="GYC_BUPING_LJ"/>
- <col ref="GYC_XINGNENG_LJ"/>
- <col ref="GYC_FEIPIN_LJ"/>
- <col ref="GYC_QITA_LJ"/>
- <col ref="GZC_LEIJI_LJ"/>
- <col ref="GZC_JIAZA_LJ"/>
- <col ref="GZC_LIEHEN_LJ"/>
- <col ref="GZC_AOKENG_LJ"/>
- <col ref="GZC_FENCENG_LJ"/>
- <col ref="GZC_QIPAO_LJ"/>
- <col ref="GZC_QITA_LJ"/>
- </row>
- </multilinegrid>
- <caption id="caption8" style="left:200px; top:5px; width:220px; height:20px; background-color:#00ff00; ">提示:查询日期为当月1日,到选定日期</caption>
- <button id="button2" style="left:880px; top:5px; width:100px; height:20px; background-color:#ccffcc; border-style:solid; ">
- <caption>导出</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var x1 = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
- multilinegrid1.saveExcel(x1, "sheetname:Transaction;colhiddenextend:true;exportfalserows:0;");
- window.alert("导出成功" + x1 + " !!!")
- ]]>
- </script>
- </button>
- <button id="button3" visibility="hidden" style="left:470px; top:5px; width:100px; height:20px; ">
- <caption>button3</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|