田源
2023-05-09 d2570148ec3884de3af721bd99c4b7acbbdee075
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package com.vci.ubcs.starter.poi.bo;
 
 
import com.vci.ubcs.starter.bo.WriteExcelData;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
public class WriteExcelOption {
    private Map<String, List<WriteExcelData>> writeDataMap;
    private List<String> hideSheetList;
    private boolean append = false;
    private boolean revision07 = false;
    private Map<String, List<ExcelColumnMap>> extendAttrMap;
 
    public WriteExcelOption() {
    }
 
    public WriteExcelOption(List<WriteExcelData> excelDataList) {
        this.writeDataMap = new HashMap();
        this.writeDataMap.put("Sheet1", excelDataList);
    }
 
    public void addSheetDataList(String sheetName, List<WriteExcelData> excelDataList) {
        if (this.writeDataMap == null) {
            this.writeDataMap = new HashMap();
        }
 
        this.writeDataMap.put(sheetName, excelDataList);
    }
 
    public void addHideSheet(String sheetName) {
        if (this.hideSheetList == null) {
            this.hideSheetList = new ArrayList();
        }
 
        this.hideSheetList.add(sheetName);
    }
 
    public Map<String, List<WriteExcelData>> getWriteDataMap() {
        return this.writeDataMap;
    }
 
    public void setWriteDataMap(Map<String, List<WriteExcelData>> writeDataMap) {
        this.writeDataMap = writeDataMap;
    }
 
    public List<String> getHideSheetList() {
        return this.hideSheetList;
    }
 
    public void setHideSheetList(List<String> hideSheetList) {
        this.hideSheetList = hideSheetList;
    }
 
    public boolean isAppend() {
        return this.append;
    }
 
    public void setAppend(boolean append) {
        this.append = append;
    }
 
    public boolean isRevision07() {
        return this.revision07;
    }
 
    public void setRevision07(boolean revision07) {
        this.revision07 = revision07;
    }
 
    public Map<String, List<ExcelColumnMap>> getExtendAttrMap() {
        return this.extendAttrMap;
    }
 
    public void setExtendAttrMap(Map<String, List<ExcelColumnMap>> extendAttrMap) {
        this.extendAttrMap = extendAttrMap;
    }
 
    public String toString() {
        return "WriteExcelOption{writeDataMap=" + this.writeDataMap + ", hideSheetList=" + this.hideSheetList + ", append=" + this.append + ", revision07=" + this.revision07 + ", extendAttrMap=" + this.extendAttrMap + '}';
    }
}