老系统对接
This commit is contained in:
82
src/com/sino/rrs/entity/Pager.java
Normal file
82
src/com/sino/rrs/entity/Pager.java
Normal file
@ -0,0 +1,82 @@
|
||||
package com.sino.rrs.entity;
|
||||
|
||||
/**
|
||||
* <20><>ǰҳ ÿҳ<C3BF><D2B3>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD> <20><>ҳ<EFBFBD><D2B3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*/
|
||||
public class Pager {
|
||||
|
||||
public static final int page_size=2; //Ĭ<><C4AC>ÿҳ<C3BF><D2B3>ʾ<EFBFBD><CABE>
|
||||
|
||||
public static final int page_num=1; //Ĭ<><C4AC>ҳ<EFBFBD><D2B3>
|
||||
|
||||
private int page; //ҳ<><D2B3>
|
||||
|
||||
private int limit=page_size; //ÿҳ<C3BF><D2B3>ʾ<EFBFBD><CABE>
|
||||
|
||||
private int totalPageNum; //<2F><>ҳ<EFBFBD><D2B3>
|
||||
|
||||
private int totalCount; //<2F><><EFBFBD><EFBFBD>
|
||||
|
||||
// private List<T> rows=new ArrayList<T>(); //<2F><>ҳ<EFBFBD><D2B3>Ϣ
|
||||
|
||||
private int start; //<2F><>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼֵ
|
||||
|
||||
private int endIndex; //<2F><>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
|
||||
|
||||
|
||||
public int getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public int getTotalPageNum() {
|
||||
return totalPageNum;
|
||||
}
|
||||
|
||||
public void setTotalPageNum(int totalPageNum) {
|
||||
this.totalPageNum = totalPageNum;
|
||||
}
|
||||
|
||||
public int getTotalCount() {
|
||||
return totalCount;
|
||||
}
|
||||
|
||||
public void setTotalCount(int totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
}
|
||||
|
||||
|
||||
public int getStart() {
|
||||
if(page==1){
|
||||
|
||||
}
|
||||
return start;
|
||||
}
|
||||
|
||||
public void setStart(int start) {
|
||||
this.start = start;
|
||||
}
|
||||
|
||||
public int getEndIndex() {
|
||||
return endIndex;
|
||||
}
|
||||
|
||||
public void setEndIndex(int endIndex) {
|
||||
this.endIndex = endIndex;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user