Esempio n. 1
0
        public override PropertyInfo[] GetTreeListCollumns(Type elementType, string elementIdPropertyName)
        {
            var columnBuilder = new ColumnBuilder();

            columnBuilder.ForType <Logger>()
            .AddColumn(x => x.Date)
            .AddColumn(x => x.Type)
            .AddColumn(x => x.Member)
            .AddColumn(x => x.Message)
            .AddColumn(x => x.Subloggers)
            .AddColumn(x => x.ParentId);

            return(columnBuilder.GetPropertiesForType(elementType) ?? base.GetTreeListCollumns(elementType, elementIdPropertyName));
        }
Esempio n. 2
0
        /// <summary>
        /// Lista kolumn wyświetlanych w głównym gridzie
        /// </summary>
        /// <param name="elementType"></param>
        /// <param name="elementIdPropertyName"></param>
        /// <returns></returns>
        public virtual System.Reflection.PropertyInfo[] GetGridCollumn(Type elementType, string elementIdPropertyName)
        {
            var gridBuilder = new ColumnBuilder();

            gridBuilder.ForType <ApplicationServer.Logs.Model.LogElement>()
            .AddColumn(x => x.MemberName)
            .AddColumn(x => x.ExternalId1)
            .AddColumn(x => x.Message)
            .AddColumn(x => x.CreatedDate);
            gridBuilder.ForType <Logger>()
            .AddColumn(x => x.Date)
            .AddColumn(x => x.Type)
            .AddColumn(x => x.Member)
            .AddColumn(x => x.Message)
            .AddColumn(x => x.Subloggers)
            .AddColumn(x => x.ParentId);


            return(gridBuilder.GetPropertiesForType(elementType) ?? elementType.GetProperties().Where(x => x.Name != elementIdPropertyName).ToArray());
        }
Esempio n. 3
0
        public override PropertyInfo[] GetGridCollumn(Type elementType, string elementIdPropertyName)
        {
            var gridBuilder = new ColumnBuilder();

            return(gridBuilder.GetPropertiesForType(elementType) ?? base.GetGridCollumn(elementType, elementIdPropertyName));
        }