www.pudn.com > BeiJie.rar > EnterPageBean.java


package entity; 
 
import java.util.Vector; 
 
import operation.EnterCheckOperation; 
 
 
public class EnterPageBean 
{ 
	public int curPage = 0; 
	public int maxPage = 0; 
	public int maxRowCount; 
	public int rowsPerPage = 30; 
	public Vector data; 
	 
	public void countMaxPage() 
	{ 
		if(this.maxRowCount%this.rowsPerPage==0) 
		{ 
			this.maxPage=this.maxRowCount/this.rowsPerPage; 
			 
		} 
		else 
		{ 
			this.maxPage=this.maxRowCount/this.rowsPerPage+1; 
		} 
		 
	} 
	public Vector getResult() 
	{ 
		return this.data; 
	} 
	public EnterPageBean(EnterCheckOperation eco) throws Exception 
	{ 
		this.maxRowCount=eco.totalrows; 
		this.data=eco.getResult(); 
		this.countMaxPage(); 
		 
	} 
}