Shuxia Ning
2024-11-11 f866efa3f12f68bc1f21ed5c9b76ead436009b04
创建方案
已修改8个文件
已添加1个文件
846 ■■■■■ 文件已修改
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/00-viewmodel/SetSchemeParterRecord.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/00-viewmodel/SetSchemeParterRecordItem.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/01-pump/SetSchemePumpListCtrl.cs 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/02-valve/SetSchemeValveListCtrl.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/03-pipe/SetSchemePipeListCtrl.cs 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/AddXhsSchemeDlg.Designer.cs 632 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/AddXhsSchemeDlg.cs 87 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/AddXhsSchemeDlg.resx 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/Properties/DataSources/HStation.WinFrmUI.SetSchemeParterRecordItem.datasource 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/00-viewmodel/SetSchemeParterRecord.cs
@@ -1,4 +1,6 @@
namespace HStation.WinFrmUI
using Yw.Model;
namespace HStation.WinFrmUI
{
    public class SetSchemeParterRecord
    {
@@ -8,21 +10,17 @@
        [DisplayName("名称")]
        public string Name { get; set; }
        [DisplayName("变更前id")]
        public string BeforeDbId { get; set; }
        [DisplayName("分类")]
        public string Catalog { get; set; }
        [DisplayName("变更后Dbid")]
        public string AfterDbId { get; set; }
        [DisplayName("变更前曲线id")]
        public string BeforeCurveId { get; set; }
        [DisplayName("变更后曲线id")]
        public string AfterCurveId { get; set; }
        [DisplayName("匹配模型")]
        public object MatchingModel { get; set; }
        [DisplayName("变更属性列表")]
        public List<SetSchemeParterRecordItem> Items { get; set; }
    }
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/00-viewmodel/SetSchemeParterRecordItem.cs
@@ -12,10 +12,10 @@
        public string Name { get; set; }
        [DisplayName("原始值")]
        public string RawValue { get; set; }
        public string BeforeValue { get; set; }
        [DisplayName("当前值")]
        public string CurrentValue { get; set; }
        public string AfterValue { get; set; }
    }
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/01-pump/SetSchemePumpListCtrl.cs
@@ -34,10 +34,11 @@
        /// æ°´åŠ›æ”¹å˜äº‹ä»¶
        /// </summary>
        public event Action<List<HydroParterInfo>> HydroChangedEvent;
        /// <summary>
        /// æ°´åŠ›è®°å½•æ”¹å˜äº‹ä»¶
        /// </summary>
        event Action<SetSchemeParterRecord> HydroRecordChangedEvent;
        public event  Action<SetSchemeParterRecord> HydroRecordChangedEvent;
        /// <summary>
        /// æ˜¾ç¤ºæŸ¥è¯¢é¢æ¿
@@ -273,9 +274,7 @@
                dlg.SetBindingData(input);
                dlg.ReloadDataEvent += (output) =>
                {
                    var record = new SetSchemeParterRecord();
                 /*   record.AfterDbId = row.Vmo.DbId;
                    record.BeforeCurveId*/
                    var bol = AssetsMatchingParasHelper.Apply(_hydroInfo, output);
                    if (bol)
                    {
@@ -283,8 +282,21 @@
                        this.gridView1.RefreshRow(e.RowHandle);
                        this.HydroChangedEvent?.Invoke(new List<Yw.Model.HydroParterInfo>() { row.Vmo });
                        var record = new SetSchemeParterRecord();
                        record.Name = row.Vmo.Name;
                        record.Code = row.Vmo.Code;
                        record.Catalog = Yw.Hydro.ParterCatalog.Pump;
                        record.MatchingModel = output;
                        this.HydroRecordChangedEvent?.Invoke();
                        record.Items = new List<SetSchemeParterRecordItem>() {
                        new() {Name="型号",BeforeValue=$"{output.ModelType}",AfterValue=$"{output.MatchingModelType}"},
                        new() {Name="额定功率",BeforeValue=$"{output.RatedP}",AfterValue=$"{output.MatchingRatedP}"},
                        new() {Name="额定流量",BeforeValue=$"{output.RatedQ}",AfterValue=$"{output.MatchingRatedQ}"},
                        new() {Name="额定扬程",BeforeValue=$"{output.RatedH}",AfterValue=$"{output.MatchingRatedH}"},
                        new() {Name="额定转速",BeforeValue=$"{output.RatedN}",AfterValue=$"{output.MatchingRatedN}"},
                        new() {Name="额定频率",BeforeValue=$"{output.RatedHz}",AfterValue=$"{output.MatchingRatedHz}"}
                        };
                        this.HydroRecordChangedEvent?.Invoke(record);
                    }
                };
                dlg.ShowDialog();
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/02-valve/SetSchemeValveListCtrl.cs
@@ -36,6 +36,11 @@
        public event Action<List<HydroParterInfo>> HydroChangedEvent; 
        /// <summary>
        /// æ°´åŠ›è®°å½•æ”¹å˜äº‹ä»¶
        /// </summary>
        public event Action<SetSchemeParterRecord> HydroRecordChangedEvent;
        /// <summary>
        /// æ˜¾ç¤ºæŸ¥è¯¢é¢æ¿
        /// </summary>
        [Browsable(true)]
@@ -272,6 +277,21 @@
                        row.UpdateProperty();
                        this.gridView1.RefreshRow(e.RowHandle);
                        this.HydroChangedEvent?.Invoke(new List<Yw.Model.HydroParterInfo>() { row.Vmo });
                        var record = new SetSchemeParterRecord();
                        record.Name = row.Vmo.Name;
                        record.Code = row.Vmo.Code;
                        record.Catalog = Yw.Hydro.ParterCatalog.Valve;
                        record.MatchingModel = output;
                        record.Items = new List<SetSchemeParterRecordItem>() {
                        new() {Name="型号",BeforeValue=$"{output.ModelType}",AfterValue=$"{output.MatchingModelType}"},
                        new() {Name="材料",BeforeValue=$"{output.Material}",AfterValue=$"{output.MatchingMaterial}"},
                        new() {Name="直径(mm)",BeforeValue=$"{output.Diameter}",AfterValue=$"{output.MatchingDiameter}"},
                        new() {Name="局阻系数",BeforeValue=$"{output.MinorLoss}",AfterValue=$"{output.MatchingMinorLoss}"},
                        new() {Name="阀门类型",BeforeValue=$"{output.ValveType}",AfterValue=$"{output.MatchingValveType}"},
                        };
                        this.HydroRecordChangedEvent?.Invoke(record);
                    }
                };
                dlg.ShowDialog();
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/01-set/03-pipe/SetSchemePipeListCtrl.cs
@@ -36,6 +36,11 @@
        
        /// <summary>
        /// æ°´åŠ›è®°å½•æ”¹å˜äº‹ä»¶
        /// </summary>
        public event Action<SetSchemeParterRecord> HydroRecordChangedEvent;
        /// <summary>
        /// æ˜¾ç¤ºæŸ¥è¯¢é¢æ¿
        /// </summary>
        [Browsable(true)]
