using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
///软件激活码
|
/// </summary>
|
[Serializable]
|
public partial class Soft_KeyCode : IAggregateRoot
|
{
|
public Soft_KeyCode()
|
{
|
}
|
|
#region Model
|
private int? _keyid;
|
private int? _keysoftid;
|
private string _keysoftname;
|
private string _keycode;
|
private int? _keystatus;
|
private int? _keyproxyid;
|
private DateTime? _keycreattime;
|
private DateTime? _keyouttime;
|
private DateTime? _keyusetime;
|
private string _keyuseip;
|
private string _keymachinecode;
|
private int? _keyclientid;
|
private string _keyclientname;
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
private string _keyword;
|
private int? _keyoldnum;
|
private int? _keynewnum;
|
private DateTime? _keyuptime;
|
private DateTime? _keytrytime;
|
|
/// <summary>
|
/// 编号
|
/// </summary>
|
public int? Keyid
|
{
|
get
|
{
|
return _keyid;
|
}
|
set
|
{
|
_keyid = value;
|
}
|
}
|
/// <summary>
|
/// KeySoftId
|
/// </summary>
|
public int? KeySoftId
|
{
|
get
|
{
|
return _keysoftid;
|
}
|
set
|
{
|
_keysoftid = value;
|
}
|
}
|
/// <summary>
|
/// KeySoftName
|
/// </summary>
|
public string KeySoftName
|
{
|
get
|
{
|
return _keysoftname;
|
}
|
set
|
{
|
_keysoftname = value;
|
}
|
}
|
/// <summary>
|
/// 激活码
|
/// </summary>
|
public string KeyCode
|
{
|
get
|
{
|
return _keycode;
|
}
|
set
|
{
|
_keycode = value;
|
}
|
}
|
/// <summary>
|
/// 状态,0停用/1已生成/2已发放/3已试用/4已升级/5已使用
|
/// </summary>
|
public int? KeyStatus
|
{
|
get
|
{
|
return _keystatus;
|
}
|
set
|
{
|
_keystatus = value;
|
}
|
}
|
/// <summary>
|
/// 代理人
|
/// </summary>
|
public int? KeyProxyId
|
{
|
get
|
{
|
return _keyproxyid;
|
}
|
set
|
{
|
_keyproxyid = value;
|
}
|
}
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
public DateTime? KeyCreatTime
|
{
|
get
|
{
|
return _keycreattime;
|
}
|
set
|
{
|
_keycreattime = value;
|
}
|
}
|
/// <summary>
|
/// 发放时间
|
/// </summary>
|
public DateTime? KeyOutTime
|
{
|
get
|
{
|
return _keyouttime;
|
}
|
set
|
{
|
_keyouttime = value;
|
}
|
}
|
/// <summary>
|
/// 使用时间
|
/// </summary>
|
public DateTime? KeyUseTime
|
{
|
get
|
{
|
return _keyusetime;
|
}
|
set
|
{
|
_keyusetime = value;
|
}
|
}
|
/// <summary>
|
/// 激活IP
|
/// </summary>
|
public string KeyUseIP
|
{
|
get
|
{
|
return _keyuseip;
|
}
|
set
|
{
|
_keyuseip = value;
|
}
|
}
|
/// <summary>
|
/// 机器码
|
/// </summary>
|
public string KeyMachineCode
|
{
|
get
|
{
|
return _keymachinecode;
|
}
|
set
|
{
|
_keymachinecode = value;
|
}
|
}
|
/// <summary>
|
/// 使用者
|
/// </summary>
|
public int? KeyClientId
|
{
|
get
|
{
|
return _keyclientid;
|
}
|
set
|
{
|
_keyclientid = value;
|
}
|
}
|
/// <summary>
|
/// KeyClientName
|
/// </summary>
|
public string KeyClientName
|
{
|
get
|
{
|
return _keyclientname;
|
}
|
set
|
{
|
_keyclientname = 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 KeyWord
|
{
|
get
|
{
|
return _keyword;
|
}
|
set
|
{
|
_keyword = value;
|
}
|
}
|
/// <summary>
|
/// 试用次数
|
/// </summary>
|
public int? KeyOldNum
|
{
|
get
|
{
|
return _keyoldnum;
|
}
|
set
|
{
|
_keyoldnum = value;
|
}
|
}
|
/// <summary>
|
/// 新次数
|
/// </summary>
|
public int? KeyNewNum
|
{
|
get
|
{
|
return _keynewnum;
|
}
|
set
|
{
|
_keynewnum = value;
|
}
|
}
|
/// <summary>
|
/// 升级时间
|
/// </summary>
|
public DateTime? KeyUpTime
|
{
|
get
|
{
|
return _keyuptime;
|
}
|
set
|
{
|
_keyuptime = value;
|
}
|
}
|
/// <summary>
|
/// 试用时间
|
/// </summary>
|
public DateTime? KeyTryTime
|
{
|
get
|
{
|
return _keytrytime;
|
}
|
set
|
{
|
_keytrytime = 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 ("KeySoftId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.KeySoftId = isChange ? MyConvert.ConvertToInt(value) : KeySoftId;
|
theValue = this.KeySoftId;
|
}
|
else if ("KeySoftName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.KeySoftName = isChange ? MyConvert.ConvertToString(value) : KeySoftName;
|
theValue = this.KeySoftName;
|
}
|
else if ("KeyCode".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.KeyCode = isChange ? MyConvert.ConvertToString(value) : KeyCode;
|
theValue = this.KeyCode;
|
}
|
else if ("KeyStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.KeyStatus = isChange ? MyConvert.ConvertToInt(value) : KeyStatus;
|
theValue = this.KeyStatus;
|
}
|
else if ("KeyProxyId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.KeyProxyId = isChange ? MyConvert.ConvertToInt(value) : KeyProxyId;
|
theValue = this.KeyProxyId;
|
}
|
else if ("KeyCreatTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.KeyCreatTime = isChange ? MyConvert.ConvertToDateTime(value) : KeyCreatTime;
|
theValue = this.KeyCreatTime;
|
}
|
else if ("KeyOutTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.KeyOutTime = isChange ? MyConvert.ConvertToDateTime(value) : KeyOutTime;
|
theValue = this.KeyOutTime;
|
}
|
else if ("KeyUseTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.KeyUseTime = isChange ? MyConvert.ConvertToDateTime(value) : KeyUseTime;
|
theValue = this.KeyUseTime;
|
}
|
else if ("KeyUseIP".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.KeyUseIP = isChange ? MyConvert.ConvertToString(value) : KeyUseIP;
|
theValue = this.KeyUseIP;
|
}
|
else if ("KeyMachineCode".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.KeyMachineCode = isChange ? MyConvert.ConvertToString(value) : KeyMachineCode;
|
theValue = this.KeyMachineCode;
|
}
|
else if ("KeyClientId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.KeyClientId = isChange ? MyConvert.ConvertToInt(value) : KeyClientId;
|
theValue = this.KeyClientId;
|
}
|
else if ("KeyClientName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.KeyClientName = isChange ? MyConvert.ConvertToString(value) : KeyClientName;
|
theValue = this.KeyClientName;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
|
theValue = this.Operator;
|
}
|
else if ("KeyWord".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.KeyWord = isChange ? MyConvert.ConvertToString(value) : KeyWord;
|
theValue = this.KeyWord;
|
}
|
else if ("KeyOldNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.KeyOldNum = isChange ? MyConvert.ConvertToInt(value) : KeyOldNum;
|
theValue = this.KeyOldNum;
|
}
|
else if ("KeyNewNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.KeyNewNum = isChange ? MyConvert.ConvertToInt(value) : KeyNewNum;
|
theValue = this.KeyNewNum;
|
}
|
else if ("KeyUpTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
|
{
|
this.KeyUpTime = isChange ? MyConvert.ConvertToDateTime(value) : KeyUpTime;
|
theValue = this.KeyUpTime;
|
}
|
else if ("KeyTryTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.KeyTryTime = isChange ? MyConvert.ConvertToDateTime(value) : KeyTryTime;
|
theValue = this.KeyTryTime;
|
}
|
return theValue;
|
}
|
#endregion Visiter
|
}
|
}
|