/**
* OA_intentionCustomer.cs
*
* 功 能: N/A
* 类 名: OA_intentionCustomer
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2013-4-2 14:27:51 N/A 初版
*
*
*
*
*
*
*/
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// 办公系统意向客户
///
[Serializable]
public partial class OA_IntentionCustomer : IAggregateRoot
{
public OA_IntentionCustomer()
{ }
#region Model
private int? _keyid;
private Guid _firmid;
private int? _customerid;
private string _companyname;
private int? _customerindustriesid;
private int? _customertypeid;
private int? _sourcesinfoid;
private int? _degreeimportanid;
private int? _turnoverintentionid;
private string _province;
private string _city;
private string _county;
private string _detailedaddress;
private string _postcode;
private string _phonenum;
private string _mobilenum;
private string _BusinessMobile;
private string _Fax;
private string _email;
private string _qq;
private string _companyofficers;
private string _officersmobile;
private string _businessmanagers;
private string _cupost;
private int? _accountmanagerid;
private int? _businessmanagerid;
private DateTime? _createtime;
private int? _customerstatusid;
private DateTime? _lastupdatetime;
private string _operator;
private string _remark;
private string _businessmanagerName;
private string _accountmanagerName;
///
/// 客户经理
///
public string AccountmanagerName
{
get { return _accountmanagerName; }
set { _accountmanagerName = value; }
}
///
/// 业务经理
///
public string BusinessmanagerName
{
get { return _businessmanagerName; }
set { _businessmanagerName = value; }
}
private int? _Nupdoor;
///
/// 上门次数
///
public int? Nupdoor
{
get { return _Nupdoor; }
set { _Nupdoor = value; }
}
private int? _Nphone;
///
/// 电话访问次数
///
public int? Nphone
{
get { return _Nphone; }
set { _Nphone = value; }
}
private int? _Nmessage;
///
/// 短信访问次数
///
public int? Nmessage
{
get { return _Nmessage; }
set { _Nmessage = value; }
}
private int? _Nqq;
///
/// qq访问次数
///
public int? Nqq
{
get { return _Nqq; }
set { _Nqq = value; }
}
private int? _NDirectMail;
///
/// 信函访问次数
///
public int? NDirectMail
{
get { return _NDirectMail; }
set { _NDirectMail = value; }
}
private int? _Nemial;
///
/// 邮件访问次数
///
public int? Nemial
{
get { return _Nemial; }
set { _Nemial = value; }
}
private int? _Nall;
///
/// 总的访问次数
///
public int? Nall
{
get { return _Nall; }
set { _Nall = value; }
}
///
/// 数据编号
///
public int? Keyid
{
set { _keyid = value; }
get { return _keyid; }
}
///
/// 关联厂商
///
public Guid FirmId
{
set { _firmid = value; }
get { return _firmid; }
}
///
/// 展示编号
///
public int? CustomerId
{
set { _customerid = value; }
get { return _customerid; }
}
///
/// 公司全称
///
public string CompanyName
{
set { _companyname = value; }
get { return _companyname; }
}
///
/// 客户行业编号
///
public int? CustomerIndustriesId
{
set { _customerindustriesid = value; }
get { return _customerindustriesid; }
}
///
/// 客户类型编号
///
public int? CustomerTypeId
{
set { _customertypeid = value; }
get { return _customertypeid; }
}
///
/// 信息来源编号
///
public int? SourcesInfoId
{
set { _sourcesinfoid = value; }
get { return _sourcesinfoid; }
}
///
/// 重要程度编号
///
public int? DegreeImportanId
{
set { _degreeimportanid = value; }
get { return _degreeimportanid; }
}
///
/// 成交意向编号
///
public int? TurnoverIntentionId
{
set { _turnoverintentionid = value; }
get { return _turnoverintentionid; }
}
///
/// 省
///
public string Province
{
set { _province = value; }
get { return _province; }
}
///
/// 市
///
public string City
{
set { _city = value; }
get { return _city; }
}
///
/// 区
///
public string County
{
set { _county = value; }
get { return _county; }
}
///
/// 详细地址
///
public string DetailedAddress
{
set { _detailedaddress = value; }
get { return _detailedaddress; }
}
///
/// 邮编
///
public string Postcode
{
set { _postcode = value; }
get { return _postcode; }
}
///
/// 电话
///
public string PhoneNum
{
set { _phonenum = value; }
get { return _phonenum; }
}
///
/// 短信
///
public string MobileNum
{
set { _mobilenum = value; }
get { return _mobilenum; }
}
///
/// email
///
public string Email
{
set { _email = value; }
get { return _email; }
}
///
/// QQ
///
public string QQ
{
set { _qq = value; }
get { return _qq; }
}
///
/// 公司负责人
///
public string CompanyOfficers
{
set { _companyofficers = value; }
get { return _companyofficers; }
}
///
/// 手机
///
public string OfficersMobile
{
set { _officersmobile = value; }
get { return _officersmobile; }
}
///
/// 业务经办人
///
public string BusinessManagers
{
set { _businessmanagers = value; }
get { return _businessmanagers; }
}
///
/// 业务经办人手机
///
public string BusinessMobile
{
set
{
_BusinessMobile = value;
}
get
{
return _BusinessMobile;
}
}
///
/// 传真
///
public string Fax
{
set { _Fax= value; }
get { return _Fax; }
}
///
/// 职务
///
public string CuPost
{
set { _cupost = value; }
get { return _cupost; }
}
///
/// 客户经理编号
///
public int? AccountManagerId
{
set { _accountmanagerid = value; }
get { return _accountmanagerid; }
}
///
/// 业务经理编号
///
public int? BusinessManagerId
{
set { _businessmanagerid = value; }
get { return _businessmanagerid; }
}
///
/// 建立时间
///
public DateTime? CreateTime
{
set { _createtime = value; }
get { return _createtime; }
}
///
/// 客户状态编号
///
public int? CustomerStatusId
{
set { _customerstatusid = value; }
get { return _customerstatusid; }
}
///
/// 最后修改时间
///
public DateTime? LastUpdateTime
{
set { _lastupdatetime = value; }
get { return _lastupdatetime; }
}
///
/// 操作人
///
public string Operator
{
set { _operator = value; }
get { return _operator; }
}
///
/// 备注
///
public string Remark
{
set { _remark = value; }
get { return _remark; }
}
#endregion Model
#region Visiter
///
/// 属性访问器
///
/// 属性名
/// 索引
/// 是否将指定属性设置为传入值
/// 需要赋予的值
/// 与名称对应的属性值
public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
{
object theValue = null;
if ("Keyid".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 1)
{
this.Keyid = isChange ? MyConvert.ConvertToInt32(value) : Keyid;
theValue = this.Keyid;
}
else if ("FirmId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : FirmId;
theValue = this.FirmId;
}
else if ("CustomerId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.CustomerId = isChange ? MyConvert.ConvertToInt32(value) : CustomerId;
theValue = this.CustomerId;
}
else if ("CompanyName".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.CompanyName = isChange ? MyConvert.ConvertToString(value) : CompanyName;
theValue = this.CompanyName;
}
else if ("CustomerIndustriesId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.CustomerIndustriesId = isChange ? MyConvert.ConvertToInt32(value) : CustomerIndustriesId;
theValue = this.CustomerIndustriesId;
}
else if ("CustomerTypeId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.CustomerTypeId = isChange ? MyConvert.ConvertToInt32(value) : CustomerTypeId;
theValue = this.CustomerTypeId;
}
else if ("SourcesInfoId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.SourcesInfoId = isChange ? MyConvert.ConvertToInt32(value) : SourcesInfoId;
theValue = this.SourcesInfoId;
}
else if ("DegreeImportanId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.DegreeImportanId = isChange ? MyConvert.ConvertToInt32(value) : DegreeImportanId;
theValue = this.DegreeImportanId;
}
else if ("TurnoverintentionId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.TurnoverIntentionId = isChange ? MyConvert.ConvertToInt32(value) : TurnoverIntentionId;
theValue = this.TurnoverIntentionId;
}
else if ("Province".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 10)
{
this.Province = isChange ? MyConvert.ConvertToString(value) : Province;
theValue = this.Province;
}
else if ("City".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 11)
{
this.City = isChange ? MyConvert.ConvertToString(value) : City;
theValue = this.City;
}
else if ("County".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 12)
{
this.County = isChange ? MyConvert.ConvertToString(value) : County;
theValue = this.County;
}
else if ("DetailedAddress".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 13)
{
this.DetailedAddress = isChange ? MyConvert.ConvertToString(value) : DetailedAddress;
theValue = this.DetailedAddress;
}
else if ("Postcode".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 14)
{
this.Postcode = isChange ? MyConvert.ConvertToString(value) : Postcode;
theValue = this.Postcode;
}
else if ("PhoneNum".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 15)
{
this.PhoneNum = isChange ? MyConvert.ConvertToString(value) : PhoneNum;
theValue = this.PhoneNum;
}
else if ("MobileNum".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 16)
{
this.MobileNum = isChange ? MyConvert.ConvertToString(value) : MobileNum;
theValue = this.MobileNum;
}
else if ("Email".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 17)
{
this.Email = isChange ? MyConvert.ConvertToString(value) : Email;
theValue = this.Email;
}
else if ("QQ".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 18)
{
this.QQ = isChange ? MyConvert.ConvertToString(value) : QQ;
theValue = this.QQ;
}
else if ("CompanyOfficers".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 19)
{
this.CompanyOfficers = isChange ? MyConvert.ConvertToString(value) : CompanyOfficers;
theValue = this.CompanyOfficers;
}
else if ("OfficersMobile".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 20)
{
this.OfficersMobile = isChange ? MyConvert.ConvertToString(value) : OfficersMobile;
theValue = this.OfficersMobile;
}
else if ("BusinessManagers".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 21)
{
this.BusinessManagers = isChange ? MyConvert.ConvertToString(value) : BusinessManagers;
theValue = this.BusinessManagers;
}
else if ("CuPost".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 22)
{
this.CuPost = isChange ? MyConvert.ConvertToString(value) : CuPost;
theValue = this.CuPost;
}
else if ("AccountManagerId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 23)
{
this.AccountManagerId = isChange ? MyConvert.ConvertToInt32(value) : AccountManagerId;
theValue = this.AccountManagerId;
}
else if ("BusinessManagerId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 24)
{
this.BusinessManagerId = isChange ? MyConvert.ConvertToInt32(value) : BusinessManagerId;
theValue = this.BusinessManagerId;
}
else if ("CreateTime".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 25)
{
this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime;
theValue = this.CreateTime;
}
else if ("CustomerStatusId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 26)
{
this.CustomerStatusId = isChange ? MyConvert.ConvertToInt32(value) : CustomerStatusId;
theValue = this.CustomerStatusId;
}
else if ("LastUpdateTime".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 27)
{
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
theValue = this.LastUpdateTime;
}
else if ("Operator".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 28)
{
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
theValue = this.Operator;
}
else if ("Remark".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 29)
{
this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark;
theValue = this.Remark;
}
#region 扩展属性
else if ("CustomerIndustriesName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30)
{
this.CustomerIndustries.Name = isChange ? MyConvert.ConvertToString(value) :CustomerIndustries.Name;
theValue = this.CustomerIndustries.Name;
}
else if ("CustomerStatusName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31)
{
this.CustomerStatus.Name = isChange ? MyConvert.ConvertToString(value) : CustomerStatus.Name;
theValue = this.CustomerStatus.Name;
}
else if ("CustomerTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 32)
{
this.CustomerType.Name = isChange ? MyConvert.ConvertToString(value) : CustomerType.Name;
theValue = this.CustomerType.Name;
}
else if ("DegreeImportanName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 33)
{
this.DegreeImportan.Name = isChange ? MyConvert.ConvertToString(value) : DegreeImportan.Name;
theValue = this.DegreeImportan.Name;
}
else if ("SourcesInfoName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 34)
{
this.SourcesInfo.Name = isChange ? MyConvert.ConvertToString(value) : SourcesInfo.Name;
theValue = this.SourcesInfo.Name;
}
else if ("TurnoverIntentionName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 35)
{
this.TurnoverIntention.Name = isChange ? MyConvert.ConvertToString(value) : TurnoverIntention.Name;
theValue = this.TurnoverIntention.Name;
}
else if ("Nupdoor".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 36)
{
this.Nupdoor = isChange ? MyConvert.ConvertToInt32(value) : Nupdoor;
theValue = this.Nupdoor;
}
else if ("Nphone".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 37)
{
this.Nphone = isChange ? MyConvert.ConvertToInt32(value) : Nphone;
theValue = this.Nphone;
}
else if ("Nqq".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 38)
{
this.Nqq = isChange ? MyConvert.ConvertToInt32(value) : Nqq;
theValue = this.Nqq;
}
else if ("Nmessage".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 39)
{
this.Nmessage = isChange ? MyConvert.ConvertToInt32(value) : Nmessage;
theValue = this.Nmessage;
}
else if ("NDirectMail".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 40)
{
this.NDirectMail = isChange ? MyConvert.ConvertToInt32(value) : NDirectMail;
theValue = this.NDirectMail;
}
else if ("Nemial".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 41)
{
this.Nemial = isChange ? MyConvert.ConvertToInt32(value) : Nemial;
theValue = this.Nemial;
}
else if ("Nall".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 42)
{
this.Nall = isChange ? MyConvert.ConvertToInt32(value) : Nall;
theValue = this.Remark;
}
else if ("AccountmanagerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 43)
{
this.AccountmanagerName = isChange ? MyConvert.ConvertToString(value) : AccountmanagerName;
theValue = this.AccountmanagerName;
}
else if ("BusinessmanagerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 44)
{
this.BusinessmanagerName = isChange ? MyConvert.ConvertToString(value) : BusinessmanagerName;
theValue = this.BusinessmanagerName;
}
else if ("BusinessMobile".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 45)
{
this.BusinessMobile = isChange ? MyConvert.ConvertToString(value) : BusinessMobile;
theValue = this.BusinessMobile;
}
else if ("Fax".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 46)
{
this.Fax = isChange ? MyConvert.ConvertToString(value) : Fax;
theValue = this.Fax;
}
#endregion
return theValue;
}
#endregion
}
}