b5action.java

来自「struts hibernate spring」· Java 代码 · 共 69 行

JAVA
69
字号
package com.syfxapp.struts.action;
import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.syfxapp.service.DmNyManager;
import com.syfxapp.service.impl.QueryManagerImpl;


public class B5Action extends ActionSupport {
	private QueryManagerImpl queryMgr;
	private String ny;
	private List listB5;
	private int maxRes;
	private String currentPageNo;
	private String toolsBarHtml;
	private String toolsBarHtmlSave;
	public int getMaxRes() {
		return maxRes;
	}
	public void setMaxRes(int maxRes) {
		this.maxRes = maxRes;
		queryMgr.setMaxRes(maxRes);
	}
	public String getCurrentPageNo() {
		return currentPageNo;
	}
	public void setCurrentPageNo(String currentPageNo) {
		this.currentPageNo = currentPageNo;
		queryMgr.setCurrentPageNo(currentPageNo);
	}
	public String getToolsBarHtmlSave() {
		return toolsBarHtmlSave;
	}
	public void setToolsBarHtmlSave(String toolsBarHtmlSave) {
		this.toolsBarHtmlSave = toolsBarHtmlSave;
	}
	public String getToolsBarHtml() {
		return queryMgr.getToolsBarHtml();
	}
	public void setToolsBarHtml(String toolsBarHtml) {
		this.toolsBarHtml = toolsBarHtml;
	}
	public void setQueryMgr(QueryManagerImpl queryMgr) {
		this.queryMgr = queryMgr;
	}
	public String list(){
		queryMgr.setMaxRes(maxRes);
		queryMgr.setCurrentPageNo(currentPageNo);
		this.listB5=queryMgr.getB5List(this.ny);
		this.setToolsBarHtml(queryMgr.getToolsBarHtml());
		this.setToolsBarHtmlSave(queryMgr.getToolsBarHtmlSave());
		return SUCCESS;
	}
	public String getNy() {
		return ny;
	}
	public void setNy(String ny) {
		this.ny = ny;
	}
	public List getListB5() {
		return listB5;
	}
	public void setListB5(List listB5) {
		this.listB5 = listB5;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?