using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
///软件销售记录
|
/// </summary>
|
[Serializable]
|
public partial class Soft_SellRecord : IAggregateRoot
|
{
|
public Soft_SellRecord()
|
{
|
}
|
|
#region Model
|
|
private int? _keyid;
|
private Guid _clientid;
|
private string _clientname;
|
private int? _accountmanagerid;
|
private int? _businessmanagerid;
|
private int? _softid;
|
private string _softname;
|
private int? _softquantity;
|
private int? _softunitprice;
|
private int? _ordermoney;
|
private int? _orderreceivemoney;
|
private int? _orderstatus;
|
private string _ordernum;
|
private DateTime? _creattime;
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
private int? _visitstatus;
|
private string _visitsoftscore;
|
private string _visitsoftservers;
|
private string _visitreason;
|
private string _visitproposal;
|
private string _visitpeople;
|
private DateTime? _visittime;
|
private int? _degreeimportanid;
|
private string _mobile;
|
private string _qq;
|
private string _orderremark;
|
|
/// <summary>
|
/// 编号
|
/// </summary>
|
public int? Keyid
|
{
|
get
|
{
|
return _keyid;
|
}
|
set
|
{
|
_keyid = value;
|
}
|
}
|
/// <summary>
|
/// 客户编号
|
/// </summary>
|
public Guid ClientId
|
{
|
get
|
{
|
return _clientid;
|
}
|
set
|
{
|
_clientid = value;
|
}
|
}
|
/// <summary>
|
/// 客户名称
|
/// </summary>
|
public string ClientName
|
{
|
get
|
{
|
return _clientname;
|
}
|
set
|
{
|
_clientname = value;
|
}
|
}
|
/// <summary>
|
/// 客户经理编号
|
/// </summary>
|
public int? AccountManagerId
|
{
|
get
|
{
|
return _accountmanagerid;
|
}
|
set
|
{
|
_accountmanagerid = value;
|
}
|
}
|
/// <summary>
|
/// 业务经理编号
|
/// </summary>
|
public int? BusinessManagerId
|
{
|
get
|
{
|
return _businessmanagerid;
|
}
|
set
|
{
|
_businessmanagerid = value;
|
}
|
}
|
/// <summary>
|
/// 软件编号
|
/// </summary>
|
public int? SoftId
|
{
|
get
|
{
|
return _softid;
|
}
|
set
|
{
|
_softid = value;
|
}
|
}
|
/// <summary>
|
/// 软件名称
|
/// </summary>
|
public string SoftName
|
{
|
get
|
{
|
return _softname;
|
}
|
set
|
{
|
_softname = value;
|
}
|
}
|
/// <summary>
|
/// 数量
|
/// </summary>
|
public int? SoftQuantity
|
{
|
get
|
{
|
return _softquantity;
|
}
|
set
|
{
|
_softquantity = value;
|
}
|
}
|
/// <summary>
|
/// 单价
|
/// </summary>
|
public int? SoftUnitprice
|
{
|
get
|
{
|
return _softunitprice;
|
}
|
set
|
{
|
_softunitprice = value;
|
}
|
}
|
/// <summary>
|
/// 订单金额
|
/// </summary>
|
public int? OrderMoney
|
{
|
get
|
{
|
return _ordermoney;
|
}
|
set
|
{
|
_ordermoney = value;
|
}
|
}
|
/// <summary>
|
/// 订单已付金额
|
/// </summary>
|
public int? OrderReceiveMoney
|
{
|
get
|
{
|
return _orderreceivemoney;
|
}
|
set
|
{
|
_orderreceivemoney = value;
|
}
|
}
|
/// <summary>
|
/// 订单状态
|
/// </summary>
|
public int? OrderStatus
|
{
|
get
|
{
|
return _orderstatus;
|
}
|
set
|
{
|
_orderstatus = value;
|
}
|
}
|
/// <summary>
|
/// 订单号
|
/// </summary>
|
public string OrderNum
|
{
|
get
|
{
|
return _ordernum;
|
}
|
set
|
{
|
_ordernum = value;
|
}
|
}
|
/// <summary>
|
/// 订单生成时间
|
/// </summary>
|
public DateTime? CreatTime
|
{
|
get
|
{
|
return _creattime;
|
}
|
set
|
{
|
_creattime = value;
|
}
|
}
|
/// <summary>
|
/// 最后修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
get
|
{
|
return _lastupdatetime;
|
}
|
set
|
{
|
_lastupdatetime = value;
|
}
|
}
|
/// <summary>
|
/// 操作人
|
/// </summary>
|
public string Operator
|
{
|
get
|
{
|
return _operator;
|
}
|
set
|
{
|
_operator = value;
|
}
|
}
|
/// <summary>
|
/// 回访状态,1已回访/2未回访
|
/// </summary>
|
public int? VisitStatus
|
{
|
get
|
{
|
return _visitstatus;
|
}
|
set
|
{
|
_visitstatus = value;
|
}
|
}
|
/// <summary>
|
/// 软件评分
|
/// </summary>
|
public string VisitSoftScore
|
{
|
get
|
{
|
return _visitsoftscore;
|
}
|
set
|
{
|
_visitsoftscore = value;
|
}
|
}
|
/// <summary>
|
/// 服务评分
|
/// </summary>
|
public string VisitSoftServers
|
{
|
get
|
{
|
return _visitsoftservers;
|
}
|
set
|
{
|
_visitsoftservers = value;
|
}
|
}
|
/// <summary>
|
/// 评分理由
|
/// </summary>
|
public string VisitReason
|
{
|
get
|
{
|
return _visitreason;
|
}
|
set
|
{
|
_visitreason = value;
|
}
|
}
|
/// <summary>
|
/// 维护建议
|
/// </summary>
|
public string VisitProposal
|
{
|
get
|
{
|
return _visitproposal;
|
}
|
set
|
{
|
_visitproposal = value;
|
}
|
}
|
/// <summary>
|
/// 回访人
|
/// </summary>
|
public string VisitPeople
|
{
|
get
|
{
|
return _visitpeople;
|
}
|
set
|
{
|
_visitpeople = value;
|
}
|
}
|
/// <summary>
|
/// 回访时间
|
/// </summary>
|
public DateTime? VisitTime
|
{
|
get
|
{
|
return _visittime;
|
}
|
set
|
{
|
_visittime = value;
|
}
|
}
|
/// <summary>
|
/// 重要程度
|
/// </summary>
|
public int? DegreeImportanId
|
{
|
get
|
{
|
return _degreeimportanid;
|
}
|
set
|
{
|
_degreeimportanid = value;
|
}
|
}
|
/// <summary>
|
/// 短信
|
/// </summary>
|
public string Mobile
|
{
|
get
|
{
|
return _mobile;
|
}
|
set
|
{
|
_mobile = value;
|
}
|
}
|
/// <summary>
|
/// QQ
|
/// </summary>
|
public string QQ
|
{
|
get
|
{
|
return _qq;
|
}
|
set
|
{
|
_qq = value;
|
}
|
}
|
/// <summary>
|
/// 备注
|
/// </summary>
|
public string OrderRemark
|
{
|
get
|
{
|
return _orderremark;
|
}
|
set
|
{
|
_orderremark = value;
|
}
|
}
|
|
|
/// <summary>
|
/// 客户经理
|
/// </summary>
|
public string AccountManagerName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 业务经理
|
/// </summary>
|
public string BusinessManagerName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 客户级别
|
/// </summary>
|
public string DegreeImportanName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 统计总金额
|
/// </summary>
|
public int? AllMoney
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 统计已收金额
|
/// </summary>
|
public int? AllRecive
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 统计未收金额
|
/// </summary>
|
public int? AllBalance
|
{
|
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.ConvertToInt(value) : Keyid;
|
theValue = this.Keyid;
|
}
|
else if ("ClientId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.ClientId = isChange ? MyConvert.ConvertToGuid(value) : ClientId;
|
theValue = this.ClientId;
|
}
|
else if ("ClientName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.ClientName = isChange ? MyConvert.ConvertToString(value) : ClientName;
|
theValue = this.ClientName;
|
}
|
else if ("AccountManagerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.AccountManagerId = isChange ? MyConvert.ConvertToInt(value) : AccountManagerId;
|
theValue = this.AccountManagerId;
|
}
|
else if ("BusinessManagerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.BusinessManagerId = isChange ? MyConvert.ConvertToInt(value) : BusinessManagerId;
|
theValue = this.BusinessManagerId;
|
}
|
else if ("SoftId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.SoftId = isChange ? MyConvert.ConvertToInt(value) : SoftId;
|
theValue = this.SoftId;
|
}
|
else if ("SoftName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.SoftName = isChange ? MyConvert.ConvertToString(value) : SoftName;
|
theValue = this.SoftName;
|
}
|
else if ("SoftQuantity".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.SoftQuantity = isChange ? MyConvert.ConvertToInt(value) : SoftQuantity;
|
theValue = this.SoftQuantity;
|
}
|
else if ("SoftUnitprice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.SoftUnitprice = isChange ? MyConvert.ConvertToInt(value) : SoftUnitprice;
|
theValue = this.SoftUnitprice;
|
}
|
else if ("OrderMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.OrderMoney = isChange ? MyConvert.ConvertToInt(value) : OrderMoney;
|
theValue = this.OrderMoney;
|
}
|
else if ("OrderReceiveMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.OrderReceiveMoney = isChange ? MyConvert.ConvertToInt(value) : OrderReceiveMoney;
|
theValue = this.OrderReceiveMoney;
|
}
|
else if ("OrderStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.OrderStatus = isChange ? MyConvert.ConvertToInt(value) : OrderStatus;
|
theValue = this.OrderStatus;
|
}
|
else if ("OrderNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.OrderNum = isChange ? MyConvert.ConvertToString(value) : OrderNum;
|
theValue = this.OrderNum;
|
}
|
else if ("CreatTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.CreatTime = isChange ? MyConvert.ConvertToDateTime(value) : CreatTime;
|
theValue = this.CreatTime;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
|
theValue = this.Operator;
|
}
|
else if ("VisitStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.VisitStatus = isChange ? MyConvert.ConvertToInt(value) : VisitStatus;
|
theValue = this.VisitStatus;
|
}
|
else if ("VisitSoftScore".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.VisitSoftScore = isChange ? MyConvert.ConvertToString(value) : VisitSoftScore;
|
theValue = this.VisitSoftScore;
|
}
|
else if ("VisitSoftServers".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
|
{
|
this.VisitSoftServers = isChange ? MyConvert.ConvertToString(value) : VisitSoftServers;
|
theValue = this.VisitSoftServers;
|
}
|
else if ("VisitReason".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.VisitReason = isChange ? MyConvert.ConvertToString(value) : VisitReason;
|
theValue = this.VisitReason;
|
}
|
else if ("VisitProposal".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.VisitProposal = isChange ? MyConvert.ConvertToString(value) : VisitProposal;
|
theValue = this.VisitProposal;
|
}
|
else if ("VisitPeople".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
|
{
|
this.VisitPeople = isChange ? MyConvert.ConvertToString(value) : VisitPeople;
|
theValue = this.VisitPeople;
|
}
|
else if ("VisitTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
|
{
|
this.VisitTime = isChange ? MyConvert.ConvertToDateTime(value) : VisitTime;
|
theValue = this.VisitTime;
|
}
|
else if ("DegreeImportanId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24)
|
{
|
this.DegreeImportanId = isChange ? MyConvert.ConvertToInt(value) : DegreeImportanId;
|
theValue = this.DegreeImportanId;
|
}
|
else if ("Mobile".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25)
|
{
|
this.Mobile = isChange ? MyConvert.ConvertToString(value) : Mobile;
|
theValue = this.Mobile;
|
}
|
else if ("QQ".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
|
{
|
this.QQ = isChange ? MyConvert.ConvertToString(value) : QQ;
|
theValue = this.QQ;
|
}
|
else if ("AccountManagerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27)
|
{
|
this.AccountManagerName = isChange ? MyConvert.ConvertToString(value) : AccountManagerName;
|
theValue = this.AccountManagerName;
|
}
|
else if ("BusinessManagerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28)
|
{
|
this.BusinessManagerName = isChange ? MyConvert.ConvertToString(value) : BusinessManagerName;
|
theValue = this.BusinessManagerName;
|
}
|
else if ("DegreeImportanName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 29)
|
{
|
this.DegreeImportanName = isChange ? MyConvert.ConvertToString(value) : DegreeImportanName;
|
theValue = this.DegreeImportanName;
|
}
|
else if ("AllMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 29)
|
{
|
this.AllMoney = isChange ? MyConvert.ConvertToInt32(value) : AllMoney;
|
theValue = this.AllMoney;
|
}
|
else if ("AllRecive".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30)
|
{
|
this.AllRecive = isChange ? MyConvert.ConvertToInt32(value) : AllRecive;
|
theValue = this.AllRecive;
|
}
|
else if ("AllBalance".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31)
|
{
|
this.AllBalance = isChange ? MyConvert.ConvertToInt32(value) : AllBalance;
|
theValue = this.AllBalance;
|
}
|
else if ("OrderRemark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 32)
|
{
|
this.OrderRemark = isChange ? MyConvert.ConvertToString(value) : OrderRemark;
|
theValue = this.OrderRemark;
|
}
|
return theValue;
|
}
|
|
#endregion Visiter
|
|
}
|
}
|