⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 page.java

📁 网上办公管理系统。模拟主流网站办公管理系统的基本业务流程。
💻 JAVA
字号:
/*
 * Created on 2004-9-28
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package oa.sys;

import java.util.*;

public class Page {
	public int curPage;//当前页
	public int maxPage;//最大页
	public int maxRowCount;//最大行
	public int rowsPerPage=5;//每页行
	public Collection coll=null;
	public Page(){
	}
	
	public void getCountPage(){
		if(this.maxRowCount%this.rowsPerPage==0){
			this.maxPage=this.maxRowCount/this.rowsPerPage;
		}else{
			this.maxPage=this.maxRowCount/this.rowsPerPage+1;
		}
	}
	public Collection getResult(){
		return this.coll;
	}
	public Page(Contact contact)throws Exception{
		this.maxRowCount=contact.getCount();
		this.coll=contact.getResult();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -