田源
2024-03-07 4b4083fd73dc27ece42f4835483565eef0e4f608
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
package com.vci.client.portal.utility.tabledata;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
import com.vci.client.portal.utility.PRMItem;
import com.vci.common.qt.object.OrderInfo;
import com.vci.common.qt.object.PageInfo;
import com.vci.common.qt.object.QueryTemplate;
import com.vci.corba.portal.data.PortalVI;
 
/**
 * 抽象的 表格数据查询参数
 * 
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company: VCI</p>
 * @author xiongchao
 * @time 2017-5-25
 * @version 1.0
 */
public abstract class AbstractTableDataQueryParam implements ITableDataQueryParam {
    /**
     * 
     */
    private static final long serialVersionUID = 6020158798842090771L;
    /**
     * 主体业务类型名称
     */
    protected String showType = "";
    /**
     * 查询模板名称
     */
    protected String queryTemplateName = "";
    /**
     * 表格组件使用的表单
     */
    protected PortalVI tableForm = null;
    /**
     * 表格组件使用的表单使用的Form表单
     */
    protected PortalVI tableFormUseFormForm = null;
    /**
     * 替换条件Map
     */
    protected Map<String, String> replaceMap = new HashMap<String, String>();
    /**
     * 直接条件Map
     */
    protected Map<String, String> conditionMap = new HashMap<String, String>();
    /**
     * 分页信息
     */
    protected PageInfo pageInfo = new PageInfo();
    /**
     * 排序信息
     */
    protected List<OrderInfo> orderInfos = new ArrayList<OrderInfo>();
    /**
     * 查询模板对象,如果本对象不为空,则优先使用本对象进行查询
     * <p>否则基于 <code>queryTemplateName</code>、<code>replaceMap</code>、<code>conditionMap</code>、<code>pageInfo</code>、<code>orderInfos</code>构建出一查模板</p>
     */
    protected QueryTemplate queryTemplate = null;
    /**
     * 表格引用的表单里全部的属性(PRMItem)名称Map key: itemField(使用字段) value: itemName(显示名称)
     */
    protected Map<String, String> queryColumnsMap = new HashMap<String, String>();
    /**
     * 表格引用 的表单里自定义属性(PRMItem)Map key:itemField value: PRMItem
     */
    protected Map<String, PRMItem> customMap = new HashMap<String, PRMItem>();
    /**
     * 表格引用 的表单里文件类型的属性(PRMItem)Map key:itemField value: PRMItem
     */
    protected Map<String, PRMItem> fileMap = new HashMap<String, PRMItem>();
    /**
     * 表格引用 的表单里有显示表达式的属性(PRMItem)Map key:itemField value: PRMItem
     */
    protected Map<String, PRMItem> showExpressMap = new HashMap<String, PRMItem>();
    /**
     * 表格查询返回要显示的字段
     */
    protected List<String> showFields = new ArrayList<String>();
    
    /**
     * 表示 表格查询时使用的链接类型
     */
    protected String linkType = "";
    
    /**
     * 返回 主体业务类型名称
     * @return 主体业务类型名称
     */
    public String getShowType() {
        return showType;
    }
 
    /**
     * 设置 主体业务类型名称
     * @param showType 主体业务类型名称
     */
    public void setShowType(String showType) {
        this.showType = showType;
    }
 
    /**
     * 返回 查询模板名称
     * @return 查询模板名称
     */
    public String getQueryTemplateName() {
        return queryTemplateName;
    }
 
    /**
     * 设置 查询模板名称
     * @param queryTemplateName 查询模板名称
     */
    public void setQueryTemplateName(String queryTemplateName) {
        this.queryTemplateName = queryTemplateName;
    }
 
    /**
     * 返回 表格组件使用的表单
     * @return 表格组件使用的表单
     */
    public PortalVI getTableForm() {
        return tableForm;
    }
 
    /**
     * 设置 表格组件使用的表单
     * @param tableForm 表格组件使用的表单
     */
    public void setTableForm(PortalVI tableForm) {
        this.tableForm = tableForm;
    }
 
    /**
     * 返回 表格组件使用的表单使用的Form表单
     * @return 表格组件使用的表单使用的Form表单
     */
    public PortalVI getTableFormUseFormForm() {
        return tableFormUseFormForm;
    }
 
    /**
     * 设置 表格组件使用的表单使用的Form表单
     * @param tableFormUseFormForm 表格组件使用的表单使用的Form表单
     */
    public void setTableFormUseFormForm(PortalVI tableFormUseFormForm) {
        this.tableFormUseFormForm = tableFormUseFormForm;
    }
 
    /**
     * 返回 替换条件Map
     * @return 替换条件Map
     */
    public Map<String, String> getReplaceMap() {
        return replaceMap;
    }
 
    /**
     * 设置 替换条件Map
     * @param replaceMap 替换条件Map
     */
    public void setReplaceMap(Map<String, String> replaceMap) {
        this.replaceMap = replaceMap;
    }
 
    /**
     * 返回 直接条件Map
     * @return 直接条件Map
     */
    public Map<String, String> getConditionMap() {
        return conditionMap;
    }
 
    /**
     * 设置 直接条件Map
     * @param conditionMap 直接条件Map
     */
    public void setConditionMap(Map<String, String> conditionMap) {
        this.conditionMap = conditionMap;
    }
 
