using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
///行政物品管理
|
/// </summary>
|
[Serializable]
|
public partial class OA_ShebeiWeixiu : IAggregateRoot
|
{
|
public OA_ShebeiWeixiu()
|
{
|
}
|
#region Model
|
private int? _keyid;
|
private Guid _memberid;
|
public int? ShebeiId { get; set; }
|
public DateTime? WeixiuTime { get; set; }
|
private int? _cateid;
|
public string Anzhuangdidian { get; set; }
|
private string _name;
|
private string _remark;
|
public decimal? WeixiuPrice { get; set; }
|
public int? Zerenren { get; set; }
|
public string ZerenrenName { get; set; }
|
public decimal? DanzePrice { get; set; }
|
|
public int? WeixiuShebeiId { get; set; }
|
|
public int? FukuanShebeiId { get; set; }
|
|
public int? FukuanshenqingId { get; set; }
|
|
//是否付费 1是2否
|
public int? Shifoufufei { get; set; }
|
|
|
public DateTime? CreateTime { get; set; }
|
public string Creator{ get; set; }
|
|
|
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
|
|
public string Caozuo { get; set; }
|
|
|
|
|
|
|
/// <summary>
|
/// 主键
|
/// </summary>
|
public int? Keyid
|
{
|
get
|
{
|
return _keyid;
|
}
|
set
|
{
|
_keyid = value;
|
}
|
}
|
/// <summary>
|
/// 会员编号
|
/// </summary>
|
public Guid MemberId
|
{
|
get
|
{
|
return _memberid;
|
}
|
set
|
{
|
_memberid = value;
|
}
|
}
|
/// <summary>
|
/// 分类Id
|
/// </summary>
|
public int? CateId
|
{
|
get
|
{
|
return _cateid;
|
}
|
set
|
{
|
_cateid = value;
|
}
|
}
|
/// <summary>
|
/// 名称
|
/// </summary>
|
public string Name
|
{
|
get
|
{
|
return _name;
|
}
|
set
|
{
|
_name = 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 Remark
|
{
|
get
|
{
|
return _remark;
|
}
|
set
|
{
|
_remark = value;
|
}
|
}
|
|
/// <summary>
|
/// 分类名称
|
/// </summary>
|
public string CateName
|
{
|
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 ("MemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.MemberId = isChange ? MyConvert.ConvertToGuid(value) : MemberId;
|
theValue = this.MemberId;
|
}
|
else if ("ShebeiId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.ShebeiId = isChange ? MyConvert.ConvertToInt(value) : ShebeiId;
|
theValue = this.ShebeiId;
|
}
|
else if ("WeixiuTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.WeixiuTime = isChange ? MyConvert.ConvertToDateTime(value) : WeixiuTime;
|
theValue = this.WeixiuTime;
|
}
|
else if ("CateId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.CateId = isChange ? MyConvert.ConvertToInt(value) : CateId;
|
theValue = this.CateId;
|
}
|
else if ("Anzhuangdidian".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.Anzhuangdidian = isChange ? MyConvert.ConvertToString(value) : Anzhuangdidian;
|
theValue = this.Anzhuangdidian;
|
}
|
else if ("Name".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.Name = isChange ? MyConvert.ConvertToString(value) : Name;
|
theValue = this.Name;
|
}
|
else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark;
|
theValue = this.Remark;
|
}
|
else if ("WeixiuPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.WeixiuPrice = isChange ? MyConvert.ConvertToDecimal(value) : WeixiuPrice;
|
theValue = this.WeixiuPrice;
|
}
|
else if ("Zerenren".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.Zerenren = isChange ? MyConvert.ConvertToInt(value) : Zerenren;
|
theValue = this.Zerenren;
|
}
|
|
|
else if ("ZerenrenName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.ZerenrenName = isChange ? MyConvert.ConvertToString(value) : ZerenrenName;
|
theValue = this.ZerenrenName;
|
}
|
else if ("DanzePrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.DanzePrice = isChange ? MyConvert.ConvertToDecimal(value) : DanzePrice;
|
theValue = this.DanzePrice;
|
}
|
|
else if ("WeixiuShebeiId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.WeixiuShebeiId = isChange ? MyConvert.ConvertToInt32(value) : WeixiuShebeiId;
|
theValue = this.WeixiuShebeiId;
|
}
|
else if ("FukuanshenqingId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.FukuanshenqingId = isChange ? MyConvert.ConvertToInt32(value) : FukuanshenqingId;
|
theValue = this.FukuanshenqingId;
|
}
|
else if ("FukuanShebeiId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.FukuanShebeiId = isChange ? MyConvert.ConvertToInt32(value) : FukuanShebeiId;
|
theValue = this.FukuanShebeiId;
|
}
|
|
|
else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime;
|
theValue = this.CreateTime;
|
}
|
else if ("Creator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.Creator = isChange ? MyConvert.ConvertToString(value) : Creator;
|
theValue = this.Creator;
|
}
|
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
|
{
|
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
|
theValue = this.Operator;
|
}
|
else if ("Shifoufufei".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.Shifoufufei = isChange ? MyConvert.ConvertToInt32(value) : Shifoufufei;
|
theValue = this.Shifoufufei;
|
}
|
else if ("CateName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.CateName = isChange ? MyConvert.ConvertToString(value) : CateName;
|
theValue = this.CateName;
|
}
|
|
|
|
return theValue;
|
}
|
#endregion Visiter
|
}
|
}
|