package com.usersmodule.bean;
import java.io.Serializable;
import com.usersmodule.dao.TbUsersDAO;
public class TbUsers implements Serializable{
private int userId;
private String userName;
private String userNickName;
private String userCardId;
private String userWorkId;
private String userPass;
private String userPhone;
private String userEmail;
private String userAddress;
private String userBirthday;
private String userInCompanyTime;
private int userState;
private int parentUserId;
private TbUsers tbUserParent;
private int createUserId;
private TbUsers tbUserCreate;
private int isEnable;
private String userMemo;
private String createTime;
public TbUsers getTbUserParent() {
return tbUserParent;
}
public void setTbUserParent(TbUsers tbUserParent) {
this.tbUserParent = tbUserParent;
}
public TbUsers getTbUserCreate() {
return tbUserCreate;
}
public void setTbUserCreate(TbUsers tbUserCreate) {
this.tbUserCreate = tbUserCreate;
}
public int getUserId(){
return userId;
}
public void setUserId(int userId){
this.userId = userId;
}
public String getUserName(){
return userName;
}
public void setUserName(String userName){
this.userName = userName;
}
public String getUserNickName(){
return userNickName;
}
public void setUserNickName(String userNickName){
this.userNickName = userNickName;
}
public String getUserCardId(){
return userCardId;
}
public void setUserCardId(String userCardId){
this.userCardId = userCardId;
}
public String getUserWorkId(){
return userWorkId;
}
public void setUserWorkId(String userWorkId){
this.userWorkId = userWorkId;
}
public String getUserPass(){
return userPass;
}
public void setUserPass(String userPass){
this.userPass = userPass;
}
public String getUserPhone(){
return userPhone;
}
public void setUserPhone(String userPhone){
this.userPhone = userPhone;
}
public String getUserEmail(){
return userEmail;
}
public void setUserEmail(String userEmail){
this.userEmail = userEmail;
}
public String getUserAddress(){
return userAddress;
}
public void setUserAddress(String userAddress){
this.userAddress = userAddress;
}
public String getUserBirthday(){
return userBirthday;
}
public void setUserBirthday(String userBirthday){
this.userBirthday = userBirthday;
}
public String getUserInCompanyTime(){
return userInCompanyTime;
}
public void setUserInCompanyTime(String userInCompanyTime){
this.userInCompanyTime = userInCompanyTime;
}
public int getUserState(){
return userState;
}
public void setUserState(int userState){
this.userState = userState;
}
public int getParentUserId(){
return parentUserId;
}
public void setParentUserId(int parentUserId){
this.tbUserParent=this.parentUserId==parentUserId?this:new TbUsersDAO().getTbUsersByUserId(parentUserId);
this.parentUserId = parentUserId;
}
public int getCreateUserId(){
return createUserId;
}
public void setCreateUserId(int createUserId){
this.tbUserCreate=this.createUserId==createUserId?this:new TbUsersDAO().getTbUsersByUserId(parentUserId);
this.createUserId = createUserId;
}
public int getIsEnable(){
return isEnable;
}
public void setIsEnable(int isEnable){
this.isEnable = isEnable;
}
public String getUserMemo(){
return userMemo;
}
public void setUserMemo(String userMemo){
this.userMemo = userMemo;
}
public String getCreateTime(){
return createTime;
}
public void setCreateTime(String createTime){
this.createTime = createTime;
}
public TbUsers(){
}
public TbUsers(String userName, String userPass) {
this.userName = userName;
this.userPass = userPass;
}
public TbUsers(String userName,String userNickName,String userCardId,String userWorkId,String userPass,String userPhone,String userEmail,String userAddress,String userBirthday,String userInCompanyTime,int userState,int parentUserId,int createUserId,int isEnable,String userMemo,String createTime){
this.userName = userName;
this.userNickName = userNickName;
this.userCardId = userCardId;
this.userWorkId = userWorkId;
this.userPass = userPass;
this.userPhone = userPhone;
this.userEmail = userEmail;
this.userAddress = userAddress;
this.userBirthday = userBirthday;
this.userInCompanyTime = userInCompanyTime;
this.userState = userState;
this.parentUserId = parentUserId;
this.createUserId = createUserId;
this.isEnable = isEnable;
this.userMemo = userMemo;
this.createTime = createTime;
}
public TbUsers(int userId,String userName,String userNickName,String userCardId,String userWorkId,String userPass,String userPhone,String userEmail,String userAddress,String userBirthday,String userInCompanyTime,int userState,int parentUserId,int createUserId,int isEnable,String userMemo,String createTime){
this.userId = userId;
this.userName = userName;
this.userNickName = userNickName;
this.userCardId = userCardId;
this.userWorkId = userWorkId;
this.userPass = userPass;
this.userPhone = userPhone;
this.userEmail = userEmail;
this.userAddress = userAddress;
this.userBirthday = userBirthday;
this.userInCompanyTime = userInCompanyTime;
this.userState = userState;
this.parentUserId = parentUserId;
this.createUserId = createUserId;
this.isEnable = isEnable;
this.userMemo = userMemo;
this.createTime = createTime;
}
}