Shuxia Ning
2024-10-29 d047171e5bd87768a2bfab730f49a27a8e0e6b40
计算 窗体修改
已重命名18个文件
已修改7个文件
已添加32个文件
3439 ■■■■■ 文件已修改
WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/00-core/HomeXhsProjectPage.Designer.cs 91 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/00-core/HomeXhsProjectPage.resx 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl - 复制.Designer.cs 213 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl - 复制.cs 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl - 复制.resx 120 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl.Designer.cs 191 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl.cs 99 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl.resx 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg.Designer.cs 183 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg.cs 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg.resx 120 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg1.Designer.cs 121 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg1.cs 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg1.resx 144 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/TileViewExpand.cs 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/01-waterbox/SetHydroWaterboxCalcuPrefixListCtrl.Designer.cs 228 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/01-waterbox/SetHydroWaterboxCalcuPrefixListCtrl.cs 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/01-waterbox/SetHydroWaterboxCalcuPrefixListCtrl.resx 126 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/01-waterbox/SetHydroWaterboxCalcuPrefixViewModel.cs 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/02-pump/SetHydroPumpCalcuPrefixListCtrl.Designer.cs 254 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/02-pump/SetHydroPumpCalcuPrefixListCtrl.cs 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/02-pump/SetHydroPumpCalcuPrefixListCtrl.resx 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/02-pump/SetHydroPumpCalcuPrefixViewModel.cs 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/03-nozzle/SetHydroNozzleCalcuPrefixListCtrl.Designer.cs 220 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/03-nozzle/SetHydroNozzleCalcuPrefixListCtrl.cs 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/03-nozzle/SetHydroNozzleCalcuPrefixListCtrl.resx 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/03-nozzle/SetHydroNozzleCalcuPrefixViewModel.cs 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/99-failed/HydroCalcuFailedCtrl.Designer.cs 103 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/99-failed/HydroCalcuFailedCtrl.cs 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/99-failed/HydroCalcuFailedCtrl.resx 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/99-failed/HydroCalcuFailedViewModel.cs 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/IXhsProjectSimulationCalcuPrefix.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixCtrl.Designer.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixCtrl.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixCtrl.resx 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixDlg.Designer.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixDlg.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixDlg.resx 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixPureCtrl.Designer.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixPureCtrl.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixPureCtrl.resx 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/01-pump/XhsProjectSimulationPumpCalcuPrefixCtrl.Designer.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/01-pump/XhsProjectSimulationPumpCalcuPrefixCtrl.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/01-pump/XhsProjectSimulationPumpCalcuPrefixCtrl.resx 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/01-pump/XhsProjectSimulationPumpCalcuPrefixViewModel.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/02-valve/XhsProjectSimulationValveCalcuPrefixCtrl.Designer.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/02-valve/XhsProjectSimulationValveCalcuPrefixCtrl.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/02-valve/XhsProjectSimulationValveCalcuPrefixCtrl.resx 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/02-valve/XhsProjectSimulationValveCalcuPrefixViewModel.cs 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/HStation.WinFrmUI.Xhs.Core.csproj 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/HStation.WinFrmUI.Xhs.Core.csproj.user 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/Properties/DataSources/HStation.WinFrmUI.SetHydroNozzleCalcuPrefixViewModel.datasource 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/Properties/DataSources/HStation.WinFrmUI.SetHydroPumpCalcuPrefixViewModel.datasource 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/Properties/DataSources/HStation.WinFrmUI.SetHydroWaterboxCalcuPrefixViewModel.datasource 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/Yw.WinFrmUI.Hydro.Core/11-prefix/00-core/SetHydroCalcuPrefixDlg.Designer.cs 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/Yw.WinFrmUI.Hydro.Core/11-prefix/00-core/SetHydroCalcuPrefixDlg.resx 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/00-core/HomeXhsProjectPage.Designer.cs
@@ -77,10 +77,10 @@
            // 
            mapViewProjectListContainer1.Dock = DockStyle.Fill;
            mapViewProjectListContainer1.Location = new Point(0, 0);
            mapViewProjectListContainer1.Margin = new Padding(3, 2, 3, 2);
            mapViewProjectListContainer1.Margin = new Padding(4, 3, 4, 3);
            mapViewProjectListContainer1.Name = "mapViewProjectListContainer1";
            mapViewProjectListContainer1.Padding = new Padding(1);
            mapViewProjectListContainer1.Size = new Size(665, 560);
            mapViewProjectListContainer1.Padding = new Padding(1, 2, 1, 2);
            mapViewProjectListContainer1.Size = new Size(950, 882);
            mapViewProjectListContainer1.TabIndex = 5;
            mapViewProjectListContainer1.JumpDirectEvent += homeXhsProjectPropertyCtrl1_JumpDirectEvent;
            // 
@@ -88,10 +88,10 @@
            // 
            homeXhsProjectPropertyCtrl1.Dock = DockStyle.Fill;
            homeXhsProjectPropertyCtrl1.Location = new Point(0, 0);
            homeXhsProjectPropertyCtrl1.Margin = new Padding(4, 5, 4, 5);
            homeXhsProjectPropertyCtrl1.Margin = new Padding(6, 8, 6, 8);
            homeXhsProjectPropertyCtrl1.Name = "homeXhsProjectPropertyCtrl1";
            homeXhsProjectPropertyCtrl1.SelectedObject = null;
            homeXhsProjectPropertyCtrl1.Size = new Size(206, 560);
            homeXhsProjectPropertyCtrl1.Size = new Size(295, 882);
            homeXhsProjectPropertyCtrl1.TabIndex = 0;
            homeXhsProjectPropertyCtrl1.JumpDirectEvent += homeXhsProjectPropertyCtrl1_JumpDirectEvent;
            // 
@@ -99,9 +99,9 @@
            // 
            homeXhsProjectTreeListCtrl1.Dock = DockStyle.Fill;
            homeXhsProjectTreeListCtrl1.Location = new Point(0, 0);
            homeXhsProjectTreeListCtrl1.Margin = new Padding(4, 5, 4, 5);
            homeXhsProjectTreeListCtrl1.Margin = new Padding(6, 8, 6, 8);
            homeXhsProjectTreeListCtrl1.Name = "homeXhsProjectTreeListCtrl1";
            homeXhsProjectTreeListCtrl1.Size = new Size(190, 560);
            homeXhsProjectTreeListCtrl1.Size = new Size(272, 882);
            homeXhsProjectTreeListCtrl1.TabIndex = 0;
            homeXhsProjectTreeListCtrl1.SelectProjectEvent += homeXhsProjectTreeListCtrl1_SelectProjectEvent;
            homeXhsProjectTreeListCtrl1.RefreshDataEvent += homeXhsProjectTreeListCtrl1_RefreshDataEvent;
@@ -118,21 +118,20 @@
            sidePanel1.Controls.Add(gridControl1);
            sidePanel1.Dock = DockStyle.Top;
            sidePanel1.Location = new Point(0, 0);
            sidePanel1.Margin = new Padding(4, 5, 4, 5);
            sidePanel1.Name = "sidePanel1";
            sidePanel1.Size = new Size(1063, 94);
            sidePanel1.Size = new Size(1519, 148);
            sidePanel1.TabIndex = 1;
            sidePanel1.Text = "sidePanel1";
            // 
            // gridControl1
            // 
            gridControl1.Dock = DockStyle.Fill;
            gridControl1.EmbeddedNavigator.Margin = new Padding(2);
            gridControl1.Location = new Point(0, 0);
            gridControl1.MainView = layoutView1;
            gridControl1.Margin = new Padding(2);
            gridControl1.Name = "gridControl1";
            gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repPicEdit });
            gridControl1.Size = new Size(1063, 93);
            gridControl1.Size = new Size(1519, 147);
            gridControl1.TabIndex = 0;
            gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { layoutView1, gridView1 });
            // 
@@ -146,10 +145,9 @@
            layoutView1.Appearance.FieldValue.Options.UseBackColor = true;
            layoutView1.BorderStyle = BorderStyles.NoBorder;
            layoutView1.CardHorzInterval = 4;
            layoutView1.CardMinSize = new Size(210, 69);
            layoutView1.CardMinSize = new Size(300, 108);
            layoutView1.CardVertInterval = 0;
            layoutView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.LayoutViewColumn[] { colName, colCount, colPicture });
            layoutView1.DetailHeight = 223;
            layoutView1.GridControl = gridControl1;
            layoutView1.Name = "layoutView1";
            layoutView1.OptionsBehavior.Editable = false;
@@ -180,18 +178,18 @@
            colName.Caption = "名称";
            colName.FieldName = "Name";
            colName.LayoutViewField = layoutViewField_colName;
            colName.MinWidth = 21;
            colName.MinWidth = 30;
            colName.Name = "colName";
            colName.Width = 78;
            colName.Width = 111;
            // 
            // layoutViewField_colName
            // 
            layoutViewField_colName.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center;
            layoutViewField_colName.ContentVertAlignment = DevExpress.Utils.VertAlignment.Center;
            layoutViewField_colName.EditorPreferredWidth = 106;
            layoutViewField_colName.EditorPreferredWidth = 151;
            layoutViewField_colName.Location = new Point(133, 0);
            layoutViewField_colName.Name = "layoutViewField_colName";
            layoutViewField_colName.Padding = new DevExpress.XtraLayout.Utils.Padding(3, 3, 3, 3);
            layoutViewField_colName.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 5, 5);
            layoutViewField_colName.Size = new Size(159, 36);
            layoutViewField_colName.TextSize = new Size(0, 0);
            layoutViewField_colName.TextVisible = false;
@@ -206,18 +204,18 @@
            colCount.Caption = "数量";
            colCount.FieldName = "Count";
            colCount.LayoutViewField = layoutViewField_colCount;
            colCount.MinWidth = 21;
            colCount.MinWidth = 30;
            colCount.Name = "colCount";
            colCount.Width = 78;
            colCount.Width = 111;
            // 
            // layoutViewField_colCount
            // 
            layoutViewField_colCount.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center;
            layoutViewField_colCount.ContentVertAlignment = DevExpress.Utils.VertAlignment.Center;
            layoutViewField_colCount.EditorPreferredWidth = 106;
            layoutViewField_colCount.EditorPreferredWidth = 151;
            layoutViewField_colCount.Location = new Point(133, 36);
            layoutViewField_colCount.Name = "layoutViewField_colCount";
            layoutViewField_colCount.Padding = new DevExpress.XtraLayout.Utils.Padding(3, 3, 3, 3);
            layoutViewField_colCount.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 5, 5);
            layoutViewField_colCount.Size = new Size(159, 65);
            layoutViewField_colCount.TextSize = new Size(0, 0);
            layoutViewField_colCount.TextVisible = false;
@@ -228,9 +226,9 @@
            colPicture.ColumnEdit = repPicEdit;
            colPicture.FieldName = "Image";
            colPicture.LayoutViewField = layoutViewField_colPicture;
            colPicture.MinWidth = 21;
            colPicture.MinWidth = 30;
            colPicture.Name = "colPicture";
            colPicture.Width = 78;
            colPicture.Width = 111;
            // 
            // repPicEdit
            // 
@@ -238,10 +236,10 @@
            // 
            // layoutViewField_colPicture
            // 
            layoutViewField_colPicture.EditorPreferredWidth = 87;
            layoutViewField_colPicture.EditorPreferredWidth = 124;
            layoutViewField_colPicture.Location = new Point(0, 0);
            layoutViewField_colPicture.Name = "layoutViewField_colPicture";
            layoutViewField_colPicture.Padding = new DevExpress.XtraLayout.Utils.Padding(3, 3, 3, 3);
            layoutViewField_colPicture.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 5, 5);
            layoutViewField_colPicture.Size = new Size(133, 101);
            layoutViewField_colPicture.StartNewLine = true;
            layoutViewField_colPicture.TextSize = new Size(0, 0);
@@ -256,15 +254,13 @@
            layoutViewCard1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colCount, layoutViewField_colPicture, layoutViewField_colName });
            layoutViewCard1.Name = "layoutViewCard1";
            layoutViewCard1.OptionsItemText.TextToControlDistance = 3;
            layoutViewCard1.Padding = new DevExpress.XtraLayout.Utils.Padding(3, 3, 3, 3);
            layoutViewCard1.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 5, 5);
            layoutViewCard1.Text = "TemplateCard";
            // 
            // gridView1
            // 
            gridView1.DetailHeight = 223;
            gridView1.GridControl = gridControl1;
            gridView1.Name = "gridView1";
            gridView1.OptionsEditForm.PopupEditFormWidth = 560;
            // 
            // sidePanelBottom
            // 
@@ -272,9 +268,10 @@
            sidePanelBottom.Controls.Add(dockPanelRight);
            sidePanelBottom.Controls.Add(dockPanelLeft);
            sidePanelBottom.Dock = DockStyle.Fill;
            sidePanelBottom.Location = new Point(0, 94);
            sidePanelBottom.Location = new Point(0, 148);
            sidePanelBottom.Margin = new Padding(4, 5, 4, 5);
            sidePanelBottom.Name = "sidePanelBottom";
            sidePanelBottom.Size = new Size(1063, 583);
            sidePanelBottom.Size = new Size(1519, 916);
            sidePanelBottom.TabIndex = 7;
            sidePanelBottom.Text = "sidePanel3";
            // 
@@ -287,21 +284,19 @@
            dockPanelFill.Controls.Add(controlContainer2);
            dockPanelFill.Dock = DevExpress.XtraBars.Docking.DockingStyle.Fill;
            dockPanelFill.ID = new Guid("136389ea-6552-4166-8c2a-b2ffe8b01953");
            dockPanelFill.Location = new Point(191, 0);
            dockPanelFill.Margin = new Padding(2);
            dockPanelFill.Location = new Point(273, 0);
            dockPanelFill.Name = "dockPanelFill";
            dockPanelFill.Options.ShowCloseButton = false;
            dockPanelFill.OriginalSize = new Size(287, 200);
            dockPanelFill.Size = new Size(665, 583);
            dockPanelFill.Size = new Size(950, 916);
            dockPanelFill.Text = "地图";
            // 
            // controlContainer2
            // 
            controlContainer2.Controls.Add(mapViewProjectListContainer1);
            controlContainer2.Location = new Point(0, 23);
            controlContainer2.Margin = new Padding(2);
            controlContainer2.Location = new Point(0, 34);
            controlContainer2.Name = "controlContainer2";
            controlContainer2.Size = new Size(665, 560);
            controlContainer2.Size = new Size(950, 882);
            controlContainer2.TabIndex = 0;
            // 
            // dockPanelRight
@@ -309,21 +304,19 @@
            dockPanelRight.Controls.Add(controlContainer1);
            dockPanelRight.Dock = DevExpress.XtraBars.Docking.DockingStyle.Right;
            dockPanelRight.ID = new Guid("18c9fca9-8ae9-473c-9cd2-0467d818af3f");
            dockPanelRight.Location = new Point(856, 0);
            dockPanelRight.Margin = new Padding(2);
            dockPanelRight.Location = new Point(1223, 0);
            dockPanelRight.Name = "dockPanelRight";
            dockPanelRight.Options.ShowCloseButton = false;
            dockPanelRight.OriginalSize = new Size(207, 200);
            dockPanelRight.Size = new Size(207, 583);
            dockPanelRight.Size = new Size(296, 916);
            dockPanelRight.Text = "项目属性";
            // 
            // controlContainer1
            // 
            controlContainer1.Controls.Add(homeXhsProjectPropertyCtrl1);
            controlContainer1.Location = new Point(1, 23);
            controlContainer1.Margin = new Padding(2);
            controlContainer1.Location = new Point(1, 34);
            controlContainer1.Name = "controlContainer1";
            controlContainer1.Size = new Size(206, 560);
            controlContainer1.Size = new Size(295, 882);
            controlContainer1.TabIndex = 0;
            // 
            // dockPanelLeft