@@ -255,7 +260,23 @@
                        row.UpdateProperty();
                        this.gridView1.RefreshRow(e.RowHandle);
                        this.HydroChangedEvent?.Invoke(new List<Yw.Model.HydroParterInfo>() { row.Vmo });
                        var record = new SetSchemeParterRecord();
                        record.Name = row.Vmo.Name;
                        record.Code = row.Vmo.Code;
                        record.Catalog = Yw.Hydro.ParterCatalog.Pipe;
                        record.MatchingModel = output;
                        record.Items = new List<SetSchemeParterRecordItem>() {
                        new() {Name="型号",BeforeValue=$"{output.ModelType}",AfterValue=$"{output.MatchingModelType}"},
                        new() {Name="材料",BeforeValue=$"{output.Material}",AfterValue=$"{output.MatchingMaterial}"},
                        new() {Name="直径(mm)",BeforeValue=$"{output.Diameter}",AfterValue=$"{output.MatchingDiameter}"},
                        new() {Name="粗糙系数",BeforeValue=$"{output.Roughness}",AfterValue=$"{output.MatchingRoughness}"},
                        new() {Name="局阻系数",BeforeValue=$"{output.MinorLoss}",AfterValue=$"{output.MatchingMinorLoss}"},
                        };
                        this.HydroRecordChangedEvent?.Invoke(record);
                    } 
                };
                dlg.ShowDialog();
            }
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/AddXhsSchemeDlg.Designer.cs
@@ -29,16 +29,29 @@
        private void InitializeComponent()
        {
            components = new Container();
            EditorButtonImageOptions editorButtonImageOptions1 = new EditorButtonImageOptions();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(AddXhsSchemeDlg));
            DevExpress.XtraGrid.GridLevelNode gridLevelNode1 = new DevExpress.XtraGrid.GridLevelNode();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject();
            gridControl1 = new DevExpress.XtraGrid.GridControl();
            setSchemeParterRecordBindingSource = new BindingSource(components);
            gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
            colCode = new DevExpress.XtraGrid.Columns.GridColumn();
            colName = new DevExpress.XtraGrid.Columns.GridColumn();
            colBeforeDbId = new DevExpress.XtraGrid.Columns.GridColumn();
            colAfterDbId = new DevExpress.XtraGrid.Columns.GridColumn();
            colBeforeCurveId = new DevExpress.XtraGrid.Columns.GridColumn();
            colAfterCurveId = new DevExpress.XtraGrid.Columns.GridColumn();
            colDelete = new DevExpress.XtraGrid.Columns.GridColumn();
            repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit();
            ribbon = new DevExpress.XtraBars.Ribbon.RibbonControl();
            barCek = new DevExpress.XtraBars.BarCheckItem();
            barButtonItem1 = new DevExpress.XtraBars.BarButtonItem();
            barButtonItem2 = new DevExpress.XtraBars.BarButtonItem();
            barButtonItem3 = new DevExpress.XtraBars.BarButtonItem();
            ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage();
            ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
            sidePanel3dModel = new SidePanel();
            flyoutPanel1 = new DevExpress.Utils.FlyoutPanel();
            flyoutPanelControl1 = new DevExpress.Utils.FlyoutPanelControl();
            sidePanelModelDetail = new SidePanel();
            tabPane1 = new DevExpress.XtraBars.Navigation.TabPane();
            tabPagePump = new DevExpress.XtraBars.Navigation.TabNavigationPage();
            setSchemePumpListCtrl1 = new SetSchemePumpListCtrl();
