package com.cloudcross.ssp.model;

import java.util.Date;

import com.cloudcross.ssp.web.widget.SelectorController.ISelector;
/**
 * *
 * @author CloudCross
 *	和t_advertiser表相关
 *	是广告主的对应的实体类
 *	
 */
public class Advertiser implements ISelector{
	//广告主Id
	private Long id;
	//行业Id （t_industry.id）
	private Long industryId;
	//代理商（t_adv_agent.id）
	private Long agentId;
	//运营商id（t_operator.id）
	private Long operatorId;
	//广告主名字
	private String name;
	//公司注册名
	private String regName;
	//网址
	private String homePage;
	//联系人
	private String contacts;
	//电话
	private String tel;
	//电子邮件
	private String email;
	//备注
	private String memo; 
	//资金余额
	private Float balance;
	//CPI文件路径
	private String cpiPath; 
	//营业执照路径
	private String licencePath; 
	//法人代表身份证路径
	private String idPath; 
	//企业机构代码证
	private String orgPath; 
	//审核人账号id（t_account.id）
	private Long checkAccount; 
	//审核状态（0未审核，1审核通过，-1审核未通过）
	private Integer checkStatus; 
	//审核备注
	private String checkMemo; 
	//管理员账号Id
	private Long adminId;
	//状态
	private Integer status;
	//最后更新日期
	private Date updated;
	
	/****************************************************/
	//辅助字段，在数据库中没有对应的列
	//订单数量
	private Long orderNum;
	//行业名称
	private String industryName;
		
	/******************************************************/
	//下拉框取值要用到的方法
	//获取广告主名字
	public String getLabel() {
		// TODO Auto-generated method stub
		return this.getName();
	}
	//获取广告主ID
	public String getValue() {
		// TODO Auto-generated method stub
		return String.valueOf(this.getId());
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getIndustryId() {
		return industryId;
	}
	public void setIndustryId(Long industryId) {
		this.industryId = industryId;
	}
	public Long getAgentId() {
		return agentId;
	}
	public void setAgentId(Long agentId) {
		this.agentId = agentId;
	}
	public Long getOperatorId() {
		return operatorId;
	}
	public void setOperatorId(Long operatorId) {
		this.operatorId = operatorId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRegName() {
		return regName;
	}
	public void setRegName(String regName) {
		this.regName = regName;
	}
	public String getHomePage() {
		return homePage;
	}
	public void setHomePage(String homePage) {
		this.homePage = homePage;
	}
	public String getContacts() {
		return contacts;
	}
	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public Float getBalance() {
		return balance;
	}
	public void setBalance(Float balance) {
		this.balance = balance;
	}
	public String getCpiPath() {
		return cpiPath;
	}
	public void setCpiPath(String cpiPath) {
		this.cpiPath = cpiPath;
	}
	public String getLicencePath() {
		return licencePath;
	}
	public void setLicencePath(String licencePath) {
		this.licencePath = licencePath;
	}
	public String getIdPath() {
		return idPath;
	}
	public void setIdPath(String idPath) {
		this.idPath = idPath;
	}
	public String getOrgPath() {
		return orgPath;
	}
	public void setOrgPath(String orgPath) {
		this.orgPath = orgPath;
	}
	public Long getCheckAccount() {
		return checkAccount;
	}
	public void setCheckAccount(Long checkAccount) {
		this.checkAccount = checkAccount;
	}
	public Integer getCheckStatus() {
		return checkStatus;
	}
	public void setCheckStatus(Integer checkStatus) {
		this.checkStatus = checkStatus;
	}
	public String getCheckMemo() {
		return checkMemo;
	}
	public void setCheckMemo(String checkMemo) {
		this.checkMemo = checkMemo;
	}
	public Long getAdminId() {
		return adminId;
	}
	public void setAdminId(Long adminId) {
		this.adminId = adminId;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Date getUpdated() {
		return updated;
	}
	public void setUpdated(Date updated) {
		this.updated = updated;
	}
	public Long getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(Long orderNum) {
		this.orderNum = orderNum;
	}
	public String getIndustryName() {
		return industryName;
	}
	public void setIndustryName(String industryName) {
		this.industryName = industryName;
	}
	@Override
	public String toString() {
		return "Advertiser [id=" + id + ", industryId=" + industryId
				+ ", agentId=" + agentId + ", operatorId=" + operatorId
				+ ", name=" + name + ", regName=" + regName + ", homePage="
				+ homePage + ", contacts=" + contacts + ", tel=" + tel
				+ ", email=" + email + ", memo=" + memo + ", balance="
				+ balance + ", cpiPath=" + cpiPath + ", licencePath="
				+ licencePath + ", idPath=" + idPath + ", orgPath=" + orgPath
				+ ", checkAccount=" + checkAccount + ", checkStatus="
				+ checkStatus + ", checkMemo=" + checkMemo + ", adminId="
				+ adminId + ", status=" + status + ", updated=" + updated
				+ ", orderNum=" + orderNum + ", industryName=" + industryName
				+ "]";
	}
	
	
	
}