@@ -332,20 +325,18 @@
            dockPanelLeft.Dock = DevExpress.XtraBars.Docking.DockingStyle.Left;
            dockPanelLeft.ID = new Guid("fba93cbc-dfe6-4982-8aee-be8baff1ea68");
            dockPanelLeft.Location = new Point(0, 0);
            dockPanelLeft.Margin = new Padding(2);
            dockPanelLeft.Name = "dockPanelLeft";
            dockPanelLeft.Options.ShowCloseButton = false;
            dockPanelLeft.OriginalSize = new Size(191, 200);
            dockPanelLeft.Size = new Size(191, 583);
            dockPanelLeft.Size = new Size(273, 916);
            dockPanelLeft.Text = "项目列表";
            // 
            // dockPanel1_Container
            // 
            dockPanel1_Container.Controls.Add(homeXhsProjectTreeListCtrl1);
            dockPanel1_Container.Location = new Point(0, 23);
            dockPanel1_Container.Margin = new Padding(2);
            dockPanel1_Container.Location = new Point(0, 34);
            dockPanel1_Container.Name = "dockPanel1_Container";
            dockPanel1_Container.Size = new Size(190, 560);
            dockPanel1_Container.Size = new Size(272, 882);
            dockPanel1_Container.TabIndex = 0;
            // 
            // dockManager1
@@ -360,13 +351,13 @@
            // 
            Appearance.BackColor = SystemColors.Control;
            Appearance.Options.UseBackColor = true;
            AutoScaleDimensions = new SizeF(7F, 14F);
            AutoScaleDimensions = new SizeF(10F, 22F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(sidePanelBottom);
            Controls.Add(sidePanel1);
            Margin = new Padding(4, 5, 4, 5);
            Margin = new Padding(6, 8, 6, 8);
            Name = "HomeXhsProjectPage";
            Size = new Size(1063, 677);
            Size = new Size(1519, 1064);
            ((ISupportInitialize)svgImg32).EndInit();
            sidePanel1.ResumeLayout(false);
            ((ISupportInitialize)gridControl1).EndInit();
WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/00-core/HomeXhsProjectPage.resx
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl - ¸´ÖÆ.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,213 @@
namespace HStation.WinFrmUI
{
    partial class SetHydroCalcuPrefixCtrl
    {
        /// <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 Component 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()
        {
            layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
            setHydroNozzleCalcuPrefixListCtrl1 = new SetHydroNozzleCalcuPrefixListCtrl();
            setHydroPumpCalcuPrefixListCtrl1 = new SetHydroPumpCalcuPrefixListCtrl();
            setHydroWaterboxCalcuPrefixListCtrl1 = new SetHydroWaterboxCalcuPrefixListCtrl();
            Root = new DevExpress.XtraLayout.LayoutControlGroup();
            groupForWaterBox = new DevExpress.XtraLayout.LayoutControlGroup();
            layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
            groupForPump = new DevExpress.XtraLayout.LayoutControlGroup();
            layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
            groupForNozzle = new DevExpress.XtraLayout.LayoutControlGroup();
            layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
            emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
            ((ISupportInitialize)layoutControl1).BeginInit();
            layoutControl1.SuspendLayout();
            ((ISupportInitialize)Root).BeginInit();
            ((ISupportInitialize)groupForWaterBox).BeginInit();
            ((ISupportInitialize)layoutControlItem1).BeginInit();
            ((ISupportInitialize)groupForPump).BeginInit();
            ((ISupportInitialize)layoutControlItem2).BeginInit();
            ((ISupportInitialize)groupForNozzle).BeginInit();
            ((ISupportInitialize)layoutControlItem3).BeginInit();
            ((ISupportInitialize)emptySpaceItem1).BeginInit();
            SuspendLayout();
            //
            // layoutControl1
            //
            layoutControl1.Controls.Add(setHydroNozzleCalcuPrefixListCtrl1);
            layoutControl1.Controls.Add(setHydroPumpCalcuPrefixListCtrl1);
            layoutControl1.Controls.Add(setHydroWaterboxCalcuPrefixListCtrl1);
            layoutControl1.Dock = DockStyle.Fill;
            layoutControl1.Location = new Point(0, 0);
            layoutControl1.Name = "layoutControl1";
            layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(1133, 411, 975, 600);
            layoutControl1.Root = Root;
            layoutControl1.Size = new Size(864, 816);
            layoutControl1.TabIndex = 0;
            layoutControl1.Text = "layoutControl1";
            //
            // setHydroNozzleCalcuPrefixListCtrl1
            //
            setHydroNozzleCalcuPrefixListCtrl1.Location = new Point(0, 441);
            setHydroNozzleCalcuPrefixListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setHydroNozzleCalcuPrefixListCtrl1.Name = "setHydroNozzleCalcuPrefixListCtrl1";
            setHydroNozzleCalcuPrefixListCtrl1.Size = new Size(864, 216);
            setHydroNozzleCalcuPrefixListCtrl1.TabIndex = 6;
            //
            // setHydroPumpCalcuPrefixListCtrl1
            //
            setHydroPumpCalcuPrefixListCtrl1.Location = new Point(0, 237);
            setHydroPumpCalcuPrefixListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setHydroPumpCalcuPrefixListCtrl1.Name = "setHydroPumpCalcuPrefixListCtrl1";
            setHydroPumpCalcuPrefixListCtrl1.Size = new Size(864, 171);
            setHydroPumpCalcuPrefixListCtrl1.TabIndex = 5;
            //
            // setHydroWaterboxCalcuPrefixListCtrl1
            //
            setHydroWaterboxCalcuPrefixListCtrl1.Location = new Point(0, 33);
            setHydroWaterboxCalcuPrefixListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setHydroWaterboxCalcuPrefixListCtrl1.Name = "setHydroWaterboxCalcuPrefixListCtrl1";
            setHydroWaterboxCalcuPrefixListCtrl1.Size = new Size(864, 171);
            setHydroWaterboxCalcuPrefixListCtrl1.TabIndex = 4;
            //
            // Root
            //
            Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            Root.GroupBordersVisible = false;
            Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { groupForWaterBox, groupForPump, emptySpaceItem1, groupForNozzle });
            Root.Name = "Root";
            Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            Root.Size = new Size(864, 816);
            Root.TextVisible = false;
            //
            // groupForWaterBox
            //
            groupForWaterBox.ExpandButtonVisible = true;
            groupForWaterBox.GroupStyle = DevExpress.Utils.GroupStyle.Title;
            groupForWaterBox.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1 });
            groupForWaterBox.Location = new Point(0, 0);
            groupForWaterBox.Name = "groupForWaterBox";
            groupForWaterBox.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            groupForWaterBox.Size = new Size(864, 204);
            groupForWaterBox.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            groupForWaterBox.Text = "æ°´ç®±";
            //
            // layoutControlItem1
            //
            layoutControlItem1.Control = setHydroWaterboxCalcuPrefixListCtrl1;
            layoutControlItem1.Location = new Point(0, 0);
            layoutControlItem1.Name = "layoutControlItem1";
            layoutControlItem1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            layoutControlItem1.Size = new Size(864, 171);
            layoutControlItem1.TextSize = new Size(0, 0);
            layoutControlItem1.TextVisible = false;
            //
            // groupForPump
            //
            groupForPump.ExpandButtonVisible = true;
            groupForPump.GroupStyle = DevExpress.Utils.GroupStyle.Title;
            groupForPump.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2 });
            groupForPump.Location = new Point(0, 204);
            groupForPump.Name = "groupForPump";
            groupForPump.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            groupForPump.Size = new Size(864, 204);
            groupForPump.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            groupForPump.Text = "æ°´æ³µ";
            //
            // layoutControlItem2
            //
            layoutControlItem2.Control = setHydroPumpCalcuPrefixListCtrl1;
            layoutControlItem2.Location = new Point(0, 0);
            layoutControlItem2.Name = "layoutControlItem2";
            layoutControlItem2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            layoutControlItem2.Size = new Size(864, 171);
            layoutControlItem2.TextSize = new Size(0, 0);
            layoutControlItem2.TextVisible = false;
            //
            // groupForNozzle
            //
            groupForNozzle.ExpandButtonVisible = true;
            groupForNozzle.GroupStyle = DevExpress.Utils.GroupStyle.Title;
            groupForNozzle.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem3 });
            groupForNozzle.Location = new Point(0, 408);
            groupForNozzle.Name = "groupForNozzle";
            groupForNozzle.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            groupForNozzle.Size = new Size(864, 249);
            groupForNozzle.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            groupForNozzle.Text = "喷嘴";
            //
            // layoutControlItem3
            //
            layoutControlItem3.Control = setHydroNozzleCalcuPrefixListCtrl1;
            layoutControlItem3.Location = new Point(0, 0);
            layoutControlItem3.Name = "layoutControlItem3";
            layoutControlItem3.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            layoutControlItem3.Size = new Size(864, 216);
            layoutControlItem3.TextSize = new Size(0, 0);
            layoutControlItem3.TextVisible = false;
            //
            // emptySpaceItem1
            //
            emptySpaceItem1.AllowHotTrack = false;
            emptySpaceItem1.Location = new Point(0, 657);
            emptySpaceItem1.Name = "emptySpaceItem1";
            emptySpaceItem1.Size = new Size(864, 159);
            emptySpaceItem1.TextSize = new Size(0, 0);
            //
            // SetHydroCalcuPrefixCtrl
            //
            AutoScaleDimensions = new SizeF(10F, 22F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(layoutControl1);
            Margin = new Padding(4, 5, 4, 5);
            Name = "SetHydroCalcuPrefixCtrl";
            Size = new Size(864, 816);
            ((ISupportInitialize)layoutControl1).EndInit();
            layoutControl1.ResumeLayout(false);
            ((ISupportInitialize)Root).EndInit();
            ((ISupportInitialize)groupForWaterBox).EndInit();
            ((ISupportInitialize)layoutControlItem1).EndInit();
            ((ISupportInitialize)groupForPump).EndInit();
            ((ISupportInitialize)layoutControlItem2).EndInit();
            ((ISupportInitialize)groupForNozzle).EndInit();
            ((ISupportInitialize)layoutControlItem3).EndInit();
            ((ISupportInitialize)emptySpaceItem1).EndInit();
            ResumeLayout(false);
        }
        #endregion
        private DevExpress.XtraLayout.LayoutControl layoutControl1;
        private DevExpress.XtraLayout.LayoutControlGroup Root;
        private SetHydroNozzleCalcuPrefixListCtrl setHydroNozzleCalcuPrefixListCtrl1;
        private SetHydroPumpCalcuPrefixListCtrl setHydroPumpCalcuPrefixListCtrl1;
        private SetHydroWaterboxCalcuPrefixListCtrl setHydroWaterboxCalcuPrefixListCtrl1;
        private DevExpress.XtraLayout.LayoutControlGroup groupForWaterBox;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
        private DevExpress.XtraLayout.LayoutControlGroup groupForPump;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
        private DevExpress.XtraLayout.LayoutControlGroup groupForNozzle;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl - ¸´ÖÆ.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,93 @@
