using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
///软件客户
|
/// </summary>
|
[Serializable]
|
public partial class Soft_Client : IAggregateRoot
|
{
|
public Soft_Client()
|
{
|
}
|
|
#region Model
|
|
private int? _keyid;
|
private string _clientname;
|
private int? _clientstatus;
|
private string _clientphone;
|
private string _clientqq;
|
private string _clientemail;
|
private string _clientmobile;
|
private string _clientprovince;
|
private string _clientcity;
|
private string _clientcountry;
|
private string _clientaddress;
|
private string _clientpostcode;
|
private int? _clientproxyid;
|
private int? _clienttype;
|
private int? _clientismember;
|
private Guid _clientmemberid;
|
private DateTime? _clientcreattime;
|
private DateTime? _clientendtime;
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
private string _loginid;
|
private string _password;
|
private int? _usestate;
|
private DateTime? _registerdate;
|
|
/// <summary>
|
/// 编号
|
/// </summary>
|
public int? Keyid
|
{
|
get
|
{
|
return _keyid;
|
}
|
set
|
{
|
_keyid = value;
|
}
|
}
|
/// <summary>
|
/// 客户姓名
|
/// </summary>
|
public string ClientName
|
{
|
get
|
{
|
return _clientname;
|
}
|
set
|
{
|
_clientname = value;
|
}
|
}
|
/// <summary>
|
/// 客户状态,1已激活/2未激活
|
/// </summary>
|
public int? ClientStatus
|
{
|
get
|
{
|
return _clientstatus;
|
}
|
set
|
{
|
_clientstatus = value;
|
}
|
}
|
/// <summary>
|
/// 联系电话
|
/// </summary>
|
public string ClientPhone
|
{
|
get
|
{
|
return _clientphone;
|
}
|
set
|
{
|
_clientphone = value;
|
}
|
}
|
/// <summary>
|
/// 联系QQ
|
/// </summary>
|
public string ClientQQ
|
{
|
get
|
{
|
return _clientqq;
|
}
|
set
|
{
|
_clientqq = value;
|
}
|
}
|
/// <summary>
|
/// 邮箱
|
/// </summary>
|
public string ClientEmail
|
{
|
get
|
{
|
return _clientemail;
|
}
|
set
|
{
|
_clientemail = value;
|
}
|
}
|
/// <summary>
|
/// 联系手机
|
/// </summary>
|
public string ClientMobile
|
{
|
get
|
{
|
return _clientmobile;
|
}
|
set
|
{
|
_clientmobile = value;
|
}
|
}
|
/// <summary>
|
/// 省
|
/// </summary>
|
public string ClientProvince
|
{
|
get
|
{
|
return _clientprovince;
|
}
|
set
|
{
|
_clientprovince = value;
|
}
|
}
|
/// <summary>
|
/// 市
|
/// </summary>
|
public string ClientCity
|
{
|
get
|
{
|
return _clientcity;
|
}
|
set
|
{
|
_clientcity = value;
|
}
|
}
|
/// <summary>
|
/// 区
|
/// </summary>
|
public string ClientCountry
|
{
|
get
|
{
|
return _clientcountry;
|
}
|
set
|
{
|
_clientcountry = value;
|
}
|
}
|
/// <summary>
|
/// 地址
|
/// </summary>
|
public string ClientAddress
|
{
|
get
|
{
|
return _clientaddress;
|
}
|
set
|
{
|
_clientaddress = value;
|
}
|
}
|
/// <summary>
|
/// 邮政编码
|
/// </summary>
|
public string ClientPostcode
|
{
|
get
|
{
|
return _clientpostcode;
|
}
|
set
|
{
|
_clientpostcode = value;
|
}
|
}
|
/// <summary>
|
/// 代理人编号
|
/// </summary>
|
public int? ClientProxyId
|
{
|
get
|
{
|
return _clientproxyid;
|
}
|
set
|
{
|
_clientproxyid = value;
|
}
|
}
|
/// <summary>
|
/// 客户类型,1自主激活/2管理添加
|
/// </summary>
|
public int? ClientType
|
{
|
get
|
{
|
return _clienttype;
|
}
|
set
|
{
|
_clienttype = value;
|
}
|
}
|
/// <summary>
|
/// 是否会员,1是/2否
|
/// </summary>
|
public int? ClientIsMember
|
{
|
get
|
{
|
return _clientismember;
|
}
|
set
|
{
|
_clientismember = value;
|
}
|
}
|
/// <summary>
|
/// 代理费类型
|
/// </summary>
|
public Guid ClientMemberId
|
{
|
get
|
{
|
return _clientmemberid;
|
}
|
set
|
{
|
_clientmemberid = value;
|
}
|
}
|
/// <summary>
|
/// 添加时间
|
/// </summary>
|
public DateTime? ClientCreatTime
|
{
|
get
|
{
|
return _clientcreattime;
|
}
|
set
|
{
|
_clientcreattime = value;
|
}
|
}
|
/// <summary>
|
/// 注销时间
|
/// </summary>
|
public DateTime? ClientEndTime
|
{
|
get
|
{
|
return _clientendtime;
|
}
|
set
|
{
|
_clientendtime = value;
|
}
|
}
|
/// <summary>
|
/// 最后修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
get
|
{
|
return _lastupdatetime;
|
}
|
set
|
{
|
_lastupdatetime = value;
|
}
|
}
|
/// <summary>
|
/// 操作人
|
/// </summary>
|
public string Operator
|
{
|
get
|
{
|
return _operator;
|
}
|
set
|
{
|
_operator = value;
|
}
|
}
|
/// <summary>
|
/// 帐号
|
/// </summary>
|
public string LoginId
|
{
|
get
|
{
|
return _loginid;
|
}
|
set
|
{
|
_loginid = value;
|
}
|
}
|
/// <summary>
|
/// 密码
|
/// </summary>
|
public string Password
|
{
|
get
|
{
|
return _password;
|
}
|
set
|
{
|
_password = value;
|
}
|
}
|
/// <summary>
|
/// 状态,1正常/2禁用
|
/// </summary>
|
public int? UseState
|
{
|
get
|
{
|
return _usestate;
|
}
|
set
|
{
|
_usestate = value;
|
}
|
}
|
/// <summary>
|
/// 注册时间
|
/// </summary>
|
public DateTime? RegisterDate
|
{
|
get
|
{
|
return _registerdate;
|
}
|
set
|
{
|
_registerdate = value;
|
}
|
}
|
|
#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 ("ClientName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.ClientName = isChange ? MyConvert.ConvertToString(value) : ClientName;
|
theValue = this.ClientName;
|
}
|
else if ("ClientStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.ClientStatus = isChange ? MyConvert.ConvertToInt(value) : ClientStatus;
|
theValue = this.ClientStatus;
|
}
|
else if ("ClientPhone".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.ClientPhone = isChange ? MyConvert.ConvertToString(value) : ClientPhone;
|
theValue = this.ClientPhone;
|
}
|
else if ("ClientQQ".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.ClientQQ = isChange ? MyConvert.ConvertToString(value) : ClientQQ;
|
theValue = this.ClientQQ;
|
}
|
else if ("ClientEmail".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.ClientEmail = isChange ? MyConvert.ConvertToString(value) : ClientEmail;
|
theValue = this.ClientEmail;
|
}
|
else if ("ClientMobile".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.ClientMobile = isChange ? MyConvert.ConvertToString(value) : ClientMobile;
|
theValue = this.ClientMobile;
|
}
|
else if ("ClientProvince".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.ClientProvince = isChange ? MyConvert.ConvertToString(value) : ClientProvince;
|
theValue = this.ClientProvince;
|
}
|
else if ("ClientCity".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.ClientCity = isChange ? MyConvert.ConvertToString(value) : ClientCity;
|
theValue = this.ClientCity;
|
}
|
else if ("ClientCountry".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.ClientCountry = isChange ? MyConvert.ConvertToString(value) : ClientCountry;
|
theValue = this.ClientCountry;
|
}
|
else if ("ClientAddress".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.ClientAddress = isChange ? MyConvert.ConvertToString(value) : ClientAddress;
|
theValue = this.ClientAddress;
|
}
|
else if ("ClientPostcode".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.ClientPostcode = isChange ? MyConvert.ConvertToString(value) : ClientPostcode;
|
theValue = this.ClientPostcode;
|
}
|
else if ("ClientProxyId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.ClientProxyId = isChange ? MyConvert.ConvertToInt(value) : ClientProxyId;
|
theValue = this.ClientProxyId;
|
}
|
else if ("ClientType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.ClientType = isChange ? MyConvert.ConvertToInt(value) : ClientType;
|
theValue = this.ClientType;
|
}
|
else if ("ClientIsMember".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.ClientIsMember = isChange ? MyConvert.ConvertToInt(value) : ClientIsMember;
|
theValue = this.ClientIsMember;
|
}
|
else if ("ClientMemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.ClientMemberId = isChange ? MyConvert.ConvertToGuid(value) : ClientMemberId;
|
theValue = this.ClientMemberId;
|
}
|
else if ("ClientCreatTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.ClientCreatTime = isChange ? MyConvert.ConvertToDateTime(value) : ClientCreatTime;
|
theValue = this.ClientCreatTime;
|
}
|
else if ("ClientEndTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.ClientEndTime = isChange ? MyConvert.ConvertToDateTime(value) : ClientEndTime;
|
theValue = this.ClientEndTime;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
|
theValue = this.Operator;
|
}
|
else if ("LoginId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.LoginId = isChange ? MyConvert.ConvertToString(value) : LoginId;
|
theValue = this.LoginId;
|
}
|
else if ("Password".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
|
{
|
this.Password = isChange ? MyConvert.ConvertToString(value) : Password;
|
theValue = this.Password;
|
}
|
else if ("UseState".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
|
{
|
this.UseState = isChange ? MyConvert.ConvertToInt(value) : UseState;
|
theValue = this.UseState;
|
}
|
else if ("RegisterDate".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24)
|
{
|
this.RegisterDate = isChange ? MyConvert.ConvertToDateTime(value) : RegisterDate;
|
theValue = this.RegisterDate;
|
}
|
return theValue;
|
}
|
|
#endregion Visiter
|
}
|
}
|