コード例 #1
0
        public IUIGrid CreateUIGrid(IClassDef classDef)
        {
            IUIGrid uiGrid = _factory.CreateUIGridDef();

            //The Properties are loaded in the ordinal position order
            // that they occur in the XML ClassDef so this will be the
            // correct order they should be shown in the UI.
            foreach (var propDef in classDef.PropDefcol)
            {
                if (propDef.IsPartOfObjectIdentity())
                {
                    continue;
                }
                if (propDef.IsPropForeignKey())
                {
                    continue;
                }
                uiGrid.Add(GetUIGridColumn(propDef));
            }

            var uiFilterCreator = new UIFilterCreator(_factory);

            uiGrid.FilterDef = uiFilterCreator.CreateUIFilter(classDef);
            return(uiGrid);
        }
コード例 #2
0
        public IUIGrid CreateUIGrid(IClassDef classDef)
        {
            IUIGrid uiGrid = _factory.CreateUIGridDef();

            //The Properties are loaded in the ordinal position order
            // that they occur in the XML ClassDef so this will be the 
            // correct order they should be shown in the UI.
            foreach (var propDef in classDef.PropDefcol)
            {
                if (propDef.IsPartOfObjectIdentity()) continue;
                if (propDef.IsPropForeignKey()) continue;
                uiGrid.Add(GetUIGridColumn(propDef));
            }

            var uiFilterCreator = new UIFilterCreator(_factory);
            uiGrid.FilterDef = uiFilterCreator.CreateUIFilter(classDef);
            return uiGrid;
        }