    /**
     * 返回 分页信息
     * @return 分页信息
     */
    public PageInfo getPageInfo() {
        return pageInfo;
    }
 
    /**
     * 设置 分页信息
     * @param pageInfo 分页信息
     */
    public void setPageInfo(PageInfo pageInfo) {
        this.pageInfo = pageInfo;
    }
 
    /**
     * 返回 查询模板对象
     * @return
     */
    public QueryTemplate getQueryTemplate() {
        return queryTemplate;
    }
    
    /**
     * 设置 查询模板对象
     * @param queryTemplate 查询模板对象
     */
    public void setQueryTemplate(QueryTemplate queryTemplate) {
        this.queryTemplate = queryTemplate;
    }
 
    /**
     * 返回 排序信息
     * @return 排序信息
     */
    public List<OrderInfo> getOrderInfos() {
        return orderInfos;
    }
 
    /**
     * 设置 排序信息
     * @param orderInfos 排序信息
     */
    public void setOrderInfos(List<OrderInfo> orderInfos) {
        this.orderInfos = orderInfos;
    }
 
    /**
     * 返回 表格引用的表单里全部的属性(PRMItem)名称Map key: itemField(使用字段) value: itemName(显示名称)
     * @return 表格引用的表单里全部的属性(PRMItem)名称Map key: itemField(使用字段) value: itemName(显示名称)
     */
    public Map<String, String> getQueryColumnsMap() {
        return queryColumnsMap;
    }
 
    /**
     * 设置 表格引用的表单里全部的属性(PRMItem)名称Map key: itemField(使用字段) value: itemName(显示名称)
     * @param queryColumnsMap 表格引用的表单里全部的属性(PRMItem)名称Map key: itemField(使用字段) value: itemName(显示名称)
     */
    public void setQueryColumnsMap(Map<String, String> queryColumnsMap) {
        this.queryColumnsMap = queryColumnsMap;
    }
 
    /**
     * 返回 表格引用 的表单里自定义属性(PRMItem)Map key:itemField value: PRMItem
     * @return 表格引用 的表单里自定义属性(PRMItem)Map key:itemField value: PRMItem
     */
    public Map<String, PRMItem> getCustomMap() {
        return customMap;
    }
 
    /**
     * 设置 表格引用 的表单里自定义属性(PRMItem)Map key:itemField value: PRMItem
     * @param customMap 表格引用 的表单里自定义属性(PRMItem)Map key:itemField value: PRMItem
     */
    public void setCustomMap(Map<String, PRMItem> customMap) {
        this.customMap = customMap;
    }
 
    /**
     * 返回 表格引用 的表单里文件类型的属性(PRMItem)Map key:itemField value: PRMItem
     * @return 表格引用 的表单里文件类型的属性(PRMItem)Map key:itemField value: PRMItem
     */
    public Map<String, PRMItem> getFileMap() {
        return fileMap;
    }
 
    /**
     * 设置 表格引用 的表单里文件类型的属性(PRMItem)Map key:itemField value: PRMItem
     * @param fileMap 表格引用 的表单里文件类型的属性(PRMItem)Map key:itemField value: PRMItem
     */
    public void setFileMap(Map<String, PRMItem> fileMap) {
        this.fileMap = fileMap;
    }
 
    /**
     * 返回 表格引用 的表单里有显示表达式的属性(PRMItem)Map key:itemField value: PRMItem
     * @return 表格引用 的表单里有显示表达式的属性(PRMItem)Map key:itemField value: PRMItem
     */
    public Map<String, PRMItem> getShowExpressMap() {
        return showExpressMap;
    }
 
    /**
     * 设置 表格引用 的表单里有显示表达式的属性(PRMItem)Map key:itemField value: PRMItem
     * @param showExpressMap 表格引用 的表单里有显示表达式的属性(PRMItem)Map key:itemField value: PRMItem
     */
    public void setShowExpressMap(Map<String, PRMItem> showExpressMap) {
        this.showExpressMap = showExpressMap;
    }
    
    /**
     * 返回 表格查询返回要显示的字段
     * @return 表格查询返回要显示的字段
     */
    public List<String> getShowFields() {
        return showFields;
    }
 
    /**
     * 设置 表格查询返回要显示的字段
     * @param showFields 表格查询返回要显示的字段
     */
    public void setShowFields(List<String> showFields) {
        this.showFields = showFields;
    }
    
    /**
     * 返回 表格查询时使用的链接类型
     * @return
     */
    public String getLinkType(){
        return this.linkType;
    }
    /**
     * 设置 表格查询时使用的链接类型
     * @param linkType
     * @return
     */
    public String setLinkType(String linkType){
        return this.linkType = linkType;
    }
    
    private boolean isIgnoreFileColumn = true;
    /**
     * 返回 是否忽略对文件类型的属性进行处理,true:忽略,false:不忽略
     * @return
     */
    public boolean isIgnoreFileColumn() {
        return isIgnoreFileColumn;
    }
    /**
     * 设置 是否忽略对文件类型的属性进行处理,true:忽略,false:不忽略
     * @param isIgnoreFileColumn
     */
    public void setIgnoreFileColumn(boolean isIgnoreFileColumn) {
        this.isIgnoreFileColumn = isIgnoreFileColumn;
    }
    
}