public String downloadReportDay() {
   String ids = getParaValue("ids");
   String type = getParaValue("type");
   String reportType = getParaValue("reportType");
   String exportType = getParaValue("exportType");
   SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
   if (ids == null || ids.equals("") || ids.equals("null")) {
     String id = request.getParameter("id");
     if (id.equals("null")) return null;
     CompreReportInfo report = new CompreReportInfo();
     CompreReportUtilDao dao = new CompreReportUtilDao();
     report = (CompreReportInfo) dao.findByID(id);
     ids = report.getIds();
   }
   String filename = "";
   if ("hostNet".equalsIgnoreCase(type)) {
     if (exportType.equals("xls")) {
       filename = "/temp/compreDay_report.xls";
     } else if (exportType.equals("doc")) {
       filename = "/temp/compreDay_report.doc";
     } else if (exportType.equals("pdf")) {
       filename = "/temp/compreDay_report.pdf";
     }
   }
   String filePath = ResourceCenter.getInstance().getSysPath() + filename;
   String startTime = getParaValue("startdate");
   String toTime = startTime;
   if (startTime == null) {
     startTime = sdf.format(new Date()) + " 00:00:00";
   } else {
     startTime = startTime + " 00:00:00";
   }
   if (toTime == null) {
     toTime = sdf.format(new Date()) + " 23:59:59";
   } else {
     toTime = toTime + " 23:59:59";
   }
   CompreReportExport export = new CompreReportExport();
   export.exportReportByDay(ids, type, reportType, filePath, startTime, toTime, exportType, null);
   request.setAttribute("filename", filePath);
   return "/capreport/net/download.jsp";
 }
  public String compreReportDayConfig() {
    String id = this.getParaValue("id");
    CompreReportUtilDao cru = new CompreReportUtilDao();
    CompreReportInfo cri = cru.findById(Integer.valueOf(id));
    cru.close();
    String ids = cri.getIds();
    String[] idValue = null;
    if (ids != null && !ids.equals("null") && !ids.equals("")) {
      idValue = new String[ids.split(",").length];
      idValue = ids.split(",");
    }
    List<String> list = new ArrayList<String>();
    if (idValue != null) {
      for (int i = 0; i < idValue.length; i++) {
        list.add(idValue[i]);
      }
    }
    String sendTime = "ÿÌì:" + cri.getSendTime() + ":00";

    request.setAttribute("compreReport", cri);
    request.setAttribute("list", list);
    request.setAttribute("sendTime", sendTime);
    return "/capreport/comprehensive/compreReportDayDetail.jsp";
  }