using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
///软件更新记录
///
[Serializable]
public partial class Soft_UpRecord : IAggregateRoot
{
public Soft_UpRecord()
{ }
#region Model
private int? _keyid;
private int? _clientid;
private string _clientname;
private int? _softid;
private string _softname;
private string _keycode;
private string _updateip;
private DateTime? _lastupdatetime;
private string _operator;
///
/// 编号
///
public int? Keyid
{
get{ return _keyid; }
set{ _keyid = value; }
}
///
/// 客户编号
///
public int? ClientId
{
get{ return _clientid; }
set{ _clientid = value; }
}
///
/// 客户名称
///
public string ClientName
{
get{ return _clientname; }
set{ _clientname = value; }
}
///
/// 软件编号
///
public int? SoftId
{
get{ return _softid; }
set{ _softid = value; }
}
///
/// 软件名称
///
public string SoftName
{
get{ return _softname; }
set{ _softname = value; }
}
///
/// 激活码编号
///
public string KeyCode
{
get{ return _keycode; }
set{ _keycode = value; }
}
///
/// 激活IP
///
public string UpdateIP
{
get{ return _updateip; }
set{ _updateip = value; }
}
///
/// 最后修改时间
///
public DateTime? LastUpdateTime
{
get{ return _lastupdatetime; }
set{ _lastupdatetime = value; }
}
///
/// 操作人
///
public string Operator
{
get{ return _operator; }
set{ _operator = value; }
}
#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.ConvertToInt(value) : Keyid;
theValue = this.Keyid;
}
else if ("ClientId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.ClientId = isChange ? MyConvert.ConvertToInt(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 ("SoftId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.SoftId = isChange ? MyConvert.ConvertToInt(value) : SoftId;
theValue = this.SoftId;
}
else if ("SoftName".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.SoftName = isChange ? MyConvert.ConvertToString(value) : SoftName;
theValue = this.SoftName;
}
else if ("KeyCode".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.KeyCode = isChange ? MyConvert.ConvertToString(value) : KeyCode;
theValue = this.KeyCode;
}
else if ("UpdateIP".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 7)
{
this.UpdateIP = isChange ? MyConvert.ConvertToString(value) : UpdateIP;
theValue = this.UpdateIP;
}
else if ("LastUpdateTime".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 8)
{
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
theValue = this.LastUpdateTime;
}
else if ("Operator".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 9)
{
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
theValue = this.Operator;
}
return theValue;
}
#endregion Visiter
}
}