@@ -47,263 +60,67 @@
            tabPagePipe = new DevExpress.XtraBars.Navigation.TabNavigationPage();
            setSchemePipeListCtrl1 = new SetSchemePipeListCtrl();
            panelContainer1 = new DevExpress.XtraBars.Docking.DockPanel();
            dockManager1 = new DevExpress.XtraBars.Docking.DockManager(components);
            dockPanelChangeRecord = new DevExpress.XtraBars.Docking.DockPanel();
            dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer();
            gridControl1 = new DevExpress.XtraGrid.GridControl();
            gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
            setSchemeParterRecordBindingSource = new BindingSource(components);
            colCode = new DevExpress.XtraGrid.Columns.GridColumn();
            colName = new DevExpress.XtraGrid.Columns.GridColumn();
            colBeforeDbId = new DevExpress.XtraGrid.Columns.GridColumn();
            colAfterDbId = new DevExpress.XtraGrid.Columns.GridColumn();
            colBeforeCurveId = new DevExpress.XtraGrid.Columns.GridColumn();
            colAfterCurveId = new DevExpress.XtraGrid.Columns.GridColumn();
            gridControl2 = new DevExpress.XtraGrid.GridControl();
            setSchemeParterRecordItemBindingSource = new BindingSource(components);
            gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView();
            colName1 = new DevExpress.XtraGrid.Columns.GridColumn();
            colRawValue = new DevExpress.XtraGrid.Columns.GridColumn();
            colCurrentValue = new DevExpress.XtraGrid.Columns.GridColumn();
            colAfterValue = new DevExpress.XtraGrid.Columns.GridColumn();
            colBeforeValue = new DevExpress.XtraGrid.Columns.GridColumn();
            dockManager1 = new DevExpress.XtraBars.Docking.DockManager(components);
            dockPanel5 = new DevExpress.XtraBars.Docking.DockPanel();
            dockPanelChangeRecord = new DevExpress.XtraBars.Docking.DockPanel();
            dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer();
            dockPanelChangeRecordItem = new DevExpress.XtraBars.Docking.DockPanel();
            dockPanel3_Container = new DevExpress.XtraBars.Docking.ControlContainer();
            dockPanelParterList = new DevExpress.XtraBars.Docking.DockPanel();
            dockPanel2_Container = new DevExpress.XtraBars.Docking.ControlContainer();
            ((ISupportInitialize)gridControl1).BeginInit();
            ((ISupportInitialize)setSchemeParterRecordBindingSource).BeginInit();
            ((ISupportInitialize)gridView1).BeginInit();
            ((ISupportInitialize)repositoryItemButtonEdit1).BeginInit();
            ((ISupportInitialize)ribbon).BeginInit();
            sidePanel3dModel.SuspendLayout();
            ((ISupportInitialize)flyoutPanel1).BeginInit();
            flyoutPanel1.SuspendLayout();
            ((ISupportInitialize)flyoutPanelControl1).BeginInit();
            flyoutPanelControl1.SuspendLayout();
            sidePanelModelDetail.SuspendLayout();
            ((ISupportInitialize)tabPane1).BeginInit();
            tabPane1.SuspendLayout();
            tabPagePump.SuspendLayout();
            tabPageValve.SuspendLayout();
            tabPagePipe.SuspendLayout();
            ((ISupportInitialize)gridControl2).BeginInit();
            ((ISupportInitialize)setSchemeParterRecordItemBindingSource).BeginInit();
            ((ISupportInitialize)gridView2).BeginInit();
            ((ISupportInitialize)dockManager1).BeginInit();
            dockPanel5.SuspendLayout();
            dockPanelChangeRecord.SuspendLayout();
            dockPanel1_Container.SuspendLayout();
            ((ISupportInitialize)gridControl1).BeginInit();
            ((ISupportInitialize)gridView1).BeginInit();
            ((ISupportInitialize)setSchemeParterRecordBindingSource).BeginInit();
            ((ISupportInitialize)gridView2).BeginInit();
            dockPanelChangeRecordItem.SuspendLayout();
            dockPanel3_Container.SuspendLayout();
            dockPanelParterList.SuspendLayout();
            dockPanel2_Container.SuspendLayout();
            SuspendLayout();
            //
            // ribbon
            //
            ribbon.ExpandCollapseItem.Id = 0;
            ribbon.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic;
            ribbon.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbon.ExpandCollapseItem, barCek });
            ribbon.Location = new Point(0, 0);
            ribbon.MaxItemId = 7;
            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(1569, 85);
            ribbon.Toolbar.ShowCustomizeItem = false;
            //
            // barCek
            //
            barCek.Caption = "操作面板";
            barCek.Id = 5;
            barCek.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barCek.ImageOptions.SvgImage");
            barCek.Name = "barCek";
            barCek.CheckedChanged += barCek_CheckedChanged;
            //
            // ribbonPage1
            //
            ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1 });
            ribbonPage1.Name = "ribbonPage1";
            ribbonPage1.Text = "ribbonPage1";
            //
            // ribbonPageGroup1
            //
            ribbonPageGroup1.ItemLinks.Add(barCek);
            ribbonPageGroup1.Name = "ribbonPageGroup1";
            ribbonPageGroup1.Text = "ribbonPageGroup1";
            //
            // sidePanel3dModel
            //
            sidePanel3dModel.Controls.Add(flyoutPanel1);
            sidePanel3dModel.Dock = DockStyle.Fill;
            sidePanel3dModel.Location = new Point(0, 85);
            sidePanel3dModel.Name = "sidePanel3dModel";
            sidePanel3dModel.Size = new Size(1207, 1019);
            sidePanel3dModel.TabIndex = 2;
            sidePanel3dModel.Text = "sidePanel2";
            //
            // flyoutPanel1
            //
            flyoutPanel1.Controls.Add(flyoutPanelControl1);
            flyoutPanel1.Location = new Point(12, 496);
            flyoutPanel1.Name = "flyoutPanel1";
            flyoutPanel1.Options.AnchorType = DevExpress.Utils.Win.PopupToolWindowAnchor.Bottom;
            flyoutPanel1.Options.AnimationType = DevExpress.Utils.Win.PopupToolWindowAnimation.Fade;
            flyoutPanel1.OwnerControl = sidePanel3dModel;
            flyoutPanel1.ParentForm = this;
            flyoutPanel1.Size = new Size(981, 422);
            flyoutPanel1.TabIndex = 0;
            //
            // flyoutPanelControl1
            //
            flyoutPanelControl1.Controls.Add(sidePanelModelDetail);
            flyoutPanelControl1.Dock = DockStyle.Fill;
            flyoutPanelControl1.FlyoutPanel = flyoutPanel1;
            flyoutPanelControl1.Location = new Point(0, 0);
            flyoutPanelControl1.Name = "flyoutPanelControl1";
            flyoutPanelControl1.Size = new Size(981, 422);
            flyoutPanelControl1.TabIndex = 0;
            //
            // sidePanelModelDetail
            //
            sidePanelModelDetail.Controls.Add(tabPane1);
            sidePanelModelDetail.Dock = DockStyle.Fill;
            sidePanelModelDetail.Location = new Point(2, 2);
            sidePanelModelDetail.Name = "sidePanelModelDetail";
            sidePanelModelDetail.Size = new Size(977, 418);
            sidePanelModelDetail.TabIndex = 0;
            sidePanelModelDetail.Text = "sidePanel1";
            //
            // tabPane1
            //
            tabPane1.Controls.Add(tabPagePump);
            tabPane1.Controls.Add(tabPageValve);
            tabPane1.Controls.Add(tabPagePipe);
            tabPane1.Dock = DockStyle.Fill;
            tabPane1.Location = new Point(0, 0);
            tabPane1.Name = "tabPane1";
            tabPane1.Pages.AddRange(new DevExpress.XtraBars.Navigation.NavigationPageBase[] { tabPagePump, tabPageValve, tabPagePipe });
            tabPane1.RegularSize = new Size(977, 418);
            tabPane1.SelectedPage = tabPagePump;
            tabPane1.Size = new Size(977, 418);
            tabPane1.TabIndex = 0;
            tabPane1.Text = "tabPane1";
            //
            // tabPagePump
            //
            tabPagePump.Caption = "æ°´æ³µ";
            tabPagePump.Controls.Add(setSchemePumpListCtrl1);
            tabPagePump.Name = "tabPagePump";
            tabPagePump.Size = new Size(977, 369);
            //
            // setSchemePumpListCtrl1
            //
            setSchemePumpListCtrl1.Dock = DockStyle.Fill;
            setSchemePumpListCtrl1.Location = new Point(0, 0);
            setSchemePumpListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setSchemePumpListCtrl1.Name = "setSchemePumpListCtrl1";
            setSchemePumpListCtrl1.Size = new Size(977, 369);
            setSchemePumpListCtrl1.TabIndex = 0;
            //
            // tabPageValve
            //
            tabPageValve.Caption = "阀门";
            tabPageValve.Controls.Add(setSchemeValveListCtrl1);
            tabPageValve.Name = "tabPageValve";
            tabPageValve.Size = new Size(977, 369);
            //
            // setSchemeValveListCtrl1
            //
            setSchemeValveListCtrl1.Dock = DockStyle.Fill;
            setSchemeValveListCtrl1.Location = new Point(0, 0);
            setSchemeValveListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setSchemeValveListCtrl1.Name = "setSchemeValveListCtrl1";
            setSchemeValveListCtrl1.Size = new Size(977, 369);
            setSchemeValveListCtrl1.TabIndex = 2;
            //
            // tabPagePipe
            //
            tabPagePipe.Caption = "管路";
            tabPagePipe.Controls.Add(setSchemePipeListCtrl1);
            tabPagePipe.Name = "tabPagePipe";
            tabPagePipe.Size = new Size(977, 369);
            //
            // setSchemePipeListCtrl1
            //
            setSchemePipeListCtrl1.Dock = DockStyle.Fill;
            setSchemePipeListCtrl1.Location = new Point(0, 0);
            setSchemePipeListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setSchemePipeListCtrl1.Name = "setSchemePipeListCtrl1";
            setSchemePipeListCtrl1.Size = new Size(977, 369);
            setSchemePipeListCtrl1.TabIndex = 1;
            //
            // panelContainer1
            //
            panelContainer1.Dock = DevExpress.XtraBars.Docking.DockingStyle.Fill;
            panelContainer1.DockedAsTabbedDocument = true;
            panelContainer1.ID = new Guid("69c11a8a-862c-4240-930a-ff3d90593b2b");
            panelContainer1.Location = new Point(0, 0);
            panelContainer1.Name = "panelContainer1";
            panelContainer1.OriginalSize = new Size(200, 200);
            panelContainer1.Size = new Size(1526, 527);
            panelContainer1.TabsPosition = DevExpress.XtraBars.Docking.TabsPosition.Top;
            panelContainer1.Text = "panelContainer1";
            //
            // dockManager1
            //
            dockManager1.DockingOptions.AllowDockToCenter = DevExpress.Utils.DefaultBoolean.False;
            dockManager1.DockingOptions.ShowAutoHideButton = false;
            dockManager1.DockingOptions.ShowCloseButton = false;
            dockManager1.DockingOptions.ShowMaximizeButton = false;
            dockManager1.DockingOptions.ShowMinimizeButton = false;
            dockManager1.Form = this;
            dockManager1.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { dockPanelChangeRecord });
            dockManager1.Style = DevExpress.XtraBars.Docking2010.Views.DockingViewStyle.Light;
            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" });
            //
            // dockPanelChangeRecord
            //
            dockPanelChangeRecord.Controls.Add(dockPanel1_Container);
            dockPanelChangeRecord.Dock = DevExpress.XtraBars.Docking.DockingStyle.Right;
            dockPanelChangeRecord.ID = new Guid("db2d9112-867d-44f8-9169-a120583942ad");
            dockPanelChangeRecord.Location = new Point(1207, 85);
            dockPanelChangeRecord.Name = "dockPanelChangeRecord";
            dockPanelChangeRecord.OriginalSize = new Size(362, 200);
            dockPanelChangeRecord.Size = new Size(362, 1019);
            dockPanelChangeRecord.Text = "变更记录";
            //
            // dockPanel1_Container
            //
            dockPanel1_Container.Controls.Add(gridControl1);
            dockPanel1_Container.Location = new Point(1, 34);
            dockPanel1_Container.Name = "dockPanel1_Container";
            dockPanel1_Container.Size = new Size(361, 985);
            dockPanel1_Container.TabIndex = 0;
            // 
            // gridControl1
            // 
            gridControl1.DataSource = setSchemeParterRecordBindingSource;
            gridControl1.Dock = DockStyle.Fill;
            gridLevelNode1.LevelTemplate = gridView2;
            gridLevelNode1.RelationName = "Items";
            gridControl1.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] { gridLevelNode1 });
            gridControl1.Location = new Point(0, 0);
            gridControl1.MainView = gridView1;
            gridControl1.MenuManager = ribbon;
            gridControl1.Name = "gridControl1";
            gridControl1.Size = new Size(361, 985);
            gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemButtonEdit1 });
            gridControl1.Size = new Size(369, 431);
            gridControl1.TabIndex = 0;
            gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1, gridView2 });
            //
            // gridView1
            //
            gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colBeforeDbId, colAfterDbId, colBeforeCurveId, colAfterCurveId });
            gridView1.GridControl = gridControl1;
            gridView1.Name = "gridView1";
            gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 });
            // 
            // setSchemeParterRecordBindingSource
            // 
            setSchemeParterRecordBindingSource.DataSource = typeof(SetSchemeParterRecord);
            //
            // gridView1
            //
            gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colBeforeDbId, colAfterDbId, colBeforeCurveId, colAfterCurveId, colDelete });
            gridView1.GridControl = gridControl1;
            gridView1.Name = "gridView1";
            gridView1.RowCellClick += gridView1_RowCellClick;
            gridView1.FocusedRowChanged += gridView1_FocusedRowChanged;
            // 
            // colCode
            // 
