www.pudn.com > BeiJie.rar > OrderCheckBean.java
package entity;
import java.util.Vector;
import operation.OrderListCheckOperation;
public class OrderCheckBean
{
public int curPage = 0;
public int maxPage;
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 OrderCheckBean(OrderListCheckOperation olco) throws Exception
{
this.maxRowCount=olco.totalrows;
this.data=olco.getResult();
this.countMaxPage();
}
}