internal override ChangedItem Update(Quotation qutation) { var changedItems = base.Update(qutation); var physicalOpenOrder = (PhysicalOrder)_owner; if (_isPayoff != physicalOpenOrder.IsPayoff) { changedItems |= ChangedItem.IsPayoff; } var tradePolicyDetail = MissedTradePolicyDetailManager.Get(_owner); if (_discountOfOdd != tradePolicyDetail.DiscountOfOdd) { changedItems |= ChangedItem.DiscountOfOdd; } if (_valueDiscountAsMargin != tradePolicyDetail.ValueDiscountAsMargin) { changedItems |= ChangedItem.ValueDiscountAsMargin; } _isPayoff = physicalOpenOrder.IsPayoff; _discountOfOdd = tradePolicyDetail.DiscountOfOdd; _valueDiscountAsMargin = tradePolicyDetail.ValueDiscountAsMargin; this.ChangedItem = changedItems; return(changedItems); }
private TradePolicyDetail GetTradePolicyDetail() { return(MissedTradePolicyDetailManager.Get(_owner)); }