@@ -353,15 +170,186 @@
            colAfterCurveId.Name = "colAfterCurveId";
            colAfterCurveId.Width = 112;
            // 
            // colDelete
            //
            colDelete.Caption = "删除";
            colDelete.ColumnEdit = repositoryItemButtonEdit1;
            colDelete.MaxWidth = 60;
            colDelete.MinWidth = 60;
            colDelete.Name = "colDelete";
            colDelete.Visible = true;
            colDelete.VisibleIndex = 2;
            colDelete.Width = 60;
            //
            // repositoryItemButtonEdit1
            //
            repositoryItemButtonEdit1.AutoHeight = false;
            editorButtonImageOptions1.EnableTransparency = false;
            editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage");
            editorButtonImageOptions1.SvgImageSize = new Size(20, 20);
            repositoryItemButtonEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) });
            repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1";
            repositoryItemButtonEdit1.TextEditStyle = TextEditStyles.HideTextEditor;
            //
            // ribbon
            //
            ribbon.ExpandCollapseItem.Id = 0;
            ribbon.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic;
            ribbon.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbon.ExpandCollapseItem, barButtonItem1, barButtonItem2, barButtonItem3 });
            ribbon.Location = new Point(0, 0);
            ribbon.MaxItemId = 10;
            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.MacOffice;
            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(1569, 174);
            ribbon.Toolbar.ShowCustomizeItem = false;
            //
            // barButtonItem1
            //
            barButtonItem1.Caption = "barButtonItem1";
            barButtonItem1.Id = 7;
            barButtonItem1.Name = "barButtonItem1";
            //
            // barButtonItem2
            //
            barButtonItem2.Caption = "barButtonItem2";
            barButtonItem2.Id = 8;
            barButtonItem2.Name = "barButtonItem2";
            //
            // barButtonItem3
            //
            barButtonItem3.Caption = "barButtonItem3";
            barButtonItem3.Id = 9;
            barButtonItem3.Name = "barButtonItem3";
            //
            // ribbonPage1
            //
            ribbonPage1.Name = "ribbonPage1";
            ribbonPage1.Text = "ribbonPage1";
            //
            // sidePanel3dModel
            //
            sidePanel3dModel.Dock = DockStyle.Fill;
            sidePanel3dModel.Location = new Point(0, 174);
            sidePanel3dModel.Name = "sidePanel3dModel";
            sidePanel3dModel.Size = new Size(1199, 583);
            sidePanel3dModel.TabIndex = 2;
            sidePanel3dModel.Text = "sidePanel2";
            //
            // tabPane1
            //
            tabPane1.Controls.Add(tabPagePump);
            tabPane1.Controls.Add(tabPageValve);
            tabPane1.Controls.Add(tabPagePipe);
            tabPane1.Dock = DockStyle.Fill;
            tabPane1.Location = new Point(0, 0);
            tabPane1.Name = "tabPane1";
            tabPane1.Pages.AddRange(new DevExpress.XtraBars.Navigation.NavigationPageBase[] { tabPagePump, tabPageValve, tabPagePipe });
            tabPane1.RegularSize = new Size(1199, 312);
            tabPane1.SelectedPage = tabPagePump;
            tabPane1.Size = new Size(1199, 312);
            tabPane1.TabIndex = 0;
            tabPane1.Text = "tabPane1";
            //
            // tabPagePump
            //
            tabPagePump.Caption = "æ°´æ³µ";
            tabPagePump.Controls.Add(setSchemePumpListCtrl1);
            tabPagePump.Name = "tabPagePump";
            tabPagePump.Size = new Size(1199, 263);
            //
            // setSchemePumpListCtrl1
            //
            setSchemePumpListCtrl1.Dock = DockStyle.Fill;
            setSchemePumpListCtrl1.Location = new Point(0, 0);
            setSchemePumpListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setSchemePumpListCtrl1.Name = "setSchemePumpListCtrl1";
            setSchemePumpListCtrl1.Size = new Size(1199, 263);
            setSchemePumpListCtrl1.TabIndex = 0;
            //
            // tabPageValve
            //
            tabPageValve.Caption = "阀门";
            tabPageValve.Controls.Add(setSchemeValveListCtrl1);
            tabPageValve.Name = "tabPageValve";
            tabPageValve.Size = new Size(977, 384);
            //
            // setSchemeValveListCtrl1
            //
            setSchemeValveListCtrl1.Dock = DockStyle.Fill;
            setSchemeValveListCtrl1.Location = new Point(0, 0);
            setSchemeValveListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setSchemeValveListCtrl1.Name = "setSchemeValveListCtrl1";
            setSchemeValveListCtrl1.Size = new Size(977, 384);
            setSchemeValveListCtrl1.TabIndex = 2;
            //
            // tabPagePipe
            //
            tabPagePipe.Caption = "管路";
            tabPagePipe.Controls.Add(setSchemePipeListCtrl1);
            tabPagePipe.Name = "tabPagePipe";
            tabPagePipe.Size = new Size(977, 384);
            //
            // setSchemePipeListCtrl1
            //
            setSchemePipeListCtrl1.Dock = DockStyle.Fill;
            setSchemePipeListCtrl1.Location = new Point(0, 0);
            setSchemePipeListCtrl1.Margin = new Padding(4, 5, 4, 5);
            setSchemePipeListCtrl1.Name = "setSchemePipeListCtrl1";
            setSchemePipeListCtrl1.Size = new Size(977, 384);
            setSchemePipeListCtrl1.TabIndex = 1;
            //
            // panelContainer1
            //
            panelContainer1.Dock = DevExpress.XtraBars.Docking.DockingStyle.Fill;
            panelContainer1.DockedAsTabbedDocument = true;
            panelContainer1.ID = new Guid("69c11a8a-862c-4240-930a-ff3d90593b2b");
            panelContainer1.Location = new Point(0, 0);
            panelContainer1.Name = "panelContainer1";
            panelContainer1.OriginalSize = new Size(200, 200);
            panelContainer1.Size = new Size(1526, 527);
            panelContainer1.TabsPosition = DevExpress.XtraBars.Docking.TabsPosition.Top;
            panelContainer1.Text = "panelContainer1";
            //
            // gridControl2
            //
            gridControl2.DataSource = setSchemeParterRecordItemBindingSource;
            gridControl2.Dock = DockStyle.Fill;
            gridControl2.Location = new Point(0, 0);
            gridControl2.MainView = gridView2;
            gridControl2.MenuManager = ribbon;
            gridControl2.Name = "gridControl2";
            gridControl2.Size = new Size(369, 430);
            gridControl2.TabIndex = 0;
            gridControl2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView2 });
            //
            // setSchemeParterRecordItemBindingSource
            //
            setSchemeParterRecordItemBindingSource.DataSource = typeof(SetSchemeParterRecordItem);
            //
            // gridView2
            // 
            gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName1, colRawValue, colCurrentValue });
            gridView2.GridControl = gridControl1;
            gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName1, colAfterValue, colBeforeValue });
            gridView2.GridControl = gridControl2;
            gridView2.Name = "gridView2";
            // 
            // colName1
            // 
            colName1.Caption = "属性";
            colName1.FieldName = "Name";
            colName1.MinWidth = 30;
            colName1.Name = "colName1";
