Ejemplo n.º 1
0
        private void Update(IDBRow tradePolicyDetailRow, SpecialTradePolicy specialTradePolicy)
        {
            this.instrumentId       = (Guid)tradePolicyDetailRow["InstrumentID"];
            this.autoLimitBase      = (OrderLevelRiskBase)tradePolicyDetailRow["AutoLimitBase"];
            this.autoLimitThreshold = (decimal)tradePolicyDetailRow["AutoLimitThreshold"];
            this.autoStopBase       = (OrderLevelRiskBase)tradePolicyDetailRow["AutoStopBase"];
            this.autoStopThreshold  = (decimal)tradePolicyDetailRow["AutoStopThreshold"];

            this.isFractionCommissionOn = (bool)tradePolicyDetailRow["IsFractionCommissionOn"];
            this.commissionOpen         = (decimal)tradePolicyDetailRow["CommissionOpen"];
            this.commissionCloseD       = (decimal)tradePolicyDetailRow["CommissionCloseD"];
            this.commissionCloseO       = (decimal)tradePolicyDetailRow["CommissionCloseO"];

            this.isFractionLevyOn = (bool)tradePolicyDetailRow["IsFractionLevyOn"];
            this.levyOpen         = (decimal)tradePolicyDetailRow["LevyOpen"];
            this.levyClose        = (decimal)tradePolicyDetailRow["LevyClose"];

            this.cgseNewLevyMultipler   = (decimal)tradePolicyDetailRow["CGSENewLevyMultipler"];
            this.cgseCloseLevyMultipler = (decimal)tradePolicyDetailRow["CGSECloseLevyMultipler"];
            this.cgseNewLevyRemainder   = (decimal)tradePolicyDetailRow["CGSENewLevyRemainder"];
            this.cgseCloseLevyRemainder = (decimal)tradePolicyDetailRow["CGSECloseLevyRemainder"];
            this.cgseLevyCurrecyType    = (CGSELevyCurrecyType)Enum.ToObject(CGSELevyCurrecyType.GetType(), tradePolicyDetailRow["CGSELevyCurrecyType"]);

            specialTradePolicy.Add(this);
        }
Ejemplo n.º 2
0
        internal void Update(XElement tradePolicyDetailNode, SpecialTradePolicy specialTradePolicy)
        {
            this.specialTradePolicy.Remove(this);

            this.InternalUpdate(tradePolicyDetailNode, specialTradePolicy);

            specialTradePolicy.Add(this);
        }