package com.eactive.eai.rms.common.vo;

/**
 * {@link GridResponse} 을 사용
 */
@Deprecated
public class JsonPageVo  {
	private int page;
	private int totalCount;
	private int rows;
	
    public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page > 0 ? page : 1;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public int getStartNum(){
		return ( page - 1 ) * rows + 1;
	}
	public int getEndNum(){
		return ( page ) * rows;
	}
	public int getTotal(){
		return (totalCount/rows) + ((totalCount%rows)==0?0:1);
	}
	
	
//	paramMap.put("endNum", new Integer(Integer.parseInt(currentPageNum)
//			* CommonConstants.DISPLAY_COUNT));// ³¡ record
//	paramMap.put("startNum", new Integer(
//			(Integer.parseInt(currentPageNum) - 1)
//					* CommonConstants.DISPLAY_COUNT + 1));// ½ÃÀÛ record	
	
}