@@ -369,25 +357,105 @@
            colName1.VisibleIndex = 0;
            colName1.Width = 112;
            // 
            // colRawValue
            // colAfterValue
            // 
            colRawValue.Caption = "变更前";
            colRawValue.FieldName = "RawValue";
            colRawValue.MinWidth = 30;
            colRawValue.Name = "colRawValue";
            colRawValue.Visible = true;
            colRawValue.VisibleIndex = 1;
            colRawValue.Width = 112;
            colAfterValue.Caption = "变更前";
            colAfterValue.FieldName = "AfterValue";
            colAfterValue.MinWidth = 30;
            colAfterValue.Name = "colAfterValue";
            colAfterValue.Visible = true;
            colAfterValue.VisibleIndex = 1;
            colAfterValue.Width = 112;
            // 
            // colCurrentValue
            // colBeforeValue
            // 
            colCurrentValue.Caption = "变更后";
            colCurrentValue.FieldName = "CurrentValue";
            colCurrentValue.MinWidth = 30;
            colCurrentValue.Name = "colCurrentValue";
            colCurrentValue.Visible = true;
            colCurrentValue.VisibleIndex = 2;
            colCurrentValue.Width = 112;
            colBeforeValue.Caption = "变更后";
            colBeforeValue.FieldName = "BeforeValue";
            colBeforeValue.MinWidth = 30;
            colBeforeValue.Name = "colBeforeValue";
            colBeforeValue.Visible = true;
            colBeforeValue.VisibleIndex = 2;
            colBeforeValue.Width = 112;
            //
            // dockManager1
            //
            dockManager1.DockingOptions.ShowAutoHideButton = false;
            dockManager1.DockingOptions.ShowCloseButton = false;
            dockManager1.DockingOptions.ShowMaximizeButton = false;
            dockManager1.DockingOptions.ShowMinimizeButton = false;
            dockManager1.Form = this;
            dockManager1.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { dockPanel5, dockPanelParterList });
            dockManager1.Style = DevExpress.XtraBars.Docking2010.Views.DockingViewStyle.Light;
            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" });
            //
            // dockPanel5
            //
            dockPanel5.Controls.Add(dockPanelChangeRecord);
            dockPanel5.Controls.Add(dockPanelChangeRecordItem);
            dockPanel5.Dock = DevExpress.XtraBars.Docking.DockingStyle.Right;
            dockPanel5.ID = new Guid("4f9140be-dc44-4cc6-9924-d22c117f4a97");
            dockPanel5.Location = new Point(1199, 174);
            dockPanel5.Name = "dockPanel5";
            dockPanel5.OriginalSize = new Size(370, 200);
            dockPanel5.Size = new Size(370, 930);
            dockPanel5.Text = "panelContainer1";
            //
            // dockPanelChangeRecord
            //
            dockPanelChangeRecord.Controls.Add(dockPanel1_Container);
            dockPanelChangeRecord.Dock = DevExpress.XtraBars.Docking.DockingStyle.Fill;
            dockPanelChangeRecord.ID = new Guid("2c97b548-e9c5-4899-b8e1-203e6decf6f7");
            dockPanelChangeRecord.Location = new Point(0, 0);
            dockPanelChangeRecord.Name = "dockPanelChangeRecord";
            dockPanelChangeRecord.OriginalSize = new Size(370, 245);
            dockPanelChangeRecord.Size = new Size(370, 465);
            dockPanelChangeRecord.Text = "变更记录列表";
            //
            // dockPanel1_Container
            //
            dockPanel1_Container.Controls.Add(gridControl1);
            dockPanel1_Container.Location = new Point(1, 34);
            dockPanel1_Container.Name = "dockPanel1_Container";
            dockPanel1_Container.Size = new Size(369, 431);
            dockPanel1_Container.TabIndex = 0;
            //
            // dockPanelChangeRecordItem
            //
            dockPanelChangeRecordItem.Controls.Add(dockPanel3_Container);
            dockPanelChangeRecordItem.Dock = DevExpress.XtraBars.Docking.DockingStyle.Fill;
            dockPanelChangeRecordItem.ID = new Guid("39552842-60b6-4e4d-b215-438810b7a737");
            dockPanelChangeRecordItem.Location = new Point(0, 465);
            dockPanelChangeRecordItem.Name = "dockPanelChangeRecordItem";
            dockPanelChangeRecordItem.OriginalSize = new Size(370, 245);
            dockPanelChangeRecordItem.Size = new Size(370, 465);
            dockPanelChangeRecordItem.Text = "变更记录详细";
            //
            // dockPanel3_Container
            //
            dockPanel3_Container.Controls.Add(gridControl2);
            dockPanel3_Container.Location = new Point(1, 35);
            dockPanel3_Container.Name = "dockPanel3_Container";
            dockPanel3_Container.Size = new Size(369, 430);
            dockPanel3_Container.TabIndex = 0;
            //
            // dockPanelParterList
            //
            dockPanelParterList.Controls.Add(dockPanel2_Container);
            dockPanelParterList.Dock = DevExpress.XtraBars.Docking.DockingStyle.Bottom;
            dockPanelParterList.ID = new Guid("7be297a3-864b-4041-9aee-de9c1d1f1b52");
            dockPanelParterList.Location = new Point(0, 757);
            dockPanelParterList.Name = "dockPanelParterList";
            dockPanelParterList.OriginalSize = new Size(200, 347);
            dockPanelParterList.Size = new Size(1199, 347);
            dockPanelParterList.Text = "构建列表";
            //
            // dockPanel2_Container
            //
            dockPanel2_Container.Controls.Add(tabPane1);
            dockPanel2_Container.Location = new Point(0, 35);
            dockPanel2_Container.Name = "dockPanel2_Container";
            dockPanel2_Container.Size = new Size(1199, 312);
            dockPanel2_Container.TabIndex = 0;
            // 
            // AddXhsSchemeDlg
            // 
