/**
|
* 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
|
{
|
/// <summary>
|
/// 办公系统意向客户访问记录
|
/// </summary>
|
[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;
|
|
/// <summary>
|
/// 记录编号
|
/// </summary>
|
public int? Keyid
|
{
|
set
|
{
|
_keyid = value;
|
}
|
get
|
{
|
return _keyid;
|
}
|
}
|
/// <summary>
|
/// 客户类型
|
/// </summary>
|
public bool CutomerType
|
{
|
set
|
{
|
_cutomertype = value;
|
}
|
get
|
{
|
return _cutomertype;
|
}
|
}
|
/// <summary>
|
/// 客户唯一编号
|
/// </summary>
|
public string CustomerId
|
{
|
set
|
{
|
_customerid = value;
|
}
|
get
|
{
|
return _customerid;
|
}
|
}
|
/// <summary>
|
/// 访问类型编号,1上门/2电话/3QQ/4短信/5信函/6邮件
|
/// </summary>
|
public int? AccessTypeId
|
{
|
set
|
{
|
_accesstypeid = value;
|
}
|
get
|
{
|
return _accesstypeid;
|
}
|
}
|
/// <summary>
|
/// 员工编号
|
/// </summary>
|
public int? StuffId
|
{
|
set
|
{
|
_stuffid = value;
|
}
|
get
|
{
|
return _stuffid;
|
}
|
}
|
/// <summary>
|
/// 访问者编号
|
/// </summary>
|
public int? AccesserId
|
{
|
set
|
{
|
_accesserid = value;
|
}
|
get
|
{
|
return _accesserid;
|
}
|
}
|
/// <summary>
|
/// 开始时间
|
/// </summary>
|
public DateTime? StartTime
|
{
|
set
|
{
|
_starttime = value;
|
}
|
get
|
{
|
return _starttime;
|
}
|
}
|
/// <summary>
|
/// 接待人
|
/// </summary>
|
public string Receiver
|
{
|
set
|
{
|
_receiver = value;
|
}
|
get
|
{
|
return _receiver;
|
}
|
}
|
/// <summary>
|
/// 洽谈情况
|
/// </summary>
|
public string AccessContent
|
{
|
set
|
{
|
_accesscontent = value;
|
}
|
get
|
{
|
return _accesscontent;
|
}
|
}
|
/// <summary>
|
/// 成交意向
|
/// </summary>
|
public string TurnoverIntention
|
{
|
set
|
{
|
_turnoverintention = value;
|
}
|
get
|
{
|
return _turnoverintention;
|
}
|
}
|
/// <summary>
|
/// 结束时间
|
/// </summary>
|
public DateTime? EndTime
|
{
|
set
|
{
|
_endtime = value;
|
}
|
get
|
{
|
return _endtime;
|
}
|
}
|
/// <summary>
|
/// 记录时间
|
/// </summary>
|
public DateTime? CreateTime
|
{
|
set
|
{
|
_createtime = value;
|
}
|
get
|
{
|
return _createtime;
|
}
|
}
|
/// <summary>
|
/// 最后修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
set
|
{
|
_lastupdatetime = value;
|
}
|
get
|
{
|
return _lastupdatetime;
|
}
|
}
|
/// <summary>
|
/// 操作人
|
/// </summary>
|
public string Operator
|
{
|
set
|
{
|
_operator = value;
|
}
|
get
|
{
|
return _operator;
|
}
|
}
|
/// <summary>
|
/// 备注
|
/// </summary>
|
public string Remark
|
{
|
set
|
{
|
_remark = value;
|
}
|
get
|
{
|
return _remark;
|
}
|
}
|
|
|
/// <summary>
|
/// 上门次数
|
/// </summary>
|
public int? Nupdoor
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 电话访问次数
|
/// </summary>
|
public int? Nphone
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 短信访问次数
|
/// </summary>
|
public int? Nmessage
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// qq访问次数
|
/// </summary>
|
public int? Nqq
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 信函访问次数
|
/// </summary>
|
public int? NDirectMail
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 邮件访问次数
|
/// </summary>
|
public int? Nemial
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 总的访问次数
|
/// </summary>
|
public int? Nall
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 姓名
|
/// </summary>
|
public string StuffName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 访问类型
|
/// </summary>
|
public string AccessType
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 新客户产值
|
/// </summary>
|
public decimal? NowMoney
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 原客户产值
|
/// </summary>
|
public decimal? OldMoney
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 客户总产值
|
/// </summary>
|
public decimal? AllMoney
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 新增合作客户
|
/// </summary>
|
public int? AllCustom
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 新增意向客户
|
/// </summary>
|
public int? AllIntention
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 员工ID
|
/// </summary>
|
public int? StuffKeyId
|
{
|
get;
|
set;
|
}
|
|
#endregion Model
|
|
#region Visiter
|
|
/// <summary>
|
/// 属性访问器
|
/// </summary>
|
/// <param name="name">属性名</param>
|
/// <param name="index">索引</param>
|
/// <param name="isChange">是否将指定属性设置为传入值</param>
|
/// <param name="value">需要赋予的值</param>
|
/// <returns>与名称对应的属性值</returns>
|
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
|
}
|
}
|