<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    waysun一路陽光

    不輕易服輸,不輕言放棄.--心是夢的舞臺,心有多大,舞臺有多大。踏踏實實做事,認認真真做人。

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 ::  :: 管理 ::
      167 隨筆 :: 1 文章 :: 64 評論 :: 0 Trackbacks

    <%@ page contentType="text/html; charset=utf-8" language="java" import="java.io.*,java.net.*" errorPage="" %>
    <%@ page import="com.easyvary.form.util.*"%>
    <%@ page import="java.io.*"%>
    <%@ page import="java.util.*"%>
    <%@ page import="javax.servlet.*"%>
    <%@ page import="net.sf.hibernate.*"%>
    <%@ page import="org.apache.commons.fileupload.*"%>
    <%@ page import="com.easyvary.common.util.*"%>
    <%@ page import="com.easyvary.form.*"%>
    <%@ page import="com.easyvary.form.util.*"%>
    <%@ page import="com.easyvary.system.*"%>
    <%@ page import="com.easyvary.system.GmccObject"%>
    <%@ page import="com.bpm.pm.*"%>
    <%@page import="proc.pm.monitor.CellAlarm"%>
    <%@page import="proc.ibpm.alarm.*" %>
    <%@page import="proc.ibpm.global.*" %>
    <%@page import="com.ibpm.conf.*" %>
    <%@page import="proc.ibpm.structure.*" %>
    <%@ page import="proc.ibpm.conf.*"%>
    <%@page import="proc.ibpm.history.*" %>
    <%
     Get get = new Get();
     HistoryAlarmProcessor hap = new HistoryAlarmProcessor();
     String cellTypeConfId = request.getParameter("cellTypeConfId");
     if(cellTypeConfId==null){
      cellTypeConfId = "";
     }
     String cellConfId = request.getParameter("cellConfId");
     String startAlarmTime = request.getParameter("startAlarmTime");
     String endAlarmTime = request.getParameter("endAlarmTime");
     String startRecoverTime = request.getParameter("startRecoverTime");
     String endRecoverTime = request.getParameter("endRecoverTime");
     String recoverType = request.getParameter("recoverType");
     
     String cellTypeShowName = get.getCellTypeShowName(cellTypeConfId);
     hap.setRecordCount(cellTypeConfId,cellConfId,startAlarmTime,endAlarmTime,startRecoverTime,endRecoverTime,recoverType);
     hap.setPageTotal(cellTypeConfId,cellConfId,startAlarmTime,endAlarmTime,startRecoverTime,endRecoverTime,recoverType);
        String filepath="test.txt";//request.getParameter("path");
        // 設置HTTP頭:
        response.reset();
        response.setContentType("application/octet-stream");
        String fileName= URLDecoder.decode(filepath,"utf-8");
        java.net.URLEncoder.encode(fileName, "utf-8");
        response.addHeader("Content-Disposition","attachment;"+ "filename=\"" +URLEncoder.encode(fileName, "utf-8") + "\"");
        BufferedOutputStream output = null;
        BufferedInputStream input = null;
        OutputStream os =null;
        //FileInputStream fis =null;
        // 寫緩沖區:
        try
        {
                       
                        os = response.getOutputStream();
                        String historyAlarm="";//historyAlarm為后臺得到的數據
                        byte[]byt=historyAlarm.getBytes();
                       os.write(byt);

        }
        catch(Exception e)
        {
            System.out.println(e);
        }
        finally
        {
            //fis.close();
         os.flush();
         os.close();
            if(input!=null) input.close();
            if(output!=null) output.close();
        }
        return;


    %>

    posted on 2008-08-14 10:18 weesun一米陽光 閱讀(5112) 評論(2)  編輯  收藏 所屬分類: 總結備用

    評論

    # re: jsp導出TXT文件 2012-12-04 18:55 阿什頓
    水電費是打發士大夫告訴對方告訴對方公司的風格  回復  更多評論
      

    # re: jsp導出TXT文件 2013-06-02 17:55 jjkk
    nnnn  回復  更多評論
      

    主站蜘蛛池模板: 国产又黄又爽又刺激的免费网址 | 岛国片在线免费观看| 久久精品国产精品亚洲毛片| 中文字幕无码一区二区免费| 亚洲熟妇中文字幕五十中出| 国产啪亚洲国产精品无码| 免费一区二区三区在线视频| 亚洲国产成人乱码精品女人久久久不卡| 亚洲色大成网站www尤物| 日韩精品免费一区二区三区| 亚洲av福利无码无一区二区| 久久免费美女视频| 亚洲高清无在码在线电影不卡| www视频在线观看免费| 亚洲精品国产国语| 亚洲AV成人精品日韩一区18p| 一区二区在线视频免费观看| 亚洲中文字幕无码爆乳AV| 国产高清不卡免费视频| 亚洲国产精品久久人人爱| 久久国产精品免费一区二区三区| 亚洲一区二区三区偷拍女厕 | mm1313亚洲精品无码又大又粗| 国产精品免费久久| 久久亚洲国产精品五月天| 精品香蕉在线观看免费| 久久亚洲一区二区| 永久免费毛片在线播放| 一级一黄在线观看视频免费| 国产亚洲精品a在线无码| 免费影院未满十八勿进网站| 免费夜色污私人影院网站电影| 亚洲精品成人片在线观看精品字幕| 亚洲视频在线免费看| 国产精品亚洲专区无码牛牛| 亚洲精品美女久久久久99| 久久久高清免费视频| 久久久久久久久久免免费精品| youjizz亚洲| 亚洲人成网77777亚洲色| 免费视频专区一国产盗摄|