@@ -395,31 +463,34 @@
            AutoScaleMode = AutoScaleMode.Font;
            ClientSize = new Size(1569, 1104);
            Controls.Add(sidePanel3dModel);
            Controls.Add(dockPanelChangeRecord);
            Controls.Add(dockPanelParterList);
            Controls.Add(dockPanel5);
            Controls.Add(ribbon);
            Name = "AddXhsSchemeDlg";
            Ribbon = ribbon;
            StartPosition = FormStartPosition.CenterScreen;
            Text = "创建方案";
            ((ISupportInitialize)gridControl1).EndInit();
            ((ISupportInitialize)setSchemeParterRecordBindingSource).EndInit();
            ((ISupportInitialize)gridView1).EndInit();
            ((ISupportInitialize)repositoryItemButtonEdit1).EndInit();
            ((ISupportInitialize)ribbon).EndInit();
            sidePanel3dModel.ResumeLayout(false);
            ((ISupportInitialize)flyoutPanel1).EndInit();
            flyoutPanel1.ResumeLayout(false);
            ((ISupportInitialize)flyoutPanelControl1).EndInit();
            flyoutPanelControl1.ResumeLayout(false);
            sidePanelModelDetail.ResumeLayout(false);
            ((ISupportInitialize)tabPane1).EndInit();
            tabPane1.ResumeLayout(false);
            tabPagePump.ResumeLayout(false);
            tabPageValve.ResumeLayout(false);
            tabPagePipe.ResumeLayout(false);
            ((ISupportInitialize)gridControl2).EndInit();
            ((ISupportInitialize)setSchemeParterRecordItemBindingSource).EndInit();
            ((ISupportInitialize)gridView2).EndInit();
            ((ISupportInitialize)dockManager1).EndInit();
            dockPanel5.ResumeLayout(false);
            dockPanelChangeRecord.ResumeLayout(false);
            dockPanel1_Container.ResumeLayout(false);
            ((ISupportInitialize)gridControl1).EndInit();
            ((ISupportInitialize)gridView1).EndInit();
            ((ISupportInitialize)setSchemeParterRecordBindingSource).EndInit();
            ((ISupportInitialize)gridView2).EndInit();
            dockPanelChangeRecordItem.ResumeLayout(false);
            dockPanel3_Container.ResumeLayout(false);
            dockPanelParterList.ResumeLayout(false);
            dockPanel2_Container.ResumeLayout(false);
            ResumeLayout(false);
            PerformLayout();
        }
