コード例 #1
0
        public IUIGridColumn GetUIGridColumn(IPropDef propDef)
        {
            if (propDef == null)
            {
                throw new ArgumentNullException("propDef");
            }
            UIControlType controlType = GetControlType(propDef);
            var           gridColumn  = _factory.CreateUIGridProperty(propDef.DisplayName, propDef.PropertyName, controlType.TypeName, controlType.AssemblyName, true, 100, PropAlignment.left, new Hashtable());

            //SetControlType(propDef, gridColumn);

            return(gridColumn);
        }
コード例 #2
0
        public IFilterPropertyDef CreateUIFilterProperty(IPropDef propDef)
        {
            if (propDef == null)
            {
                throw new ArgumentNullException("propDef");
            }
            UIControlType      uiControlType        = GetControlType(propDef);
            var                filterClauseOperator = GetFilterClauseOperator(propDef);
            IFilterPropertyDef filterPropertyDef    = _factory.CreateFilterPropertyDef(propDef.PropertyName,
                                                                                       propDef.DisplayName,
                                                                                       uiControlType.TypeName,
                                                                                       uiControlType.AssemblyName,
                                                                                       filterClauseOperator,
                                                                                       new Dictionary <string, string>());

            return(filterPropertyDef);
        }