/// <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()); }
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)); }