@@ -428,13 +499,8 @@
        private DevExpress.XtraBars.Ribbon.RibbonControl ribbon;
        private SidePanel sidePanel3dModel;
        private DevExpress.XtraBars.BarCheckItem barCek;
        private DevExpress.XtraBars.Ribbon.RibbonPage ribbonPage1;
        private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup1;
        private DevExpress.XtraBars.Docking.DockPanel panelContainer1;
        private DevExpress.Utils.FlyoutPanel flyoutPanel1;
        private DevExpress.Utils.FlyoutPanelControl flyoutPanelControl1;
        private SidePanel sidePanelModelDetail;
        private DevExpress.XtraBars.Navigation.TabPane tabPane1;
        private DevExpress.XtraBars.Navigation.TabNavigationPage tabPagePump;
        private DevExpress.XtraBars.Navigation.TabNavigationPage tabPageValve;
@@ -442,9 +508,6 @@
        private SetSchemePumpListCtrl setSchemePumpListCtrl1;
        private SetSchemePipeListCtrl setSchemePipeListCtrl1;
        private SetSchemeValveListCtrl setSchemeValveListCtrl1;
        private DevExpress.XtraBars.Docking.DockManager dockManager1;
        private DevExpress.XtraBars.Docking.DockPanel dockPanelChangeRecord;
        private DevExpress.XtraBars.Docking.ControlContainer dockPanel1_Container;
        private DevExpress.XtraGrid.GridControl gridControl1;
        private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
        private BindingSource setSchemeParterRecordBindingSource;
@@ -454,9 +517,24 @@
        private DevExpress.XtraGrid.Columns.GridColumn colAfterDbId;
        private DevExpress.XtraGrid.Columns.GridColumn colBeforeCurveId;
        private DevExpress.XtraGrid.Columns.GridColumn colAfterCurveId;
        private DevExpress.XtraGrid.GridControl gridControl2;
        private DevExpress.XtraGrid.Views.Grid.GridView gridView2;
        private BindingSource setSchemeParterRecordItemBindingSource;
        private DevExpress.XtraGrid.Columns.GridColumn colName1;
        private DevExpress.XtraGrid.Columns.GridColumn colRawValue;
        private DevExpress.XtraGrid.Columns.GridColumn colCurrentValue;
        private DevExpress.XtraGrid.Columns.GridColumn colAfterValue;
        private DevExpress.XtraGrid.Columns.GridColumn colBeforeValue;
        private DevExpress.XtraBars.Docking.DockManager dockManager1;
        private DevExpress.XtraBars.Docking.DockPanel dockPanelParterList;
        private DevExpress.XtraBars.Docking.ControlContainer dockPanel2_Container;
        private DevExpress.XtraBars.Docking.DockPanel dockPanel5;
        private DevExpress.XtraBars.Docking.DockPanel dockPanelChangeRecord;
        private DevExpress.XtraBars.Docking.ControlContainer dockPanel1_Container;
        private DevExpress.XtraBars.Docking.DockPanel dockPanelChangeRecordItem;
        private DevExpress.XtraBars.Docking.ControlContainer dockPanel3_Container;
        private DevExpress.XtraGrid.Columns.GridColumn colDelete;
        private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1;
        private DevExpress.XtraBars.BarButtonItem barButtonItem1;
        private DevExpress.XtraBars.BarButtonItem barButtonItem2;
        private DevExpress.XtraBars.BarButtonItem barButtonItem3;
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/AddXhsSchemeDlg.cs
@@ -1,4 +1,4 @@
using DevExpress.XtraBars;
using Mapster;
namespace HStation.WinFrmUI
{
@@ -9,6 +9,13 @@
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.ribbon.SetFormStyle(); 
            this.gridView1.SetNormalView();
            this.gridView2.SetNormalView();
            this.gridView2.OptionsView.EnableAppearanceOddRow = false;   // ä½¿èƒ½ // å’Œå’Œä¸Šé¢ç»‘定 åŒæ—¶ä½¿ç”¨æœ‰æ•ˆ
            this.gridView2.OptionsView.EnableAppearanceEvenRow = false;
            this.gridView1.OptionsView.ShowIndicator = false;
            this.gridView2.OptionsView.ShowIndicator = false;
 
            foreach (var page in this.tabPane1.Pages)
            {
@@ -19,7 +26,6 @@
                    {
                        _selectedParter = parter;
                        await  _bimfaceCtrl?.ZoomAndSelectComponent(_selectedParter.Code);
                    };
                    ctrl.HydroRecordChangedEvent += (record) =>
                    { 
@@ -32,12 +38,15 @@
                    };
                }
            }
        }
        private HStation.Vmo.XhsProjectVmo _project = null;//项目
        private HStation.Vmo.XhsProjectSiteVmo _projectSite = null;//项目站
        private Yw.Model.HydroModelInfo _hydroInfo = null;//水力信息
        private Yw.Model.HydroModelInfo _hydroInfo_init = null;//初始 æ°´åŠ›ä¿¡æ¯
                                                         
        private Yw.Model.HydroParterInfo _selectedParter = null; //选择构件
        private List<SetSchemeParterRecord> _set_record_list = null;
@@ -58,26 +67,23 @@
            }
            _project = project;
            _projectSite = projectSite;
            _hydroInfo = hydroInfo;
            _hydroInfo_init = hydroInfo;
            _set_record_list = new List<SetSchemeParterRecord>();
            if (_projectSite == null)
            {
                _projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_project.ID);
            }
            if (_hydroInfo == null)
            if (_hydroInfo_init == null)
            {
                var hydroRelation = await BLLFactory<Yw.BLL.HydroModelRelation>.Instance
                    .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, _projectSite.ID, HStation.Xhs.Purpose.Simulation);
                _hydroInfo = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroRelation.ModelID);
                _hydroInfo_init = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroRelation.ModelID);
            }
            this.setSchemePumpListCtrl1.SetBindingData(_hydroInfo);
            this.setSchemeValveListCtrl1.SetBindingData(_hydroInfo);
            this.setSchemePipeListCtrl1.SetBindingData(_hydroInfo);
            this.setSchemeParterRecordBindingSource.DataSource = _set_record_list;
            this.setSchemeParterRecordBindingSource.ResetBindings(false);
            LoadData();
            ShowBimfaceCtrl();
        }
