Esempio n. 1
0
        public override void UpdateProviderFromPropertyValues()
        {
            selectedTradeDetailTag = prop["TradeDetailTag"];
            prop["SimpleDisplay"]  = itemGroup[selectedTradeDetailTag].DisplayName;

            // Identify which piece of MarketData we will need to evaluate this
            // trade detail request (i.e. "LastPrice", "BidPrice", etc).
            selectedMarketQuoteItem = itemGroup[selectedTradeDetailTag].Text1;
            dynamicRuleValueType    = Parse.ParseEnum <RuleValueType>(itemGroup[selectedTradeDetailTag].Text2);
            switch (dynamicRuleValueType)
            {
            case RuleValueType.DOUBLE:
                currentValue = 0.0;
                break;

            case RuleValueType.TIME_SPAN:
                currentValue = new TimeSpan(0, 0, 0);
                break;

            default:
                break;
            }

            //selectedMarketQuoteItem = PropertyValues["QuoteItem"];
            //selectedMarketInstrumentKey = PropertyValues["InstrumentKey"];
            //ezInstrumentKey instrumentKey = APIFactory.InstrumentKeyFromString(uiModifyControl["InstrumentKey"]);
        }
Esempio n. 2
0
 public BusinessRuleComponentVO(Guid id, string code, RuleValueType vt, bool isEditable, DateTime fD,
                                DateTime tD, string alias, Guid parentId, string parentAlias)
     : this(id, code, vt, isEditable)
 {
     this.ParentId    = parentId;
     this.ParentAlias = parentAlias;
     this.FromDate    = fD;
     this.ToDate      = tD;
     this.Alias       = alias;
 }
Esempio n. 3
0
 public BusinessRuleComponentVO(Guid id, string code, RuleValueType vt, bool isEditable)
 {
     this.Id            = id;
     this.Code          = code;
     this.Retrieval     = new RetrievalVO();
     this.ValueType     = vt;
     this.FeesValue     = new FeesVO();
     this.InterestValue = new InterestVO();
     this.ParamValue    = new ParamVO();
     this.MethodValue   = new MethodVO();
     this.IsEditable    = isEditable;
 }
Esempio n. 4
0
        public static string GetRuleValueTypeString(RuleValueType rType)
        {
            switch (rType)
            {
            case RuleValueType.PARAM:
                return("PARAM");

            case RuleValueType.INTEREST:
                return("INTEREST");

            case RuleValueType.FEES:
                return("FEES");

            case RuleValueType.METHOD:
                return("METHOD");

            default:
                return(string.Empty);
            }
        }