/**
|
* EC_ShopInfo.cs
|
*
|
* 功 能: N/A
|
* 类 名: EC_ShopInfo
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-4-2 14:27:31 N/A 初版
|
*
|
*
|
*
|
*
|
*
|
*
|
*/
|
using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
|
namespace CY.Model
|
{
|
/// <summary>
|
/// 会员升级记录
|
/// </summary>
|
[Serializable]
|
public partial class EC_UpgradeRecord : IAggregateRoot
|
{
|
public EC_UpgradeRecord()
|
{
|
}
|
|
#region Model
|
private int? _keyid;
|
private Guid _memberid;
|
private string _name;
|
private string _oldmembertype;
|
private string _newmembertype;
|
private int? _applicationstatus;
|
private string _applicationname;
|
private DateTime? _applicationtime;
|
private string _auditname;
|
private DateTime? _audittime;
|
private string _approvename;
|
private DateTime? _approvetime;
|
private string _remark;
|
/// <summary>
|
/// 主键id
|
/// </summary>
|
public int? Keyid
|
{
|
set
|
{
|
_keyid = value;
|
}
|
get
|
{
|
return _keyid;
|
}
|
}
|
/// <summary>
|
/// 会员编号
|
/// </summary>
|
public Guid MemberId
|
{
|
set
|
{
|
_memberid = value;
|
}
|
get
|
{
|
return _memberid;
|
}
|
}
|
/// <summary>
|
/// 会员名称
|
/// </summary>
|
public string Name
|
{
|
set
|
{
|
_name = value;
|
}
|
get
|
{
|
return _name;
|
}
|
}
|
/// <summary>
|
/// 原会员类型
|
/// </summary>
|
public string OldMemberType
|
{
|
set
|
{
|
_oldmembertype = value;
|
}
|
get
|
{
|
return _oldmembertype;
|
}
|
}
|
/// <summary>
|
/// 申请会员类型
|
/// </summary>
|
public string NewMemberType
|
{
|
set
|
{
|
_newmembertype = value;
|
}
|
get
|
{
|
return _newmembertype;
|
}
|
}
|
/// <summary>
|
/// 申请状态
|
/// </summary>
|
public int? ApplicationStatus
|
{
|
set
|
{
|
_applicationstatus = value;
|
}
|
get
|
{
|
return _applicationstatus;
|
}
|
}
|
/// <summary>
|
/// 申请人
|
/// </summary>
|
public string ApplicationName
|
{
|
set
|
{
|
_applicationname = value;
|
}
|
get
|
{
|
return _applicationname;
|
}
|
}
|
/// <summary>
|
/// 申请时间
|
/// </summary>
|
public DateTime? ApplicationTime
|
{
|
set
|
{
|
_applicationtime = value;
|
}
|
get
|
{
|
return _applicationtime;
|
}
|
}
|
/// <summary>
|
/// 审核人
|
/// </summary>
|
public string AuditName
|
{
|
set
|
{
|
_auditname = value;
|
}
|
get
|
{
|
return _auditname;
|
}
|
}
|
/// <summary>
|
/// 审核时间
|
/// </summary>
|
public DateTime? AuditTime
|
{
|
set
|
{
|
_audittime = value;
|
}
|
get
|
{
|
return _audittime;
|
}
|
}
|
/// <summary>
|
/// 批准人
|
/// </summary>
|
public string ApproveName
|
{
|
set
|
{
|
_approvename = value;
|
}
|
get
|
{
|
return _approvename;
|
}
|
}
|
/// <summary>
|
/// 批准时间
|
/// </summary>
|
public DateTime? ApproveTime
|
{
|
set
|
{
|
_approvetime = value;
|
}
|
get
|
{
|
return _approvetime;
|
}
|
}
|
/// <summary>
|
/// 备注
|
/// </summary>
|
public string Remark
|
{
|
set
|
{
|
_remark = value;
|
}
|
get
|
{
|
return _remark;
|
}
|
}
|
/// <summary>
|
/// 申请状态名称
|
/// </summary>
|
public string ApplicationStatusName
|
{
|
set;
|
get;
|
}
|
|
#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 ("MemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.MemberId = isChange ? MyConvert.ConvertToGuid(value) : MemberId;
|
theValue = this.MemberId;
|
}
|
else if ("Name".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.Name = isChange ? MyConvert.ConvertToString(value) : Name;
|
theValue = this.Name;
|
}
|
else if ("OldMemberType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.OldMemberType = isChange ? MyConvert.ConvertToString(value) : OldMemberType;
|
theValue = this.OldMemberType;
|
}
|
else if ("NewMemberType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.NewMemberType = isChange ? MyConvert.ConvertToString(value) : NewMemberType;
|
theValue = this.NewMemberType;
|
}
|
else if ("ApplicationStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.ApplicationStatus = isChange ? MyConvert.ConvertToInt32(value) : ApplicationStatus;
|
theValue = this.ApplicationStatus;
|
}
|
else if ("ApplicationName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.ApplicationName = isChange ? MyConvert.ConvertToString(value) : ApplicationName;
|
theValue = this.ApplicationName;
|
}
|
else if ("ApplicationTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.ApplicationTime = isChange ? MyConvert.ConvertToDateTime(value) : ApplicationTime;
|
theValue = this.ApplicationTime;
|
}
|
else if ("AuditName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.AuditName = isChange ? MyConvert.ConvertToString(value) : AuditName;
|
theValue = this.AuditName;
|
}
|
else if ("AuditTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.AuditTime = isChange ? MyConvert.ConvertToDateTime(value) : AuditTime;
|
theValue = this.AuditTime;
|
}
|
else if ("ApproveName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.ApproveName = isChange ? MyConvert.ConvertToString(value) : ApproveName;
|
theValue = this.ApproveName;
|
}
|
else if ("ApproveTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.ApproveTime = isChange ? MyConvert.ConvertToDateTime(value) : ApproveTime;
|
theValue = this.ApproveTime;
|
}
|
else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark;
|
theValue = this.Remark;
|
}
|
else if ("ApplicationStatusName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.ApplicationStatusName = isChange ? MyConvert.ConvertToString(value) : ApplicationStatusName;
|
theValue = this.ApplicationStatusName;
|
}
|
|
return theValue;
|
}
|
#endregion
|
}
|
}
|