namespace Muchinfo.MTPClient.Data.Model.QuoteItem { /// /// MySelectedQuoteItem类 /// public class MySelectedQuoteItem : QuoteItemBase { #region Fields /// /// 总额 /// private decimal _totalTurnover; #endregion Fields #region Properties #region Public Properties /// /// 总额 /// public decimal TotalTurnover { get { return _totalTurnover; } set { Set(() => TotalTurnover, ref _totalTurnover, value); } } #endregion Public Properties #endregion Properties #region Methods #region Public Methods /// /// 更新对象属性值(只更新需要字段) /// /// The item. public override void UpdateFrom(QuoteItemBase item) { base.UpdateFrom(item); var selectedItem = item as MySelectedQuoteItem; if (selectedItem == null) { return; } this.TotalTurnover = selectedItem.TotalTurnover; } #endregion Public Methods #endregion Methods } }