package com.companymodule.bean;
import java.io.Serializable;
import java.util.List;
import com.companytypemodule.bean.TbCompanyType;
import com.companytypemodule.dao.TbCompanyTypeDAO;
import com.creditratingmodule.bean.TbCreditRating;
import com.creditratingmodule.dao.TbCreditRatingDAO;
public class TbCompany implements Serializable{
private int companyId;
private String companyCode;
private String companyTypeId;
private List<TbCompanyType> tbCompanyTypeList;
private String companyName;
private String parentCompanyName;
private String companyAddress;
private String companyTelphone;
private String companyMobile;
private String companyCreateTime;
private int companyManCount;
private String companyContactList;
private int creditRatingId;
private TbCreditRating tbCreditRating;
private String companyMemo;
private String createTime;
public int getCompanyId(){
return companyId;
}
public void setCompanyId(int companyId){
this.companyId = companyId;
}
public String getCompanyCode(){
return companyCode;
}
public void setCompanyCode(String companyCode){
this.companyCode = companyCode;
}
public String getCompanyTypeId(){
return companyTypeId;
}
public void setCompanyTypeId(String companyTypeId){
this.tbCompanyTypeList=new TbCompanyTypeDAO().getTbCompanyTypeListByCompanyTypeId(companyTypeId);
this.companyTypeId = companyTypeId;
}
public List<TbCompanyType> getTbCompanyTypeList() {
return tbCompanyTypeList;
}
public void setTbCompanyTypeList(List<TbCompanyType> tbCompanyTypeList) {
this.tbCompanyTypeList = tbCompanyTypeList;
}
public String getCompanyName(){
return companyName;
}
public void setCompanyName(String companyName){
this.companyName = companyName;
}
public String getParentCompanyName(){
return parentCompanyName;
}
public void setParentCompanyName(String parentCompanyName){
this.parentCompanyName = parentCompanyName;
}
public String getCompanyAddress(){
return companyAddress;
}
public void setCompanyAddress(String companyAddress){
this.companyAddress = companyAddress;
}
public String getCompanyTelphone(){
return companyTelphone;
}
public void setCompanyTelphone(String companyTelphone){
this.companyTelphone = companyTelphone;
}
public String getCompanyMobile(){
return companyMobile;
}
public void setCompanyMobile(String companyMobile){
this.companyMobile = companyMobile;
}
public String getCompanyCreateTime(){
return companyCreateTime;
}
public void setCompanyCreateTime(String companyCreateTime){
this.companyCreateTime = companyCreateTime;
}
public int getCompanyManCount(){
return companyManCount;
}
public void setCompanyManCount(int companyManCount){
this.companyManCount = companyManCount;
}
public String getCompanyContactList(){
return companyContactList;
}
public void setCompanyContactList(String companyContactList){
this.companyContactList = companyContactList;
}
public int getCreditRatingId(){
return creditRatingId;
}
public void setCreditRatingId(int creditRatingId){
this.tbCreditRating=new TbCreditRatingDAO().getTbCreditRatingByCreditRatingId(creditRatingId);
this.creditRatingId = creditRatingId;
}
public TbCreditRating getTbCreditRating() {
return tbCreditRating;
}
public void setTbCreditRating(TbCreditRating tbCreditRating) {
this.tbCreditRating = tbCreditRating;
}
public String getCompanyMemo(){
return companyMemo;
}
public void setCompanyMemo(String companyMemo){
this.companyMemo = companyMemo;
}
public String getCreateTime(){
return createTime;
}
public void setCreateTime(String createTime){
this.createTime = createTime;
}
public TbCompany(){
}
public TbCompany(String companyCode,String companyTypeId,String companyName,String parentCompanyName,String companyAddress,String companyTelphone,String companyMobile,String companyCreateTime,int companyManCount,String companyContactList,int creditRatingId,String companyMemo,String createTime){
this.companyCode = companyCode;
this.companyTypeId = companyTypeId;
this.companyName = companyName;
this.parentCompanyName = parentCompanyName;
this.companyAddress = companyAddress;
this.companyTelphone = companyTelphone;
this.companyMobile = companyMobile;
this.companyCreateTime = companyCreateTime;
this.companyManCount = companyManCount;
this.companyContactList = companyContactList;
this.creditRatingId = creditRatingId;
this.companyMemo = companyMemo;
this.createTime = createTime;
}
public TbCompany(int companyId,String companyCode,String companyTypeId,String companyName,String parentCompanyName,String companyAddress,String companyTelphone,String companyMobile,String companyCreateTime,int companyManCount,String companyContactList,int creditRatingId,String companyMemo,String createTime){
this.companyId = companyId;
this.companyCode = companyCode;
this.companyTypeId = companyTypeId;
this.companyName = companyName;
this.parentCompanyName = parentCompanyName;
this.companyAddress = companyAddress;
this.companyTelphone = companyTelphone;
this.companyMobile = companyMobile;
this.companyCreateTime = companyCreateTime;
this.companyManCount = companyManCount;
this.companyContactList = companyContactList;
this.creditRatingId = creditRatingId;
this.companyMemo = companyMemo;
this.createTime = createTime;
}
}