| | |
| | | // |
| | | treeList1.Appearance.HeaderPanel.Options.UseTextOptions = true; |
| | | treeList1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | treeList1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; |
| | | treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName, colCode, colSortCode, colDescription }); |
| | | treeList1.DataSource = catalogViewModelBindingSource; |
| | | treeList1.Dock = DockStyle.Fill; |
| | |
| | | treeList1.MenuManager = ribbonControl1; |
| | | treeList1.Name = "treeList1"; |
| | | treeList1.OptionsBehavior.Editable = false; |
| | | treeList1.OptionsBehavior.PopulateServiceColumns = true; |
| | | treeList1.OptionsView.ShowTreeLines = DevExpress.Utils.DefaultBoolean.True; |
| | | treeList1.Size = new Size(933, 446); |
| | | treeList1.TabIndex = 4; |
| | |
| | | // colName |
| | | // |
| | | colName.AppearanceCell.Options.UseTextOptions = true; |
| | | colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; |
| | | colName.Caption = "名称"; |
| | | colName.FieldName = "Name"; |
| | | colName.Name = "colName"; |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 0; |
| | | colName.Width = 212; |
| | | // |
| | | // colCode |
| | | // |
| | |
| | | colCode.Name = "colCode"; |
| | | colCode.Visible = true; |
| | | colCode.VisibleIndex = 1; |
| | | colCode.Width = 211; |
| | | // |
| | | // colSortCode |
| | | // |
| | |
| | | colSortCode.FieldName = "SortCode"; |
| | | colSortCode.Name = "colSortCode"; |
| | | colSortCode.Visible = true; |
| | | colSortCode.VisibleIndex = 2; |
| | | colSortCode.VisibleIndex = 3; |
| | | colSortCode.Width = 100; |
| | | // |
| | | // colDescription |
| | | // |
| | |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 3; |
| | | colDescription.VisibleIndex = 2; |
| | | colDescription.Width = 322; |
| | | // |
| | | // catalogViewModelBindingSource |
| | | // |