From 1c3e5bc50d3045d51cb9a9f747d53442b82d9e2c Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 27 十二月 2024 17:50:22 +0800 Subject: [PATCH] 资产修改 --- WinFrmUI/HStation.WinFrmUI.Assets.Core/13-blunthead/03-factor/AssetsBluntheadFactorMgrPage.Designer.cs | 44 +++++++++++++++++++++++++++++++------------- 1 files changed, 31 insertions(+), 13 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/13-blunthead/03-factor/AssetsBluntheadFactorMgrPage.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/13-blunthead/03-factor/AssetsBluntheadFactorMgrPage.Designer.cs index 4fe7971..eef741b 100644 --- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/13-blunthead/03-factor/AssetsBluntheadFactorMgrPage.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/13-blunthead/03-factor/AssetsBluntheadFactorMgrPage.Designer.cs @@ -51,6 +51,7 @@ ribPageGroupForMore = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); panelControl1 = new DevExpress.XtraEditors.PanelControl(); gridControl1 = new DevExpress.XtraGrid.GridControl(); + assetsBluntheadFactorMgrViewModelBindingSource = new BindingSource(components); gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); colID = new DevExpress.XtraGrid.Columns.GridColumn(); colName = new DevExpress.XtraGrid.Columns.GridColumn(); @@ -61,15 +62,16 @@ repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); behaviorManager1 = new DevExpress.Utils.Behaviors.BehaviorManager(components); dragDropEvents1 = new DevExpress.Utils.DragDrop.DragDropEvents(components); - assetsBluntheadFactorMgrViewModelBindingSource = new BindingSource(components); + colCaliber = new DevExpress.XtraGrid.Columns.GridColumn(); + colMaterial = new DevExpress.XtraGrid.Columns.GridColumn(); ((ISupportInitialize)ribbonControl1).BeginInit(); ((ISupportInitialize)panelControl1).BeginInit(); panelControl1.SuspendLayout(); ((ISupportInitialize)gridControl1).BeginInit(); + ((ISupportInitialize)assetsBluntheadFactorMgrViewModelBindingSource).BeginInit(); ((ISupportInitialize)gridView1).BeginInit(); ((ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); ((ISupportInitialize)behaviorManager1).BeginInit(); - ((ISupportInitialize)assetsBluntheadFactorMgrViewModelBindingSource).BeginInit(); SuspendLayout(); // // ribbonControl1 @@ -85,7 +87,7 @@ ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; ribbonControl1.ShowToolbarCustomizeItem = false; - ribbonControl1.Size = new Size(996, 128); + ribbonControl1.Size = new Size(996, 101); ribbonControl1.Toolbar.ShowCustomizeItem = false; ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; // @@ -198,10 +200,10 @@ panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; panelControl1.Controls.Add(gridControl1); panelControl1.Dock = DockStyle.Fill; - panelControl1.Location = new Point(1, 129); + panelControl1.Location = new Point(1, 102); panelControl1.Name = "panelControl1"; panelControl1.Padding = new Padding(0, 1, 0, 0); - panelControl1.Size = new Size(996, 540); + panelControl1.Size = new Size(996, 567); panelControl1.TabIndex = 3; // // gridControl1 @@ -213,14 +215,18 @@ gridControl1.MenuManager = ribbonControl1; gridControl1.Name = "gridControl1"; gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemButtonEdit1 }); - gridControl1.Size = new Size(996, 539); + gridControl1.Size = new Size(996, 566); gridControl1.TabIndex = 0; gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); + // + // assetsBluntheadFactorMgrViewModelBindingSource + // + assetsBluntheadFactorMgrViewModelBindingSource.DataSource = typeof(AssetsBluntheadFactorMgrViewModel); // // gridView1 // behaviorManager1.SetBehaviors(gridView1, new DevExpress.Utils.Behaviors.Behavior[] { DevExpress.Utils.DragDrop.DragDropBehavior.Create(typeof(DevExpress.XtraGrid.Extensions.ColumnViewDragDropSource), true, true, true, true, dragDropEvents1) }); - gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colID, colName, colMinorLoss, colSortCode, colDescription, colDetail }); + gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colID, colName, colMinorLoss, colSortCode, colDescription, colDetail, colCaliber, colMaterial }); gridView1.GridControl = gridControl1; gridView1.Name = "gridView1"; gridView1.RowCellClick += gridView1_RowCellClick; @@ -250,7 +256,7 @@ colMinorLoss.MinWidth = 100; colMinorLoss.Name = "colMinorLoss"; colMinorLoss.Visible = true; - colMinorLoss.VisibleIndex = 1; + colMinorLoss.VisibleIndex = 3; colMinorLoss.Width = 100; // // colSortCode @@ -267,7 +273,7 @@ colDescription.MinWidth = 100; colDescription.Name = "colDescription"; colDescription.Visible = true; - colDescription.VisibleIndex = 2; + colDescription.VisibleIndex = 4; colDescription.Width = 100; // // colDetail @@ -278,7 +284,7 @@ colDetail.MinWidth = 60; colDetail.Name = "colDetail"; colDetail.Visible = true; - colDetail.VisibleIndex = 3; + colDetail.VisibleIndex = 5; colDetail.Width = 60; // // repositoryItemButtonEdit1 @@ -294,9 +300,19 @@ // dragDropEvents1.DragDrop += dragDropEvents1_DragDrop; // - // assetsBluntheadFactorMgrViewModelBindingSource + // colCaliber // - assetsBluntheadFactorMgrViewModelBindingSource.DataSource = typeof(AssetsBluntheadFactorMgrViewModel); + colCaliber.FieldName = "Caliber"; + colCaliber.Name = "colCaliber"; + colCaliber.Visible = true; + colCaliber.VisibleIndex = 2; + // + // colMaterial + // + colMaterial.FieldName = "Material"; + colMaterial.Name = "colMaterial"; + colMaterial.Visible = true; + colMaterial.VisibleIndex = 1; // // AssetsBluntheadFactorMgrPage // @@ -313,10 +329,10 @@ ((ISupportInitialize)panelControl1).EndInit(); panelControl1.ResumeLayout(false); ((ISupportInitialize)gridControl1).EndInit(); + ((ISupportInitialize)assetsBluntheadFactorMgrViewModelBindingSource).EndInit(); ((ISupportInitialize)gridView1).EndInit(); ((ISupportInitialize)repositoryItemButtonEdit1).EndInit(); ((ISupportInitialize)behaviorManager1).EndInit(); - ((ISupportInitialize)assetsBluntheadFactorMgrViewModelBindingSource).EndInit(); ResumeLayout(false); PerformLayout(); } @@ -350,5 +366,7 @@ private DevExpress.Utils.DragDrop.DragDropEvents dragDropEvents1; private DevExpress.XtraGrid.Columns.GridColumn colMinorLoss; private BindingSource assetsBluntheadFactorMgrViewModelBindingSource; + private DevExpress.XtraGrid.Columns.GridColumn colCaliber; + private DevExpress.XtraGrid.Columns.GridColumn colMaterial; } } -- Gitblit v1.9.3