WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveChartShowDlg.Designer.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,61 @@ namespace HStation.WinFrmUI.Xhs { partial class ValveChartShowDlg { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { xtrPerform2dchart1 = new Yw.WinFrmUI.Phart.ValvePerform2dChart(); SuspendLayout(); // // xtrPerform2dchart1 // xtrPerform2dchart1.DefinePointVisible = false; xtrPerform2dchart1.Dock = DockStyle.Fill; xtrPerform2dchart1.LineVisible = false; xtrPerform2dchart1.Location = new Point(0, 0); xtrPerform2dchart1.Margin = new Padding(2, 2, 2, 2); xtrPerform2dchart1.Name = "xtrPerform2dchart1"; xtrPerform2dchart1.Size = new Size(686, 459); xtrPerform2dchart1.TabIndex = 0; // // ValveChartShowDlg // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(686, 459); Controls.Add(xtrPerform2dchart1); Name = "ValveChartShowDlg"; StartPosition = FormStartPosition.CenterScreen; Text = "å±ç¤ºæ²çº¿"; ResumeLayout(false); } #endregion private Yw.WinFrmUI.Phart.ValvePerform2dChart xtrPerform2dchart1; } } WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveChartShowDlg.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,47 @@ using HStation.WinFrmUI.PhartRelation; namespace HStation.WinFrmUI.Xhs { public partial class ValveChartShowDlg : DevExpress.XtraEditors.XtraForm { public ValveChartShowDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; } //åå§åå¾è¡¨æ°æ® public void InitChart(Vmo.XhsValveMainPhartMappingExtensions dto) { if (dto == null) { return; } var diagram = dto.Diagram; if (diagram == null) { return; } var graph_list = diagram.GraphList; if (graph_list == null || !graph_list.Any()) { return; } var graph_ql = graph_list.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.ValveQL); if (graph_ql == null) { return; } List<Yw.Geometry.Point2d> points_ql = null; points_ql = PhartPerformCurveHelper.GetFeatPointList(graph_ql.GraphType, graph_ql.GeometryInfo, 12, null); var cubic_spline_ql = new Yw.Geometry.CubicSpline2d(points_ql); var disp_paras = diagram.DispParas; var is_calc_disp_paras = string.IsNullOrWhiteSpace(disp_paras); this.xtrPerform2dchart1.SetBindingData(cubic_spline_ql, disp_paras, is_calc_disp_paras); } } } WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveChartShowDlg.resx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,120 @@ <?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> </root> WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingDlg.Designer.cs
@@ -56,7 +56,7 @@ layoutControl1.Name = "layoutControl1"; layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(1222, 300, 650, 400); layoutControl1.Root = Root; layoutControl1.Size = new Size(1347, 703); layoutControl1.Size = new Size(885, 537); layoutControl1.TabIndex = 6; layoutControl1.Text = "layoutControl1"; // @@ -65,14 +65,14 @@ xtraUserControl11.Location = new Point(0, 0); xtraUserControl11.Margin = new Padding(0); xtraUserControl11.Name = "xtraUserControl11"; xtraUserControl11.Size = new Size(1347, 677); xtraUserControl11.Size = new Size(885, 511); xtraUserControl11.TabIndex = 7; // // btnComplete // btnComplete.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary; btnComplete.Appearance.Options.UseBackColor = true; btnComplete.Location = new Point(1133, 679); btnComplete.Location = new Point(671, 513); btnComplete.MaximumSize = new Size(104, 0); btnComplete.MinimumSize = new Size(104, 0); btnComplete.Name = "btnComplete"; @@ -84,10 +84,10 @@ // // btnCancel // btnCancel.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Danger; btnCancel.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning; btnCancel.Appearance.Options.UseBackColor = true; btnCancel.DialogResult = DialogResult.Cancel; btnCancel.Location = new Point(1241, 679); btnCancel.Location = new Point(779, 513); btnCancel.MaximumSize = new Size(104, 0); btnCancel.MinimumSize = new Size(104, 0); btnCancel.Name = "btnCancel"; @@ -103,21 +103,21 @@ Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { emptySpaceItem1, itemForCancel, itemForComplete, layoutControlItem1 }); Root.Name = "Root"; Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); Root.Size = new Size(1347, 703); Root.Size = new Size(885, 537); Root.TextVisible = false; // // emptySpaceItem1 // emptySpaceItem1.AllowHotTrack = false; emptySpaceItem1.Location = new Point(0, 677); emptySpaceItem1.Location = new Point(0, 511); emptySpaceItem1.Name = "emptySpaceItem1"; emptySpaceItem1.Size = new Size(1131, 26); emptySpaceItem1.Size = new Size(669, 26); emptySpaceItem1.TextSize = new Size(0, 0); // // itemForCancel // itemForCancel.Control = btnCancel; itemForCancel.Location = new Point(1239, 677); itemForCancel.Location = new Point(777, 511); itemForCancel.MaxSize = new Size(108, 26); itemForCancel.MinSize = new Size(108, 26); itemForCancel.Name = "itemForCancel"; @@ -129,7 +129,7 @@ // itemForComplete // itemForComplete.Control = btnComplete; itemForComplete.Location = new Point(1131, 677); itemForComplete.Location = new Point(669, 511); itemForComplete.MaxSize = new Size(108, 26); itemForComplete.MinSize = new Size(108, 26); itemForComplete.Name = "itemForComplete"; @@ -144,7 +144,7 @@ layoutControlItem1.Location = new Point(0, 0); layoutControlItem1.Name = "layoutControlItem1"; layoutControlItem1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); layoutControlItem1.Size = new Size(1347, 677); layoutControlItem1.Size = new Size(885, 511); layoutControlItem1.TextSize = new Size(0, 0); layoutControlItem1.TextVisible = false; // @@ -152,9 +152,9 @@ // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(1347, 703); ClientSize = new Size(885, 537); Controls.Add(layoutControl1); Name = "AssetsValveMainCurveChoiceDlg"; Name = "ValveSingleMatchingDlg"; StartPosition = FormStartPosition.CenterScreen; Text = "é鍿²çº¿éæ©"; ((ISupportInitialize)layoutControl1).EndInit(); WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingDlg.cs
@@ -5,6 +5,7 @@ public ValveSingleMatchingDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; } public event Action<ValveMatchingViewModel> ReloadDataEvent; WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingForm.Designer.cs
@@ -29,8 +29,13 @@ private void InitializeComponent() { components = new Container(); EditorButtonImageOptions editorButtonImageOptions2 = new EditorButtonImageOptions(); ComponentResourceManager resources = new ComponentResourceManager(typeof(ValveSingleMatchingCtrl)); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); xtrPerform2dChart1 = new Yw.WinFrmUI.Phart.ValvePerform2dChart(); gridControl3 = new DevExpress.XtraGrid.GridControl(); valveSingleMatchingViewModelBindingSource = new BindingSource(components); gridView3 = new DevExpress.XtraGrid.Views.Grid.GridView(); @@ -45,13 +50,13 @@ colSeriesType = new DevExpress.XtraGrid.Columns.GridColumn(); gridControl1 = new DevExpress.XtraGrid.GridControl(); gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); ColShowChart = new DevExpress.XtraGrid.Columns.GridColumn(); repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); searchControl1 = new SearchControl(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); simpleLabelItem1 = new DevExpress.XtraLayout.SimpleLabelItem(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup(); @@ -64,10 +69,9 @@ ((ISupportInitialize)gridView3).BeginInit(); ((ISupportInitialize)gridControl1).BeginInit(); ((ISupportInitialize)gridView1).BeginInit(); ((ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); ((ISupportInitialize)searchControl1.Properties).BeginInit(); ((ISupportInitialize)Root).BeginInit(); ((ISupportInitialize)layoutControlGroup1).BeginInit(); ((ISupportInitialize)layoutControlItem2).BeginInit(); ((ISupportInitialize)simpleLabelItem1).BeginInit(); ((ISupportInitialize)layoutControlItem1).BeginInit(); ((ISupportInitialize)layoutControlGroup2).BeginInit(); @@ -77,7 +81,6 @@ // // layoutControl1 // layoutControl1.Controls.Add(xtrPerform2dChart1); layoutControl1.Controls.Add(gridControl3); layoutControl1.Controls.Add(gridControl1); layoutControl1.Controls.Add(searchControl1); @@ -86,19 +89,9 @@ layoutControl1.Name = "layoutControl1"; layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(713, 300, 650, 400); layoutControl1.Root = Root; layoutControl1.Size = new Size(1343, 498); layoutControl1.Size = new Size(822, 641); layoutControl1.TabIndex = 0; layoutControl1.Text = "layoutControl1"; // // xtrPerform2dChart1 // xtrPerform2dChart1.DefinePointVisible = false; xtrPerform2dChart1.LineVisible = false; xtrPerform2dChart1.Location = new Point(773, 44); xtrPerform2dChart1.Margin = new Padding(2, 2, 2, 2); xtrPerform2dChart1.Name = "xtrPerform2dChart1"; xtrPerform2dChart1.Size = new Size(548, 432); xtrPerform2dChart1.TabIndex = 5; // // gridControl3 // @@ -106,7 +99,7 @@ gridControl3.Location = new Point(12, 36); gridControl3.MainView = gridView3; gridControl3.Name = "gridControl3"; gridControl3.Size = new Size(747, 307); gridControl3.Size = new Size(798, 407); gridControl3.TabIndex = 4; gridControl3.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView3 }); // @@ -130,7 +123,7 @@ colCaliber.Name = "colCaliber"; colCaliber.Visible = true; colCaliber.VisibleIndex = 2; colCaliber.Width = 86; colCaliber.Width = 123; // // colCoefficient // @@ -138,7 +131,7 @@ colCoefficient.Name = "colCoefficient"; colCoefficient.Visible = true; colCoefficient.VisibleIndex = 3; colCoefficient.Width = 88; colCoefficient.Width = 89; // // colValveLift // @@ -146,7 +139,7 @@ colValveLift.Name = "colValveLift"; colValveLift.Visible = true; colValveLift.VisibleIndex = 4; colValveLift.Width = 74; colValveLift.Width = 86; // // colName // @@ -154,7 +147,7 @@ colName.Name = "colName"; colName.Visible = true; colName.VisibleIndex = 0; colName.Width = 115; colName.Width = 167; // // colKeyWord // @@ -162,7 +155,7 @@ colKeyWord.Name = "colKeyWord"; colKeyWord.Visible = true; colKeyWord.VisibleIndex = 1; colKeyWord.Width = 92; colKeyWord.Width = 85; // // colValveSetting // @@ -170,7 +163,7 @@ colValveSetting.Name = "colValveSetting"; colValveSetting.Visible = true; colValveSetting.VisibleIndex = 5; colValveSetting.Width = 87; colValveSetting.Width = 84; // // colDescription // @@ -178,7 +171,7 @@ colDescription.Name = "colDescription"; colDescription.Visible = true; colDescription.VisibleIndex = 8; colDescription.Width = 319; colDescription.Width = 194; // // colMaterial // @@ -186,6 +179,7 @@ colMaterial.Name = "colMaterial"; colMaterial.Visible = true; colMaterial.VisibleIndex = 6; colMaterial.Width = 66; // // colSeriesType // @@ -193,55 +187,88 @@ colSeriesType.Name = "colSeriesType"; colSeriesType.Visible = true; colSeriesType.VisibleIndex = 7; colSeriesType.Width = 112; // // gridControl1 // gridControl1.Location = new Point(12, 369); gridControl1.Location = new Point(12, 469); gridControl1.MainView = gridView1; gridControl1.Margin = new Padding(0); gridControl1.Name = "gridControl1"; gridControl1.Size = new Size(747, 117); gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemButtonEdit1 }); gridControl1.Size = new Size(798, 160); gridControl1.TabIndex = 4; gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); // // gridView1 // gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { gridColumn3, gridColumn2, gridColumn1 }); gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { ColShowChart, gridColumn3, gridColumn2, gridColumn1 }); gridView1.GridControl = gridControl1; gridView1.Name = "gridView1"; gridView1.OptionsView.ShowGroupPanel = false; gridView1.RowCellClick += gridView1_RowCellClick; gridView1.FocusedRowChanged += gridView1_FocusedRowChanged; // // ColShowChart // ColShowChart.AppearanceCell.Options.UseTextOptions = true; ColShowChart.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; ColShowChart.Caption = "æ¥çæ²çº¿"; ColShowChart.ColumnEdit = repositoryItemButtonEdit1; ColShowChart.Name = "ColShowChart"; ColShowChart.Visible = true; ColShowChart.VisibleIndex = 3; ColShowChart.Width = 83; // // repositoryItemButtonEdit1 // repositoryItemButtonEdit1.AutoHeight = false; editorButtonImageOptions2.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions2.SvgImage"); repositoryItemButtonEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; repositoryItemButtonEdit1.TextEditStyle = TextEditStyles.HideTextEditor; // // gridColumn3 // gridColumn3.AppearanceCell.Options.UseTextOptions = true; gridColumn3.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; gridColumn3.Caption = "æåºç "; gridColumn3.FieldName = "SortCode"; gridColumn3.Name = "gridColumn3"; gridColumn3.Visible = true; gridColumn3.VisibleIndex = 2; gridColumn3.VisibleIndex = 1; gridColumn3.Width = 286; // // gridColumn2 // gridColumn2.AppearanceCell.Options.UseTextOptions = true; gridColumn2.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; gridColumn2.Caption = "éè¦åº¦"; gridColumn2.FieldName = "Importance"; gridColumn2.Name = "gridColumn2"; gridColumn2.Visible = true; gridColumn2.VisibleIndex = 1; gridColumn2.VisibleIndex = 2; gridColumn2.Width = 279; // // gridColumn1 // gridColumn1.AppearanceCell.Options.UseTextOptions = true; gridColumn1.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; gridColumn1.Caption = "åç§°"; gridColumn1.FieldName = "OtherName"; gridColumn1.Name = "gridColumn1"; gridColumn1.Visible = true; gridColumn1.VisibleIndex = 0; gridColumn1.Width = 358; // // searchControl1 // searchControl1.Location = new Point(69, 12); searchControl1.Name = "searchControl1"; searchControl1.Properties.Buttons.AddRange(new EditorButton[] { new DevExpress.XtraEditors.Repository.ClearButton(), new DevExpress.XtraEditors.Repository.SearchButton() }); searchControl1.Size = new Size(380, 20); searchControl1.Size = new Size(206, 20); searchControl1.StyleController = layoutControl1; searchControl1.TabIndex = 0; // @@ -249,39 +276,17 @@ // Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; Root.GroupBordersVisible = false; Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlGroup1, simpleLabelItem1, layoutControlItem1, layoutControlGroup2, layoutControlItem5 }); Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { simpleLabelItem1, layoutControlItem1, layoutControlGroup2, layoutControlItem5 }); Root.Name = "Root"; Root.Size = new Size(1343, 498); Root.Size = new Size(822, 641); Root.TextVisible = false; // // layoutControlGroup1 // layoutControlGroup1.AppearanceGroup.FontSizeDelta = 2; layoutControlGroup1.AppearanceGroup.FontStyleDelta = FontStyle.Bold; layoutControlGroup1.AppearanceGroup.Options.UseFont = true; layoutControlGroup1.GroupStyle = DevExpress.Utils.GroupStyle.Title; layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2 }); layoutControlGroup1.Location = new Point(751, 0); layoutControlGroup1.Name = "layoutControlGroup1"; layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(8, 8, 8, 8); layoutControlGroup1.Size = new Size(572, 478); layoutControlGroup1.Text = "æ²çº¿è§å¾"; // // layoutControlItem2 // layoutControlItem2.Control = xtrPerform2dChart1; layoutControlItem2.Location = new Point(0, 0); layoutControlItem2.Name = "layoutControlItem2"; layoutControlItem2.Size = new Size(552, 436); layoutControlItem2.TextSize = new Size(0, 0); layoutControlItem2.TextVisible = false; // // simpleLabelItem1 // simpleLabelItem1.AllowHotTrack = false; simpleLabelItem1.Location = new Point(441, 0); simpleLabelItem1.Location = new Point(267, 0); simpleLabelItem1.Name = "simpleLabelItem1"; simpleLabelItem1.Size = new Size(310, 24); simpleLabelItem1.Size = new Size(535, 24); simpleLabelItem1.Text = " "; simpleLabelItem1.TextSize = new Size(4, 14); // @@ -290,7 +295,7 @@ layoutControlItem1.Control = searchControl1; layoutControlItem1.Location = new Point(0, 0); layoutControlItem1.Name = "layoutControlItem1"; layoutControlItem1.Size = new Size(441, 24); layoutControlItem1.Size = new Size(267, 24); layoutControlItem1.Text = "æ¨¡ç³æç´¢:"; layoutControlItem1.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; layoutControlItem1.TextSize = new Size(52, 14); @@ -303,10 +308,10 @@ layoutControlGroup2.AppearanceGroup.Options.UseFont = true; layoutControlGroup2.GroupStyle = DevExpress.Utils.GroupStyle.Title; layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem3 }); layoutControlGroup2.Location = new Point(0, 335); layoutControlGroup2.Location = new Point(0, 435); layoutControlGroup2.Name = "layoutControlGroup2"; layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); layoutControlGroup2.Size = new Size(751, 143); layoutControlGroup2.Size = new Size(802, 186); layoutControlGroup2.Text = "æ²çº¿å表"; // // layoutControlItem3 @@ -315,7 +320,7 @@ layoutControlItem3.Location = new Point(0, 0); layoutControlItem3.Name = "layoutControlItem3"; layoutControlItem3.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); layoutControlItem3.Size = new Size(747, 117); layoutControlItem3.Size = new Size(798, 160); layoutControlItem3.TextSize = new Size(0, 0); layoutControlItem3.TextVisible = false; // @@ -324,7 +329,7 @@ layoutControlItem5.Control = gridControl3; layoutControlItem5.Location = new Point(0, 24); layoutControlItem5.Name = "layoutControlItem5"; layoutControlItem5.Size = new Size(751, 311); layoutControlItem5.Size = new Size(802, 411); layoutControlItem5.TextSize = new Size(0, 0); layoutControlItem5.TextVisible = false; // @@ -334,7 +339,7 @@ AutoScaleMode = AutoScaleMode.Font; Controls.Add(layoutControl1); Name = "ValveSingleMatchingCtrl"; Size = new Size(1343, 498); Size = new Size(822, 641); ((ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((ISupportInitialize)gridControl3).EndInit(); @@ -342,10 +347,9 @@ ((ISupportInitialize)gridView3).EndInit(); ((ISupportInitialize)gridControl1).EndInit(); ((ISupportInitialize)gridView1).EndInit(); ((ISupportInitialize)repositoryItemButtonEdit1).EndInit(); ((ISupportInitialize)searchControl1.Properties).EndInit(); ((ISupportInitialize)Root).EndInit(); ((ISupportInitialize)layoutControlGroup1).EndInit(); ((ISupportInitialize)layoutControlItem2).EndInit(); ((ISupportInitialize)simpleLabelItem1).EndInit(); ((ISupportInitialize)layoutControlItem1).EndInit(); ((ISupportInitialize)layoutControlGroup2).EndInit(); @@ -359,7 +363,6 @@ private DevExpress.XtraLayout.LayoutControl layoutControl1; private DevExpress.XtraLayout.LayoutControlGroup Root; private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem1; private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1; private DevExpress.XtraEditors.SearchControl searchControl1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraGrid.GridControl gridControl1; @@ -380,9 +383,9 @@ private DevExpress.XtraGrid.Columns.GridColumn colKeyWord; private DevExpress.XtraGrid.Columns.GridColumn colValveSetting; private DevExpress.XtraGrid.Columns.GridColumn colDescription; private Yw.WinFrmUI.Phart.ValvePerform2dChart xtrPerform2dChart1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraGrid.Columns.GridColumn colMaterial; private DevExpress.XtraGrid.Columns.GridColumn colSeriesType; private DevExpress.XtraGrid.Columns.GridColumn ColShowChart; private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; } } WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingForm.cs
@@ -1,4 +1,6 @@ using HStation.WinFrmUI.PhartRelation; using HStation.WinFrmUI.Basic; using HStation.WinFrmUI.PhartRelation; using HStation.WinFrmUI.Xhs; namespace HStation.WinFrmUI { @@ -60,40 +62,6 @@ this.valveSingleMatchingViewModelBindingSource.DataSource = _allBindingList; } //åå§åå¾è¡¨æ°æ® private void InitChart(Vmo.XhsValveMainPhartMappingExtensions dto) { if (dto == null) { return; } var diagram = dto.Diagram; if (diagram == null) { return; } var graph_list = diagram.GraphList; if (graph_list == null || !graph_list.Any()) { return; } var graph_ql = graph_list.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.ValveQL); if (graph_ql == null) { return; } List<Yw.Geometry.Point2d> points_ql = null; points_ql = PhartPerformCurveHelper.GetFeatPointList(graph_ql.GraphType, graph_ql.GeometryInfo, 12, null); var cubic_spline_ql = new Yw.Geometry.CubicSpline2d(points_ql); var disp_paras = diagram.DispParas; var is_calc_disp_paras = string.IsNullOrWhiteSpace(disp_paras); this.xtrPerform2dChart1.SetBindingData(cubic_spline_ql, disp_paras, is_calc_disp_paras); } //éé¨åå·åè¡¨éæ©é¡¹åæ¢äºä»¶ private async void gridView2_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { @@ -101,6 +69,14 @@ var vm = this.gridView3.GetCurrentViewModel(_allBindingList); if (vm != null) { if (vm.SeriesType == HStation.Assets.eAssetsValveSeriesType.GPV) { layoutControlGroup2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; } else { layoutControlGroup2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; } _pumpMatchingViewModel.MatchingDbId = vm.ID.ToString(); _pumpMatchingViewModel.MatchingModelType = vm.Name.ToString(); if (double.TryParse(vm.Caliber, out double caliber)) @@ -137,28 +113,37 @@ //æ²çº¿åè¡¨éæ©é¡¹åæ¢äºä»¶ private async void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { var vm = this.gridView1.GetCurrentViewModel(_allPhartList); if (vm != null) } //æ¥çæ²çº¿ private async void gridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) { if (e.Column == this.ColShowChart) { var vmo = await _bll_ex.Value.GetByID(vm.ID); if (vmo != null) var vm = this.gridView1.GetCurrentViewModel(_allPhartList); if (vm != null) { _pumpMatchingViewModel.MatchingChartDbId = vm.ID.ToString(); var graph_qh = vmo.Diagram.GraphList.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.ValveQL); if (graph_qh != null) var vmo = await _bll_ex.Value.GetByID(vm.ID); if (vmo != null) { var points_qh = PhartPerformCurveHelper.GetFeatPointList(graph_qh.GraphType, graph_qh.GeometryInfo, 100, null); _pumpMatchingViewModel.MatchingCurveQL = new List<CurvePointMatchingViewModel>(); foreach (var item in points_qh) _pumpMatchingViewModel.MatchingChartDbId = vm.ID.ToString(); var graph_qh = vmo.Diagram.GraphList.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.ValveQL); if (graph_qh != null) { _pumpMatchingViewModel.MatchingCurveQL.Add(new CurvePointMatchingViewModel(item.X, item.Y)); var points_qh = PhartPerformCurveHelper.GetFeatPointList(graph_qh.GraphType, graph_qh.GeometryInfo, 100, null); _pumpMatchingViewModel.MatchingCurveQL = new List<CurvePointMatchingViewModel>(); foreach (var item in points_qh) { _pumpMatchingViewModel.MatchingCurveQL.Add(new CurvePointMatchingViewModel(item.X, item.Y)); } } } var dlg = new ValveChartShowDlg(); dlg.InitChart(vmo); dlg.ShowDialog(); return; } InitChart(vmo); return; } this.xtrPerform2dChart1.SetBindingData(null, null, null, null, true); } } } WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingForm.resx
@@ -120,6 +120,26 @@ <metadata name="valveSingleMatchingViewModelBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> </metadata> <assembly alias="DevExpress.Data.v23.2" name="DevExpress.Data.v23.2, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> <data name="editorButtonImageOptions2.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjIzLjIsIFZlcnNpb249MjMuMi40 LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl dkV4cHJlc3MuVXRpbHMuU3ZnLlN2Z0ltYWdlAQAAAAREYXRhBwICAAAACQMAAAAPAwAAALkCAAAC77u/ PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz4NCjxzdmcgeD0iMHB4IiB5PSIwcHgi IHZpZXdCb3g9IjAgMCAzMiAzMiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3Bh Y2U9InByZXNlcnZlIiBpZD0iQ3JlYXRlX0xpbmVfQ2hhcnRfTm9fTWFya2VycyIgc3R5bGU9ImVuYWJs ZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzIgMzIiPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLkJs dWV7ZmlsbDojMTE3N0Q3O30KCS5ZZWxsb3d7ZmlsbDojRkZCMTE1O30KCS5SZWR7ZmlsbDojRDExQzFD O30KPC9zdHlsZT4NCiAgPHBvbHlnb24gcG9pbnRzPSIyLjgsNS44IDIuOCw1LjggMy43LDQgMTUuMyw5 LjcgMjguOCwyIDI5LjgsMy43IDE1LjMsMTIgMi44LDUuOCAiIGNsYXNzPSJSZWQiIC8+DQogIDxwb2x5 Z29uIHBvaW50cz0iMi43LDE3LjYgMi43LDE3LjYgMy45LDE2LjEgMTUuMiwyNS41IDI4LjYsMTIuMiAz MCwxMy42IDE1LjQsMjguMiAyLjcsMTcuNiAiIGNsYXNzPSJZZWxsb3ciIC8+DQogIDxwb2x5Z29uIHBv aW50cz0iMi43LDI4LjEgMTUuMSwxNy44IDI5LjYsMjEuOSAyOSwyMy44IDE1LjUsMjAgMy45LDI5LjYg Mi43LDI4LjEgIiBjbGFzcz0iQmx1ZSIgLz4NCjwvc3ZnPgs= </value> </data> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>71</value> </metadata> WinFrmUI/HStation.WinFrmUI.Xhs.Core/HStation.WinFrmUI.Xhs.Core.csproj.user
@@ -112,6 +112,9 @@ <Compile Update="03-simulation\06-simulation\01-matching\02-pump\XhsPumpMatchingListCtrl.cs"> <SubType>UserControl</SubType> </Compile> <Compile Update="03-simulation\06-simulation\01-matching\03-valve\01-valvesinglematching\ValveChartShowDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="03-simulation\06-simulation\01-matching\03-valve\01-valvesinglematching\ValveSingleMatchingDlg.cs"> <SubType>Form</SubType> </Compile>