@@ -129,19 +135,66 @@
        #endregion
         
        private void barCek_CheckedChanged(object sender, ItemClickEventArgs e)
        {
            if (!this.flyoutPanel1.Visible)
        private void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
            {
                this.flyoutPanel1.ShowPopup();
            }
            else
            {
                this.flyoutPanel1.HidePopup();
            var row = this.gridView1.GetRow(e.FocusedRowHandle) as SetSchemeParterRecord;
            this.setSchemeParterRecordItemBindingSource.DataSource = row?.Items;
            this.setSchemeParterRecordItemBindingSource.ResetBindings(false);
            }
        private void gridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
        {
            if (e.Column == this.colDelete)
            {
                var row = this.gridView1.GetRow(e.RowHandle) as SetSchemeParterRecord;
                _set_record_list.Remove(row);
                this.setSchemeParterRecordBindingSource.ResetBindings(false);
                LoadData(_set_record_list);
        }
        }
        private void LoadData( List<SetSchemeParterRecord> set_record_list=null)
        {
            _hydroInfo = _hydroInfo_init.Adapt<Yw.Model.HydroModelInfo, Yw.Model.HydroModelInfo>();
            if (set_record_list != null && set_record_list.Any())
            {
                foreach (var item in set_record_list)
                {
                    switch (item.Catalog)
                    {
                        case Yw.Hydro.ParterCatalog.Pump:
                            {
                                var vm = item.MatchingModel as PumpMatchingViewModel;
                                var bol = AssetsMatchingParasHelper.Apply(_hydroInfo, vm);
                            }
                            break;
                        case Yw.Hydro.ParterCatalog.Valve:
                            {
                                var vm = item.MatchingModel as ValveMatchingViewModel;
                                var bol = AssetsMatchingParasHelper.Apply(_hydroInfo, vm);
                            }
                            break;
                        case Yw.Hydro.ParterCatalog.Pipe:
                            {
                                var vm = item.MatchingModel as PipeMatchingViewModel;
                                var bol = AssetsMatchingParasHelper.Apply(_hydroInfo, vm);
                            }
                            break;
                        default:
                            break;
                    }
                }
            }
            this.setSchemePumpListCtrl1.SetBindingData(_hydroInfo);
            this.setSchemeValveListCtrl1.SetBindingData(_hydroInfo);
            this.setSchemePipeListCtrl1.SetBindingData(_hydroInfo);
        }
         
    }
}
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/AddXhsSchemeDlg.resx
@@ -117,29 +117,35 @@
  <resheader name="writer">
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <metadata name="setSchemeParterRecordBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>213, 17</value>
  </metadata>
  <assembly alias="DevExpress.Data.v23.2" name="DevExpress.Data.v23.2, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
  <data name="barCek.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
  <data name="editorButtonImageOptions1.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
    <value>
        AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjIzLjIsIFZlcnNpb249MjMuMi40
        LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl
        dkV4cHJlc3MuVXRpbHMuU3ZnLlN2Z0ltYWdlAQAAAAREYXRhBwICAAAACQMAAAAPAwAAAGQCAAAC77u/
        dkV4cHJlc3MuVXRpbHMuU3ZnLlN2Z0ltYWdlAQAAAAREYXRhBwICAAAACQMAAAAPAwAAAD0DAAAC77u/
        PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz4NCjxzdmcgeD0iMHB4IiB5PSIwcHgi
        IHZpZXdCb3g9IjAgMCAzMiAzMiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv
        MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3Bh
        Y2U9InByZXNlcnZlIiBpZD0iTGF5ZXJfMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAg
        MzIgMzIiPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLkJsYWNre2ZpbGw6IzcyNzI3Mjt9Cgku
        UmVke2ZpbGw6I0QxMUMxQzt9CgkuWWVsbG93e2ZpbGw6I0ZGQjExNTt9CgkuR3JlZW57ZmlsbDojMDM5
        QzIzO30KPC9zdHlsZT4NCiAgPGcgaWQ9IlZpc2liaWxpdHkiPg0KICAgIDxjaXJjbGUgY3g9IjE2IiBj
        eT0iMTYiIHI9IjQiIGNsYXNzPSJCbGFjayIgLz4NCiAgICA8cGF0aCBkPSJNMTYsOEM4LDgsMiwxNiwy
        LDE2czYsOCwxNCw4czE0LTgsMTQtOFMyNCw4LDE2LDh6IE0xNiwyMmMtMy4zLDAtNi0yLjctNi02czIu
        Ny02LDYtNnM2LDIuNyw2LDYgICBTMTkuMywyMiwxNiwyMnoiIGNsYXNzPSJCbGFjayIgLz4NCiAgPC9n
        Pg0KPC9zdmc+Cw==
        MzIgMzIiPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLlJlZHtmaWxsOiNEMTFDMUM7fQoJLkJs
        YWNre2ZpbGw6IzcyNzI3Mjt9CgkuQmx1ZXtmaWxsOiMxMTc3RDc7fQoJLkdyZWVue2ZpbGw6IzAzOUMy
        Mzt9CgkuWWVsbG93e2ZpbGw6I0ZGQjExNTt9CgkuV2hpdGV7ZmlsbDojRkZGRkZGO30KCS5zdDB7b3Bh
        Y2l0eTowLjU7fQoJLnN0MXtvcGFjaXR5OjAuNzU7fQo8L3N0eWxlPg0KICA8ZyBpZD0iRGVsZXRlIj4N
        CiAgICA8Zz4NCiAgICAgIDxwYXRoIGQ9Ik0xOC44LDE2bDYuOS02LjljMC40LTAuNCwwLjQtMSwwLTEu
        NGwtMS40LTEuNGMtMC40LTAuNC0xLTAuNC0xLjQsMEwxNiwxMy4yTDkuMSw2LjNjLTAuNC0wLjQtMS0w
        LjQtMS40LDAgICAgTDYuMyw3LjdjLTAuNCwwLjQtMC40LDEsMCwxLjRsNi45LDYuOWwtNi45LDYuOWMt
        MC40LDAuNC0wLjQsMSwwLDEuNGwxLjQsMS40YzAuNCwwLjQsMSwwLjQsMS40LDBsNi45LTYuOWw2Ljks
        Ni45ICAgIGMwLjQsMC40LDEsMC40LDEuNCwwbDEuNC0xLjRjMC40LTAuNCwwLjQtMSwwLTEuNEwxOC44
        LDE2eiIgY2xhc3M9IlJlZCIgLz4NCiAgICA8L2c+DQogIDwvZz4NCjwvc3ZnPgs=
</value>
  </data>
  <metadata name="setSchemeParterRecordBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>213, 17</value>
  <metadata name="setSchemeParterRecordItemBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>608, 17</value>
  </metadata>
  <metadata name="dockManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
    <value>-9, 19</value>
  </metadata>
</root>
WinFrmUI/HStation.WinFrmUI.Xhs.Core/Properties/DataSources/HStation.WinFrmUI.SetSchemeParterRecordItem.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="SetSchemeParterRecordItem" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  <TypeInfo>HStation.WinFrmUI.SetSchemeParterRecordItem, HStation.WinFrmUI.Xhs.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>