/** * EC_AskPriceItem.cs * * 功 能: N/A * 类 名: EC_AskPriceItem * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-2 14:27:19 N/A 初版 * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 询价时所选择的选项 /// [Serializable] public partial class EC_AskPriceItem : IAggregateRoot { public EC_AskPriceItem() { } #region Model private int? _keyid; private int? _askpriceid; /// /// 询价选项记录编号 /// public int? Keyid { set { _keyid = value; } get { return _keyid; } } /// /// 询价记录编号 /// public int? AskPriceId { set { _askpriceid = value; } get { return _askpriceid; } } #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 ("AskPriceId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.AskPriceId = isChange ? MyConvert.ConvertToInt32(value) : AskPriceId; theValue = this.AskPriceId; } return theValue; } #endregion } }