Exemplo n.º 1
0
        protected PFModelConfig GetModelPropertyConfig(HtmlHelper htmlHelper, string expression)
        {
            PFModelConfigCollection modelConfig = htmlHelper.ViewData["modelConfig"] as PFModelConfigCollection;

            if (modelConfig == null)
            {
                return(null);
            }
            var propertyName = ExpressionHelper.GetExpressionText(expression);
            var config       = modelConfig[propertyName];

            return(config);
        }
Exemplo n.º 2
0
 public void SetModelConfig(string names)
 {
     _modelConfig = PFDataHelper.GetMultiModelConfig(names);
 }
Exemplo n.º 3
0
 public void SetModelConfig(string name, string fullName)
 {
     _modelConfig = PFDataHelper.GetModelConfig(name, fullName);
 }