• java基于xml配置的通用excel单表数据导入组件(五、Action处理类)


    package xxxxxx.manage.importexcel;
    
    import java.io.File;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.logging.Logger;
    
    import net.sf.json.JSONObject;
    
    import xxxxxx.supp.ACT_Common;
    
    /**
     * <p>
     * Title:excel数据导入
     * </p>
     * <p>
     * Description:excel数据导入
     * </p>
     * <p>
     * Copyright: Copyright (c) 2013
     * </p>
     * <p>
     * Company:
     * </p>
     * 
     * @author lxj
     * @version 1.0
     */
    
    public class ACT_ImportExcel extends ACT_Common {
    
        private static final Logger logger = Logger.getLogger(ACT_ImportExcel.class
                .getName());
    
        // 返回结果给客户端
        private JSONObject jsonResult;
        private File excel;
        private String excelContentType;
        private String excelFileName;
        private String tableTarget;
    
        /**
         * excel数据导入至"_import"临时表
         * 
         * @return
         */
        public String doImport() {
            DAO_ImportExcel importExcel = new DAO_ImportExcel(tableTarget, excel);
            jsonResult = JSONObject.fromObject(importExcel.doImport());
            return "doFormJSON";
        }
    
        public JSONObject getJsonResult() {
            return jsonResult;
        }
    
        public void setJsonResult(JSONObject jsonResult) {
            this.jsonResult = jsonResult;
        }
    
        public File getExcel() {
            return excel;
        }
    
        public void setExcel(File excel) {
            this.excel = excel;
        }
    
        public String getTableTarget() {
            return tableTarget;
        }
    
        public void setTableTarget(String tableTarget) {
            this.tableTarget = tableTarget;
        }
    
        public String getExcelContentType() {
            return excelContentType;
        }
    
        public void setExcelContentType(String excelContentType) {
            this.excelContentType = excelContentType;
        }
    
        public String getExcelFileName() {
            return excelFileName;
        }
    
        public void setExcelFileName(String excelFileName) {
            this.excelFileName = excelFileName;
        }
    
    }
  • 相关阅读:
    vue学习之vuex的入门
    Vue的入门之安装
    JS之作用域链
    map去重value值
    增量部署和全量部署
    js跳转页面的方法
    Quartz定时任务时间设置
    @RequestParam和@PathVariable用法小结
    nginx负载均衡的5种策略(转载)
    使用Joda-Time优雅的处理日期时间
  • 原文地址:https://www.cnblogs.com/101key/p/3286533.html
Copyright © 2020-2023  润新知