namespace HStation.WinFrmUI
{
    public partial class SetHydroCalcuPrefixCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public SetHydroCalcuPrefixCtrl()
        {
            InitializeComponent();
        }
        /// <summary>
        /// æ°´åŠ›æŸ¥çœ‹äº‹ä»¶
        /// </summary>
        public event Action<Yw.Model.HydroParterInfo> HydroViewEvent;
        /// <summary>
        /// æ°´åŠ›è®¡ç®—äº‹ä»¶
        /// </summary>
        public event Action HydroCalcuEvent;
        //水力信息
        private Yw.Model.HydroModelInfo _hydroInfo = null;
        /// <summary>
        /// ç»‘定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo)
        {
            _hydroInfo = hydroInfo;
            if (_hydroInfo == null)
            {
                return;
            }
            //æ°´ç®±
            if (_hydroInfo.Waterboxs != null && _hydroInfo.Waterboxs.Count > 0)
            {
                this.groupForWaterBox.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                this.setHydroWaterboxCalcuPrefixListCtrl1.SetBindingData(_hydroInfo);
            }
            else
            {
                this.groupForWaterBox.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            }
            //æ°´æ³µ
            if (_hydroInfo.Pumps != null && _hydroInfo.Pumps.Count > 0)
            {
                this.groupForPump.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                this.setHydroPumpCalcuPrefixListCtrl1.SetBindingData(_hydroInfo);
            }
            else
            {
                this.groupForPump.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            }
            //喷嘴
            if (_hydroInfo.Nozzles != null && _hydroInfo.Nozzles.Count > 0)
            {
                this.groupForNozzle.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                this.setHydroNozzleCalcuPrefixListCtrl1.SetBindingData(_hydroInfo);
            }
            else
            {
                this.groupForNozzle.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            }
        }
        /// <summary>
        /// æ›´æ–°ç»‘定数据
        /// </summary>
        public void UpdateBindingData()
        {
            if (_hydroInfo == null)
            {
                return;
            }
            if (_hydroInfo.Waterboxs != null && _hydroInfo.Waterboxs.Count > 0)
            {
                this.setHydroWaterboxCalcuPrefixListCtrl1.UpdateBindingData();
            }
            if (_hydroInfo.Pumps != null && _hydroInfo.Pumps.Count > 0)
            {
                this.setHydroPumpCalcuPrefixListCtrl1.UpdateBindingData();
            }
            if (_hydroInfo.Nozzles != null && _hydroInfo.Nozzles.Count > 0)
            {
                this.setHydroNozzleCalcuPrefixListCtrl1.UpdateBindingData();
            }
        }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl - ¸´ÖÆ.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/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,191 @@
namespace HStation.WinFrmUI
{
    partial class SetHydroCalcuPrefixCtrl
    {
        /// <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 Component 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()
        {
            components = new Container();
            setHydroNozzleCalcuPrefixListCtrl1 = new SetHydroNozzleCalcuPrefixListCtrl();
            setHydroPumpCalcuPrefixListCtrl1 = new SetHydroPumpCalcuPrefixListCtrl();
            setHydroWaterboxCalcuPrefixListCtrl1 = new SetHydroWaterboxCalcuPrefixListCtrl();
            dockManager1 = new DevExpress.XtraBars.Docking.DockManager(components);
            panelContainer1 = new DevExpress.XtraBars.Docking.DockPanel();
            dockPanelWaterBox = new DevExpress.XtraBars.Docking.DockPanel();
            dockPanel2_Container = new DevExpress.XtraBars.Docking.ControlContainer();
            dockPanelPump = new DevExpress.XtraBars.Docking.DockPanel();
            dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer();
            dockPanelNozzle = new DevExpress.XtraBars.Docking.DockPanel();
            dockPanel3_Container = new DevExpress.XtraBars.Docking.ControlContainer();
            ((ISupportInitialize)dockManager1).BeginInit();
            dockPanelWaterBox.SuspendLayout();
            dockPanel2_Container.SuspendLayout();
            dockPanelPump.SuspendLayout();
            dockPanel1_Container.SuspendLayout();
            dockPanelNozzle.SuspendLayout();
            dockPanel3_Container.SuspendLayout();
            SuspendLayout();
            //
            // setHydroNozzleCalcuPrefixListCtrl1
            //
            setHydroNozzleCalcuPrefixListCtrl1.Dock = DockStyle.Fill;
            setHydroNozzleCalcuPrefixListCtrl1.Location = new Point(0, 0);
            setHydroNozzleCalcuPrefixListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setHydroNozzleCalcuPrefixListCtrl1.Name = "setHydroNozzleCalcuPrefixListCtrl1";
            setHydroNozzleCalcuPrefixListCtrl1.Size = new Size(856, 174);
            setHydroNozzleCalcuPrefixListCtrl1.TabIndex = 6;
            //
            // setHydroPumpCalcuPrefixListCtrl1
            //
            setHydroPumpCalcuPrefixListCtrl1.Dock = DockStyle.Fill;
            setHydroPumpCalcuPrefixListCtrl1.Location = new Point(0, 0);
            setHydroPumpCalcuPrefixListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setHydroPumpCalcuPrefixListCtrl1.Name = "setHydroPumpCalcuPrefixListCtrl1";
            setHydroPumpCalcuPrefixListCtrl1.Size = new Size(856, 355);
            setHydroPumpCalcuPrefixListCtrl1.TabIndex = 5;
            //
            // setHydroWaterboxCalcuPrefixListCtrl1
            //
            setHydroWaterboxCalcuPrefixListCtrl1.Dock = DockStyle.Fill;
            setHydroWaterboxCalcuPrefixListCtrl1.Location = new Point(0, 0);
            setHydroWaterboxCalcuPrefixListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setHydroWaterboxCalcuPrefixListCtrl1.Name = "setHydroWaterboxCalcuPrefixListCtrl1";
            setHydroWaterboxCalcuPrefixListCtrl1.Size = new Size(856, 155);
            setHydroWaterboxCalcuPrefixListCtrl1.TabIndex = 4;
            //
            // dockManager1
            //
            dockManager1.DockingOptions.ShowCloseButton = false;
            dockManager1.Form = this;
            dockManager1.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { dockPanelNozzle, dockPanelWaterBox, dockPanelPump });
            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" });
            //
            // panelContainer1
            //
            panelContainer1.Dock = DevExpress.XtraBars.Docking.DockingStyle.Fill;
            panelContainer1.ID = new Guid("fdcb5279-71d2-403f-96b4-d1a1252a82cb");
            panelContainer1.Location = new Point(0, 0);
            panelContainer1.Name = "panelContainer1";
            panelContainer1.OriginalSize = new Size(200, 200);
            panelContainer1.Size = new Size(864, 816);
            panelContainer1.Text = "panelContainer1";
            //
            // dockPanelWaterBox
            //
            dockPanelWaterBox.Controls.Add(dockPanel2_Container);
            dockPanelWaterBox.Dock = DevExpress.XtraBars.Docking.DockingStyle.Top;
            dockPanelWaterBox.FloatVertical = true;
            dockPanelWaterBox.ID = new Guid("9512442b-9798-4630-b5ae-c89d8d13641a");
            dockPanelWaterBox.Location = new Point(0, 0);
            dockPanelWaterBox.Name = "dockPanelWaterBox";
            dockPanelWaterBox.OriginalSize = new Size(485, 200);
            dockPanelWaterBox.Size = new Size(864, 200);
            dockPanelWaterBox.Text = "æ°´ç®±";
            //
            // dockPanel2_Container
            //
            dockPanel2_Container.Controls.Add(setHydroWaterboxCalcuPrefixListCtrl1);
            dockPanel2_Container.Location = new Point(4, 38);
            dockPanel2_Container.Name = "dockPanel2_Container";
            dockPanel2_Container.Size = new Size(856, 155);
            dockPanel2_Container.TabIndex = 0;
            //
            // dockPanelPump
            //
            dockPanelPump.Controls.Add(dockPanel1_Container);
            dockPanelPump.Dock = DevExpress.XtraBars.Docking.DockingStyle.Fill;
            dockPanelPump.ID = new Guid("2c964a58-73a3-479c-a1f8-4e0051ec5b45");
            dockPanelPump.Location = new Point(0, 200);
            dockPanelPump.Name = "dockPanelPump";
            dockPanelPump.OriginalSize = new Size(864, 272);
            dockPanelPump.SavedDock = DevExpress.XtraBars.Docking.DockingStyle.Fill;
            dockPanelPump.SavedIndex = 2;
            dockPanelPump.SavedSizeFactor = 1.43137D;
            dockPanelPump.Size = new Size(864, 397);
            dockPanelPump.Text = "æ°´æ³µ";
            //
            // dockPanel1_Container
            //
            dockPanel1_Container.Controls.Add(setHydroPumpCalcuPrefixListCtrl1);
            dockPanel1_Container.Location = new Point(4, 38);
            dockPanel1_Container.Name = "dockPanel1_Container";
            dockPanel1_Container.Size = new Size(856, 355);
            dockPanel1_Container.TabIndex = 0;
            //
            // dockPanelNozzle
            //
            dockPanelNozzle.Controls.Add(dockPanel3_Container);
            dockPanelNozzle.Dock = DevExpress.XtraBars.Docking.DockingStyle.Bottom;
            dockPanelNozzle.FloatVertical = true;
            dockPanelNozzle.ID = new Guid("468cf46a-9e59-450e-a1a9-39fb5a2b6917");
            dockPanelNozzle.Location = new Point(0, 597);
            dockPanelNozzle.Name = "dockPanelNozzle";
            dockPanelNozzle.OriginalSize = new Size(835, 219);
            dockPanelNozzle.Size = new Size(864, 219);
            dockPanelNozzle.Text = "喷嘴";
            //
            // dockPanel3_Container
            //
            dockPanel3_Container.Controls.Add(setHydroNozzleCalcuPrefixListCtrl1);
            dockPanel3_Container.Location = new Point(4, 41);
            dockPanel3_Container.Name = "dockPanel3_Container";
            dockPanel3_Container.Size = new Size(856, 174);
            dockPanel3_Container.TabIndex = 0;
            //
            // SetHydroCalcuPrefixCtrl
            //
            AutoScaleDimensions = new SizeF(10F, 22F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(dockPanelPump);
            Controls.Add(dockPanelWaterBox);
            Controls.Add(dockPanelNozzle);
            Margin = new Padding(4, 5, 4, 5);
            Name = "SetHydroCalcuPrefixCtrl";
            Size = new Size(864, 816);
            ((ISupportInitialize)dockManager1).EndInit();
            dockPanelWaterBox.ResumeLayout(false);
            dockPanel2_Container.ResumeLayout(false);
            dockPanelPump.ResumeLayout(false);
            dockPanel1_Container.ResumeLayout(false);
            dockPanelNozzle.ResumeLayout(false);
            dockPanel3_Container.ResumeLayout(false);
            ResumeLayout(false);
        }
        #endregion
        private SetHydroNozzleCalcuPrefixListCtrl setHydroNozzleCalcuPrefixListCtrl1;
        private SetHydroPumpCalcuPrefixListCtrl setHydroPumpCalcuPrefixListCtrl1;
        private SetHydroWaterboxCalcuPrefixListCtrl setHydroWaterboxCalcuPrefixListCtrl1;
        private DevExpress.XtraBars.Docking.DockManager dockManager1;
        private DevExpress.XtraBars.Docking.DockPanel panelContainer1;
        private DevExpress.XtraBars.Docking.DockPanel dockPanelWaterBox;
        private DevExpress.XtraBars.Docking.ControlContainer dockPanel2_Container;
        private DevExpress.XtraBars.Docking.DockPanel dockPanelPump;
        private DevExpress.XtraBars.Docking.ControlContainer dockPanel1_Container;
        private DevExpress.XtraBars.Docking.DockPanel dockPanelNozzle;
        private DevExpress.XtraBars.Docking.ControlContainer dockPanel3_Container;
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,99 @@
namespace HStation.WinFrmUI
{
    public partial class SetHydroCalcuPrefixCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public SetHydroCalcuPrefixCtrl()
        {
            InitializeComponent();
        }
        /// <summary>
        /// æ°´åŠ›æŸ¥çœ‹äº‹ä»¶
        /// </summary>
        public event Action<Yw.Model.HydroParterInfo> HydroViewEvent;
        /// <summary>
        /// æ°´åŠ›è®¡ç®—äº‹ä»¶
        /// </summary>
        public event Action HydroCalcuEvent;
        //水力信息
        private Yw.Model.HydroModelInfo _hydroInfo = null;
        /// <summary>
        /// ç»‘定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo)
        {
            _hydroInfo = hydroInfo;
            if (_hydroInfo == null)
            {
                return;
            }
            //æ°´ç®±
            if (_hydroInfo.Waterboxs != null && _hydroInfo.Waterboxs.Count > 0)
            {
                this.dockPanel1_Container.Visible = true;
                this.dockPanelWaterBox.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Visible;
                this.setHydroWaterboxCalcuPrefixListCtrl1.SetBindingData(_hydroInfo);
            }
            else
            {
                this.dockPanel1_Container.Visible = false;
                this.dockPanelWaterBox.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
            }
            //æ°´æ³µ
            if (_hydroInfo.Pumps != null && _hydroInfo.Pumps.Count > 0)
            {
                this.dockPanel2_Container.Visible = true;
                this.dockPanelPump.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Visible;
                this.setHydroPumpCalcuPrefixListCtrl1.SetBindingData(_hydroInfo);
            }
            else
            {
                this.dockPanel2_Container.Visible = false;
                this.dockPanelPump.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
            }
            //喷嘴
            if (_hydroInfo.Nozzles != null && _hydroInfo.Nozzles.Count > 0)
            {
                this.dockPanel3_Container.Visible = true;
                this.dockPanelNozzle.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Visible;
                this.setHydroNozzleCalcuPrefixListCtrl1.SetBindingData(_hydroInfo);
            }
            else
            {
                this.dockPanel3_Container.Visible = false;
                this.dockPanelNozzle.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
            }
        }
        /// <summary>
        /// æ›´æ–°ç»‘定数据
        /// </summary>
        public void UpdateBindingData()
        {
            if (_hydroInfo == null)
            {
                return;
            }
            if (_hydroInfo.Waterboxs != null && _hydroInfo.Waterboxs.Count > 0)
            {
                this.setHydroWaterboxCalcuPrefixListCtrl1.UpdateBindingData();
            }
            if (_hydroInfo.Pumps != null && _hydroInfo.Pumps.Count > 0)
            {
                this.setHydroPumpCalcuPrefixListCtrl1.UpdateBindingData();
            }
            if (_hydroInfo.Nozzles != null && _hydroInfo.Nozzles.Count > 0)
            {
                this.setHydroNozzleCalcuPrefixListCtrl1.UpdateBindingData();
            }
        }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixCtrl.resx
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,123 @@
<?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>
  <metadata name="dockManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
  </metadata>
</root>
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,183 @@
namespace HStation.WinFrmUI
{
    partial class SetHydroCalcuPrefixDlg
    {
        /// <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()
        {
            layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
            btnCalcu = new SimpleButton();
            btnCancel = new SimpleButton();
            setHydroCalcuPrefixCtrl1 = new SetHydroCalcuPrefixCtrl();
            Root = new DevExpress.XtraLayout.LayoutControlGroup();
            layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
            layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
            layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
            emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
            ((ISupportInitialize)layoutControl1).BeginInit();
            layoutControl1.SuspendLayout();
            ((ISupportInitialize)Root).BeginInit();
            ((ISupportInitialize)layoutControlItem1).BeginInit();
            ((ISupportInitialize)layoutControlItem2).BeginInit();
            ((ISupportInitialize)layoutControlItem3).BeginInit();
            ((ISupportInitialize)emptySpaceItem1).BeginInit();
            SuspendLayout();
            //
            // layoutControl1
            //
            layoutControl1.Controls.Add(btnCalcu);
            layoutControl1.Controls.Add(btnCancel);
            layoutControl1.Controls.Add(setHydroCalcuPrefixCtrl1);
            layoutControl1.Dock = DockStyle.Fill;
            layoutControl1.Location = new Point(0, 0);
            layoutControl1.Margin = new Padding(4, 5, 4, 5);
            layoutControl1.Name = "layoutControl1";
            layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(1156, 474, 650, 400);
            layoutControl1.Root = Root;
            layoutControl1.Size = new Size(1189, 1004);
            layoutControl1.TabIndex = 0;
            layoutControl1.Text = "layoutControl1";
            //
            // btnCalcu
            //
            btnCalcu.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary;
            btnCalcu.Appearance.Options.UseBackColor = true;
            btnCalcu.Location = new Point(1049, 966);
            btnCalcu.Margin = new Padding(4, 5, 4, 5);
            btnCalcu.Name = "btnCalcu";
            btnCalcu.Size = new Size(137, 35);
            btnCalcu.StyleController = layoutControl1;
            btnCalcu.TabIndex = 6;
            btnCalcu.Text = "计算";
            btnCalcu.Click += btnCalcu_Click;
            //
            // btnCancel
            //
            btnCancel.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning;
            btnCancel.Appearance.Options.UseBackColor = true;
            btnCancel.DialogResult = DialogResult.Cancel;
            btnCancel.Location = new Point(906, 966);
            btnCancel.Margin = new Padding(4, 5, 4, 5);
            btnCancel.Name = "btnCancel";
            btnCancel.Size = new Size(137, 35);
            btnCancel.StyleController = layoutControl1;
            btnCancel.TabIndex = 5;
            btnCancel.Text = "取消";
            //
            // setHydroCalcuPrefixCtrl1
            //
            setHydroCalcuPrefixCtrl1.Location = new Point(3, 3);
            setHydroCalcuPrefixCtrl1.Margin = new Padding(6, 8, 6, 8);
            setHydroCalcuPrefixCtrl1.Name = "setHydroCalcuPrefixCtrl1";
            setHydroCalcuPrefixCtrl1.Size = new Size(1183, 957);
            setHydroCalcuPrefixCtrl1.TabIndex = 4;
            //
            // Root
            //
            Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            Root.GroupBordersVisible = false;
            Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, layoutControlItem2, layoutControlItem3, emptySpaceItem1 });
            Root.Name = "Root";
            Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            Root.Size = new Size(1189, 1004);
            Root.TextVisible = false;
            //
            // layoutControlItem1
            //
            layoutControlItem1.Control = setHydroCalcuPrefixCtrl1;
            layoutControlItem1.Location = new Point(0, 0);
            layoutControlItem1.MinSize = new Size(34, 627);
            layoutControlItem1.Name = "layoutControlItem1";
            layoutControlItem1.Size = new Size(1189, 963);
            layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
            layoutControlItem1.TextSize = new Size(0, 0);
            layoutControlItem1.TextVisible = false;
            //
            // layoutControlItem2
            //
            layoutControlItem2.Control = btnCancel;
            layoutControlItem2.Location = new Point(903, 963);
            layoutControlItem2.MaxSize = new Size(143, 41);
            layoutControlItem2.MinSize = new Size(143, 41);
            layoutControlItem2.Name = "layoutControlItem2";
            layoutControlItem2.Size = new Size(143, 41);
            layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
            layoutControlItem2.TextSize = new Size(0, 0);
            layoutControlItem2.TextVisible = false;
            //
            // layoutControlItem3
            //
            layoutControlItem3.Control = btnCalcu;
            layoutControlItem3.Location = new Point(1046, 963);
            layoutControlItem3.MaxSize = new Size(143, 41);
            layoutControlItem3.MinSize = new Size(143, 41);
            layoutControlItem3.Name = "layoutControlItem3";
            layoutControlItem3.Size = new Size(143, 41);
            layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
            layoutControlItem3.TextSize = new Size(0, 0);
            layoutControlItem3.TextVisible = false;
            //
            // emptySpaceItem1
            //
            emptySpaceItem1.AllowHotTrack = false;
            emptySpaceItem1.Location = new Point(0, 963);
            emptySpaceItem1.Name = "emptySpaceItem1";
            emptySpaceItem1.Size = new Size(903, 41);
            emptySpaceItem1.TextSize = new Size(0, 0);
            //
            // SetHydroCalcuPrefixDlg
            //
            AutoScaleDimensions = new SizeF(10F, 22F);
            AutoScaleMode = AutoScaleMode.Font;
            ClientSize = new Size(1189, 1004);
            Controls.Add(layoutControl1);
            Margin = new Padding(4, 5, 4, 5);
            Name = "SetHydroCalcuPrefixDlg";
            StartPosition = FormStartPosition.CenterParent;
            Text = "计算前提条件";
            ((ISupportInitialize)layoutControl1).EndInit();
            layoutControl1.ResumeLayout(false);
            ((ISupportInitialize)Root).EndInit();
            ((ISupportInitialize)layoutControlItem1).EndInit();
            ((ISupportInitialize)layoutControlItem2).EndInit();
            ((ISupportInitialize)layoutControlItem3).EndInit();
            ((ISupportInitialize)emptySpaceItem1).EndInit();
            ResumeLayout(false);
        }
        #endregion
        private DevExpress.XtraLayout.LayoutControl layoutControl1;
        private SetHydroCalcuPrefixCtrl setHydroCalcuPrefixCtrl1;
        private DevExpress.XtraLayout.LayoutControlGroup Root;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
        private DevExpress.XtraEditors.SimpleButton btnCalcu;
        private DevExpress.XtraEditors.SimpleButton btnCancel;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,51 @@
namespace HStation.WinFrmUI
{
    public partial class SetHydroCalcuPrefixDlg : DevExpress.XtraEditors.XtraForm
    {
        public SetHydroCalcuPrefixDlg()
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.layoutControl1.SetupLayoutControl();
            this.setHydroCalcuPrefixCtrl1.HydroViewEvent += (parter) =>
            {
                this.HydroViewEvent?.Invoke(parter);
            };
        }
        /// <summary>
        /// æ°´åŠ›æŸ¥çœ‹äº‹ä»¶
        /// </summary>
        public event Action<Yw.Model.HydroParterInfo> HydroViewEvent;
        /// <summary>
        /// æ°´åŠ›è®¡ç®—äº‹ä»¶
        /// </summary>
        public event Action HydroCalcuEvent;
        //水力信息
        private Yw.Model.HydroModelInfo _hydroInfo = null;
        /// <summary>
        /// ç»‘定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo)
        {
            _hydroInfo = hydroInfo;
            this.setHydroCalcuPrefixCtrl1.SetBindingData(hydroInfo);
        }
        //计算
        private void btnCalcu_Click(object sender, EventArgs e)
        {
            if (_hydroInfo == null)
            {
                return;
            }
            this.setHydroCalcuPrefixCtrl1.UpdateBindingData();
            this.HydroCalcuEvent?.Invoke();
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg.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/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg1.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,121 @@
namespace HStation.WinFrmUI
{
    partial class SetHydroCalcuPrefixDlg1
    {
        /// <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()
        {
            ComponentResourceManager resources = new ComponentResourceManager(typeof(SetHydroCalcuPrefixDlg1));
            ribbon = new DevExpress.XtraBars.Ribbon.RibbonControl();
            barBtnOK = new DevExpress.XtraBars.BarButtonItem();
            ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage();
            ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
            setHydroCalcuPrefixCtrl1 = new SetHydroCalcuPrefixCtrl();
            ((ISupportInitialize)ribbon).BeginInit();
            SuspendLayout();
            //
            // ribbon
            //
            ribbon.ExpandCollapseItem.Id = 0;
            ribbon.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic;
            ribbon.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbon.ExpandCollapseItem, barBtnOK });
            ribbon.Location = new Point(0, 0);
            ribbon.MaxItemId = 5;
            ribbon.Name = "ribbon";
            ribbon.OptionsExpandCollapseMenu.EnableExpandCollapseMenu = DevExpress.Utils.DefaultBoolean.False;
            ribbon.OptionsExpandCollapseMenu.ShowQuickAccessToolbarItem = DevExpress.Utils.DefaultBoolean.False;
            ribbon.OptionsExpandCollapseMenu.ShowRibbonGroup = DevExpress.Utils.DefaultBoolean.False;
            ribbon.OptionsExpandCollapseMenu.ShowRibbonLayoutGroup = DevExpress.Utils.DefaultBoolean.False;
            ribbon.OptionsTouch.TouchUI = DevExpress.Utils.DefaultBoolean.False;
            ribbon.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 });
            ribbon.RibbonCaptionAlignment = DevExpress.XtraBars.Ribbon.RibbonCaptionAlignment.Left;
            ribbon.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.TabletOffice;
            ribbon.SearchItemPosition = DevExpress.XtraBars.Ribbon.SearchItemPosition.None;
            ribbon.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False;
            ribbon.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False;
            ribbon.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False;
            ribbon.ShowMoreCommandsButton = DevExpress.Utils.DefaultBoolean.False;
            ribbon.ShowPageHeadersInFormCaption = DevExpress.Utils.DefaultBoolean.False;
            ribbon.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.Hide;
            ribbon.ShowQatLocationSelector = false;
            ribbon.ShowToolbarCustomizeItem = false;
            ribbon.Size = new Size(912, 85);
            ribbon.Toolbar.ShowCustomizeItem = false;
            //
            // barBtnOK
            //
            barBtnOK.Caption = "计算";
            barBtnOK.Id = 4;
            barBtnOK.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnOK.ImageOptions.SvgImage");
            barBtnOK.Name = "barBtnOK";
            barBtnOK.ItemClick += barBtnOK_ItemClick;
            //
            // ribbonPage1
            //
            ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1 });
            ribbonPage1.Name = "ribbonPage1";
            ribbonPage1.Text = "ribbonPage1";
            //
            // ribbonPageGroup1
            //
            ribbonPageGroup1.ItemLinks.Add(barBtnOK);
            ribbonPageGroup1.Name = "ribbonPageGroup1";
            ribbonPageGroup1.Text = "ribbonPageGroup1";
            //
            // setHydroCalcuPrefixCtrl1
            //
            setHydroCalcuPrefixCtrl1.Dock = DockStyle.Fill;
            setHydroCalcuPrefixCtrl1.Location = new Point(0, 85);
            setHydroCalcuPrefixCtrl1.Margin = new Padding(4, 5, 4, 5);
            setHydroCalcuPrefixCtrl1.Name = "setHydroCalcuPrefixCtrl1";
            setHydroCalcuPrefixCtrl1.Size = new Size(912, 488);
            setHydroCalcuPrefixCtrl1.TabIndex = 1;
            //
            // SetHydroCalcuPrefixDlg1
            //
            AutoScaleDimensions = new SizeF(10F, 22F);
            AutoScaleMode = AutoScaleMode.Font;
            ClientSize = new Size(912, 573);
            Controls.Add(setHydroCalcuPrefixCtrl1);
            Controls.Add(ribbon);
            Name = "SetHydroCalcuPrefixDlg1";
            Ribbon = ribbon;
            StartPosition = FormStartPosition.CenterScreen;
            Text = "计算前提条件";
            ((ISupportInitialize)ribbon).EndInit();
            ResumeLayout(false);
            PerformLayout();
        }
        #endregion
        private DevExpress.XtraBars.Ribbon.RibbonControl ribbon;
        private DevExpress.XtraBars.BarButtonItem barBtnOK;
        private DevExpress.XtraBars.Ribbon.RibbonPage ribbonPage1;
        private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup1;
        private SetHydroCalcuPrefixCtrl setHydroCalcuPrefixCtrl1;
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg1.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,51 @@
using DevExpress.XtraBars;
namespace HStation.WinFrmUI
{
    public partial class SetHydroCalcuPrefixDlg1 : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        public SetHydroCalcuPrefixDlg1()
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.setHydroCalcuPrefixCtrl1.HydroViewEvent += (parter) =>
            {
                this.HydroViewEvent?.Invoke(parter);
            };
        }
        /// <summary>
        /// æ°´åŠ›æŸ¥çœ‹äº‹ä»¶
        /// </summary>
        public event Action<Yw.Model.HydroParterInfo> HydroViewEvent;
        /// <summary>
        /// æ°´åŠ›è®¡ç®—äº‹ä»¶
        /// </summary>
        public event Action HydroCalcuEvent;
        //水力信息
        private Yw.Model.HydroModelInfo _hydroInfo = null;
        /// <summary>
        /// ç»‘定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo)
        {
            _hydroInfo = hydroInfo;
            this.setHydroCalcuPrefixCtrl1.SetBindingData(hydroInfo);
        }
        //计算
        private void barBtnOK_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (_hydroInfo == null)
            {
                return;
            }
            this.setHydroCalcuPrefixCtrl1.UpdateBindingData();
            this.HydroCalcuEvent?.Invoke();
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/SetHydroCalcuPrefixDlg1.resx
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,144 @@
<?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>
  <assembly alias="DevExpress.Data.v23.2" name="DevExpress.Data.v23.2, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
  <data name="barBtnOK.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
    <value>
        AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjIzLjIsIFZlcnNpb249MjMuMi40
        LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl
        dkV4cHJlc3MuVXRpbHMuU3ZnLlN2Z0ltYWdlAQAAAAREYXRhBwICAAAACQMAAAAPAwAAALMDAAAC77u/
        PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz4NCjxzdmcgeD0iMHB4IiB5PSIwcHgi
        IHZpZXdCb3g9IjAgMCAzMiAzMiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv
        MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3Bh
        Y2U9InByZXNlcnZlIiBpZD0iTGF5ZXJfMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAg
        MzIgMzIiPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLkJsdWV7ZmlsbDojMTE3N0Q3O30KCS5H
        cmVlbntmaWxsOiMwMzlDMjM7fQoJLlllbGxvd3tmaWxsOiNGRkIxMTU7fQoJLkJsYWNre2ZpbGw6Izcy
        NzI3Mjt9CgkuV2hpdGV7ZmlsbDojRkZGRkZGO30KCS5SZWR7ZmlsbDojRDExQzFDO30KCS5zdDB7b3Bh
        Y2l0eTowLjc1O30KPC9zdHlsZT4NCiAgPGcgaWQ9IkNhbGN1bGF0b3IiPg0KICAgIDxwYXRoIGQ9Ik0y
        OSwwSDE2djE0aDE0VjFDMzAsMC41LDI5LjUsMCwyOSwweiBNMjgsOEgxOFY2aDEwVjh6IiBjbGFzcz0i
        QmxhY2siIC8+DQogICAgPHBhdGggZD0iTTAsMjljMCwwLjUsMC41LDEsMSwxaDEzVjE2SDBWMjl6IE0y
        LjgsMjAuMmwxLjQtMS40TDcsMjEuNmwyLjgtMi44bDEuNCwxLjRMOC40LDIzbDIuOCwyLjhsLTEuNCwx
        LjQgICBMNywyNC40bC0yLjgsMi44bC0xLjQtMS40TDUuNiwyM0wyLjgsMjAuMnoiIGNsYXNzPSJCbGFj
        ayIgLz4NCiAgICA8cGF0aCBkPSJNMCwxdjEzaDE0VjBIMUMwLjUsMCwwLDAuNSwwLDF6IE0yLDZoNFYy
        aDJ2NGg0djJIOHY0SDZWOEgyVjZ6IiBjbGFzcz0iQmxhY2siIC8+DQogICAgPHBhdGggZD0iTTE2LDE2
        djE0aDEzYzAuNSwwLDEtMC41LDEtMVYxNkgxNnogTTI4LDI2SDE4di0yaDEwVjI2eiBNMjgsMjJIMTh2
        LTJoMTBWMjJ6IiBjbGFzcz0iWWVsbG93IiAvPg0KICA8L2c+DQo8L3N2Zz4L
</value>
  </data>
</root>
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/00-core/TileViewExpand.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HStation.WinFrmUI
{
    public static class TileViewExpand
    {
        public static void InitView(this DevExpress.XtraGrid.Views.Layout.LayoutView view)
        {
            view.Appearance.Card.BackColor = Color.Transparent;
            view.Appearance.Card.Options.UseBackColor = true;
            view.Appearance.FieldCaption.BackColor = Color.Transparent;
            view.Appearance.FieldCaption.Options.UseBackColor = true;
            view.Appearance.FieldValue.BackColor = Color.Transparent;
            view.Appearance.FieldValue.Options.UseBackColor = true;
            view.BorderStyle = BorderStyles.NoBorder;
            view.OptionsBehavior.ScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Auto;
            view.OptionsCustomization.AllowFilter = false;
            view.OptionsCustomization.AllowSort = false;
            view.OptionsItemText.TextToControlDistance = 3;
            view.OptionsView.AllowHotTrackFields = false;
            view.OptionsView.CardArrangeRule = DevExpress.XtraGrid.Views.Layout.LayoutCardArrangeRule.AllowPartialCards;
            view.OptionsView.FocusRectStyle = DevExpress.XtraGrid.Views.Layout.FocusRectStyle.None;
            view.OptionsView.ShowCardCaption = false;
            view.OptionsView.ShowCardExpandButton = false;
            view.OptionsView.ShowCardLines = false;
            view.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.Never;
            view.OptionsView.ShowHeaderPanel = false;
            view.OptionsView.ViewMode = DevExpress.XtraGrid.Views.Layout.LayoutViewMode.MultiRow;
        }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/01-waterbox/SetHydroWaterboxCalcuPrefixListCtrl.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,228 @@
namespace HStation.WinFrmUI
{
    partial class SetHydroWaterboxCalcuPrefixListCtrl
    {
        /// <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 Component 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()
        {
            components = new Container();
            gridControl1 = new DevExpress.XtraGrid.GridControl();
            setHydroWaterboxCalcuPrefixViewModelBindingSource = new BindingSource(components);
            layoutView1 = new DevExpress.XtraGrid.Views.Layout.LayoutView();
            colName = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
            colInitLevel = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
            colIcon = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
            repPicture = new DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit();
            svgImageCollection1 = new DevExpress.Utils.SvgImageCollection(components);
            layoutViewCard1 = new DevExpress.XtraGrid.Views.Layout.LayoutViewCard();
            layoutViewField_colInitLevel = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
            layoutViewField_colName = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
            layoutViewField_colIcon = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
            ((ISupportInitialize)gridControl1).BeginInit();
            ((ISupportInitialize)setHydroWaterboxCalcuPrefixViewModelBindingSource).BeginInit();
            ((ISupportInitialize)layoutView1).BeginInit();
            ((ISupportInitialize)repPicture).BeginInit();
            ((ISupportInitialize)svgImageCollection1).BeginInit();
            ((ISupportInitialize)layoutViewCard1).BeginInit();
            ((ISupportInitialize)layoutViewField_colInitLevel).BeginInit();
            ((ISupportInitialize)layoutViewField_colName).BeginInit();
            ((ISupportInitialize)layoutViewField_colIcon).BeginInit();
            SuspendLayout();
            //
            // gridControl1
            //
            gridControl1.DataSource = setHydroWaterboxCalcuPrefixViewModelBindingSource;
            gridControl1.Dock = DockStyle.Fill;
            gridControl1.Location = new Point(0, 0);
            gridControl1.MainView = layoutView1;
            gridControl1.Name = "gridControl1";
            gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repPicture });
            gridControl1.Size = new Size(873, 764);
            gridControl1.TabIndex = 2;
            gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { layoutView1 });
            //
            // setHydroWaterboxCalcuPrefixViewModelBindingSource
            //
            setHydroWaterboxCalcuPrefixViewModelBindingSource.DataSource = typeof(SetHydroWaterboxCalcuPrefixViewModel);
            //
            // layoutView1
            //
            layoutView1.ActiveFilterEnabled = false;
            layoutView1.BorderStyle = BorderStyles.NoBorder;
            layoutView1.CardHorzInterval = 6;
            layoutView1.CardMinSize = new Size(153, 83);
            layoutView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.LayoutViewColumn[] { colName, colInitLevel, colIcon });
            layoutView1.GridControl = gridControl1;
            layoutView1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colIcon });
            layoutView1.Name = "layoutView1";
            layoutView1.OptionsBehavior.ScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Auto;
            layoutView1.OptionsFilter.AllowFilterEditor = false;
            layoutView1.OptionsFilter.ShowCustomFunctions = DevExpress.Utils.DefaultBoolean.False;
            layoutView1.OptionsItemText.AlignMode = DevExpress.XtraGrid.Views.Layout.FieldTextAlignMode.AlignGlobal;
            layoutView1.OptionsItemText.TextToControlDistance = 0;
            layoutView1.OptionsPrint.PrintCardCaption = false;
            layoutView1.OptionsView.CardArrangeRule = DevExpress.XtraGrid.Views.Layout.LayoutCardArrangeRule.AllowPartialCards;
            layoutView1.OptionsView.CardsAlignment = DevExpress.XtraGrid.Views.Layout.CardsAlignment.Near;
            layoutView1.OptionsView.ShowCardExpandButton = false;
            layoutView1.OptionsView.ShowCardFieldBorders = true;
            layoutView1.OptionsView.ShowFieldHints = false;
            layoutView1.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.Never;
            layoutView1.OptionsView.ShowHeaderPanel = false;
            layoutView1.OptionsView.ViewMode = DevExpress.XtraGrid.Views.Layout.LayoutViewMode.MultiRow;
            layoutView1.TemplateCard = layoutViewCard1;
            //
            // colName
            //
            colName.AppearanceCell.Font = new Font("Tahoma", 11F, FontStyle.Bold, GraphicsUnit.Point);
            colName.AppearanceCell.Options.UseFont = true;
            colName.AppearanceCell.Options.UseTextOptions = true;
            colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            colName.FieldName = "Name";
            colName.LayoutViewField = layoutViewField_colName;
            colName.MinWidth = 30;
            colName.Name = "colName";
            colName.OptionsColumn.AllowEdit = false;
            colName.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            colName.OptionsColumn.ReadOnly = true;
            colName.OptionsFilter.AllowFilter = false;
            colName.Width = 112;
            //
            // colInitLevel
            //
            colInitLevel.AppearanceCell.ForeColor = DevExpress.LookAndFeel.DXSkinColors.ForeColors.Question;
            colInitLevel.AppearanceCell.Options.UseForeColor = true;
            colInitLevel.AppearanceCell.Options.UseTextOptions = true;
            colInitLevel.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            colInitLevel.FieldName = "InitLevel";
            colInitLevel.LayoutViewField = layoutViewField_colInitLevel;
            colInitLevel.MinWidth = 30;
            colInitLevel.Name = "colInitLevel";
            colInitLevel.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            colInitLevel.OptionsFilter.AllowFilter = false;
            colInitLevel.Width = 112;
            //
            // colIcon
            //
            colIcon.ColumnEdit = repPicture;
            colIcon.FieldName = "Icon";
            colIcon.LayoutViewField = layoutViewField_colIcon;
            colIcon.MinWidth = 30;
            colIcon.Name = "colIcon";
            colIcon.OptionsColumn.AllowEdit = false;
            colIcon.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            colIcon.OptionsFilter.AllowFilter = false;
            colIcon.Width = 112;
            //
            // repPicture
            //
            repPicture.Name = "repPicture";
            //
            // svgImageCollection1
            //
            svgImageCollection1.Add("about", "image://svgimages/outlook inspired/about.svg");
            //
            // layoutViewCard1
            //
            layoutViewCard1.CustomizationFormText = "TemplateCard";
            layoutViewCard1.GroupStyle = DevExpress.Utils.GroupStyle.Title;
            layoutViewCard1.HeaderButtonsLocation = DevExpress.Utils.GroupElementLocation.AfterText;
            layoutViewCard1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colInitLevel, layoutViewField_colName });
            layoutViewCard1.Name = "layoutViewCard1";
            layoutViewCard1.OptionsItemText.TextToControlDistance = 0;
            layoutViewCard1.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewCard1.Text = "TemplateCard";
            layoutViewCard1.TextLocation = DevExpress.Utils.Locations.Default;
            layoutViewCard1.TextVisible = false;
            //
            // layoutViewField_colInitLevel
            //
            layoutViewField_colInitLevel.EditorPreferredWidth = 57;
            layoutViewField_colInitLevel.Location = new Point(0, 36);
            layoutViewField_colInitLevel.Name = "layoutViewField_colInitLevel";
            layoutViewField_colInitLevel.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewField_colInitLevel.Size = new Size(145, 39);
            layoutViewField_colInitLevel.TextSize = new Size(78, 22);
            //
            // layoutViewField_colName
            //
            layoutViewField_colName.EditorPreferredWidth = 135;
            layoutViewField_colName.Location = new Point(0, 0);
            layoutViewField_colName.Name = "layoutViewField_colName";
            layoutViewField_colName.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewField_colName.Size = new Size(145, 36);
            layoutViewField_colName.TextSize = new Size(0, 0);
            layoutViewField_colName.TextVisible = false;
            //
            // layoutViewField_colIcon
            //
            layoutViewField_colIcon.EditorPreferredWidth = 20;
            layoutViewField_colIcon.HighlightFocusedItem = DevExpress.Utils.DefaultBoolean.False;
            layoutViewField_colIcon.Location = new Point(0, 0);
            layoutViewField_colIcon.Name = "layoutViewField_colIcon";
            layoutViewField_colIcon.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewField_colIcon.Size = new Size(197, 72);
            layoutViewField_colIcon.StartNewLine = true;
            layoutViewField_colIcon.TextSize = new Size(0, 0);
            layoutViewField_colIcon.TextVisible = false;
            //
            // SetHydroWaterboxCalcuPrefixListCtrl
            //
            Appearance.BackColor = Color.White;
            Appearance.Options.UseBackColor = true;
            AutoScaleDimensions = new SizeF(10F, 22F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(gridControl1);
            Margin = new Padding(4, 5, 4, 5);
            Name = "SetHydroWaterboxCalcuPrefixListCtrl";
            Size = new Size(873, 764);
            ((ISupportInitialize)gridControl1).EndInit();
            ((ISupportInitialize)setHydroWaterboxCalcuPrefixViewModelBindingSource).EndInit();
            ((ISupportInitialize)layoutView1).EndInit();
            ((ISupportInitialize)repPicture).EndInit();
            ((ISupportInitialize)svgImageCollection1).EndInit();
            ((ISupportInitialize)layoutViewCard1).EndInit();
            ((ISupportInitialize)layoutViewField_colInitLevel).EndInit();
            ((ISupportInitialize)layoutViewField_colName).EndInit();
            ((ISupportInitialize)layoutViewField_colIcon).EndInit();
            ResumeLayout(false);
        }
        #endregion
        private DevExpress.XtraGrid.GridControl gridControl1;
        private DevExpress.XtraGrid.Views.Layout.LayoutView layoutView1;
        private DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit repPicture;
        private BindingSource setHydroWaterboxCalcuPrefixViewModelBindingSource;
        private DevExpress.XtraGrid.Columns.LayoutViewColumn colName;
        private DevExpress.XtraGrid.Columns.LayoutViewColumn colInitLevel;
        private DevExpress.XtraGrid.Columns.LayoutViewColumn colIcon;
        private DevExpress.Utils.SvgImageCollection svgImageCollection1;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colName;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colInitLevel;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colIcon;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewCard layoutViewCard1;
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/01-waterbox/SetHydroWaterboxCalcuPrefixListCtrl.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,77 @@
namespace HStation.WinFrmUI
{
    public partial class SetHydroWaterboxCalcuPrefixListCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public SetHydroWaterboxCalcuPrefixListCtrl()
        {
            InitializeComponent();
           this.layoutView1.InitView();
        }
        /// <summary>
        /// æŸ¥çœ‹æ°´ç®±äº‹ä»¶
        /// </summary>
        public event Action<Yw.Model.HydroWaterboxInfo> ViewParterEvent;
        private Yw.Model.HydroModelInfo _hydroInfo = null;
        private List<SetHydroWaterboxCalcuPrefixViewModel> _all_set_vm_list = null;
        /// <summary>
        /// ç»‘定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo)
        {
            _hydroInfo = hydroInfo;
            InitialControls();
        }
        /// <summary>
        /// æ›´æ–°ç»‘定数据
        /// </summary>
        public void UpdateBindingData()
        {
            if (_all_set_vm_list != null && _all_set_vm_list.Any())
            {
                for (int i = 0; i < _all_set_vm_list.Count; i++)
                {
                    var set = _all_set_vm_list[i];
                    var item = _hydroInfo.Waterboxs[i];
                    item.InitLevel = set.InitLevel;
                }
            }
        }
        //初始化控件
        private void InitialControls()
        {
            if (_hydroInfo == null)
            {
                return;
            }
            _all_set_vm_list = new List<SetHydroWaterboxCalcuPrefixViewModel>();
            if (_hydroInfo != null)
            {
                if (_hydroInfo.Waterboxs != null && _hydroInfo.Waterboxs.Count > 0)
                {
                    foreach (var waterbox in _hydroInfo.Waterboxs)
                    {
                        var vm = new SetHydroWaterboxCalcuPrefixViewModel(waterbox);
                        vm.Icon = svgImageCollection1[0];
                        _all_set_vm_list.Add(vm);
                    }
                }
            }
            this.setHydroWaterboxCalcuPrefixViewModelBindingSource.DataSource = _all_set_vm_list;
            this.setHydroWaterboxCalcuPrefixViewModelBindingSource.ResetBindings(false);
        }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/01-waterbox/SetHydroWaterboxCalcuPrefixListCtrl.resx
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,126 @@
<?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>
  <metadata name="setHydroWaterboxCalcuPrefixViewModelBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
  </metadata>
  <metadata name="svgImageCollection1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>562, 17</value>
  </metadata>
</root>
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/01-waterbox/SetHydroWaterboxCalcuPrefixViewModel.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,26 @@
using DevExpress.Utils.Svg;
namespace HStation.WinFrmUI
{
    public class SetHydroWaterboxCalcuPrefixViewModel
    {
        public SetHydroWaterboxCalcuPrefixViewModel() { }
        public SetHydroWaterboxCalcuPrefixViewModel(Yw.Model.HydroWaterboxInfo rhs)
        {
            this.Name = rhs.Name;
            this.InitLevel = rhs.InitLevel;
        }
        [Display(Name = "名称")]
        public string Name { get; set; }
        [Display(Name = "初始水位")]
        public double InitLevel { get; set; }
        [Display(Name = "图标")]
        public SvgImage Icon { get; set; }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/02-pump/SetHydroPumpCalcuPrefixListCtrl.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,254 @@
namespace HStation.WinFrmUI
{
    partial class SetHydroPumpCalcuPrefixListCtrl
    {
        /// <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 Component 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()
        {
            components = new Container();
            gridControl1 = new DevExpress.XtraGrid.GridControl();
            setHydroPumpCalcuPrefixViewModelBindingSource = new BindingSource(components);
            layoutView1 = new DevExpress.XtraGrid.Views.Layout.LayoutView();
            colName = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
            colRunStatus = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
            repImgCmbBox = new DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox();
            colCurrentHz = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
            colIcon = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
            repPicture = new DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit();
            layoutViewCard1 = new DevExpress.XtraGrid.Views.Layout.LayoutViewCard();
            layoutViewField_colCurrentHz = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
            layoutViewField_colRunStatus = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
            layoutViewField_colName = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
            layoutViewField_colIcon = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
            ((ISupportInitialize)gridControl1).BeginInit();
            ((ISupportInitialize)setHydroPumpCalcuPrefixViewModelBindingSource).BeginInit();
            ((ISupportInitialize)layoutView1).BeginInit();
            ((ISupportInitialize)repImgCmbBox).BeginInit();
            ((ISupportInitialize)repPicture).BeginInit();
            ((ISupportInitialize)layoutViewCard1).BeginInit();
            ((ISupportInitialize)layoutViewField_colCurrentHz).BeginInit();
            ((ISupportInitialize)layoutViewField_colRunStatus).BeginInit();
            ((ISupportInitialize)layoutViewField_colName).BeginInit();
            ((ISupportInitialize)layoutViewField_colIcon).BeginInit();
            SuspendLayout();
            //
            // gridControl1
            //
            gridControl1.DataSource = setHydroPumpCalcuPrefixViewModelBindingSource;
            gridControl1.Dock = DockStyle.Fill;
            gridControl1.Location = new Point(0, 0);
            gridControl1.MainView = layoutView1;
            gridControl1.Name = "gridControl1";
            gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repPicture, repImgCmbBox });
            gridControl1.Size = new Size(700, 700);
            gridControl1.TabIndex = 1;
            gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { layoutView1 });
            //
            // setHydroPumpCalcuPrefixViewModelBindingSource
            //
            setHydroPumpCalcuPrefixViewModelBindingSource.DataSource = typeof(SetHydroPumpCalcuPrefixViewModel);
            //
            // layoutView1
            //
            layoutView1.BorderStyle = BorderStyles.NoBorder;
            layoutView1.CardHorzInterval = 6;
            layoutView1.CardMinSize = new Size(172, 119);
            layoutView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.LayoutViewColumn[] { colName, colRunStatus, colCurrentHz, colIcon });
            layoutView1.GridControl = gridControl1;
            layoutView1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colIcon });
            layoutView1.Name = "layoutView1";
            layoutView1.OptionsItemText.AlignMode = DevExpress.XtraGrid.Views.Layout.FieldTextAlignMode.AlignGlobal;
            layoutView1.OptionsItemText.TextToControlDistance = 0;
            layoutView1.OptionsPrint.PrintCardCaption = false;
            layoutView1.OptionsView.CardArrangeRule = DevExpress.XtraGrid.Views.Layout.LayoutCardArrangeRule.AllowPartialCards;
            layoutView1.OptionsView.CardsAlignment = DevExpress.XtraGrid.Views.Layout.CardsAlignment.Near;
            layoutView1.OptionsView.ShowCardExpandButton = false;
            layoutView1.OptionsView.ShowCardFieldBorders = true;
            layoutView1.OptionsView.ShowFieldHints = false;
            layoutView1.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.Never;
            layoutView1.OptionsView.ShowHeaderPanel = false;
            layoutView1.OptionsView.ViewMode = DevExpress.XtraGrid.Views.Layout.LayoutViewMode.MultiRow;
            layoutView1.TemplateCard = layoutViewCard1;
            //
            // colName
            //
            colName.AppearanceCell.Font = new Font("Tahoma", 11F, FontStyle.Bold, GraphicsUnit.Point);
            colName.AppearanceCell.Options.UseFont = true;
            colName.AppearanceCell.Options.UseTextOptions = true;
            colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            colName.FieldName = "Name";
            colName.LayoutViewField = layoutViewField_colName;
            colName.MinWidth = 30;
            colName.Name = "colName";
            colName.OptionsColumn.AllowEdit = false;
            colName.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            colName.OptionsColumn.ReadOnly = true;
            colName.OptionsFilter.AllowFilter = false;
            colName.Width = 112;
            //
            // colRunStatus
            //
            colRunStatus.AppearanceCell.ForeColor = DevExpress.LookAndFeel.DXSkinColors.ForeColors.Question;
            colRunStatus.AppearanceCell.Options.UseForeColor = true;
            colRunStatus.AppearanceCell.Options.UseTextOptions = true;
            colRunStatus.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            colRunStatus.ColumnEdit = repImgCmbBox;
            colRunStatus.FieldName = "RunStatus";
            colRunStatus.LayoutViewField = layoutViewField_colRunStatus;
            colRunStatus.MinWidth = 30;
            colRunStatus.Name = "colRunStatus";
            colRunStatus.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            colRunStatus.OptionsFilter.AllowFilter = false;
            colRunStatus.Width = 112;
            //
            // repImgCmbBox
            //
            repImgCmbBox.AutoHeight = false;
            repImgCmbBox.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            repImgCmbBox.Name = "repImgCmbBox";
            //
            // colCurrentHz
            //
            colCurrentHz.AppearanceCell.ForeColor = DevExpress.LookAndFeel.DXSkinColors.ForeColors.Question;
            colCurrentHz.AppearanceCell.Options.UseForeColor = true;
            colCurrentHz.AppearanceCell.Options.UseTextOptions = true;
            colCurrentHz.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            colCurrentHz.FieldName = "CurrentHz";
            colCurrentHz.LayoutViewField = layoutViewField_colCurrentHz;
            colCurrentHz.MinWidth = 30;
            colCurrentHz.Name = "colCurrentHz";
            colCurrentHz.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            colCurrentHz.OptionsFilter.AllowFilter = false;
            colCurrentHz.Width = 112;
            //
            // colIcon
            //
            colIcon.ColumnEdit = repPicture;
            colIcon.FieldName = "Icon";
            colIcon.LayoutViewField = layoutViewField_colIcon;
            colIcon.MinWidth = 30;
            colIcon.Name = "colIcon";
            colIcon.OptionsColumn.ReadOnly = true;
            colIcon.Width = 112;
            //
            // repPicture
            //
            repPicture.Name = "repPicture";
            //
            // layoutViewCard1
            //
            layoutViewCard1.CustomizationFormText = "TemplateCard";
            layoutViewCard1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.False;
            layoutViewCard1.GroupStyle = DevExpress.Utils.GroupStyle.Title;
            layoutViewCard1.HeaderButtonsLocation = DevExpress.Utils.GroupElementLocation.AfterText;
            layoutViewCard1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colCurrentHz, layoutViewField_colRunStatus, layoutViewField_colName });
            layoutViewCard1.Name = "layoutViewCard1";
            layoutViewCard1.OptionsItemText.TextToControlDistance = 0;
            layoutViewCard1.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewCard1.Text = "TemplateCard";
            layoutViewCard1.TextLocation = DevExpress.Utils.Locations.Default;
            layoutViewCard1.TextVisible = false;
            //
            // layoutViewField_colCurrentHz
            //
            layoutViewField_colCurrentHz.EditorPreferredWidth = 76;
            layoutViewField_colCurrentHz.Location = new Point(0, 72);
            layoutViewField_colCurrentHz.Name = "layoutViewField_colCurrentHz";
            layoutViewField_colCurrentHz.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewField_colCurrentHz.Size = new Size(164, 39);
            layoutViewField_colCurrentHz.TextSize = new Size(78, 22);
            //
            // layoutViewField_colRunStatus
            //
            layoutViewField_colRunStatus.EditorPreferredWidth = 76;
            layoutViewField_colRunStatus.Location = new Point(0, 36);
            layoutViewField_colRunStatus.Name = "layoutViewField_colRunStatus";
            layoutViewField_colRunStatus.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewField_colRunStatus.Size = new Size(164, 36);
            layoutViewField_colRunStatus.TextSize = new Size(78, 22);
            //
            // layoutViewField_colName
            //
            layoutViewField_colName.EditorPreferredWidth = 154;
            layoutViewField_colName.Location = new Point(0, 0);
            layoutViewField_colName.Name = "layoutViewField_colName";
            layoutViewField_colName.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewField_colName.Size = new Size(164, 36);
            layoutViewField_colName.TextSize = new Size(0, 0);
            layoutViewField_colName.TextVisible = false;
            //
            // layoutViewField_colIcon
            //
            layoutViewField_colIcon.EditorPreferredWidth = 20;
            layoutViewField_colIcon.Location = new Point(0, 0);
            layoutViewField_colIcon.Name = "layoutViewField_colIcon";
            layoutViewField_colIcon.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewField_colIcon.Size = new Size(240, 108);
            layoutViewField_colIcon.StartNewLine = true;
            layoutViewField_colIcon.TextSize = new Size(0, 0);
            layoutViewField_colIcon.TextVisible = false;
            //
            // SetHydroPumpCalcuPrefixListCtrl
            //
            Appearance.BackColor = Color.White;
            Appearance.Options.UseBackColor = true;
            AutoScaleDimensions = new SizeF(10F, 22F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(gridControl1);
            Margin = new Padding(4, 5, 4, 5);
            Name = "SetHydroPumpCalcuPrefixListCtrl";
            Size = new Size(700, 700);
            ((ISupportInitialize)gridControl1).EndInit();
            ((ISupportInitialize)setHydroPumpCalcuPrefixViewModelBindingSource).EndInit();
            ((ISupportInitialize)layoutView1).EndInit();
            ((ISupportInitialize)repImgCmbBox).EndInit();
            ((ISupportInitialize)repPicture).EndInit();
            ((ISupportInitialize)layoutViewCard1).EndInit();
            ((ISupportInitialize)layoutViewField_colCurrentHz).EndInit();
            ((ISupportInitialize)layoutViewField_colRunStatus).EndInit();
            ((ISupportInitialize)layoutViewField_colName).EndInit();
            ((ISupportInitialize)layoutViewField_colIcon).EndInit();
            ResumeLayout(false);
        }
        #endregion
        private DevExpress.XtraGrid.GridControl gridControl1;
        private BindingSource setHydroPumpCalcuPrefixViewModelBindingSource;
        private DevExpress.XtraGrid.Views.Layout.LayoutView layoutView1;
        private DevExpress.XtraGrid.Columns.LayoutViewColumn colName;
        private DevExpress.XtraGrid.Columns.LayoutViewColumn colRunStatus;
        private DevExpress.XtraGrid.Columns.LayoutViewColumn colCurrentHz;
        private DevExpress.XtraGrid.Columns.LayoutViewColumn colIcon;
        private DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit repPicture;
        private DevExpress.XtraEditors.Repository.RepositoryItemImageComboBox repImgCmbBox;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colName;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colRunStatus;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colCurrentHz;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colIcon;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewCard layoutViewCard1;
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/02-pump/SetHydroPumpCalcuPrefixListCtrl.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,83 @@
namespace HStation.WinFrmUI
{
    public partial class SetHydroPumpCalcuPrefixListCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public SetHydroPumpCalcuPrefixListCtrl()
        {
            InitializeComponent();
            this.layoutView1.InitView();
            InitialPumpStatus();
        }
        /// <summary>
        /// æŸ¥çœ‹æ°´æ³µäº‹ä»¶
        /// </summary>
        public event Action<Yw.Model.HydroPumpInfo> ViewParterEvent;
        private Yw.Model.HydroModelInfo _hydroInfo = null;
        private List<SetHydroPumpCalcuPrefixViewModel> _all_set_vm_list = null;
        /// <summary>
        /// ç»‘定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo)
        {
            _hydroInfo = hydroInfo;
            InitialControls();
        }
        /// <summary>
        /// æ›´æ–°ç»‘定数据
        /// </summary>
        public void UpdateBindingData()
        {
            if (_all_set_vm_list != null && _all_set_vm_list.Any())
            {
                for (int i = 0; i < _all_set_vm_list.Count; i++)
                {
                    var set = _all_set_vm_list[i];
                    var item = _hydroInfo.Pumps[i];
                    item.LinkStatus = set.RunStatus;
                    var currentHz = set.CurrentHz;
                    item.SpeedRatio = Math.Round(currentHz / item.RatedHz, 1);
                }
            }
        }
        //初始化控件
        private void InitialControls()
        {
            if (_hydroInfo == null)
            {
                return;
            }
            _all_set_vm_list = new List<SetHydroPumpCalcuPrefixViewModel>();
            if (_hydroInfo != null)
            {
                if (_hydroInfo.Pumps != null && _hydroInfo.Pumps.Count > 0)
                {
                    foreach (var pump in _hydroInfo.Pumps)
                    {
                        var vm = new SetHydroPumpCalcuPrefixViewModel(pump);
                        _all_set_vm_list.Add(vm);
                    }
                }
            }
            this.setHydroPumpCalcuPrefixViewModelBindingSource.DataSource = _all_set_vm_list;
            this.setHydroPumpCalcuPrefixViewModelBindingSource.ResetBindings(false);
        }
        //初始化水泵状态
        private void InitialPumpStatus()
        {
            this.repImgCmbBox.BeginUpdate();
            this.repImgCmbBox.Items.Clear();
            this.repImgCmbBox.Items.Add(HydroLinkStatusHelper.GetStatusName(Yw.Hydro.PumpStatus.Open), Yw.Hydro.PumpStatus.Open, -1);
            this.repImgCmbBox.Items.Add(HydroLinkStatusHelper.GetStatusName(Yw.Hydro.PumpStatus.Closed), Yw.Hydro.PumpStatus.Closed, -1);
            this.repImgCmbBox.EndUpdate();
        }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/02-pump/SetHydroPumpCalcuPrefixListCtrl.resx
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,123 @@
<?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>
  <metadata name="setHydroPumpCalcuPrefixViewModelBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
  </metadata>
</root>
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/02-pump/SetHydroPumpCalcuPrefixViewModel.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,28 @@
using DevExpress.Utils.Svg;
namespace HStation.WinFrmUI
{
    public class SetHydroPumpCalcuPrefixViewModel
    {
        public SetHydroPumpCalcuPrefixViewModel() { }
        public SetHydroPumpCalcuPrefixViewModel(Yw.Model.HydroPumpInfo rhs)
        {
            this.Name = rhs.Name;
            this.RunStatus = rhs.LinkStatus;
            this.CurrentHz = Math.Round(rhs.RatedHz * rhs.SpeedRatio, 1);
        }
        [Display(Name = "名称")]
        public string Name { get; set; }
        [Display(Name = "运行状态")]
        public string RunStatus { get; set; }
        [Display(Name = "设定频率")]
        public double CurrentHz { get; set; }
        [Display(Name = "图标")]
        public SvgImage Icon { get; set; }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/03-nozzle/SetHydroNozzleCalcuPrefixListCtrl.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,220 @@
namespace HStation.WinFrmUI
{
    partial class SetHydroNozzleCalcuPrefixListCtrl
    {
        /// <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 Component 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()
        {
            components = new Container();
            gridControl1 = new DevExpress.XtraGrid.GridControl();
            setHydroNozzleCalcuPrefixViewModelBindingSource = new BindingSource(components);
            layoutView1 = new DevExpress.XtraGrid.Views.Layout.LayoutView();
            colName = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
            colCoefficient = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
            colIcon = new DevExpress.XtraGrid.Columns.LayoutViewColumn();
            repPicture = new DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit();
            layoutViewCard1 = new DevExpress.XtraGrid.Views.Layout.LayoutViewCard();
            layoutViewField_colName = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
            layoutViewField_colCoefficient = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
            layoutViewField_colIcon = new DevExpress.XtraGrid.Views.Layout.LayoutViewField();
            ((ISupportInitialize)gridControl1).BeginInit();
            ((ISupportInitialize)setHydroNozzleCalcuPrefixViewModelBindingSource).BeginInit();
            ((ISupportInitialize)layoutView1).BeginInit();
            ((ISupportInitialize)repPicture).BeginInit();
            ((ISupportInitialize)layoutViewCard1).BeginInit();
            ((ISupportInitialize)layoutViewField_colName).BeginInit();
            ((ISupportInitialize)layoutViewField_colCoefficient).BeginInit();
            ((ISupportInitialize)layoutViewField_colIcon).BeginInit();
            SuspendLayout();
            //
            // gridControl1
            //
            gridControl1.DataSource = setHydroNozzleCalcuPrefixViewModelBindingSource;
            gridControl1.Dock = DockStyle.Fill;
            gridControl1.Location = new Point(0, 0);
            gridControl1.MainView = layoutView1;
            gridControl1.Name = "gridControl1";
            gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repPicture });
            gridControl1.Size = new Size(700, 700);
            gridControl1.TabIndex = 0;
            gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { layoutView1 });
            //
            // setHydroNozzleCalcuPrefixViewModelBindingSource
            //
            setHydroNozzleCalcuPrefixViewModelBindingSource.DataSource = typeof(SetHydroNozzleCalcuPrefixViewModel);
            //
            // layoutView1
            //
            layoutView1.BorderStyle = BorderStyles.NoBorder;
            layoutView1.CardHorzInterval = 6;
            layoutView1.CardMinSize = new Size(153, 83);
            layoutView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.LayoutViewColumn[] { colName, colCoefficient, colIcon });
            layoutView1.GridControl = gridControl1;
            layoutView1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colIcon });
            layoutView1.Name = "layoutView1";
            layoutView1.OptionsBehavior.ScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Auto;
            layoutView1.OptionsItemText.AlignMode = DevExpress.XtraGrid.Views.Layout.FieldTextAlignMode.AlignGlobal;
            layoutView1.OptionsItemText.TextToControlDistance = 0;
            layoutView1.OptionsPrint.PrintCardCaption = false;
            layoutView1.OptionsView.CardArrangeRule = DevExpress.XtraGrid.Views.Layout.LayoutCardArrangeRule.AllowPartialCards;
            layoutView1.OptionsView.CardsAlignment = DevExpress.XtraGrid.Views.Layout.CardsAlignment.Near;
            layoutView1.OptionsView.ShowCardBorderIfCaptionHidden = false;
            layoutView1.OptionsView.ShowCardExpandButton = false;
            layoutView1.OptionsView.ShowCardFieldBorders = true;
            layoutView1.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.Never;
            layoutView1.OptionsView.ShowHeaderPanel = false;
            layoutView1.OptionsView.ViewMode = DevExpress.XtraGrid.Views.Layout.LayoutViewMode.MultiRow;
            layoutView1.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] { new DevExpress.XtraGrid.Columns.GridColumnSortInfo(colCoefficient, DevExpress.Data.ColumnSortOrder.Ascending) });
            layoutView1.TemplateCard = layoutViewCard1;
            //
            // colName
            //
            colName.AppearanceCell.Font = new Font("Tahoma", 11F, FontStyle.Bold, GraphicsUnit.Point);
            colName.AppearanceCell.Options.UseFont = true;
            colName.AppearanceCell.Options.UseTextOptions = true;
            colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            colName.FieldName = "Name";
            colName.LayoutViewField = layoutViewField_colName;
            colName.MinWidth = 30;
            colName.Name = "colName";
            colName.OptionsColumn.AllowEdit = false;
            colName.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            colName.OptionsColumn.ReadOnly = true;
            colName.OptionsFilter.AllowFilter = false;
            colName.Width = 112;
            //
            // colCoefficient
            //
            colCoefficient.AppearanceCell.ForeColor = DevExpress.LookAndFeel.DXSkinColors.ForeColors.Question;
            colCoefficient.AppearanceCell.Options.UseForeColor = true;
            colCoefficient.AppearanceCell.Options.UseTextOptions = true;
            colCoefficient.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            colCoefficient.FieldName = "Coefficient";
            colCoefficient.LayoutViewField = layoutViewField_colCoefficient;
            colCoefficient.MinWidth = 30;
            colCoefficient.Name = "colCoefficient";
            colCoefficient.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False;
            colCoefficient.OptionsFilter.AllowFilter = false;
            colCoefficient.Width = 112;
            //
            // colIcon
            //
            colIcon.ColumnEdit = repPicture;
            colIcon.FieldName = "Icon";
            colIcon.LayoutViewField = layoutViewField_colIcon;
            colIcon.MinWidth = 30;
            colIcon.Name = "colIcon";
            colIcon.OptionsColumn.ReadOnly = true;
            colIcon.Width = 112;
            //
            // repPicture
            //
            repPicture.Name = "repPicture";
            //
            // layoutViewCard1
            //
            layoutViewCard1.CustomizationFormText = "TemplateCard";
            layoutViewCard1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.False;
            layoutViewCard1.GroupStyle = DevExpress.Utils.GroupStyle.Title;
            layoutViewCard1.HeaderButtonsLocation = DevExpress.Utils.GroupElementLocation.AfterText;
            layoutViewCard1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutViewField_colName, layoutViewField_colCoefficient });
            layoutViewCard1.Name = "layoutViewCard1";
            layoutViewCard1.OptionsItemText.TextToControlDistance = 0;
            layoutViewCard1.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewCard1.Text = "TemplateCard";
            layoutViewCard1.TextLocation = DevExpress.Utils.Locations.Default;
            layoutViewCard1.TextVisible = false;
            //
            // layoutViewField_colName
            //
            layoutViewField_colName.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center;
            layoutViewField_colName.ContentVertAlignment = DevExpress.Utils.VertAlignment.Center;
            layoutViewField_colName.EditorPreferredWidth = 135;
            layoutViewField_colName.Location = new Point(0, 0);
            layoutViewField_colName.Name = "layoutViewField_colName";
            layoutViewField_colName.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewField_colName.Size = new Size(145, 36);
            layoutViewField_colName.TextSize = new Size(0, 0);
            layoutViewField_colName.TextVisible = false;
            //
            // layoutViewField_colCoefficient
            //
            layoutViewField_colCoefficient.ContentHorzAlignment = DevExpress.Utils.HorzAlignment.Center;
            layoutViewField_colCoefficient.ContentVertAlignment = DevExpress.Utils.VertAlignment.Center;
            layoutViewField_colCoefficient.EditorPreferredWidth = 57;
            layoutViewField_colCoefficient.Location = new Point(0, 36);
            layoutViewField_colCoefficient.Name = "layoutViewField_colCoefficient";
            layoutViewField_colCoefficient.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewField_colCoefficient.Size = new Size(145, 39);
            layoutViewField_colCoefficient.TextSize = new Size(78, 22);
            //
            // layoutViewField_colIcon
            //
            layoutViewField_colIcon.EditorPreferredWidth = 20;
            layoutViewField_colIcon.Location = new Point(0, 0);
            layoutViewField_colIcon.Name = "layoutViewField_colIcon";
            layoutViewField_colIcon.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            layoutViewField_colIcon.Size = new Size(224, 72);
            layoutViewField_colIcon.StartNewLine = true;
            layoutViewField_colIcon.TextSize = new Size(0, 0);
            layoutViewField_colIcon.TextVisible = false;
            //
            // SetHydroNozzleCalcuPrefixListCtrl
            //
            Appearance.BackColor = Color.White;
            Appearance.Options.UseBackColor = true;
            AutoScaleDimensions = new SizeF(10F, 22F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(gridControl1);
            Margin = new Padding(4, 5, 4, 5);
            Name = "SetHydroNozzleCalcuPrefixListCtrl";
            Size = new Size(700, 700);
            ((ISupportInitialize)gridControl1).EndInit();
            ((ISupportInitialize)setHydroNozzleCalcuPrefixViewModelBindingSource).EndInit();
            ((ISupportInitialize)layoutView1).EndInit();
            ((ISupportInitialize)repPicture).EndInit();
            ((ISupportInitialize)layoutViewCard1).EndInit();
            ((ISupportInitialize)layoutViewField_colName).EndInit();
            ((ISupportInitialize)layoutViewField_colCoefficient).EndInit();
            ((ISupportInitialize)layoutViewField_colIcon).EndInit();
            ResumeLayout(false);
        }
        #endregion
        private DevExpress.XtraGrid.GridControl gridControl1;
        private BindingSource setHydroNozzleCalcuPrefixViewModelBindingSource;
        private DevExpress.XtraGrid.Views.Layout.LayoutView layoutView1;
        private DevExpress.XtraGrid.Columns.LayoutViewColumn colName;
        private DevExpress.XtraGrid.Columns.LayoutViewColumn colCoefficient;
        private DevExpress.XtraGrid.Columns.LayoutViewColumn colIcon;
        private DevExpress.XtraEditors.Repository.RepositoryItemPictureEdit repPicture;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colName;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colCoefficient;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewField layoutViewField_colIcon;
        private DevExpress.XtraGrid.Views.Layout.LayoutViewCard layoutViewCard1;
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/03-nozzle/SetHydroNozzleCalcuPrefixListCtrl.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,66 @@
namespace HStation.WinFrmUI
{
    public partial class SetHydroNozzleCalcuPrefixListCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public SetHydroNozzleCalcuPrefixListCtrl()
        {
            InitializeComponent();
            this.layoutView1.InitView();
        }
        /// <summary>
        /// æŸ¥çœ‹å–·å˜´äº‹ä»¶
        /// </summary>
        public event Action<Yw.Model.HydroNozzleInfo> ViewParterEvent;
        private Yw.Model.HydroModelInfo _hydroInfo = null;
        private List<SetHydroNozzleCalcuPrefixViewModel> _all_set_vm_list = null;
        /// <summary>
        /// ç»‘定数据
        /// </summary>
        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo)
        {
            _hydroInfo = hydroInfo;
            InitialControls();
        }
        /// <summary>
        /// æ›´æ–°ç»‘定数据
        /// </summary>
        public void UpdateBindingData()
        {
            if (_all_set_vm_list != null && _all_set_vm_list.Any())
            {
                for (int i = 0; i < _all_set_vm_list.Count; i++)
                {
                    var set = _all_set_vm_list[i];
                    var item = _hydroInfo.Nozzles[i];
                    item.Coefficient = set.Coefficient;
                }
            }
        }
        //初始化控件
        private void InitialControls()
        {
            _all_set_vm_list = new List<SetHydroNozzleCalcuPrefixViewModel>();
            if (_hydroInfo != null)
            {
                if (_hydroInfo.Nozzles != null && _hydroInfo.Nozzles.Count > 0)
                {
                    foreach (var nozzle in _hydroInfo.Nozzles)
                    {
                        var vm = new SetHydroNozzleCalcuPrefixViewModel(nozzle);
                        _all_set_vm_list.Add(vm);
                    }
                }
            }
            this.setHydroNozzleCalcuPrefixViewModelBindingSource.DataSource = _all_set_vm_list;
            this.setHydroNozzleCalcuPrefixViewModelBindingSource.ResetBindings(false);
        }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/03-nozzle/SetHydroNozzleCalcuPrefixListCtrl.resx
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,123 @@
<?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>
  <metadata name="setHydroNozzleCalcuPrefixViewModelBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
  </metadata>
