| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- namespace Muchinfo.MTPClient.Data.Model.QuoteItem
- {
- /// <summary>
- /// QuoteItemBase2类
- /// </summary>
- public class QuoteItemBase2 : QuoteItemBase
- {
- #region Fields
- /// <summary>
- /// 买价
- /// </summary>
- private decimal _buyPrice;
- /// <summary>
- /// 买量
- /// </summary>
- private int _buyVolume;
- /// <summary>
- /// 现量
- /// </summary>
- private int _currentVolume;
- /// <summary>
- /// 排序
- /// </summary>
- private int _order;
- /// <summary>
- /// 报价货币
- /// </summary>
- private string _quoteCurrency;
- /// <summary>
- /// 卖价
- /// </summary>
- private decimal _sellPrice;
- /// <summary>
- /// 卖量
- /// </summary>
- private int _sellVolume;
- /// <summary>
- /// 总量
- /// </summary>
- private int _totalVolume;
- #endregion Fields
- #region Properties
- #region Public Properties
- /// <summary>
- /// 买价
- /// </summary>
- public decimal BuyPrice
- {
- get
- {
- return _buyPrice;
- }
- set
- {
- Set(() => BuyPrice, ref _buyPrice, value);
- }
- }
- /// <summary>
- /// 买量
- /// </summary>
- public int BuyVolume
- {
- get
- {
- return _buyVolume;
- }
- set
- {
- Set(() => BuyVolume, ref _buyVolume, value);
- }
- }
- /// <summary>
- /// 现量
- /// </summary>
- public int CurrentVolume
- {
- get
- {
- return _currentVolume;
- }
- set
- {
- Set(() => CurrentVolume, ref _currentVolume, value);
- }
- }
- /// <summary>
- /// 排序
- /// </summary>
- public int Order
- {
- get
- {
- return _order;
- }
- set
- {
- Set(() => Order, ref _order, value);
- }
- }
- /// <summary>
- /// 报价货币
- /// </summary>
- public string QuoteCurrency
- {
- get
- {
- return _quoteCurrency;
- }
- set
- {
- Set(() => QuoteCurrency, ref _quoteCurrency, value);
- }
- }
- /// <summary>
- /// 卖价
- /// </summary>
- public decimal SellPrice
- {
- get
- {
- return _sellPrice;
- }
- set
- {
- Set(() => SellPrice, ref _sellPrice, value);
- }
- }
- /// <summary>
- /// 卖量
- /// </summary>
- public int SellVolume
- {
- get
- {
- return _sellVolume;
- }
- set
- {
- Set(() => SellVolume, ref _sellVolume, value);
- }
- }
- /// <summary>
- /// 总量
- /// </summary>
- public int TotalVolume
- {
- get
- {
- return _totalVolume;
- }
- set
- {
- Set(() => TotalVolume, ref _totalVolume, 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 item2 = item as QuoteItemBase2;
- if (item2 == null)
- {
- return;
- }
- this.BuyPrice = item2.BuyPrice;
- this.BuyVolume = item2.BuyVolume;
- this.CurrentVolume = item2.CurrentVolume;
- this.SellPrice = item2.SellPrice;
- this.SellVolume = item2.SellVolume;
- this.TotalVolume = item2.TotalVolume;
- }
- #endregion Public Methods
- #endregion Methods
- }
- }
|