public SubmitListView()
        {
            SmartColumn path     = new SmartColumn(this, "Path", 60, "Path");
            SmartColumn project  = new SmartColumn(this, "Project", 60, "Project");
            SmartColumn change   = new SmartColumn(this, "Change", 60, "Change");
            SmartColumn fullPath = new SmartColumn(this, "Full Path", 60, "FullPath");

            Columns.AddRange(new ColumnHeader[]
            {
                path,
                project,
                change,
                fullPath
            });

            project.Groupable = true;

            path.Hideable = false;

            SortColumns.Add(path);
            GroupColumns.Add(project);

            FinalSortColumn = path;

            ShowSelectAllCheckBox = true;
        }
Exemple #2
0
        protected override void OnDefineColumns()
        {
            GroupColumns.Add(new Column()
            {
                Name = "Order Status", FieldAccessor = r => r.OrderStatus
            });
            GroupColumns.Add(new Column()
            {
                Name = "Income Receivable", FieldAccessor = r => r.HasIncomeReceivable
            });
            GroupColumns.Add(new Column()
            {
                Name = "Open Shipment Request", FieldAccessor = r => r.HasOpenOrderShipmentRequest
            });

            AggregateColumns.Add(new Column()
            {
                Name = "Order #", FieldAccessor = r => r.OrderNumber
            });
        }
