Пример #1
0
        public override object Resolve(SymbolContext context)
        {
            if (context.StaticParameters != null &&
                context.StaticParameters.ContainsKey(this.Value))
            {
                return(context.StaticParameters[this.Value]);
            }

            return(RetrieveAttributeValue(this, context.RecordRefence, context.OrganizationService));
        }
Пример #2
0
        public override object Resolve(SymbolContext context)
        {
            if (string.IsNullOrEmpty(this.Value))
            {
                return(string.Empty);
            }

            string functionName = this.Value.Trim();

            object[] parametes = new object[ChildExpressions.Count];
            if (ChildExpressions.Count > 0)
            {
                for (int i = 0; i < parametes.Length; i++)
                {
                    parametes[i] = ChildExpressions[i].Resolve(context);
                }
            }

            Type functionType = Type.GetType("DXTools.CRM.Solutions.CustomEmails.Common.TextProcessing.Functions." + functionName);
            IDynFunctionHandler functionHanlder = Activator.CreateInstance(functionType) as IDynFunctionHandler;

            return(functionHanlder.Invoke(parametes));
        }
 public override object Resolve(SymbolContext context)
 {
     return(this.Value);
 }
Пример #4
0
 public abstract object Resolve(SymbolContext context);