From 5b2455c5dc3117471c620cc36af7fab483ccece9 Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期二, 24 十二月 2024 11:22:41 +0800 Subject: [PATCH] 创建方案 bug --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/02-change/02-valve/CreateXhsSchemeValveChangePage.Designer.cs | 556 +++++++++++++++++++++++++------------------------------ 1 files changed, 254 insertions(+), 302 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/02-change/02-valve/CreateXhsSchemeValveChangePage.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/02-change/02-valve/CreateXhsSchemeValveChangePage.Designer.cs index 9bc40b2..50a2fde 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/02-change/02-valve/CreateXhsSchemeValveChangePage.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/02-change/02-valve/CreateXhsSchemeValveChangePage.Designer.cs @@ -32,63 +32,54 @@ sidePanel3dModel = new SidePanel(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); gridControl1 = new DevExpress.XtraGrid.GridControl(); + createXhsSchemeValveChangeViewMdoelBindingSource = new BindingSource(components); layoutView1 = new DevExpress.XtraGrid.Views.Layout.LayoutView(); - repImgCmbStatus = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox(); + colSvgImage = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); repPictureEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit(); + layoutViewField_colSvgImage = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); + colLinkStatus = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); + repImgCmbStatus = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox(); + layoutViewField_colLinkStatus = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); + colMaterial = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); + layoutViewField_colMaterial = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); + colDiameter = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); + layoutViewField_colDiameter = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); + colMinorLoss = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); + layoutViewField_colMinorLoss = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); + colValveType = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); + layoutViewField_colValveType = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); + colOpeningDegree = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); + layoutViewField_colOpeningDegree = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); + colName = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); + layoutViewField_colName = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); + colModelType = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); + layoutViewField_colModelType = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); + layoutViewCard1 = new DevExpress.XtraGrid.Views.Layout.LayoutViewCard(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); sidePanel1 = new SidePanel(); - createXhsSchemeValveChangeViewMdoelBindingSource = new BindingSource(components); - colSvgImage = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colLinkStatus = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colMaterial = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colDiameter = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colMinorLoss = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colValveType = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colOpeningDegree = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colValveSetting = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colValvePress = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colValveFlow = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colName = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - colModelType = new DevExpress.XtraGrid.Columns.LayoutViewColumn(); - layoutViewCard1 = new DevExpress.XtraGrid.Views.Layout.LayoutViewCard(); - layoutViewField_colSvgImage = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colName = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colModelType = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colValveType = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colMinorLoss = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colOpeningDegree = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colLinkStatus = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colDiameter = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colMaterial = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colValvePress = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colValveFlow = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); - layoutViewField_colValveSetting = new DevExpress.XtraGrid.Views.Layout.LayoutViewField(); ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((ISupportInitialize)gridControl1).BeginInit(); + ((ISupportInitialize)createXhsSchemeValveChangeViewMdoelBindingSource).BeginInit(); ((ISupportInitialize)layoutView1).BeginInit(); - ((ISupportInitialize)repImgCmbStatus).BeginInit(); ((ISupportInitialize)repPictureEdit1).BeginInit(); + ((ISupportInitialize)layoutViewField_colSvgImage).BeginInit(); + ((ISupportInitialize)repImgCmbStatus).BeginInit(); + ((ISupportInitialize)layoutViewField_colLinkStatus).BeginInit(); + ((ISupportInitialize)layoutViewField_colMaterial).BeginInit(); + ((ISupportInitialize)layoutViewField_colDiameter).BeginInit(); + ((ISupportInitialize)layoutViewField_colMinorLoss).BeginInit(); + ((ISupportInitialize)layoutViewField_colValveType).BeginInit(); + ((ISupportInitialize)layoutViewField_colOpeningDegree).BeginInit(); + ((ISupportInitialize)layoutViewField_colName).BeginInit(); + ((ISupportInitialize)layoutViewField_colModelType).BeginInit(); + ((ISupportInitialize)layoutViewCard1).BeginInit(); ((ISupportInitialize)Root).BeginInit(); ((ISupportInitialize)layoutControlGroup1).BeginInit(); ((ISupportInitialize)layoutControlItem1).BeginInit(); sidePanel1.SuspendLayout(); - ((ISupportInitialize)createXhsSchemeValveChangeViewMdoelBindingSource).BeginInit(); - ((ISupportInitialize)layoutViewCard1).BeginInit(); - ((ISupportInitialize)layoutViewField_colSvgImage).BeginInit(); - ((ISupportInitialize)layoutViewField_colName).BeginInit(); - ((ISupportInitialize)layoutViewField_colModelType).BeginInit(); - ((ISupportInitialize)layoutViewField_colValveType).BeginInit(); - ((ISupportInitialize)layoutViewField_colMinorLoss).BeginInit(); - ((ISupportInitialize)layoutViewField_colOpeningDegree).BeginInit(); - ((ISupportInitialize)layoutViewField_colLinkStatus).BeginInit(); - ((ISupportInitialize)layoutViewField_colDiameter).BeginInit(); - ((ISupportInitialize)layoutViewField_colMaterial).BeginInit(); - ((ISupportInitialize)layoutViewField_colValvePress).BeginInit(); - ((ISupportInitialize)layoutViewField_colValveFlow).BeginInit(); - ((ISupportInitialize)layoutViewField_colValveSetting).BeginInit(); SuspendLayout(); // // sidePanel3dModel @@ -123,6 +114,10 @@ gridControl1.TabIndex = 4; gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { layoutView1 }); // + // createXhsSchemeValveChangeViewMdoelBindingSource + // + createXhsSchemeValveChangeViewMdoelBindingSource.DataSource = typeof(CreateXhsSchemeValveChangeViewMdoel); + // // layoutView1 // layoutView1.ActiveFilterEnabled = false; @@ -134,11 +129,11 @@ layoutView1.Appearance.FieldValue.Options.UseTextOptions = true; layoutView1.Appearance.FieldValue.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; layoutView1.CardHorzInterval = 0; - layoutView1.CardMinSize = new Size(297, 192); + layoutView1.CardMinSize = new Size(259, 128); layoutView1.CardVertInterval = 8; - layoutView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.LayoutViewColumn[] { colSvgImage, colLinkStatus, colMaterial, colDiameter, colMinorLoss, colValveType, colOpeningDegree, colValveSetting, colValvePress, colValveFlow, colName, colModelType }); + layoutView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.LayoutViewColumn[] { colSvgImage, colLinkStatus, colMaterial, colDiameter, colMinorLoss, colValveType, colOpeningDegree, colName, colModelType }); layoutView1.GridControl = gridControl1; - layoutView1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colValveSetting }); + layoutView1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colMaterial, layoutViewField_colValveType }); layoutView1.Name = "layoutView1"; layoutView1.OptionsCustomization.AllowFilter = false; layoutView1.OptionsCustomization.AllowSort = false; @@ -155,6 +150,44 @@ layoutView1.TemplateCard = layoutViewCard1; layoutView1.CardClick += layoutView1_CardClick; layoutView1.FocusedColumnChanged += layoutView1_FocusedColumnChanged; + layoutView1.CellValueChanged += layoutView1_CellValueChanged; + // + // colSvgImage + // + colSvgImage.ColumnEdit = repPictureEdit1; + colSvgImage.FieldName = "SvgImage"; + colSvgImage.LayoutViewField = layoutViewField_colSvgImage; + colSvgImage.MinWidth = 30; + colSvgImage.Name = "colSvgImage"; + colSvgImage.OptionsColumn.AllowEdit = false; + colSvgImage.OptionsColumn.ReadOnly = true; + colSvgImage.Width = 112; + // + // repPictureEdit1 + // + repPictureEdit1.Name = "repPictureEdit1"; + repPictureEdit1.ReadOnly = true; + // + // layoutViewField_colSvgImage + // + layoutViewField_colSvgImage.EditorPreferredWidth = 125; + layoutViewField_colSvgImage.Location = new Point(0, 0); + layoutViewField_colSvgImage.Name = "layoutViewField_colSvgImage"; + layoutViewField_colSvgImage.Size = new Size(129, 64); + layoutViewField_colSvgImage.StartNewLine = true; + layoutViewField_colSvgImage.TextSize = new Size(0, 0); + layoutViewField_colSvgImage.TextVisible = false; + // + // colLinkStatus + // + colLinkStatus.AppearanceCell.ForeColor = Color.DodgerBlue; + colLinkStatus.AppearanceCell.Options.UseForeColor = true; + colLinkStatus.ColumnEdit = repImgCmbStatus; + colLinkStatus.FieldName = "LinkStatus"; + colLinkStatus.LayoutViewField = layoutViewField_colLinkStatus; + colLinkStatus.MinWidth = 30; + colLinkStatus.Name = "colLinkStatus"; + colLinkStatus.Width = 112; // // repImgCmbStatus // @@ -162,10 +195,171 @@ repImgCmbStatus.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); repImgCmbStatus.Name = "repImgCmbStatus"; // - // repPictureEdit1 + // layoutViewField_colLinkStatus // - repPictureEdit1.Name = "repPictureEdit1"; - repPictureEdit1.ReadOnly = true; + layoutViewField_colLinkStatus.EditorPreferredWidth = 126; + layoutViewField_colLinkStatus.Location = new Point(129, 96); + layoutViewField_colLinkStatus.Name = "layoutViewField_colLinkStatus"; + layoutViewField_colLinkStatus.Size = new Size(130, 32); + layoutViewField_colLinkStatus.TextSize = new Size(0, 0); + layoutViewField_colLinkStatus.TextVisible = false; + // + // colMaterial + // + colMaterial.AppearanceCell.ForeColor = Color.Gray; + colMaterial.AppearanceCell.Options.UseForeColor = true; + colMaterial.FieldName = "Material"; + colMaterial.LayoutViewField = layoutViewField_colMaterial; + colMaterial.MinWidth = 30; + colMaterial.Name = "colMaterial"; + colMaterial.OptionsColumn.AllowEdit = false; + colMaterial.OptionsColumn.ReadOnly = true; + colMaterial.Width = 112; + // + // layoutViewField_colMaterial + // + layoutViewField_colMaterial.EditorPreferredWidth = 20; + layoutViewField_colMaterial.Location = new Point(0, 0); + layoutViewField_colMaterial.Name = "layoutViewField_colMaterial"; + layoutViewField_colMaterial.Size = new Size(257, 160); + layoutViewField_colMaterial.TextSize = new Size(0, 0); + layoutViewField_colMaterial.TextVisible = false; + // + // colDiameter + // + colDiameter.AppearanceCell.ForeColor = Color.DodgerBlue; + colDiameter.AppearanceCell.Options.UseForeColor = true; + colDiameter.DisplayFormat.FormatString = "{0}mm"; + colDiameter.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; + colDiameter.FieldName = "Diameter"; + colDiameter.LayoutViewField = layoutViewField_colDiameter; + colDiameter.MinWidth = 30; + colDiameter.Name = "colDiameter"; + colDiameter.Width = 112; + // + // layoutViewField_colDiameter + // + layoutViewField_colDiameter.EditorPreferredWidth = 125; + layoutViewField_colDiameter.Location = new Point(0, 64); + layoutViewField_colDiameter.Name = "layoutViewField_colDiameter"; + layoutViewField_colDiameter.Size = new Size(129, 32); + layoutViewField_colDiameter.TextSize = new Size(0, 0); + layoutViewField_colDiameter.TextVisible = false; + // + // colMinorLoss + // + colMinorLoss.AppearanceCell.ForeColor = Color.DodgerBlue; + colMinorLoss.AppearanceCell.Options.UseForeColor = true; + colMinorLoss.DisplayFormat.FormatString = "{0}ML"; + colMinorLoss.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; + colMinorLoss.FieldName = "MinorLoss"; + colMinorLoss.LayoutViewField = layoutViewField_colMinorLoss; + colMinorLoss.MinWidth = 30; + colMinorLoss.Name = "colMinorLoss"; + colMinorLoss.Width = 112; + // + // layoutViewField_colMinorLoss + // + layoutViewField_colMinorLoss.EditorPreferredWidth = 125; + layoutViewField_colMinorLoss.Location = new Point(0, 96); + layoutViewField_colMinorLoss.Name = "layoutViewField_colMinorLoss"; + layoutViewField_colMinorLoss.Size = new Size(129, 32); + layoutViewField_colMinorLoss.TextSize = new Size(0, 0); + layoutViewField_colMinorLoss.TextVisible = false; + // + // colValveType + // + colValveType.FieldName = "ValveType"; + colValveType.LayoutViewField = layoutViewField_colValveType; + colValveType.MinWidth = 30; + colValveType.Name = "colValveType"; + colValveType.OptionsColumn.AllowEdit = false; + colValveType.OptionsColumn.ReadOnly = true; + colValveType.Width = 112; + // + // layoutViewField_colValveType + // + layoutViewField_colValveType.EditorPreferredWidth = 20; + layoutViewField_colValveType.Location = new Point(0, 0); + layoutViewField_colValveType.Name = "layoutViewField_colValveType"; + layoutViewField_colValveType.Size = new Size(257, 160); + layoutViewField_colValveType.TextSize = new Size(0, 0); + layoutViewField_colValveType.TextVisible = false; + // + // colOpeningDegree + // + colOpeningDegree.AppearanceCell.ForeColor = Color.DodgerBlue; + colOpeningDegree.AppearanceCell.Options.UseForeColor = true; + colOpeningDegree.DisplayFormat.FormatString = "{0}掳"; + colOpeningDegree.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; + colOpeningDegree.FieldName = "OpeningDegree"; + colOpeningDegree.LayoutViewField = layoutViewField_colOpeningDegree; + colOpeningDegree.MinWidth = 30; + colOpeningDegree.Name = "colOpeningDegree"; + colOpeningDegree.Width = 112; + // + // layoutViewField_colOpeningDegree + // + layoutViewField_colOpeningDegree.EditorPreferredWidth = 126; + layoutViewField_colOpeningDegree.Location = new Point(129, 64); + layoutViewField_colOpeningDegree.Name = "layoutViewField_colOpeningDegree"; + layoutViewField_colOpeningDegree.Size = new Size(130, 32); + layoutViewField_colOpeningDegree.TextSize = new Size(0, 0); + layoutViewField_colOpeningDegree.TextVisible = false; + // + // colName + // + colName.AppearanceCell.Font = new Font("Tahoma", 11F, FontStyle.Bold, GraphicsUnit.Point); + colName.AppearanceCell.Options.UseFont = true; + colName.FieldName = "Name"; + colName.LayoutViewField = layoutViewField_colName; + colName.MinWidth = 30; + colName.Name = "colName"; + colName.OptionsColumn.AllowEdit = false; + colName.OptionsColumn.ReadOnly = true; + colName.Width = 112; + // + // layoutViewField_colName + // + layoutViewField_colName.EditorPreferredWidth = 126; + layoutViewField_colName.Location = new Point(129, 0); + layoutViewField_colName.Name = "layoutViewField_colName"; + layoutViewField_colName.Size = new Size(130, 32); + layoutViewField_colName.TextSize = new Size(0, 0); + layoutViewField_colName.TextVisible = false; + // + // colModelType + // + colModelType.AppearanceCell.ForeColor = Color.DodgerBlue; + colModelType.AppearanceCell.Options.UseForeColor = true; + colModelType.FieldName = "ModelType"; + colModelType.LayoutViewField = layoutViewField_colModelType; + colModelType.MinWidth = 30; + colModelType.Name = "colModelType"; + colModelType.OptionsColumn.AllowEdit = false; + colModelType.OptionsColumn.ReadOnly = true; + colModelType.Width = 112; + // + // layoutViewField_colModelType + // + layoutViewField_colModelType.EditorPreferredWidth = 126; + layoutViewField_colModelType.Location = new Point(129, 32); + layoutViewField_colModelType.Name = "layoutViewField_colModelType"; + layoutViewField_colModelType.Size = new Size(130, 32); + layoutViewField_colModelType.TextSize = new Size(0, 0); + layoutViewField_colModelType.TextVisible = false; + // + // layoutViewCard1 + // + layoutViewCard1.CustomizationFormText = "TemplateCard"; + layoutViewCard1.GroupBordersVisible = false; + layoutViewCard1.HeaderButtonsLocation = DevExpress.Utils.GroupElementLocation.AfterText; + layoutViewCard1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colSvgImage, layoutViewField_colName, layoutViewField_colModelType, layoutViewField_colDiameter, layoutViewField_colLinkStatus, layoutViewField_colOpeningDegree, layoutViewField_colMinorLoss }); + layoutViewCard1.Name = "layoutViewCard1"; + layoutViewCard1.OptionsItemText.TextToControlDistance = 2; + layoutViewCard1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); + layoutViewCard1.Text = "TemplateCard"; + layoutViewCard1.TextLocation = DevExpress.Utils.Locations.Default; // // Root // @@ -209,239 +403,6 @@ sidePanel1.TabIndex = 2; sidePanel1.Text = "sidePanel1"; // - // createXhsSchemeValveChangeViewMdoelBindingSource - // - createXhsSchemeValveChangeViewMdoelBindingSource.DataSource = typeof(CreateXhsSchemeValveChangeViewMdoel); - // - // colSvgImage - // - colSvgImage.ColumnEdit = repPictureEdit1; - colSvgImage.FieldName = "SvgImage"; - colSvgImage.LayoutViewField = layoutViewField_colSvgImage; - colSvgImage.MinWidth = 30; - colSvgImage.Name = "colSvgImage"; - colSvgImage.OptionsColumn.AllowEdit = false; - colSvgImage.OptionsColumn.ReadOnly = true; - colSvgImage.Width = 112; - // - // colLinkStatus - // - colLinkStatus.ColumnEdit = repImgCmbStatus; - colLinkStatus.FieldName = "LinkStatus"; - colLinkStatus.LayoutViewField = layoutViewField_colLinkStatus; - colLinkStatus.MinWidth = 30; - colLinkStatus.Name = "colLinkStatus"; - colLinkStatus.Width = 112; - // - // colMaterial - // - colMaterial.FieldName = "Material"; - colMaterial.LayoutViewField = layoutViewField_colMaterial; - colMaterial.MinWidth = 30; - colMaterial.Name = "colMaterial"; - colMaterial.Width = 112; - // - // colDiameter - // - colDiameter.FieldName = "Diameter"; - colDiameter.LayoutViewField = layoutViewField_colDiameter; - colDiameter.MinWidth = 30; - colDiameter.Name = "colDiameter"; - colDiameter.Width = 112; - // - // colMinorLoss - // - colMinorLoss.FieldName = "MinorLoss"; - colMinorLoss.LayoutViewField = layoutViewField_colMinorLoss; - colMinorLoss.MinWidth = 30; - colMinorLoss.Name = "colMinorLoss"; - colMinorLoss.Width = 112; - // - // colValveType - // - colValveType.FieldName = "ValveType"; - colValveType.LayoutViewField = layoutViewField_colValveType; - colValveType.MinWidth = 30; - colValveType.Name = "colValveType"; - colValveType.Width = 112; - // - // colOpeningDegree - // - colOpeningDegree.FieldName = "OpeningDegree"; - colOpeningDegree.LayoutViewField = layoutViewField_colOpeningDegree; - colOpeningDegree.MinWidth = 30; - colOpeningDegree.Name = "colOpeningDegree"; - colOpeningDegree.Width = 112; - // - // colValveSetting - // - colValveSetting.FieldName = "ValveSetting"; - colValveSetting.LayoutViewField = layoutViewField_colValveSetting; - colValveSetting.MinWidth = 30; - colValveSetting.Name = "colValveSetting"; - colValveSetting.Width = 112; - // - // colValvePress - // - colValvePress.DisplayFormat.FormatString = "{0}m"; - colValvePress.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; - colValvePress.FieldName = "ValvePress"; - colValvePress.LayoutViewField = layoutViewField_colValvePress; - colValvePress.MinWidth = 30; - colValvePress.Name = "colValvePress"; - colValvePress.Width = 112; - // - // colValveFlow - // - colValveFlow.DisplayFormat.FormatString = "{0}m鲁/h"; - colValveFlow.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Custom; - colValveFlow.FieldName = "ValveFlow"; - colValveFlow.LayoutViewField = layoutViewField_colValveFlow; - colValveFlow.MinWidth = 30; - colValveFlow.Name = "colValveFlow"; - colValveFlow.Width = 112; - // - // colName - // - colName.FieldName = "Name"; - colName.LayoutViewField = layoutViewField_colName; - colName.MinWidth = 30; - colName.Name = "colName"; - colName.OptionsColumn.AllowEdit = false; - colName.OptionsColumn.ReadOnly = true; - colName.Width = 112; - // - // colModelType - // - colModelType.FieldName = "ModelType"; - colModelType.LayoutViewField = layoutViewField_colModelType; - colModelType.MinWidth = 30; - colModelType.Name = "colModelType"; - colModelType.OptionsColumn.AllowEdit = false; - colModelType.OptionsColumn.ReadOnly = true; - colModelType.Width = 112; - // - // layoutViewCard1 - // - layoutViewCard1.CustomizationFormText = "TemplateCard"; - layoutViewCard1.GroupBordersVisible = false; - layoutViewCard1.HeaderButtonsLocation = DevExpress.Utils.GroupElementLocation.AfterText; - layoutViewCard1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colSvgImage, layoutViewField_colName, layoutViewField_colModelType, layoutViewField_colValveType, layoutViewField_colMinorLoss, layoutViewField_colOpeningDegree, layoutViewField_colLinkStatus, layoutViewField_colDiameter, layoutViewField_colMaterial, layoutViewField_colValvePress, layoutViewField_colValveFlow }); - layoutViewCard1.Name = "layoutViewCard1"; - layoutViewCard1.OptionsItemText.TextToControlDistance = 2; - layoutViewCard1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - layoutViewCard1.Text = "TemplateCard"; - layoutViewCard1.TextLocation = DevExpress.Utils.Locations.Default; - // - // layoutViewField_colSvgImage - // - layoutViewField_colSvgImage.EditorPreferredWidth = 144; - layoutViewField_colSvgImage.Location = new Point(0, 0); - layoutViewField_colSvgImage.Name = "layoutViewField_colSvgImage"; - layoutViewField_colSvgImage.Size = new Size(148, 64); - layoutViewField_colSvgImage.StartNewLine = true; - layoutViewField_colSvgImage.TextSize = new Size(0, 0); - layoutViewField_colSvgImage.TextVisible = false; - // - // layoutViewField_colName - // - layoutViewField_colName.EditorPreferredWidth = 145; - layoutViewField_colName.Location = new Point(148, 0); - layoutViewField_colName.Name = "layoutViewField_colName"; - layoutViewField_colName.Size = new Size(149, 32); - layoutViewField_colName.TextSize = new Size(0, 0); - layoutViewField_colName.TextVisible = false; - // - // layoutViewField_colModelType - // - layoutViewField_colModelType.EditorPreferredWidth = 145; - layoutViewField_colModelType.Location = new Point(148, 32); - layoutViewField_colModelType.Name = "layoutViewField_colModelType"; - layoutViewField_colModelType.Size = new Size(149, 32); - layoutViewField_colModelType.TextSize = new Size(0, 0); - layoutViewField_colModelType.TextVisible = false; - // - // layoutViewField_colValveType - // - layoutViewField_colValveType.EditorPreferredWidth = 144; - layoutViewField_colValveType.Location = new Point(0, 64); - layoutViewField_colValveType.Name = "layoutViewField_colValveType"; - layoutViewField_colValveType.Size = new Size(148, 32); - layoutViewField_colValveType.TextSize = new Size(0, 0); - layoutViewField_colValveType.TextVisible = false; - // - // layoutViewField_colMinorLoss - // - layoutViewField_colMinorLoss.EditorPreferredWidth = 145; - layoutViewField_colMinorLoss.Location = new Point(148, 64); - layoutViewField_colMinorLoss.Name = "layoutViewField_colMinorLoss"; - layoutViewField_colMinorLoss.Size = new Size(149, 32); - layoutViewField_colMinorLoss.TextSize = new Size(0, 0); - layoutViewField_colMinorLoss.TextVisible = false; - // - // layoutViewField_colOpeningDegree - // - layoutViewField_colOpeningDegree.EditorPreferredWidth = 144; - layoutViewField_colOpeningDegree.Location = new Point(0, 96); - layoutViewField_colOpeningDegree.Name = "layoutViewField_colOpeningDegree"; - layoutViewField_colOpeningDegree.Size = new Size(148, 32); - layoutViewField_colOpeningDegree.TextSize = new Size(0, 0); - layoutViewField_colOpeningDegree.TextVisible = false; - // - // layoutViewField_colLinkStatus - // - layoutViewField_colLinkStatus.EditorPreferredWidth = 145; - layoutViewField_colLinkStatus.Location = new Point(148, 96); - layoutViewField_colLinkStatus.Name = "layoutViewField_colLinkStatus"; - layoutViewField_colLinkStatus.Size = new Size(149, 32); - layoutViewField_colLinkStatus.TextSize = new Size(0, 0); - layoutViewField_colLinkStatus.TextVisible = false; - // - // layoutViewField_colDiameter - // - layoutViewField_colDiameter.EditorPreferredWidth = 145; - layoutViewField_colDiameter.Location = new Point(148, 128); - layoutViewField_colDiameter.Name = "layoutViewField_colDiameter"; - layoutViewField_colDiameter.Size = new Size(149, 32); - layoutViewField_colDiameter.TextSize = new Size(0, 0); - layoutViewField_colDiameter.TextVisible = false; - // - // layoutViewField_colMaterial - // - layoutViewField_colMaterial.EditorPreferredWidth = 144; - layoutViewField_colMaterial.Location = new Point(0, 128); - layoutViewField_colMaterial.Name = "layoutViewField_colMaterial"; - layoutViewField_colMaterial.Size = new Size(148, 32); - layoutViewField_colMaterial.TextSize = new Size(0, 0); - layoutViewField_colMaterial.TextVisible = false; - // - // layoutViewField_colValvePress - // - layoutViewField_colValvePress.EditorPreferredWidth = 144; - layoutViewField_colValvePress.Location = new Point(0, 160); - layoutViewField_colValvePress.Name = "layoutViewField_colValvePress"; - layoutViewField_colValvePress.Size = new Size(148, 32); - layoutViewField_colValvePress.TextSize = new Size(0, 0); - layoutViewField_colValvePress.TextVisible = false; - // - // layoutViewField_colValveFlow - // - layoutViewField_colValveFlow.EditorPreferredWidth = 145; - layoutViewField_colValveFlow.Location = new Point(148, 160); - layoutViewField_colValveFlow.Name = "layoutViewField_colValveFlow"; - layoutViewField_colValveFlow.Size = new Size(149, 32); - layoutViewField_colValveFlow.TextSize = new Size(0, 0); - layoutViewField_colValveFlow.TextVisible = false; - // - // layoutViewField_colValveSetting - // - layoutViewField_colValveSetting.EditorPreferredWidth = 20; - layoutViewField_colValveSetting.Location = new Point(0, 0); - layoutViewField_colValveSetting.Name = "layoutViewField_colValveSetting"; - layoutViewField_colValveSetting.Size = new Size(328, 256); - layoutViewField_colValveSetting.TextSize = new Size(0, 0); - layoutViewField_colValveSetting.TextVisible = false; - // // CreateXhsSchemeValveChangePage // AutoScaleDimensions = new SizeF(10F, 22F); @@ -454,27 +415,24 @@ ((ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((ISupportInitialize)gridControl1).EndInit(); + ((ISupportInitialize)createXhsSchemeValveChangeViewMdoelBindingSource).EndInit(); ((ISupportInitialize)layoutView1).EndInit(); - ((ISupportInitialize)repImgCmbStatus).EndInit(); ((ISupportInitialize)repPictureEdit1).EndInit(); + ((ISupportInitialize)layoutViewField_colSvgImage).EndInit(); + ((ISupportInitialize)repImgCmbStatus).EndInit(); + ((ISupportInitialize)layoutViewField_colLinkStatus).EndInit(); + ((ISupportInitialize)layoutViewField_colMaterial).EndInit(); + ((ISupportInitialize)layoutViewField_colDiameter).EndInit(); + ((ISupportInitialize)layoutViewField_colMinorLoss).EndInit(); + ((ISupportInitialize)layoutViewField_colValveType).EndInit(); + ((ISupportInitialize)layoutViewField_colOpeningDegree).EndInit(); + ((ISupportInitialize)layoutViewField_colName).EndInit(); + ((ISupportInitialize)layoutViewField_colModelType).EndInit(); + ((ISupportInitialize)layoutViewCard1).EndInit(); ((ISupportInitialize)Root).EndInit(); ((ISupportInitialize)layoutControlGroup1).EndInit(); ((ISupportInitialize)layoutControlItem1).EndInit(); sidePanel1.ResumeLayout(false); - ((ISupportInitialize)createXhsSchemeValveChangeViewMdoelBindingSource).EndInit(); - ((ISupportInitialize)layoutViewCard1).EndInit(); - ((ISupportInitialize)layoutViewField_colSvgImage).EndInit(); - ((ISupportInitialize)layoutViewField_colName).EndInit(); - ((ISupportInitialize)layoutViewField_colModelType).EndInit(); - ((ISupportInitialize)layoutViewField_colValveType).EndInit(); - ((ISupportInitialize)layoutViewField_colMinorLoss).EndInit(); - ((ISupportInitialize)layoutViewField_colOpeningDegree).EndInit(); - ((ISupportInitialize)layoutViewField_colLinkStatus).EndInit(); - ((ISupportInitialize)layoutViewField_colDiameter).EndInit(); - ((ISupportInitialize)layoutViewField_colMaterial).EndInit(); - ((ISupportInitialize)layoutViewField_colValvePress).EndInit(); - ((ISupportInitialize)layoutViewField_colValveFlow).EndInit(); - ((ISupportInitialize)layoutViewField_colValveSetting).EndInit(); ResumeLayout(false); } @@ -498,9 +456,6 @@ private DevExpress.XtraGrid.Columns.LayoutViewColumn colMinorLoss; private DevExpress.XtraGrid.Columns.LayoutViewColumn colValveType; private DevExpress.XtraGrid.Columns.LayoutViewColumn colOpeningDegree; - private DevExpress.XtraGrid.Columns.LayoutViewColumn colValveSetting; - private DevExpress.XtraGrid.Columns.LayoutViewColumn colValvePress; - private DevExpress.XtraGrid.Columns.LayoutViewColumn colValveFlow; private DevExpress.XtraGrid.Columns.LayoutViewColumn colName; private DevExpress.XtraGrid.Columns.LayoutViewColumn colModelType; private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colSvgImage; @@ -510,9 +465,6 @@ private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colMinorLoss; private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colValveType; private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colOpeningDegree; - private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colValveSetting; - private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colValvePress; - private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colValveFlow; private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colName; private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colModelType; private DevExpress.XtraGrid.Views.Layout.LayoutViewCard layoutViewCard1; -- Gitblit v1.9.3