using System; namespace Muchinfo.MTPClient.Data.Model.QuoteItem { public class FuturesQuoteItem : QuoteItemBase2 { #region Fields /// /// 日增仓 /// private int _dayAddPositions; /// /// 交收日 /// private DateTime _deliveryDate; /// /// 昨持仓量 /// private long _lastPositions; /// /// 昨结算 /// private decimal _lastSettlement; /// /// 持仓 /// private long _positions; /// /// 报价单位 /// private string _quoteUnit; /// /// 结算 /// private decimal _settlement; /// /// 成交量 /// private int _volume; #endregion Fields #region Properties #region Public Properties /// /// 日增仓 /// public int DayAddPositions { get { return _dayAddPositions; } set { Set(() => DayAddPositions, ref _dayAddPositions, value); } } /// /// 交收日 /// public DateTime DeliveryDate { get { return _deliveryDate; } set { Set(() => DeliveryDate, ref _deliveryDate, value); } } /// /// 昨持仓量 /// public long LastPositions { get { return _lastPositions; } set { Set(() => LastPositions, ref _lastPositions, value); } } /// /// 昨结算 /// public decimal LastSettlement { get { return _lastSettlement; } set { Set(() => LastSettlement, ref _lastSettlement, value); } } /// /// 持仓 /// public long Positions { get { return _positions; } set { Set(() => Positions, ref _positions, value); } } /// /// 报价单位 /// public string QuoteUnit { get { return _quoteUnit; } set { Set(() => QuoteUnit, ref _quoteUnit, value); } } /// /// 结算 /// public decimal Settlement { get { return _settlement; } set { Set(() => Settlement, ref _settlement, value); } } /// /// 成交量 /// public int Volume { get { return _volume; } set { Set(() => Volume, ref _volume, value); } } #endregion Public Properties #endregion Properties #region Methods #region Public Methods /// /// 更新对象属性值(只更新需要字段) /// /// The item. public override void UpdateFrom(QuoteItemBase item) { base.UpdateFrom(item); var furturesItem = item as FuturesQuoteItem; if (furturesItem == null) { return; } this.DayAddPositions = furturesItem.DayAddPositions; ////this.DeliveryDate = furturesItem.DeliveryDate; this.Positions = furturesItem.Positions; this.Settlement = furturesItem.Settlement; this.Volume = furturesItem.Volume; } #endregion Public Methods #endregion Methods } }