package qi.yun.dong.action;

import java.io.InputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import qi.yun.dong.util.MyPagination;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class MyBaseAction extends ActionSupport {

	/* 封装request对象与response对象 */
	protected HttpServletRequest request;
	protected HttpServletResponse response;

	// 封装分页对象
	protected MyPagination pagination; // 分页对象
	/* 分页相关信息 rows 每页显示的记录数 */
	protected Integer limit;
	protected Integer start;
	/* page代表的是当前页 */
	protected Integer page;
	/* 封装排序的变量 */
	protected String order; // 代表排序的方式 asc desc
	protected String sort; // 排序的字段名称

	protected boolean msg;

	// 组合查询的sql语句 的封装
	protected String whereSql;
	protected String ids;

	// 封装导出execl到操作
	// 导出execl的流对象
	protected InputStream excelStream;
	// 导出execl的文件的名称
	protected String fileName;

	// 以上两个属性的名称必须与struts_*.xml文件中的inputName 与fileName一致

	public void setServletRequest(HttpServletRequest request) {
		this.request = request;

	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public void setServletResponse(HttpServletResponse response) {
		this.response = response;

	}

	/* 封装分页信息 */

	public MyPagination getPagination() {
		return pagination;
	}

	public void setPagination(MyPagination pagination) {
		this.pagination = pagination;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public boolean isMsg() {
		return msg;
	}

	public void setMsg(boolean msg) {
		this.msg = msg;
	}

	public String getWhereSql() {
		return whereSql;
	}

	public void setWhereSql(String whereSql) {
		this.whereSql = whereSql;
	}

	public InputStream getExcelStream() {
		return excelStream;
	}

	public void setExcelStream(InputStream excelStream) {
		this.excelStream = excelStream;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}
}
最近下载更多
newnu88  LV12 2020年2月17日
aa991215  LV17 2019年6月1日
admindiu  LV1 2019年3月19日
Marin_qing  LV1 2018年7月30日
ztz111  LV1 2018年7月11日
es123123  LV1 2018年7月7日
13545229093  LV1 2018年6月13日
zr616819363  LV2 2018年5月5日
zaihuishou1018  LV1 2018年4月24日
lvtao777  LV11 2018年4月12日
最近浏览更多
不知道取什么名字12  LV1 2022年12月14日
sssfyy 2022年7月26日
暂无贡献等级
zhao1546  LV3 2022年5月6日
wenglaoshi  LV2 2021年12月21日
hihihhjhjijijjjhjk  LV2 2021年12月4日
公司了 2021年6月25日
暂无贡献等级
小豆12138  LV1 2021年4月15日
liuguojun920  LV6 2021年2月24日
0592lyj  LV9 2020年12月10日
network_sec  LV6 2020年11月23日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友