/** * EC_ExchangePrize.cs * * 功 能: N/A * 类 名: EC_ExchangePrize * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-2 14:27:20 N/A 初版 * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 电子商务系统兑换奖品 /// [Serializable] public partial class EC_ExchangePrize : IAggregateRoot { public EC_ExchangePrize() { } #region Model private int? _keyid; private int? _exchangerecid; private int? _prizeid; private int? _exchangecount; private int? _useintegral; /// /// 信息编号 /// public int? Keyid { set { _keyid = value; } get { return _keyid; } } /// /// 兑换记录编号 /// public int? ExchangeRecId { set { _exchangerecid = value; } get { return _exchangerecid; } } /// /// 兑换奖品编号 /// public int? PrizeId { set { _prizeid = value; } get { return _prizeid; } } /// /// 兑换数量 /// public int? ExchangeCount { set { _exchangecount = value; } get { return _exchangecount; } } /// /// 使用积分 /// public int? UseIntegral { set { _useintegral = value; } get { return _useintegral; } } #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.ConvertToInt32(value) : Keyid; theValue = this.Keyid; } else if ("ExchangeRecId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.ExchangeRecId = isChange ? MyConvert.ConvertToInt32(value) : ExchangeRecId; theValue = this.ExchangeRecId; } else if ("PrizeId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.PrizeId = isChange ? MyConvert.ConvertToInt32(value) : PrizeId; theValue = this.PrizeId; } else if ("ExchangeCount".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.ExchangeCount = isChange ? MyConvert.ConvertToInt32(value) : ExchangeCount; theValue = this.ExchangeCount; } else if ("Useintegral".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.UseIntegral = isChange ? MyConvert.ConvertToInt32(value) : UseIntegral; theValue = this.UseIntegral; } return theValue; } #endregion } }