/** * OA_CustomerAccessRecord.cs * * 功 能: N/A * 类 名: OA_CustomerAccessRecord * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-2 14:27:44 N/A 初版 * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 办公系统意向客户访问记录 /// [Serializable] public partial class OA_CustomerAccessRecord : IAggregateRoot { public OA_CustomerAccessRecord() { } #region Model private int? _keyid; private bool _cutomertype; private string _customerid; private int? _accesstypeid; private int? _stuffid; private int? _accesserid; private DateTime? _starttime; private string _receiver; private string _accesscontent; private string _turnoverintention; private DateTime? _endtime; private DateTime? _createtime; private DateTime? _lastupdatetime; private string _operator; private string _remark; /// /// 记录编号 /// public int? Keyid { set { _keyid = value; } get { return _keyid; } } /// /// 客户类型 /// public bool CutomerType { set { _cutomertype = value; } get { return _cutomertype; } } /// /// 客户唯一编号 /// public string CustomerId { set { _customerid = value; } get { return _customerid; } } /// /// 访问类型编号,1上门/2电话/3QQ/4短信/5信函/6邮件 /// public int? AccessTypeId { set { _accesstypeid = value; } get { return _accesstypeid; } } /// /// 员工编号 /// public int? StuffId { set { _stuffid = value; } get { return _stuffid; } } /// /// 访问者编号 /// public int? AccesserId { set { _accesserid = value; } get { return _accesserid; } } /// /// 开始时间 /// public DateTime? StartTime { set { _starttime = value; } get { return _starttime; } } /// /// 接待人 /// public string Receiver { set { _receiver = value; } get { return _receiver; } } /// /// 洽谈情况 /// public string AccessContent { set { _accesscontent = value; } get { return _accesscontent; } } /// /// 成交意向 /// public string TurnoverIntention { set { _turnoverintention = value; } get { return _turnoverintention; } } /// /// 结束时间 /// public DateTime? EndTime { set { _endtime = value; } get { return _endtime; } } /// /// 记录时间 /// public DateTime? CreateTime { set { _createtime = value; } get { return _createtime; } } /// /// 最后修改时间 /// 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; } } /// /// 上门次数 /// public int? Nupdoor { get; set; } /// /// 电话访问次数 /// public int? Nphone { get; set; } /// /// 短信访问次数 /// public int? Nmessage { get; set; } /// /// qq访问次数 /// public int? Nqq { get; set; } /// /// 信函访问次数 /// public int? NDirectMail { get; set; } /// /// 邮件访问次数 /// public int? Nemial { get; set; } /// /// 总的访问次数 /// public int? Nall { get; set; } /// /// 姓名 /// public string StuffName { get; set; } /// /// 访问类型 /// public string AccessType { get; set; } /// /// 新客户产值 /// public decimal? NowMoney { get; set; } /// /// 原客户产值 /// public decimal? OldMoney { get; set; } /// /// 客户总产值 /// public decimal? AllMoney { get; set; } /// /// 新增合作客户 /// public int? AllCustom { get; set; } /// /// 新增意向客户 /// public int? AllIntention { get; set; } /// /// 员工ID /// public int? StuffKeyId { get; set; } #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 ("CutomerType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.CutomerType = isChange ? MyConvert.ConvertToBoolean(value) : CutomerType; theValue = this.CutomerType; } else if ("CustomerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.CustomerId = isChange ? MyConvert.ConvertToString(value) : CustomerId; theValue = this.CustomerId; } else if ("AccessTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.AccessTypeId = isChange ? MyConvert.ConvertToInt32(value) : AccessTypeId; theValue = this.AccessTypeId; } else if ("StuffId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.StuffId = isChange ? MyConvert.ConvertToInt32(value) : StuffId; theValue = this.StuffId; } else if ("AccesserId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.AccesserId = isChange ? MyConvert.ConvertToInt32(value) : AccesserId; theValue = this.AccesserId; } else if ("StartTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) { this.StartTime = isChange ? MyConvert.ConvertToDateTime(value) : StartTime; theValue = this.StartTime; } else if ("Receiver".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) { this.Receiver = isChange ? MyConvert.ConvertToString(value) : Receiver; theValue = this.Receiver; } else if ("AccessContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9) { this.AccessContent = isChange ? MyConvert.ConvertToString(value) : AccessContent; theValue = this.AccessContent; } else if ("TurnoverIntention".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.TurnoverIntention = isChange ? MyConvert.ConvertToString(value) : TurnoverIntention; theValue = this.TurnoverIntention; } else if ("EndTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11) { this.EndTime = isChange ? MyConvert.ConvertToDateTime(value) : EndTime; theValue = this.EndTime; } else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12) { this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime; theValue = this.CreateTime; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) { this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator; theValue = this.Operator; } else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) { this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark; theValue = this.Remark; } else if ("AccessType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 34) { this.AccessType = isChange ? MyConvert.ConvertToString(value) : AccessType; theValue = this.AccessType; } else if ("StuffName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index ==35) { this.StuffName = isChange ? MyConvert.ConvertToString(value) : StuffName; theValue = this.StuffName; } 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.Nall; } else if ("NowMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 43) { this.NowMoney = isChange ? MyConvert.ConvertToDecimal(value) : NowMoney; theValue = this.NowMoney; } else if ("OldMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 44) { this.OldMoney = isChange ? MyConvert.ConvertToDecimal(value) : OldMoney; theValue = this.OldMoney; } else if ("AllMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 45) { this.AllMoney = isChange ? MyConvert.ConvertToDecimal(value) : AllMoney; theValue = this.AllMoney; } else if ("AllCustom".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 46) { this.AllCustom = isChange ? MyConvert.ConvertToInt32(value) : AllCustom; theValue = this.AllCustom; } else if ("AllIntention".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 47) { this.AllIntention = isChange ? MyConvert.ConvertToInt32(value) : AllIntention; theValue = this.AllIntention; } else if ("StuffKeyId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 48) { this.StuffKeyId = isChange ? MyConvert.ConvertToInt32(value) : StuffKeyId; theValue = this.StuffKeyId; } return theValue; } #endregion } }