Package com.departusermiddlemodule.bean

Source Code of com.departusermiddlemodule.bean.TbDepartUserMiddle

package com.departusermiddlemodule.bean;

import java.io.Serializable;

import com.departmodule.bean.TbDepart;
import com.departmodule.dao.TbDepartDAO;
import com.usersmodule.bean.TbUsers;
import com.usersmodule.dao.TbUsersDAO;

public class TbDepartUserMiddle implements Serializable{

    private int departUserMiddleId;

    private int departId;
    private TbDepart tbDepart;
    private int userId;
    private TbUsers tbUsers;

    private int isMaster;

    private String createTime;

    public int getDepartUserMiddleId(){
        return departUserMiddleId;
    }

    public void setDepartUserMiddleId(int departUserMiddleId){
        this.departUserMiddleId = departUserMiddleId;
    }

    public int getDepartId(){
        return departId;
    }

    public void setDepartId(int departId){
        this.departId = departId;
        this.tbDepart=new TbDepartDAO().getTbDepartByDepartId(departId);
    }

    public int getUserId(){
        return userId;
    }

    public void setUserId(int userId){
        this.userId = userId;
        this.tbUsers=new TbUsersDAO().getTbUsersByUserId(userId);
    }

    public int getIsMaster(){
        return isMaster;
    }

    public void setIsMaster(int isMaster){
        this.isMaster = isMaster;
    }

    public String getCreateTime(){
        return createTime;
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }
   
    public TbDepart getTbDepart() {
    return tbDepart;
  }

  public void setTbDepart(TbDepart tbDepart) {
    this.tbDepart = tbDepart;
  }

  public TbUsers getTbUsers() {
    return tbUsers;
  }

  public void setTbUsers(TbUsers tbUsers) {
    this.tbUsers = tbUsers;
  }

  public TbDepartUserMiddle(){
    }
        public TbDepartUserMiddle(int departId,int userId,int isMaster,String createTime){
        this.departId = departId;
        this.userId = userId;
        this.isMaster = isMaster;
        this.createTime = createTime;
    }
    public TbDepartUserMiddle(int departUserMiddleId,int departId,int userId,int isMaster,String createTime){
        this.departUserMiddleId = departUserMiddleId;
        this.departId = departId;
        this.userId = userId;
        this.isMaster = isMaster;
        this.createTime = createTime;
    }
}
TOP

Related Classes of com.departusermiddlemodule.bean.TbDepartUserMiddle

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.