示例#1
0
        protected override void Execute()
        {
            string sql = EvaluatorUtil.Execute <string>(Sql,
                                                        ("dataSet", DataSet), ("table", Table), ("row", Row), ("resolver", Resolver));

            DbUtil.ExecuteNonQuery(sql, Resolver.Context);
        }
示例#2
0
        public bool IsFitFor(object value, object rowValue)
        {
            string expression = Expression.Execute(Condition);

            //value = HrefDisplayConfig.ResolveRowValue(rowValue, value, value);
            return(EvaluatorUtil.Execute <bool>(expression,
                                                ("value", value), ("row", rowValue)));
        }
示例#3
0
        public string DisplayValue(object value, Tk5FieldInfoEx field, IFieldValueProvider rowValue)
        {
            if (string.IsNullOrEmpty(Content))
            {
                return(string.Empty);
            }

            return(EvaluatorUtil.Execute <string>(Content,
                                                  ("value", value), ("row", rowValue)));
        }
 public bool Test()
 {
     return(EvaluatorUtil.Execute <bool>(Condition));
 }