| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- namespace Muchinfo.MTPClient.Data.Model.QuoteItem
- {
- /// <summary>
- /// PreciousMetalQuoteItem类
- /// </summary>
- public class PreciousMetalQuoteItem : QuoteItemBase2
- {
- #region Fields
- /// <summary>
- /// 日增仓
- /// </summary>
- private int _dayAddPositions;
- /// <summary>
- /// 昨结算
- /// </summary>
- private decimal _lastSettlement;
- /// <summary>
- /// 每手单位
- /// </summary>
- private string _lotUnit;
- /// <summary>
- /// 持仓
- /// </summary>
- private long _positions;
- /// <summary>
- /// 报价单位
- /// </summary>
- private string _quoteUnit;
- #endregion Fields
- #region Properties
- #region Public Properties
- /// <summary>
- /// 日增仓
- /// </summary>
- public int DayAddPositions
- {
- get
- {
- return _dayAddPositions;
- }
- set
- {
- Set(() => DayAddPositions, ref _dayAddPositions, value);
- }
- }
- /// <summary>
- /// 昨结算
- /// </summary>
- public decimal LastSettlement
- {
- get
- {
- return _lastSettlement;
- }
- set
- {
- Set(() => LastSettlement, ref _lastSettlement, value);
- }
- }
- /// <summary>
- /// 每手单位
- /// </summary>
- public string LotUnit
- {
- get
- {
- return _lotUnit;
- }
- set
- {
- Set(() => LotUnit, ref _lotUnit, value);
- }
- }
- /// <summary>
- /// 持仓
- /// </summary>
- public long Positions
- {
- get
- {
- return _positions;
- }
- set
- {
- Set(() => Positions, ref _positions, value);
- }
- }
- /// <summary>
- /// 报价单位
- /// </summary>
- public string QuoteUnit
- {
- get
- {
- return _quoteUnit;
- }
- set
- {
- Set(() => QuoteUnit, ref _quoteUnit, 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 pmItem = item as PreciousMetalQuoteItem;
- if (pmItem == null)
- {
- return;
- }
- this.DayAddPositions = pmItem.DayAddPositions;
- this.Positions = pmItem.Positions;
- }
- #endregion Public Methods
- #endregion Methods
- }
- }
|