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


package operation; 
 
import java.util.Vector; 
 
import entity.ContactBean; 
 
public class GetListPage 
{ 
	public int curPage = 0; 
	public int maxPage = 0; 
	public int maxRowCount=0; 
	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 GetListPage(GetListOperation glo) throws Exception 
	{ 
		this.maxRowCount=glo.totalrows; 
		this.data=glo.getResult(); 
		this.countMaxPage(); 
		 
	} 
 
}