| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- namespace Muchinfo.MTPClient.Data.Model.QuoteItem
- {
- /// <summary>
- /// MySelectedQuoteItem类
- /// </summary>
- public class MySelectedQuoteItem : QuoteItemBase
- {
- #region Fields
- /// <summary>
- /// 总额
- /// </summary>
- private decimal _totalTurnover;
- #endregion Fields
- #region Properties
- #region Public Properties
- /// <summary>
- /// 总额
- /// </summary>
- public decimal TotalTurnover
- {
- get
- {
- return _totalTurnover;
- }
- set
- {
- Set(() => TotalTurnover, ref _totalTurnover, value);
- }
- }
- #endregion Public Properties
- #endregion Properties
- #region Methods
- #region Public Methods
- /// <summary>
- /// 更新对象属性值(只更新需要字段)
- /// </summary>
- /// <param name="item">The item.</param>
- 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
- }
- }
|