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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
package com.vci.ubcs.starter.bo;
 
import java.util.List;
 
public class WriteExcelData {
    private int row;
    private int col;
    private Object obj;
    private String objCode;
    private boolean merged = false;
    private int rowTo;
    private int colTo;
    private boolean copyStyle = false;
    private int copyStyleRow;
    private int copyStyleCol;
    private boolean center;
    private boolean formula = false;
    private boolean nameRefer = false;
    private boolean validation = false;
    private List<String> validationDataList;
    private String validationErrorMsg;
    private String fontColor;
    private String align;
    private String dateFormat;
    private boolean readOnly;
    private Integer width;
 
    public String getObjCode() {
        return objCode;
    }
 
    public void setObjCode(String objCode) {
        this.objCode = objCode;
    }
 
    public String getFontColor() {
        return this.fontColor;
    }
 
    public void setFontColor(String fontColor) {
        this.fontColor = fontColor;
    }
 
    public String getAlign() {
        return this.align;
    }
 
    public void setAlign(String align) {
        this.align = align;
    }
 
    public List<String> getValidationDataList() {
        return this.validationDataList;
    }
 
    public void setValidationDataList(List<String> validationDataList) {
        this.validationDataList = validationDataList;
    }
 
    public WriteExcelData() {
    }
 
    public WriteExcelData(int row, int col, Object obj) {
        this.row = row;
        this.col = col;
        this.obj = obj;
    }
 
    public WriteExcelData(int row, int col, Object obj,String objCode) {
        this.row = row;
        this.col = col;
        this.obj = obj;
        this.objCode = objCode;
    }
 
    public WriteExcelData(int row, int col, Object obj,String objCode,boolean copyStyle) {
        this.row = row;
        this.col = col;
        this.obj = obj;
        this.objCode = objCode;
        this.copyStyle = copyStyle;
    }
 
    public void writeFormula(int row, int col, String foumula) {
        this.row = row;
        this.col = col;
        this.obj = foumula;
        this.formula = true;
    }
 
    public void writeNameRefer(int row, int col, int rowTo, int colTo, String name) {
        this.row = row;
        this.col = col;
        this.obj = name;
        this.nameRefer = true;
        this.rowTo = rowTo;
        this.colTo = colTo;
    }
 
    public void writeComboBox(List<String> comboBoxData, int row, int col, int rowTo, int colTo) {
        this.writeComboBox(comboBoxData, (String)null, row, col, rowTo, colTo);
    }
 
    public void writeComboBox(List<String> comboBoxData, String errorMsg, int row, int col, int rowTo, int colTo) {
        this.validationDataList = comboBoxData;
        this.validation = true;
        this.validationErrorMsg = errorMsg;
        this.row = row;
        this.col = col;
        this.rowTo = rowTo;
        this.colTo = colTo;
    }
 
    public void writeUseRefer(String referFormula, int row, int col, int rowTo, int colTo) {
        this.writeUseRefer(referFormula, (String)null, row, col, rowTo, colTo);
    }
 
    public void writeUseRefer(String referFormula, String errorMsg, int row, int col, int rowTo, int colTo) {
        this.validation = true;
        this.obj = referFormula;
        this.validationErrorMsg = errorMsg;
        this.row = row;
        this.col = col;
        this.rowTo = rowTo;
        this.colTo = colTo;
    }
 
    public boolean isReadOnly() {
        return this.readOnly;
    }
 
    public void setReadOnly(boolean readOnly) {
        this.readOnly = readOnly;
    }
 
    public int getRow() {
        return this.row;
    }
 
    public void setRow(int row) {
        this.row = row;
    }
 
    public int getCol() {
        return this.col;
    }
 
    public void setCol(int col) {
        this.col = col;
    }
 
    public Object getObj() {
        return this.obj;
    }
 
    public void setObj(Object obj) {
        this.obj = obj;
    }
 
    public boolean isMerged() {
        return this.merged;
    }
 
    public void setMerged(boolean merged) {
        this.merged = merged;
    }
 
    public int getRowTo() {
        return this.rowTo;
    }
 
    public void setRowTo(int rowTo) {
        this.rowTo = rowTo;
    }
 
    public int getColTo() {
        return this.colTo;
    }
 
    public void setColTo(int colTo) {
        this.colTo = colTo;
    }
 
    public boolean isCopyStyle() {
        return this.copyStyle;
    }
 
    public void setCopyStyle(boolean copyStyle) {
        this.copyStyle = copyStyle;
    }
 
    public int getCopyStyleRow() {
        return this.copyStyleRow;
    }
 
    public void setCopyStyleRow(int copyStyleRow) {
        this.copyStyleRow = copyStyleRow;
    }
 
    public int getCopyStyleCol() {
        return this.copyStyleCol;
    }
 
    public void setCopyStyleCol(int copyStyleCol) {
        this.copyStyleCol = copyStyleCol;
    }
 
    public boolean isCenter() {
        return this.center;
    }
 
    public void setCenter(boolean center) {
        this.center = center;
    }
 
    public boolean isFormula() {
        return this.formula;
    }
 
    public void setFormula(boolean formula) {
        this.formula = formula;
    }
 
    public boolean isNameRefer() {
        return this.nameRefer;
    }
 
    public void setNameRefer(boolean nameRefer) {
        this.nameRefer = nameRefer;
    }
 
    public boolean isValidation() {
        return this.validation;
    }
 
    public void setValidation(boolean validation) {
        this.validation = validation;
    }
 
    public String getValidationErrorMsg() {
        return this.validationErrorMsg;
    }
 
    public void setValidationErrorMsg(String validationErrorMsg) {
        this.validationErrorMsg = validationErrorMsg;
    }
 
    public String getDateFormat() {
        return this.dateFormat;
    }
 
    public void setDateFormat(String dateFormat) {
        this.dateFormat = dateFormat;
    }
 
    public Integer getWidth() {
        return this.width;
    }
 
    public void setWidth(Integer width) {
        this.width = width;
    }
 
    public String toString() {
        return "WriteExcelData{row=" + this.row + ", col=" + this.col + ", obj=" + this.obj + ", merged=" + this.merged + ", rowTo=" + this.rowTo + ", colTo=" + this.colTo + ", copyStyle=" + this.copyStyle + ", copyStyleRow=" + this.copyStyleRow + ", copyStyleCol=" + this.copyStyleCol + ", center=" + this.center + ", formula=" + this.formula + ", nameRefer=" + this.nameRefer + ", validation=" + this.validation + ", validationDataList=" + this.validationDataList + ", validationErrorMsg='" + this.validationErrorMsg + '\'' + ", fontColor='" + this.fontColor + '\'' + ", align='" + this.align + '\'' + ", dateFormat='" + this.dateFormat + '\'' + ", readOnly=" + this.readOnly + '}';
    }
}