Package com.projectmodule.bean

Source Code of com.projectmodule.bean.TbProject

package com.projectmodule.bean;

import java.io.Serializable;

import com.contractmodule.bean.TbContract;
import com.contractmodule.dao.TbContractDAO;
import com.tempprojectgroupmodule.bean.TbTempProjectGroup;
import com.tempprojectgroupmodule.dao.TbTempProjectGroupDAO;

public class TbProject implements Serializable{

    private int projectId;

    private String projectCode;

    private String projectName;

    private String projectStartTime;

    private String projectEndTime;

    private String projectAcceptanceTime;

    private String contractCode;
   
    private TbContract tbContract;

    private String projectManager;

    private String tempProjectGroupCode;
   
    private TbTempProjectGroup tbTempProjectGroup;

    public int getProjectId(){
        return projectId;
    }

    public void setProjectId(int projectId){
        this.projectId = projectId;
    }

    public String getProjectCode(){
        return projectCode;
    }

    public void setProjectCode(String projectCode){
        this.projectCode = projectCode;
    }

    public String getProjectName(){
        return projectName;
    }

    public void setProjectName(String projectName){
        this.projectName = projectName;
    }

    public String getProjectStartTime(){
        return projectStartTime;
    }

    public void setProjectStartTime(String projectStartTime){
        this.projectStartTime = projectStartTime;
    }

    public String getProjectEndTime(){
        return projectEndTime;
    }

    public void setProjectEndTime(String projectEndTime){
        this.projectEndTime = projectEndTime;
    }

    public String getProjectAcceptanceTime(){
        return projectAcceptanceTime;
    }

    public void setProjectAcceptanceTime(String projectAcceptanceTime){
        this.projectAcceptanceTime = projectAcceptanceTime;
    }

    public String getContractCode(){
        return contractCode;
    }

    public void setContractCode(String contractCode){
      this.tbContract=new TbContractDAO().getTbContractByContractCode(contractCode);
        this.contractCode = contractCode;
    }
   
    public TbContract getTbContract() {
    return tbContract;
  }

  public void setTbContract(TbContract tbContract) {
    this.tbContract = tbContract;
  }

  public String getProjectManager(){
        return projectManager;
    }

    public void setProjectManager(String projectManager){
        this.projectManager = projectManager;
    }

    public String getTempProjectGroupCode(){
        return tempProjectGroupCode;
    }

    public void setTempProjectGroupCode(String tempProjectGroupCode){
      this.tbTempProjectGroup=new TbTempProjectGroupDAO().getTbTempProjectGroupByTempProjectGroupId(Integer.parseInt(tempProjectGroupCode));
        this.tempProjectGroupCode = tempProjectGroupCode;
    }

    public TbTempProjectGroup getTbTempProjectGroup() {
    return tbTempProjectGroup;
  }

  public void setTbTempProjectGroup(TbTempProjectGroup tbTempProjectGroup) {
    this.tbTempProjectGroup = tbTempProjectGroup;
  }
   
  public TbProject(){
    }
        public TbProject(String projectCode,String projectName,String projectStartTime,String projectEndTime,String projectAcceptanceTime,String contractCode,String projectManager,String tempProjectGroupCode){
        this.projectCode = projectCode;
        this.projectName = projectName;
        this.projectStartTime = projectStartTime;
        this.projectEndTime = projectEndTime;
        this.projectAcceptanceTime = projectAcceptanceTime;
        this.contractCode = contractCode;
        this.projectManager = projectManager;
        this.tempProjectGroupCode = tempProjectGroupCode;
    }
    public TbProject(int projectId,String projectCode,String projectName,String projectStartTime,String projectEndTime,String projectAcceptanceTime,String contractCode,String projectManager,String tempProjectGroupCode){
        this.projectId = projectId;
        this.projectCode = projectCode;
        this.projectName = projectName;
        this.projectStartTime = projectStartTime;
        this.projectEndTime = projectEndTime;
        this.projectAcceptanceTime = projectAcceptanceTime;
        this.contractCode = contractCode;
        this.projectManager = projectManager;
        this.tempProjectGroupCode = tempProjectGroupCode;
    }
}
TOP

Related Classes of com.projectmodule.bean.TbProject

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.