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;
|
}
|
|
}
|