Exemple #3
0
        protected override void OnDefineColumns()
        {
            GroupColumns.Add(new Column()
            {
                Name = "Table", FieldAccessor = r => r.TableName
            });
            GroupColumns.Add(new Column()
            {
                Name = "Field", FieldAccessor = r => r.FieldName
            });

            DataColumns.Add(new Column()
            {
                Name = "Value", FieldAccessor = r => r.Name
            });

            AggregateColumns.Add(new Column()
            {
                Name = "# Records", FieldAccessor = r => r.RecordCount
            });
        }
        protected override void OnDefineColumns()
        {
            GroupColumns.Add(new Column()
            {
                Name = "Order Year", FieldAccessor = r => r.OrderYear
            });
            GroupColumns.Add(new Column()
            {
                Name = "Order Month", FieldAccessor = r => r.OrderMonth
            });

            DataColumns.Add(new Column()
            {
                Name = "Order #", FieldAccessor = r => r.OrderNumber
            });
            DataColumns.Add(new Column()
            {
                Name = "Order Date", FieldAccessor = r => r.OrderDateTimeUtc, Format = "{0:d}"
            });
            DataColumns.Add(new Column()
            {
                Name = "Status Date", FieldAccessor = r => r.StatusDateTimeUtc, Format = "{0:d}"
            });

            AggregateColumns.Add(new Column()
            {
                Name = "Cash (1000)", FieldAccessor = r => r.Cash_1000, Format = "{0:c}"
            });
            AggregateColumns.Add(new Column()
            {
                Name = "Income Receivable (1100)", FieldAccessor = r => r.IncomeReceivableBalance_1100, Format = "{0:c}"
            });
            AggregateColumns.Add(new Column()
            {
                Name = "Square Fees (5100)", FieldAccessor = r => r.SquareFees_5100, Format = "{0:c}"
            });
        }
        public void Initialize()
        {
            SmartColumn path     = new SmartColumn(this, PCResources.PathColumn, 288, "Path");
            SmartColumn project  = new SmartColumn(this, PCResources.ProjectColumn, 76, "Project");
            SmartColumn change   = new SmartColumn(this, PCResources.ChangeColumn, 76, "Change");
            SmartColumn fullPath = new SmartColumn(this, PCResources.FullPathColumn, 327, "FullPath");

            SmartColumn changeList  = new SmartColumn(this, PCResources.ChangeListColumn, 76, "ChangeList");
            SmartColumn folder      = new SmartColumn(this, PCResources.FolderColumn, 196, "Folder");
            SmartColumn locked      = new SmartColumn(this, PCResources.LockedColumn, 38, "Locked");
            SmartColumn modified    = new SmartColumn(this, PCResources.ModifiedColumn, 76, "Modified");
            SmartColumn name        = new SmartColumn(this, PCResources.NameColumn, 76, "Name");
            SmartColumn revision    = new SmartColumn(this, PCResources.RevisionColumn, 38, "Revision");
            SmartColumn type        = new SmartColumn(this, PCResources.TypeColumn, 76, "Type");
            SmartColumn workingCopy = new SmartColumn(this, PCResources.WorkingCopyColumn, 76, "WorkingCopy");

            Columns.AddRange(new ColumnHeader[]
            {
                path,
                project,
                change,
                fullPath
            });

            modified.Sorter = new SortWrapper(
                delegate(PendingCommitItem x, PendingCommitItem y)
            {
                return(x.PendingChange.SvnItem.Modified.CompareTo(y.PendingChange.SvnItem.Modified));
            });

            revision.Sorter = new SortWrapper(
                delegate(PendingCommitItem x, PendingCommitItem y)
            {
                long?xRev, yRev;
                xRev = x.PendingChange.Revision;
                yRev = y.PendingChange.Revision;

                if (xRev.HasValue && yRev.HasValue)
                {
                    return(xRev.Value.CompareTo(yRev.Value));
                }
                else if (!xRev.HasValue)
                {
                    return(yRev.HasValue ? 1 : 0);
                }
                else
                {
                    return(-1);
                }
            });

            change.Groupable      = true;
            changeList.Groupable  = true;
            folder.Groupable      = true;
            locked.Groupable      = true;
            project.Groupable     = true;
            type.Groupable        = true;
            workingCopy.Groupable = true;

            path.Hideable = false;

            AllColumns.Add(change);
            AllColumns.Add(changeList);
            AllColumns.Add(folder);
            AllColumns.Add(fullPath);
            AllColumns.Add(locked);
            AllColumns.Add(modified);
            AllColumns.Add(name);
            AllColumns.Add(path);
            AllColumns.Add(project);
            AllColumns.Add(revision);
            AllColumns.Add(type);
            AllColumns.Add(workingCopy);

            SortColumns.Add(path);
            GroupColumns.Add(changeList);

            FinalSortColumn = path;
        }
        void Initialize()
        {
            SmartColumn path         = new SmartColumn(this, PCResources.PathColumn, 288, "Path");
            SmartColumn project      = new SmartColumn(this, PCResources.ProjectColumn, 76, "Project");
            SmartColumn localChange  = new SmartColumn(this, PCResources.LocalChangeColumn, 102, "LocalChange");
            SmartColumn remoteChange = new SmartColumn(this, PCResources.RemoteChangeColumn, 102, "RemoteChange");
            SmartColumn fullPath     = new SmartColumn(this, PCResources.FullPathColumn, 327, "FullPath");

            SmartColumn changeList  = new SmartColumn(this, PCResources.ChangeListColumn, 76, "ChangeList");
            SmartColumn folder      = new SmartColumn(this, PCResources.FolderColumn, 196, "Folder");
            SmartColumn locked      = new SmartColumn(this, PCResources.LockedColumn, 38, "Locked");
            SmartColumn modified    = new SmartColumn(this, PCResources.ModifiedColumn, 76, "Modified");
            SmartColumn name        = new SmartColumn(this, PCResources.NameColumn, 76, "Name");
            SmartColumn type        = new SmartColumn(this, PCResources.TypeColumn, 76, "Type");
            SmartColumn workingCopy = new SmartColumn(this, PCResources.WorkingCopyColumn, 76, "WorkingCopy");

            Columns.AddRange(new ColumnHeader[]
            {
                path,
                project,
                localChange,
                remoteChange,
                fullPath
            });

            localChange.Groupable  = true;
            remoteChange.Groupable = true;

            changeList.Groupable  = true;
            folder.Groupable      = true;
            locked.Groupable      = true;
            project.Groupable     = true;
            type.Groupable        = true;
            workingCopy.Groupable = true;

            path.Hideable = false;

            modified.Sorter = new SortWrapper(
                delegate(SynchronizeListItem x, SynchronizeListItem y)
            {
                return(x.SvnItem.Modified.CompareTo(y.SvnItem.Modified));
            });

            AllColumns.Add(changeList);
            AllColumns.Add(folder);
            AllColumns.Add(fullPath);
            AllColumns.Add(localChange);
            AllColumns.Add(locked);
            AllColumns.Add(modified);
            AllColumns.Add(name);
            AllColumns.Add(path);
            AllColumns.Add(project);
            AllColumns.Add(remoteChange);
            AllColumns.Add(type);
            AllColumns.Add(workingCopy);

            SortColumns.Add(path);
            GroupColumns.Add(changeList);

            FinalSortColumn = path;
        }