oa办公系统

源代码在线查看: dept.java

软件大小: 14932 K
上传用户: lemon_zc1949
关键词:
下载地址: 免注册下载 普通下载 VIP

相关代码

				/**FileName:Dept.java,v 1.0 created in 2008-11-5 上午09:38:52*/
				package cn.jx.ecjtu.oa.ps.pojo;
				
				/**
				 *部门信息类
				 * @author hupeng
				 * @version $Revision: 1.5 $
				 * @since 1.0
				 */
				public class Dept {
				
					private int dept_id;
					private String name;
					private int manager_id;
					private String address;
					private String phone;
					private String fax;
					private int predept_id;
					private String duty;
					private int sort_number;
					public Dept() {
						// TODO Auto-generated constructor stub
					}
					
					public Dept(int dept_id, String name, int manager_id, String address, String phone, String fax, int predept_id, String duty, int sort_number) {
						super();
						this.dept_id = dept_id;
						this.name = name;
						this.manager_id = manager_id;
						this.address = address;
						this.phone = phone;
						this.fax = fax;
						this.predept_id = predept_id;
						this.duty = duty;
						this.sort_number = sort_number;
					}
				
					public String getAddress() {
						return address;
					}
				
					public void setAddress(String address) {
						this.address = address;
					}
				
					public int getDept_id() {
						return dept_id;
					}
				
					public void setDept_id(int dept_id) {
						this.dept_id = dept_id;
					}
				
					public String getDuty() {
						return duty;
					}
				
					public void setDuty(String duty) {
						this.duty = duty;
					}
				
					public String getFax() {
						return fax;
					}
				
					public void setFax(String fax) {
						this.fax = fax;
					}
				
					public int getManager_id() {
						return manager_id;
					}
				
					public void setManager_id(int manager_id) {
						this.manager_id = manager_id;
					}
				
					public String getName() {
						return name;
					}
				
					public void setName(String name) {
						this.name = name;
					}
				
					public String getPhone() {
						return phone;
					}
				
					public void setPhone(String phone) {
						this.phone = phone;
					}
				
					public int getPredept_id() {
						return predept_id;
					}
				
					public void setPredept_id(int predept_id) {
						this.predept_id = predept_id;
					}
				
					public int getSort_number() {
						return sort_number;
					}
				
					public void setSort_number(int sort_number) {
						this.sort_number = sort_number;
					}
				
					@Override
					public int hashCode() {
						final int PRIME = 31;
						int result = 1;
						result = PRIME * result + ((address == null) ? 0 : address.hashCode());
						result = PRIME * result + dept_id;
						result = PRIME * result + ((duty == null) ? 0 : duty.hashCode());
						result = PRIME * result + ((fax == null) ? 0 : fax.hashCode());
						result = PRIME * result + manager_id;
						result = PRIME * result + ((name == null) ? 0 : name.hashCode());
						result = PRIME * result + ((phone == null) ? 0 : phone.hashCode());
						result = PRIME * result + predept_id;
						result = PRIME * result + sort_number;
						return result;
					}
				
					@Override
					public boolean equals(Object obj) {
						if (this == obj)
							return true;
						if (obj == null)
							return false;
						if (getClass() != obj.getClass())
							return false;
						final Dept other = (Dept) obj;
						if (address == null) {
							if (other.address != null)
								return false;
						} else if (!address.equals(other.address))
							return false;
						if (dept_id != other.dept_id)
							return false;
						if (duty == null) {
							if (other.duty != null)
								return false;
						} else if (!duty.equals(other.duty))
							return false;
						if (fax == null) {
							if (other.fax != null)
								return false;
						} else if (!fax.equals(other.fax))
							return false;
						if (manager_id != other.manager_id)
							return false;
						if (name == null) {
							if (other.name != null)
								return false;
						} else if (!name.equals(other.name))
							return false;
						if (phone == null) {
							if (other.phone != null)
								return false;
						} else if (!phone.equals(other.phone))
							return false;
						if (predept_id != other.predept_id)
							return false;
						if (sort_number != other.sort_number)
							return false;
						return true;
					}
				
				
				}
							

相关资源