staffmodel.java

来自「WAP PUSH后台源码,WAP PUSH后台源码」· Java 代码 · 共 190 行

JAVA
190
字号
package com.sxit.wap.staff;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class StaffModel implements java.io.Serializable {  int id = 0;  String userMdn = "";  String userName = "";  int sex = 0;  String tel = "";  String fax = "";  String job = "";  String address = "";  String post = "";  String remark = "";  int groupId = 0;  int departmentId = 0;  int orderId = 0;  String picture = "";  String email = "";  public StaffModel(int id, String userMdn, String userName, int sex, String tel, String fax, String job, String address, String post, String remark, int groupId, int departmentId, int orderId, String picture, String email){    this.id = id;    if (userMdn == null) userMdn = "";    this.userMdn = userMdn;    if (userName == null) userName = "";    this.userName = userName;    this.sex = sex;    if (tel == null) tel = "";    this.tel = tel;    if (fax == null) fax = "";    this.fax = fax;    if (job == null) job = "";    this.job = job;    if (address == null) address = "";    this.address = address;    if (post == null) post = "";    this.post = post;    if (remark == null) remark = "";    this.remark = remark;    this.groupId = groupId;    this.departmentId = departmentId;    this.orderId = orderId;    if (picture == null) picture = "";    this.picture = picture;    if (email == null) email = "";    this.email = email;  }  public StaffModel(){  }  public int getId() {     return id;  }  public String getUserMdn() {     if (userMdn == null) userMdn = "";     return userMdn;  }  public String getUserName() {     if (userName == null) userName = "";     return userName;  }  public int getSex() {     return sex;  }  public String getTel() {     if (tel == null) tel = "";     return tel;  }  public String getFax() {     if (fax == null) fax = "";     return fax;  }  public String getJob() {     if (job == null) job = "";     return job;  }  public String getAddress() {     if (address == null) address = "";     return address;  }  public String getPost() {     if (post == null) post = "";     return post;  }  public String getRemark() {     if (remark == null) remark = "";     return remark;  }  public int getGroupId() {     return groupId;  }  public int getDepartmentId() {     return departmentId;  }  public int getOrderId() {     return orderId;  }  public String getPicture() {     if (picture == null) picture = "";     return picture;  }  public String getEmail() {     if (email == null) email = "";     return email;  }  public void setId(int id) {    this.id = id;  }  public void setUserMdn(String userMdn) {    this.userMdn = userMdn;  }  public void setUserName(String userName) {    this.userName = userName;  }  public void setSex(int sex) {    this.sex = sex;  }  public void setTel(String tel) {    this.tel = tel;  }  public void setFax(String fax) {    this.fax = fax;  }  public void setJob(String job) {    this.job = job;  }  public void setAddress(String address) {    this.address = address;  }  public void setPost(String post) {    this.post = post;  }  public void setRemark(String remark) {    this.remark = remark;  }  public void setGroupId(int groupId) {    this.groupId = groupId;  }  public void setDepartmentId(int departmentId) {    this.departmentId = departmentId;  }  public void setOrderId(int orderId) {    this.orderId = orderId;  }  public void setPicture(String picture) {    this.picture = picture;  }  public void setEmail(String email) {    this.email = email;  }  public String toString() {    String value = "";    value+= "id=" + id + "\n";    value+= "userMdn=" + userMdn + "\n";    value+= "userName=" + userName + "\n";    value+= "sex=" + sex + "\n";    value+= "tel=" + tel + "\n";    value+= "fax=" + fax + "\n";    value+= "job=" + job + "\n";    value+= "address=" + address + "\n";    value+= "post=" + post + "\n";    value+= "remark=" + remark + "\n";    value+= "groupId=" + groupId + "\n";    value+= "departmentId=" + departmentId + "\n";    value+= "orderId=" + orderId + "\n";    value+= "picture=" + picture + "\n";    value+= "email=" + email + "\n";    return value;  }  public void copy(StaffModel other) {    this.setId(other.getId());    this.setUserMdn(other.getUserMdn());    this.setUserName(other.getUserName());    this.setSex(other.getSex());    this.setTel(other.getTel());    this.setFax(other.getFax());    this.setJob(other.getJob());    this.setAddress(other.getAddress());    this.setPost(other.getPost());    this.setRemark(other.getRemark());    this.setGroupId(other.getGroupId());    this.setDepartmentId(other.getDepartmentId());    this.setOrderId(other.getOrderId());    this.setPicture(other.getPicture());    this.setEmail(other.getEmail());  }}

⌨️ 快捷键说明

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