</root>
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/03-nozzle/SetHydroNozzleCalcuPrefixViewModel.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,24 @@
using DevExpress.Utils.Svg;
namespace HStation.WinFrmUI
{
    public class SetHydroNozzleCalcuPrefixViewModel
    {
        public SetHydroNozzleCalcuPrefixViewModel() { }
        public SetHydroNozzleCalcuPrefixViewModel(Yw.Model.HydroNozzleInfo rhs)
        {
            this.Name = rhs.Name;
            this.Coefficient = rhs.Coefficient;
        }
        [Display(Name = "名称")]
        public string Name { get; set; }
        [Display(Name = "喷射系数")]
        public double Coefficient { get; set; }
        [Display(Name = "图标")]
        public SvgImage Icon { get; set; }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/99-failed/HydroCalcuFailedCtrl.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,103 @@
namespace HStation.WinFrmUI
{
    partial class HydroCalcuFailedCtrl
    {
        /// <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 Component 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()
        {
            components = new Container();
            gridControl1 = new DevExpress.XtraGrid.GridControl();
            gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
            colCode = new DevExpress.XtraGrid.Columns.GridColumn();
            colMessage = new DevExpress.XtraGrid.Columns.GridColumn();
            hydroCalcuFailedViewModelBindingSource = new BindingSource(components);
            ((ISupportInitialize)gridControl1).BeginInit();
            ((ISupportInitialize)gridView1).BeginInit();
            ((ISupportInitialize)hydroCalcuFailedViewModelBindingSource).BeginInit();
            SuspendLayout();
            //
            // gridControl1
            //
            gridControl1.DataSource = hydroCalcuFailedViewModelBindingSource;
            gridControl1.Dock = DockStyle.Fill;
            gridControl1.Location = new Point(0, 0);
            gridControl1.MainView = gridView1;
            gridControl1.Name = "gridControl1";
            gridControl1.Size = new Size(439, 460);
            gridControl1.TabIndex = 1;
            gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 });
            //
            // gridView1
            //
            gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colMessage });
            gridView1.GridControl = gridControl1;
            gridView1.Name = "gridView1";
            //
            // colCode
            //
            colCode.FieldName = "Code";
            colCode.MaxWidth = 80;
            colCode.MinWidth = 80;
            colCode.Name = "colCode";
            colCode.Visible = true;
            colCode.VisibleIndex = 0;
            colCode.Width = 80;
            //
            // colMessage
            //
            colMessage.FieldName = "Message";
            colMessage.MinWidth = 100;
            colMessage.Name = "colMessage";
            colMessage.Visible = true;
            colMessage.VisibleIndex = 1;
            colMessage.Width = 100;
            //
            // hydroCalcuFailedViewModelBindingSource
            //
            hydroCalcuFailedViewModelBindingSource.DataSource = typeof(HydroCalcuFailedViewModel);
            //
            // HydroCalcuFailedCtrl
            //
            AutoScaleDimensions = new SizeF(7F, 14F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(gridControl1);
            Name = "HydroCalcuFailedCtrl";
            Size = new Size(439, 460);
            ((ISupportInitialize)gridControl1).EndInit();
            ((ISupportInitialize)gridView1).EndInit();
            ((ISupportInitialize)hydroCalcuFailedViewModelBindingSource).EndInit();
            ResumeLayout(false);
        }
        #endregion
        private DevExpress.XtraGrid.GridControl gridControl1;
        private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
        private DevExpress.XtraGrid.Columns.GridColumn colCode;
        private DevExpress.XtraGrid.Columns.GridColumn colMessage;
        private BindingSource hydroCalcuFailedViewModelBindingSource;
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/99-failed/HydroCalcuFailedCtrl.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,38 @@
namespace HStation.WinFrmUI
{
    public partial class HydroCalcuFailedCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public HydroCalcuFailedCtrl()
        {
            InitializeComponent();
            this.gridView1.SetNormalView(30);
            this.gridView1.RegistCustomDrawRowIndicator(40);
        }
        private List<HydroCalcuFailedViewModel> _allBindingList = null;
        /// <summary>
        /// ç»‘定数据
        /// </summary>
        public void SetBindingData(List<Yw.EPAnet.CalcuFailed> allFailedList)
        {
            _allBindingList = new List<HydroCalcuFailedViewModel>();
            if (allFailedList != null && allFailedList.Count > 0)
            {
                foreach (var failed in allFailedList)
                {
                    var vm = new HydroCalcuFailedViewModel(failed);
                    _allBindingList.Add(vm);
                }
            }
            this.hydroCalcuFailedViewModelBindingSource.DataSource = _allBindingList;
            this.hydroCalcuFailedViewModelBindingSource.ResetBindings(false);
        }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/99-failed/HydroCalcuFailedCtrl.resx
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,123 @@
<?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>
  <metadata name="hydroCalcuFailedViewModelBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
  </metadata>
</root>
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/99-failed/HydroCalcuFailedViewModel.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,36 @@
namespace HStation.WinFrmUI
{
    /// <summary>
    ///
    /// </summary>
    public class HydroCalcuFailedViewModel
    {
        /// <summary>
        ///
        /// </summary>
        public HydroCalcuFailedViewModel() { }
        /// <summary>
        ///
        /// </summary>
        public HydroCalcuFailedViewModel(Yw.EPAnet.CalcuFailed rhs)
        {
            this.Code = rhs.Code;
            this.Message = rhs.Message;
        }
        /// <summary>
        /// é”™è¯¯ç¼–码
        /// </summary>
        [Display(Name = "错误编码")]
        public int Code { get; set; }
        /// <summary>
        /// é”™è¯¯ä¿¡æ¯
        /// </summary>
        [Display(Name = "错误信息")]
        public string Message { get; set; }
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/IXhsProjectSimulationCalcuPrefix.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixCtrl.Designer.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixCtrl.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixCtrl.resx
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixDlg.Designer.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixDlg.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixDlg.resx
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixPureCtrl.Designer.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixPureCtrl.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/00-core/XhsProjectSimulationCalcuPrefixPureCtrl.resx
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/01-pump/XhsProjectSimulationPumpCalcuPrefixCtrl.Designer.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/01-pump/XhsProjectSimulationPumpCalcuPrefixCtrl.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/01-pump/XhsProjectSimulationPumpCalcuPrefixCtrl.resx
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/01-pump/XhsProjectSimulationPumpCalcuPrefixViewModel.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/02-valve/XhsProjectSimulationValveCalcuPrefixCtrl.Designer.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/02-valve/XhsProjectSimulationValveCalcuPrefixCtrl.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/02-valve/XhsProjectSimulationValveCalcuPrefixCtrl.resx
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/03-calcu/02-prefix/bak/02-valve/XhsProjectSimulationValveCalcuPrefixViewModel.cs
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs
@@ -1040,7 +1040,7 @@
            {
                return;
            }
            var dlg = new SetHydroCalcuPrefixDlg();
            var dlg = new HStation.WinFrmUI.SetHydroCalcuPrefixDlg1();
            dlg.SetBindingData(_hydroInfo);
            dlg.HydroViewEvent += async (parter) =>
            {
WinFrmUI/HStation.WinFrmUI.Xhs.Core/HStation.WinFrmUI.Xhs.Core.csproj
@@ -10,21 +10,33 @@
  <ItemGroup>
    <Compile Remove="02-project\01-import\01-ModelFile\**" />
    <Compile Remove="02-project\01-import\04-completed\**" />
    <Compile Remove="03-simulation\06-simulation\03-calcu\00-core\**" />
    <Compile Remove="03-simulation\06-simulation\03-calcu\01-failed\**" />
    <Compile Remove="03-simulation\06-simulation\03-calcu\02-prefix\bak\**" />
    <Compile Remove="03-ViewModel\**" />
    <Compile Remove="04-HomePageMainPanel\**" />
    <Compile Remove="Resources\**" />
    <EmbeddedResource Remove="02-project\01-import\01-ModelFile\**" />
    <EmbeddedResource Remove="02-project\01-import\04-completed\**" />
    <EmbeddedResource Remove="03-simulation\06-simulation\03-calcu\00-core\**" />
    <EmbeddedResource Remove="03-simulation\06-simulation\03-calcu\01-failed\**" />
    <EmbeddedResource Remove="03-simulation\06-simulation\03-calcu\02-prefix\bak\**" />
    <EmbeddedResource Remove="03-ViewModel\**" />
    <EmbeddedResource Remove="04-HomePageMainPanel\**" />
    <EmbeddedResource Remove="Resources\**" />
    <None Remove="02-project\01-import\01-ModelFile\**" />
    <None Remove="02-project\01-import\04-completed\**" />
    <None Remove="03-simulation\06-simulation\03-calcu\00-core\**" />
    <None Remove="03-simulation\06-simulation\03-calcu\01-failed\**" />
    <None Remove="03-simulation\06-simulation\03-calcu\02-prefix\bak\**" />
    <None Remove="03-ViewModel\**" />
    <None Remove="04-HomePageMainPanel\**" />
    <None Remove="Resources\**" />
    <Page Remove="02-project\01-import\01-ModelFile\**" />
    <Page Remove="02-project\01-import\04-completed\**" />
    <Page Remove="03-simulation\06-simulation\03-calcu\00-core\**" />
    <Page Remove="03-simulation\06-simulation\03-calcu\01-failed\**" />
    <Page Remove="03-simulation\06-simulation\03-calcu\02-prefix\bak\**" />
    <Page Remove="03-ViewModel\**" />
    <Page Remove="04-HomePageMainPanel\**" />
    <Page Remove="Resources\**" />
@@ -40,6 +52,8 @@
    <Compile Remove="03-simulation\06-simulation\01-matching\02-pump\01-pumpsinglematching\AssetsPumpMainChoicePage.Designer.cs" />
    <Compile Remove="03-simulation\06-simulation\01-matching\02-pump\01-pumpsinglematching\AssetsPumpMainForm-bak.cs" />
    <Compile Remove="03-simulation\06-simulation\01-matching\02-pump\01-pumpsinglematching\AssetsPumpMainForm-bak.Designer.cs" />
    <Compile Remove="03-simulation\06-simulation\03-calcu\02-prefix\00-core\SetHydroCalcuPrefixCtrl - å¤åˆ¶.cs" />
    <Compile Remove="03-simulation\06-simulation\03-calcu\02-prefix\00-core\SetHydroCalcuPrefixCtrl - å¤åˆ¶.Designer.cs" />
    <Compile Remove="04-pump\02-analy\SinglePumpSectPointViewModel.cs" />
  </ItemGroup>
@@ -48,6 +62,7 @@
    <EmbeddedResource Remove="02-project\03-mgr\XhsProjectMgrPage - å¤åˆ¶.resx" />
    <EmbeddedResource Remove="03-simulation\06-simulation\01-matching\02-pump\01-pumpsinglematching\AssetsPumpMainChoicePage.resx" />
    <EmbeddedResource Remove="03-simulation\06-simulation\01-matching\02-pump\01-pumpsinglematching\AssetsPumpMainForm-bak.resx" />
    <EmbeddedResource Remove="03-simulation\06-simulation\03-calcu\02-prefix\00-core\SetHydroCalcuPrefixCtrl - å¤åˆ¶.resx" />
  </ItemGroup>
  <ItemGroup>
@@ -83,6 +98,7 @@
  </ItemGroup>
  <ItemGroup>
    <Folder Include="03-simulation\06-simulation\03-calcu\02-prefix\bak\" />
    <Folder Include="03-simulation\06-simulation\07-bulkset\05-nozzle\" />
    <Folder Include="03-simulation\06-simulation\07-bulkset\03-valve\" />
    <Folder Include="03-simulation\06-simulation\07-bulkset\04-pipe\" />
@@ -133,7 +149,6 @@
    <Compile Update="03-simulation\06-simulation\01-matching\07-fourlink\01-threelinksinglematching\FourLinkSingMatchingDlg.cs" />
    <Compile Update="03-simulation\06-simulation\01-matching\07-fourlink\XhsProjectSimulationFourlinkMatchingListCtrl.cs" />
    <Compile Update="03-simulation\06-simulation\02-check\XhsProjectSimulationHydroCheckResultCtrl.cs" />
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\02-valve\XhsProjectSimulationValveCalcuPrefixCtrl.cs" />
    <Compile Update="03-simulation\06-simulation\04-unmatching\00-core\XhsProjectSimulationUnMatchingListCtrl.cs" />
    <Compile Update="03-simulation\06-simulation\04-unmatching\02-valve\XhsProjectSimulationValveUnMatchingListCtrl.cs" />
    <Compile Update="03-simulation\06-simulation\04-unmatching\03-pipe\XhsProjectSimulationPipeUnMatchingListCtrl.cs" />
@@ -141,7 +156,6 @@
    <Compile Update="03-simulation\06-simulation\04-unmatching\05-threelink\XhsProjectSimulationThreelinkUnMatchingListCtrl.cs" />
    <Compile Update="03-simulation\06-simulation\04-unmatching\04-elbow\XhsProjectSimulationElbowUnMatchingListCtrl.cs" />
    <Compile Update="03-simulation\06-simulation\XhsProjectSimulationCorePage.cs" />
    <Compile Update="03-simulation\06-simulation\03-calcu\01-failed\XhsProjectSimulationCalcuFailedDlg.cs" />
    <Compile Update="03-simulation\07-l3d\XhsProjectSimulationL3dCtrl.cs" />
    <Compile Update="Properties\Resources.Designer.cs">
      <DesignTime>True</DesignTime>
WinFrmUI/HStation.WinFrmUI.Xhs.Core/HStation.WinFrmUI.Xhs.Core.csproj.user
@@ -169,28 +169,37 @@
    <Compile Update="03-simulation\06-simulation\02-check\XhsProjectSimulationHydroCheckResultCtrl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\00-core\XhsProjectSimulationCalcuCtrl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\01-failed\XhsProjectSimulationCalcuFailedCtrl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\01-failed\XhsProjectSimulationCalcuFailedDlg.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\00-core\XhsProjectSimulationCalcuPrefixCtrl.cs">
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\00-core\SetHydroCalcuPrefixCtrl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\00-core\XhsProjectSimulationCalcuPrefixDlg.cs">
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\00-core\SetHydroCalcuPrefixDlg.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\00-core\XhsProjectSimulationCalcuPrefixPureCtrl.cs">
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\00-core\SetHydroCalcuPrefixDlg1.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\01-waterbox\SetHydroWaterboxCalcuPrefixListCtrl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\01-pump\XhsProjectSimulationPumpCalcuPrefixCtrl.cs">
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\02-pump\SetHydroPumpCalcuPrefixListCtrl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\02-valve\XhsProjectSimulationValveCalcuPrefixCtrl.cs">
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\03-nozzle\SetHydroNozzleCalcuPrefixListCtrl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\99-failed\HydroCalcuFailedCtrl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\bak\01-pump\XhsProjectSimulationPumpCalcuPrefixCtrl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\03-calcu\02-prefix\bak\02-valve\XhsProjectSimulationValveCalcuPrefixCtrl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Update="03-simulation\06-simulation\04-unmatching\00-core\XhsProjectSimulationUnMatchingListCtrl.cs">
WinFrmUI/HStation.WinFrmUI.Xhs.Core/Properties/DataSources/HStation.WinFrmUI.SetHydroNozzleCalcuPrefixViewModel.datasource
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
    This file is automatically generated by Visual Studio. It is
    used to store generic object data source configuration information.
    Renaming the file extension or editing the content of this file may
    cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="SetHydroNozzleCalcuPrefixViewModel" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  <TypeInfo>HStation.WinFrmUI.SetHydroNozzleCalcuPrefixViewModel, HStation.WinFrmUI.Xhs.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>
WinFrmUI/HStation.WinFrmUI.Xhs.Core/Properties/DataSources/HStation.WinFrmUI.SetHydroPumpCalcuPrefixViewModel.datasource
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
    This file is automatically generated by Visual Studio. It is
    used to store generic object data source configuration information.
    Renaming the file extension or editing the content of this file may
    cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="SetHydroPumpCalcuPrefixViewModel" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  <TypeInfo>HStation.WinFrmUI.SetHydroPumpCalcuPrefixViewModel, HStation.WinFrmUI.Xhs.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>
WinFrmUI/HStation.WinFrmUI.Xhs.Core/Properties/DataSources/HStation.WinFrmUI.SetHydroWaterboxCalcuPrefixViewModel.datasource
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
    This file is automatically generated by Visual Studio. It is
    used to store generic object data source configuration information.
    Renaming the file extension or editing the content of this file may
    cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="SetHydroWaterboxCalcuPrefixViewModel" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  <TypeInfo>HStation.WinFrmUI.SetHydroWaterboxCalcuPrefixViewModel, HStation.WinFrmUI.Xhs.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>
WinFrmUI/Yw.WinFrmUI.Hydro.Core/11-prefix/00-core/SetHydroCalcuPrefixDlg.Designer.cs
@@ -53,10 +53,11 @@
            layoutControl1.Controls.Add(setHydroCalcuPrefixCtrl1);
            layoutControl1.Dock = DockStyle.Fill;
            layoutControl1.Location = new Point(0, 0);
            layoutControl1.Margin = new Padding(4, 5, 4, 5);
            layoutControl1.Name = "layoutControl1";
            layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(1156, 474, 650, 400);
            layoutControl1.Root = Root;
            layoutControl1.Size = new Size(832, 639);
            layoutControl1.Size = new Size(1189, 1004);
            layoutControl1.TabIndex = 0;
            layoutControl1.Text = "layoutControl1";
            // 
@@ -64,9 +65,10 @@
            // 
            btnCalcu.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary;
            btnCalcu.Appearance.Options.UseBackColor = true;
            btnCalcu.Location = new Point(724, 605);
            btnCalcu.Location = new Point(1049, 966);
            btnCalcu.Margin = new Padding(4, 5, 4, 5);
            btnCalcu.Name = "btnCalcu";
            btnCalcu.Size = new Size(96, 22);
            btnCalcu.Size = new Size(137, 35);
            btnCalcu.StyleController = layoutControl1;
            btnCalcu.TabIndex = 6;
            btnCalcu.Text = "计算";
@@ -77,18 +79,20 @@
            btnCancel.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning;
            btnCancel.Appearance.Options.UseBackColor = true;
            btnCancel.DialogResult = DialogResult.Cancel;
            btnCancel.Location = new Point(624, 605);
            btnCancel.Location = new Point(906, 966);
            btnCancel.Margin = new Padding(4, 5, 4, 5);
            btnCancel.Name = "btnCancel";
            btnCancel.Size = new Size(96, 22);
            btnCancel.Size = new Size(137, 35);
            btnCancel.StyleController = layoutControl1;
            btnCancel.TabIndex = 5;
            btnCancel.Text = "取消";
            // 
            // setHydroCalcuPrefixCtrl1
            // 
            setHydroCalcuPrefixCtrl1.Location = new Point(12, 12);
            setHydroCalcuPrefixCtrl1.Location = new Point(3, 3);
            setHydroCalcuPrefixCtrl1.Margin = new Padding(6, 8, 6, 8);
            setHydroCalcuPrefixCtrl1.Name = "setHydroCalcuPrefixCtrl1";
            setHydroCalcuPrefixCtrl1.Size = new Size(808, 589);
            setHydroCalcuPrefixCtrl1.Size = new Size(1183, 957);
            setHydroCalcuPrefixCtrl1.TabIndex = 4;
            // 
            // Root
@@ -97,16 +101,17 @@
            Root.GroupBordersVisible = false;
            Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, layoutControlItem2, layoutControlItem3, emptySpaceItem1 });
            Root.Name = "Root";
            Root.Size = new Size(832, 639);
            Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            Root.Size = new Size(1189, 1004);
            Root.TextVisible = false;
            // 
            // layoutControlItem1
            // 
            layoutControlItem1.Control = setHydroCalcuPrefixCtrl1;
            layoutControlItem1.Location = new Point(0, 0);
            layoutControlItem1.MinSize = new Size(24, 399);
            layoutControlItem1.MinSize = new Size(34, 627);
            layoutControlItem1.Name = "layoutControlItem1";
            layoutControlItem1.Size = new Size(812, 593);
            layoutControlItem1.Size = new Size(1189, 963);
            layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
            layoutControlItem1.TextSize = new Size(0, 0);
            layoutControlItem1.TextVisible = false;
@@ -114,11 +119,11 @@
            // layoutControlItem2
            // 
            layoutControlItem2.Control = btnCancel;
            layoutControlItem2.Location = new Point(612, 593);
            layoutControlItem2.MaxSize = new Size(100, 26);
            layoutControlItem2.MinSize = new Size(100, 26);
            layoutControlItem2.Location = new Point(903, 963);
            layoutControlItem2.MaxSize = new Size(143, 41);
            layoutControlItem2.MinSize = new Size(143, 41);
            layoutControlItem2.Name = "layoutControlItem2";
            layoutControlItem2.Size = new Size(100, 26);
            layoutControlItem2.Size = new Size(143, 41);
            layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
            layoutControlItem2.TextSize = new Size(0, 0);
            layoutControlItem2.TextVisible = false;
@@ -126,11 +131,11 @@
            // layoutControlItem3
            // 
            layoutControlItem3.Control = btnCalcu;
            layoutControlItem3.Location = new Point(712, 593);
            layoutControlItem3.MaxSize = new Size(100, 26);
            layoutControlItem3.MinSize = new Size(100, 26);
            layoutControlItem3.Location = new Point(1046, 963);
            layoutControlItem3.MaxSize = new Size(143, 41);
            layoutControlItem3.MinSize = new Size(143, 41);
            layoutControlItem3.Name = "layoutControlItem3";
            layoutControlItem3.Size = new Size(100, 26);
            layoutControlItem3.Size = new Size(143, 41);
            layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
            layoutControlItem3.TextSize = new Size(0, 0);
            layoutControlItem3.TextVisible = false;
@@ -138,17 +143,18 @@
            // emptySpaceItem1
            // 
            emptySpaceItem1.AllowHotTrack = false;
            emptySpaceItem1.Location = new Point(0, 593);
            emptySpaceItem1.Location = new Point(0, 963);
            emptySpaceItem1.Name = "emptySpaceItem1";
            emptySpaceItem1.Size = new Size(612, 26);
            emptySpaceItem1.Size = new Size(903, 41);
            emptySpaceItem1.TextSize = new Size(0, 0);
            // 
            // SetHydroCalcuPrefixDlg
            // 
            AutoScaleDimensions = new SizeF(7F, 14F);
            AutoScaleDimensions = new SizeF(10F, 22F);
            AutoScaleMode = AutoScaleMode.Font;
            ClientSize = new Size(832, 639);
            ClientSize = new Size(1189, 1004);
            Controls.Add(layoutControl1);
            Margin = new Padding(4, 5, 4, 5);
            Name = "SetHydroCalcuPrefixDlg";
            StartPosition = FormStartPosition.CenterParent;
            Text = "计算前提条件";
WinFrmUI/Yw.WinFrmUI.Hydro.Core/11-prefix/00-core/SetHydroCalcuPrefixDlg.resx