Package com.eatle.utils.ExcelUtil

Examples of com.eatle.utils.ExcelUtil.ExportSetInfo


    List<String[]> fieldNames = new ArrayList<String[]>();
    fieldNames.add(new String[] { "orderNum", "orderTimeStr", "orderStatus", "orderStatusDescription",
        "orderDiscount", "orderTotalMoney", "sendAddress", "contactName", "contactPhone", "anotherPhone",
        "sendRemark", "customerName", "restaurantName", "sendTimeStr", "notifyTypeStr" });

    ExportSetInfo setInfo = new ExportSetInfo();
    setInfo.setObjsMap(orderService.getExportData());
    setInfo.setFieldNames(fieldNames);
    setInfo.setTitles(new String[] { "馋八戒积分商城兑换记录信息" });
    setInfo.setHeadNames(headNames);
    setInfo.setOut(out);
   
    // 将需要导出的数据输出到out
    ExcelUtil.export2Excel(setInfo);
    out.close();
  }
View Full Code Here


    List<String[]> headNames = new ArrayList<String[]>();
    headNames.add(new String[] { "链接名称", "链接地址", "链接Logo", "排序编号", "展示首页" });
    List<String[]> fieldNames = new ArrayList<String[]>();
    fieldNames.add(new String[] { "linkName", "linkUrl", "logoUrl", "sortOrder", "isDisplayStr" });

    ExportSetInfo setInfo = new ExportSetInfo();
    setInfo.setObjsMap(friendshipLinkService.getExportData());
    setInfo.setFieldNames(fieldNames);
    setInfo.setTitles(new String[] { "馋八戒友情链接信息" });
    setInfo.setHeadNames(headNames);
    setInfo.setOut(baos);
   
    // 将需要导出的数据输出到baos
    ExcelUtil.export2Excel(setInfo);
   
    return new ByteArrayInputStream(baos.toByteArray());
View Full Code Here

    List<String[]> headNames = new ArrayList<String[]>();
    headNames.add(new String[] { "兑换商品", "兑换顾客", "兑换数量", "消费积分", "兑换时间" });
    List<String[]> fieldNames = new ArrayList<String[]>();
    fieldNames.add(new String[] { "goodsName", "customerName", "convertCount", "costScore", "convertTimeStr" });

    ExportSetInfo setInfo = new ExportSetInfo();
    setInfo.setObjsMap(convertRecordsService.getExportData());
    setInfo.setFieldNames(fieldNames);
    setInfo.setTitles(new String[] { "馋八戒积分商城兑换记录信息" });
    setInfo.setHeadNames(headNames);
    setInfo.setOut(baos);
   
    // 将需要导出的数据输出到baos
    ExcelUtil.export2Excel(setInfo);
   
    return new ByteArrayInputStream(baos.toByteArray());
View Full Code Here

    List<String[]> fieldNames = new ArrayList<String[]>();
    fieldNames.add(new String[] { "orderNum", "orderTimeStr", "orderStatus", "orderStatusDescription",
        "orderDiscount", "orderTotalMoney", "sendAddress", "contactName", "contactPhone", "anotherPhone",
        "sendRemark", "customerName", "restaurantName", "sendTimeStr", "notifyTypeStr" });

    ExportSetInfo setInfo = new ExportSetInfo();
    setInfo.setObjsMap(orderService.getExportData());
    setInfo.setFieldNames(fieldNames);
    setInfo.setTitles(new String[] { "馋八戒积分商城兑换记录信息" });
    setInfo.setHeadNames(headNames);
    setInfo.setOut(baos);
   
    // 将需要导出的数据输出到baos
    ExcelUtil.export2Excel(setInfo);
   
    return new ByteArrayInputStream(baos.toByteArray());
View Full Code Here

    List<String[]> fieldNames = new ArrayList<String[]>();
    fieldNames.add(new String[] { "loginEmail", "nickName", "password", "trueName", "mobilePhone",
        "isEnabledStr", "score", "customerTypeStr", "registerTimeStr", "registerIp", "lastLoginTimeStr",
        "lastLoginIp", "visitorUuid", "relativeQq", "relativeSina", "relativeRrw", "communityName", "schoolName" });

    ExportSetInfo setInfo = new ExportSetInfo();
    setInfo.setObjsMap(customerService.getExportData());
    setInfo.setFieldNames(fieldNames);
    setInfo.setTitles(new String[] { "馋八戒前台顾客信息" });
    setInfo.setHeadNames(headNames);
    setInfo.setOut(baos);
   
    // 将需要导出的数据输出到baos
    ExcelUtil.export2Excel(setInfo);
   
    return new ByteArrayInputStream(baos.toByteArray());
View Full Code Here

TOP

Related Classes of com.eatle.utils.ExcelUtil.ExportSetInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.