| | |
| | | colCode = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | colSortCode = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | colDescription = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | catlogViewModelBindingSource = new BindingSource(components); |
| | | catalogViewModelBindingSource = new BindingSource(components); |
| | | barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); |
| | | svgImage32 = new DevExpress.Utils.SvgImageCollection(components); |
| | | sidePanel1 = new DevExpress.XtraEditors.SidePanel(); |
| | |
| | | dockPanel1.SuspendLayout(); |
| | | dockPanel1_Container.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)treeList1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)catlogViewModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)catalogViewModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)svgImage32).BeginInit(); |
| | | sidePanel1.SuspendLayout(); |
| | | SuspendLayout(); |
| | |
| | | // |
| | | // dockManager1 |
| | | // |
| | | dockManager1.DockingOptions.ShowAutoHideButton = false; |
| | | dockManager1.DockingOptions.ShowCloseButton = false; |
| | | dockManager1.Form = this; |
| | | dockManager1.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { dockPanel1 }); |
| | | dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.MenuStrip", "System.Windows.Forms.StatusStrip", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl", "DevExpress.XtraBars.Navigation.OfficeNavigationBar", "DevExpress.XtraBars.Navigation.TileNavPane", "DevExpress.XtraBars.TabFormControl", "DevExpress.XtraBars.FluentDesignSystem.FluentDesignFormControl", "DevExpress.XtraBars.ToolbarForm.ToolbarFormControl" }); |
| | |
| | | // |
| | | 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 = catlogViewModelBindingSource; |
| | | treeList1.DataSource = catalogViewModelBindingSource; |
| | | treeList1.Dock = DockStyle.Fill; |
| | | treeList1.Location = new Point(0, 101); |
| | | 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; |
| | | // |
| | | // catlogViewModelBindingSource |
| | | // catalogViewModelBindingSource |
| | | // |
| | | catlogViewModelBindingSource.DataSource = typeof(SysCatalogViewModel); |
| | | catalogViewModelBindingSource.DataSource = typeof(SysCatalogViewModel); |
| | | // |
| | | // barButtonItem1 |
| | | // |
| | |
| | | // svgImage32 |
| | | // |
| | | svgImage32.ImageSize = new Size(32, 32); |
| | | svgImage32.Add("bletter", "image://svgimages/outlook inspired/bletter.svg"); |
| | | svgImage32.Add("bold", "image://svgimages/outlook inspired/bold.svg"); |
| | | svgImage32.Add("bo_category", "image://svgimages/business objects/bo_category.svg"); |
| | | // |
| | | // sidePanel1 |
| | | // |
| | |
| | | dockPanel1.ResumeLayout(false); |
| | | dockPanel1_Container.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)treeList1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)catlogViewModelBindingSource).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)catalogViewModelBindingSource).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)svgImage32).EndInit(); |
| | | sidePanel1.ResumeLayout(false); |
| | | sidePanel1.PerformLayout(); |
| | |
| | | private DevExpress.XtraTreeList.Columns.TreeListColumn colCode; |
| | | private DevExpress.XtraTreeList.Columns.TreeListColumn colSortCode; |
| | | private DevExpress.XtraTreeList.Columns.TreeListColumn colDescription; |
| | | private BindingSource catlogViewModelBindingSource; |
| | | private BindingSource catalogViewModelBindingSource; |
| | | private SysTypeListBoxCtrl typeTreeListCtrl2; |
| | | private DevExpress.XtraBars.BarButtonItem BtnAddChild; |
| | | private DevExpress.XtraBars.BarButtonItem BtnPropEdit; |