From 04f9d03e29ce75b4aa0d108a1c2987fe2aaf61f6 Mon Sep 17 00:00:00 2001
From: tx <123456>
Date: 星期二, 15 四月 2025 12:44:41 +0800
Subject: [PATCH] 添加Open

---
 WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs |  667 ++++++++++++++++++++++++-------------------------------
 1 files changed, 293 insertions(+), 374 deletions(-)

diff --git a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs
index 3103fab..c034a94 100644
--- a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs
+++ b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/MainViewPage_StepInfo.cs
@@ -1,42 +1,311 @@
-锘� 
-using System;
+锘縰sing System;
 using System.Collections.Generic;
 using System.Windows.Forms;
 using System.IO;
 using System.Text;
 using System.Linq;
-using DPumpHydr.WinFrmUI.Volute.ViewModel;
 
 namespace DPumpHydr.WinFrmUI.Volute
 {
-    public partial class MainViewPage  
+    public partial class MainViewPage
     {
-        //鍩虹淇℃伅
-        private readonly string Group_Name_Base_Info = "BaseInfo";
-        private readonly int Group_ID_Base_Info = -1;//缁処D
-        private long Step_ID_Hdr_Base_Info = 12;
-        private long Step_ID_Geom_Base_Info = 13;
+        //姝ラ鎺т欢
+        StepTreeDockPanel _stepTreeDockPanel = null;
 
 
-        //鏂潰璁捐(1-8)
-        private readonly string Group_Name_Section18 = "Section18";
-        private readonly int Group_ID_Section18 = -2;
-        private long Step_ID_Section18_Base = 20;//鍩烘湰淇℃伅
-        private long Step_ID_Section18_Dim = 21;//璇︾粏椤甸潰 
+        /// <summary>
+        /// 涓嬩竴姝ユ牳蹇�
+        /// </summary>
+        /// <returns></returns>
+        private bool GoNextStepCore()
+        {
+            var current_step_id = this._stepTreeDockPanel.CurrentStepID;
+
+            //
+            var next_step_id = this._stepTreeDockPanel.NextStepID;
+            if (current_step_id == this._stepTreeDockPanel.Step_ID_Section18_Full)
+            {
+                next_step_id = this._stepTreeDockPanel.Step_ID_Outflow_Paras;
+            }
 
 
-        //鍑烘按璁捐
-        private readonly string Group_Name_Outflow = "Outflow";
-        private readonly int Group_ID_Outflow  = -3;
-        private long Step_ID_Outflow_Style = 31;
-        private long Step_ID_Outflow_Dim = 32;
+            ChangeStep(current_step_id, next_step_id);
+
+            return true;
+        }
+
+        /// <summary>
+        /// 涓婁竴姝ユ牳蹇�
+        /// </summary>
+        /// <returns></returns>
+        private bool GoPrevStepCore()
+        {
+            var current_step_id = this._stepTreeDockPanel.CurrentStepID;
+
+            var prev_step_id = this._stepTreeDockPanel.PrevStepID;
+            if (current_step_id == this._stepTreeDockPanel.Step_ID_Outflow_Paras)
+            {
+                prev_step_id = this._stepTreeDockPanel.Step_ID_Section18_Full;
+            }
+
+            if (prev_step_id == 0)
+                return false;
 
 
-        //
-        private List<DPumpHydr.WinFrmUI.Volute.TreeStepNode> _allStepNodes = null;
-         
-        private long _currentStepID = 0;
- 
+            this.ChangeStep(current_step_id, prev_step_id);
+
+            return true;
+        }
+
+        /// <summary>
+        /// 鍒囨崲姝ラ
+        /// </summary>
+        /// <param name="current_step_id"></param>
+        /// <param name="next_step_id"></param>
+        private bool ChangeStep(long current_step_id, long next_step_id)
+        {
+            RbtnChk鎴潰18.Visible = false;
+            if (current_step_id == this._stepTreeDockPanel.Step_ID_Hdr_Base_Info)
+            {
+                if (!SaveParaStep1())
+                    return false;
+                //ParasInfoBaseCtrl paras_ctrl = GetParasCtrl(current_step_id);
+                //if (paras_ctrl != null && paras_ctrl.IsChangesParas())
+                //{
+                //    DialogResult result = MessageBox.Show("宸茬粡淇敼杩囩殑鏁版嵁闇�瑕佷繚瀛樺悧锛�", "鎻愮ず", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+                //    if (result == DialogResult.OK)
+                //    {
+                //        if (SaveStepParas(current_step_id) == false)
+                //        {
+                //            return false;
+                //        }
+                //    }
+                //}
+            }
+            else if (current_step_id == this._stepTreeDockPanel.Step_ID_Section18_Full)
+            {
+                if (!SaveParaStep2())
+                    return false;
+            }
+            else if (current_step_id == this._stepTreeDockPanel.Step_ID_Outflow_Paras)
+            {
+          
+                if (!SaveParaStep3())
+                    return false;
+            }
+            else if (current_step_id == this._stepTreeDockPanel.Step_ID_Thickness)
+            {
+                if (!SaveParaStep4())
+                    return false;
+                if (next_step_id < current_step_id && next_step_id != 0)
+                {//鍒犻櫎鍔犲帤浣�
+                    this._occDesign3dCtrl.RemoveThicknessBody( );
+
+                    this._occDesign3dCtrl.Invalidate(true);
+                }
+            }
+
+
+            this.BuildParasCtrl(current_step_id, next_step_id);
+
+            //
+            if(next_step_id > 0)
+            this._stepTreeDockPanel.SetFocusedNode(next_step_id);
+
+
+            if (next_step_id != this._stepTreeDockPanel.Step_ID_Thickness)
+                RbtnChk鏍囨敞.Visible = false;
+
+            Rbtn鏁版嵁瀵煎嚭STP.Visible = false;
+            Rbtn鏁版嵁瀵煎嚭IGS.Visible = false;
+
+
+            if (next_step_id == this._stepTreeDockPanel.Step_ID_Hdr_Base_Info)
+            {
+                this._sectAreaDockPanel.Visible = false;
+
+                this.RBtn鍚庨��.Enabled = false;
+                this.Rbtn鍓嶈繘.Enabled = true;
+
+
+                this.Rbtn涓婁竴姝�.Enabled = false;
+                this.Rbtn涓嬩竴姝�.Enabled = true;
+                this.Rbtn瀹屾垚.Enabled = false;
+
+                this._occDesign2dCtrl.HideAll();
+                this._occDesign3dCtrl.HideAll();
+            }
+            else if (next_step_id == this._stepTreeDockPanel.Step_ID_Outflow_Paras)
+            {
+                RbtnChk鎴潰18.Visible = true;
+                RbtnChk鏍囨敞.Visible = true;
+
+                this.RBtn鍚庨��.Enabled = true;
+                this.Rbtn鍓嶈繘.Enabled = true;
+                 
+                this.Rbtn涓婁竴姝�.Enabled = true;
+                this.Rbtn涓嬩竴姝�.Enabled = true;
+                this.Rbtn瀹屾垚.Enabled = false;
+            }
+            
+            else if (next_step_id == this._stepTreeDockPanel.Step_ID_Thickness)
+            {
+                RbtnChk鏍囨敞.Visible = true;
+                this.RBtn鍚庨��.Enabled = true;
+                this.Rbtn鍓嶈繘.Enabled = false;
+
+
+                this.Rbtn涓婁竴姝�.Enabled = true;
+                this.Rbtn涓嬩竴姝�.Enabled = false;
+                this.Rbtn瀹屾垚.Enabled = true;
+
+                this.Rbtn鏁版嵁瀵煎嚭STP.Visible = true;
+                this.Rbtn鏁版嵁瀵煎嚭IGS.Visible = true;
+            }
+            else if (current_step_id == this._stepTreeDockPanel.Step_ID_Thickness && next_step_id == 0)
+            {
+                this.RBtn鍚庨��.Enabled = true;
+                this.Rbtn鍓嶈繘.Enabled = false;
+
+
+                this.Rbtn涓婁竴姝�.Enabled = true;
+                this.Rbtn涓嬩竴姝�.Enabled = false;
+                this.Rbtn瀹屾垚.Enabled = true;
+
+                this.Rbtn鏁版嵁瀵煎嚭STP.Visible = true;
+                this.Rbtn鏁版嵁瀵煎嚭IGS.Visible = true;
+            } else
+            {
+                this.RBtn鍚庨��.Enabled = true;
+                this.Rbtn鍓嶈繘.Enabled = true;
+
+
+                this.Rbtn涓婁竴姝�.Enabled = true;
+                this.Rbtn涓嬩竴姝�.Enabled = true;
+                this.Rbtn瀹屾垚.Enabled = false;
+            }
+
+
+
+            return true;
+        }
+
+
+
+        /// <summary>
+        /// 璁剧疆鍙傛暟鎺т欢
+        /// </summary>
+        /// <param name="next_step_id"></param>
+        private void BuildParasCtrl(long current_step_id, long next_step_id)
+        {
+            #region 绗�1姝�
+            if (next_step_id == this._stepTreeDockPanel.Step_ID_Hdr_Base_Info)
+            {
+                EnterStep1(current_step_id);
+
+                return;
+            }
+            #endregion
+
+            #region  绗�2姝� 
+            if (next_step_id == this._stepTreeDockPanel.Step_ID_Section18_Full)
+            {
+                EnterStep2(current_step_id);
+
+                return;
+            }
+            #endregion
+
+            #region  绗�3姝� 1-8鏂潰
+            if (next_step_id > this._stepTreeDockPanel.Step_ID_Section18_Grp &&
+                next_step_id <= this._stepTreeDockPanel.Step_ID_Section18_Grp + 8)
+            {
+                if (_sectionBundleInfo == null)
+                    return;
+                if (_ctrlSectionShapeInfo18 == null)
+                {
+                    _ctrlSectionShapeInfo18 = new ctrlSectionShapeInfo18();
+                    _ctrlSectionShapeInfo18.Name = "ctrlSectionShapeInfo18";
+                    _ctrlSectionShapeInfo18.OnRefreshShape += RefreshSectShapeSingle18;
+                }
+                DockStepParaCtrl(_ctrlSectionShapeInfo18);
+                var sect_index = 9 + this._stepTreeDockPanel.Step_ID_Section18_Grp - next_step_id;
+                var shape_info = _sectionBundleInfo.ToSectionShapePara((int)sect_index);
+                RefreshSectShapeSingle18(shape_info);
+                _ctrlSectionShapeInfo18.SetBindingData(shape_info);
+                this._sectAreaDockPanel.RefreshControl();
+                this._sectAreaDockPanel.Visible = true;
+
+                this._occDesign2dCtrl.SetAllSectionCurveVisible(true);
+                this._occDesign3dCtrl.SetAllSectionCurveVisible(true);
+
+                return;
+            }
+
+            #endregion
+
+            #region  鍑烘按闈㈠弬鏁�
+            if (next_step_id == this._stepTreeDockPanel.Step_ID_Outflow_Paras)
+            {
+                EnterStep3(current_step_id);
+
+                return;
+            }
+            #endregion
+
+            #region 鍔犲帤
+            if (next_step_id == this._stepTreeDockPanel.Step_ID_Thickness)
+            {
+                if (_sectionBundleInfo == null)
+                    return;
+
+                EnterStep4(current_step_id);
+
+                return;
+            }
+            #endregion 
+        }
+
+
+
+        /// <summary>
+        /// 鑾峰彇褰撳墠姝ラ鐨勫弬鏁版帶鍒舵帶浠�
+        /// </summary>
+        /// <param name="step_id"></param>
+        private DPumpHydr.WinFrmUI.Volute.ParasInfoBaseCtrl GetParasCtrl(long step_id)
+        {
+            if (step_id == this._stepTreeDockPanel.Step_ID_Hdr_Base_Info)
+            {
+                return _ctrlHdrBaseInfo;
+            }
+            //绗簩姝� 
+            if (step_id == this._stepTreeDockPanel.Step_ID_Section18_Full)
+            {
+                return _ctrlSectionBundleInfo;
+            }
+            //1-8鏂潰杩涜涓嬩竴姝ョ偣鍑�
+            if (step_id >= this._stepTreeDockPanel.Step_ID_Section18_Grp &&
+                step_id >= this._stepTreeDockPanel.Step_ID_Section18_Grp + 8)
+            {
+                return _ctrlSectionShapeInfo18;
+            }
+
+            return null;
+        }
+
+
+
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="ctrl"></param>
+        private void DockStepParaCtrl(ParasInfoBaseCtrl ctrl)
+        {
+            this._parasDockPanel.Controls.Clear();
+            ctrl.Dock = DockStyle.Fill;
+            this._parasDockPanel.Controls.Add(ctrl);
+        }
+
         /// <summary>
         /// 涓嬩竴姝�
         /// </summary>
@@ -54,355 +323,5 @@
         {
             return GoPrevStepCore();
         }
-        ViewModel.HdrBaseInfo _hdrBaseInfo = null;
-        ViewModel.GeomBaseInfo _geomBaseInfo = null;
-        ViewModel.SectionBaseInfo _sectionBaseInfo = null;
-        /// <summary>
-        /// 涓嬩竴姝ユ牳蹇�
-        /// </summary>
-        /// <returns></returns>
-        private bool GoNextStepCore()
-        {
-            var next_step = (from x in _allStepNodes
-                             where x.ID > _currentStepID
-                             orderby x.ID
-                             select x).FirstOrDefault();
-            if (next_step == null)
-                return false;
-            if(_currentStepID == Step_ID_Hdr_Base_Info)
-            {
-                string error_info;
-                var hdrBaseInfo = _ctrlHdrBaseInfo.GetBindingData(out error_info);
-                if(hdrBaseInfo == null)
-                {
-                    MessageBox.Show(error_info);
-                    return false;
-                }
-                hdrBaseInfo.CalcNs();
-                _hdrBaseInfo = hdrBaseInfo;
-                if(_geomBaseInfo == null)
-                {
-                    _geomBaseInfo = new ViewModel.GeomBaseInfo();
-                }
-                _geomBaseInfo.Calc(hdrBaseInfo);
-            }
-            if (_currentStepID == Step_ID_Geom_Base_Info)
-            {
-                string error_info;
-                var geomBaseInfo = _ctrlGeomBaseInfo.GetBindingData(out error_info);
-                if (geomBaseInfo == null)
-                {
-                    MessageBox.Show(error_info);
-                    return false;
-                }
-                _geomBaseInfo = geomBaseInfo;
-                if(_sectionBaseInfo == null)
-                {
-                    _sectionBaseInfo = new ViewModel.SectionBaseInfo();
-                }
-                _sectionBaseInfo.CalcV3(_hdrBaseInfo, _geomBaseInfo);
-                _sectionBaseInfo.CalcArea(_hdrBaseInfo, _geomBaseInfo, _sectionBaseInfo.V3);
-                _sectionBaseInfo.IntialShapeType(_hdrBaseInfo, _geomBaseInfo, eSectionShapeType.瀵圭О);
-            }
-            //if (_currentStepID == Step_ID_Section18_Base)
-            //{
-            //    string error_info;
-            //    var geomBaseInfo = _ctrlGeomBaseInfo.GetBindingData(out error_info);
-            //    if (geomBaseInfo == null)
-            //    {
-            //        MessageBox.Show(error_info);
-            //        return false;
-            //    }
-            //    _geomBaseInfo = geomBaseInfo;
-            //}
-            SetParasCtrl(next_step.ID);
- 
-            return true;
-        }
-        /// <summary>
-        /// 涓婁竴姝ユ牳蹇�
-        /// </summary>
-        /// <returns></returns>
-        private bool GoPrevStepCore()
-        {
-            if (_currentStepID == Step_ID_Hdr_Base_Info)
-                return false;
-
-            var prev_step = (from x in _allStepNodes
-                             where x.ID < _currentStepID
-                             orderby x.ID
-                             select x).LastOrDefault();
-            if (prev_step == null)
-                return false;
-
-            SetParasCtrl(prev_step.ID);
-   
-            return true;
-        }
-        /// <summary>
-        /// 鐢熸垚绗嚑姝ユ帶浠�
-        /// </summary>
-        /// <param name="step_id"></param>
-        private void SetParasCtrl(long step_id)
-        {   
-            //绗竴姝�
-            if (step_id == Step_ID_Hdr_Base_Info)
-            {
-                if (_ctrlHdrBaseInfo == null)
-                    _ctrlHdrBaseInfo = new ctrlHdrBaseInfo();
-                this.panelParas.Controls.Clear();
-                this.panelParas.Controls.Add(_ctrlHdrBaseInfo);
-                _ctrlHdrBaseInfo.SetBindingData(_hdrBaseInfo);
-            }
-
-            //绗簩姝�
-            if (step_id == Step_ID_Geom_Base_Info)
-            {
-                if (_ctrlGeomBaseInfo == null)
-                {
-                    _ctrlGeomBaseInfo = new ctrlGeomBaseInfo();
-                    _ctrlGeomBaseInfo.Name = "ctrlGeomBaseInfo";
-                    _ctrlGeomBaseInfo.Dock = DockStyle.Right;
-                }
-                this.panelParas.Controls.Clear();
-                this.panelParas.Controls.Add(_ctrlGeomBaseInfo);
-                _ctrlGeomBaseInfo.SetBindingData(_geomBaseInfo);
-            }
-
-            //绗笁姝�
-            if (step_id == Step_ID_Section18_Base)
-            {
-                if (_ctrlSectionBaseInfo == null)
-                {
-                    _ctrlSectionBaseInfo = new ctrlSectionBaseInfo();
-                    _ctrlSectionBaseInfo.Name = "ctrlSectionBaseInfo";
-                    _ctrlSectionBaseInfo.Dock = DockStyle.Right;
-                }
-                this.panelParas.Controls.Clear();
-                this.panelParas.Controls.Add(_ctrlSectionBaseInfo);
-                _ctrlSectionBaseInfo.SetBindingData(_sectionBaseInfo);
-            }
-            if (step_id == Step_ID_Section18_Dim)
-            {
-                if (_ctrlSectionShapeInfo18 == null)
-                {
-                    _ctrlSectionShapeInfo18 = new ctrlSectionShapeInfo18();
-                    _ctrlSectionShapeInfo18.Name = "ctrlSectionShapeInfo18";
-                    _ctrlSectionShapeInfo18.Dock = DockStyle.Right;
-                }
-                   
-                this.panelParas.Controls.Clear();
-                this.panelParas.Controls.Add(_ctrlSectionShapeInfo18);
-            }
-
-
-
-            if(step_id == Step_ID_Outflow_Style)
-            {
-                if (_ctrlSetOutflowStyle == null)
-                { 
-                    _ctrlSetOutflowStyle = new ctrlSetOutflowStyle();
-                    _ctrlSetOutflowStyle.Name = "ctrlSetOutflowStyle";
-                    _ctrlSetOutflowStyle.Dock = DockStyle.Right;
-                }
-                this.panelParas.Controls.Clear();
-                this.panelParas.Controls.Add(_ctrlSetOutflowStyle);
-
-            }
-            if (step_id == Step_ID_Outflow_Dim)
-            {
-                if (_ctrlSetOutflowDim == null)
-                {
-                    _ctrlSetOutflowDim = new ctrlSetOutflowDim();
-                    _ctrlSetOutflowDim.Name = "ctrlSetOutflowDim";
-                    _ctrlSetOutflowDim.Dock = DockStyle.Right;
-                }
-                this.panelParas.Controls.Clear();
-                this.panelParas.Controls.Add(_ctrlSetOutflowDim);
-            }
-
-
-
-
-
-            this._currentStepID = step_id;
-        }
-     
-        
-        #region 鍒濆鍖栨楠ゅ垪琛�
-
-        /// <summary>
-        /// 
-        /// </summary>
-        private void InitialStepNodes()
-        {
-            _allStepNodes = new List<DPumpHydr.WinFrmUI.Volute.TreeStepNode>();
-
-            #region 鍩虹淇℃伅/鍑犱綍鍙傛暟
-            var stepGroup_BaseInfo = new DPumpHydr.WinFrmUI.Volute.TreeStepNode();
-            stepGroup_BaseInfo.AllowSelect = false;
-            stepGroup_BaseInfo.Group = Group_Name_Base_Info;
-            stepGroup_BaseInfo.Caption = "鍩虹淇℃伅";
-            stepGroup_BaseInfo.Name = Group_Name_Base_Info;
-            stepGroup_BaseInfo.ID = Group_ID_Base_Info;
-            stepGroup_BaseInfo.ParentID = 0;
-            _allStepNodes.Add(stepGroup_BaseInfo);
-
-            var step娆㈣繋浣跨敤 = new DPumpHydr.WinFrmUI.Volute.TreeStepNode();
-            step娆㈣繋浣跨敤.AllowSelect = true;
-            step娆㈣繋浣跨敤.Group = Group_Name_Base_Info;
-            step娆㈣繋浣跨敤.Caption = "娆㈣繋浣跨敤";
-            step娆㈣繋浣跨敤.Name = "StepHelp";
-            step娆㈣繋浣跨敤.ID = 1;
-            step娆㈣繋浣跨敤.ParentID = Group_ID_Base_Info;
-            _allStepNodes.Add(step娆㈣繋浣跨敤);
-
-
-            var step鍩虹淇℃伅 = new DPumpHydr.WinFrmUI.Volute.TreeStepNode()
-            {
-                ProgressState = WinFrmUI.Volute.TreeStepNode.eProgressState.鏈畬鎴�,
-                DataState = WinFrmUI.Volute.TreeStepNode.eDataState.鏈煡
-            };
-            step鍩虹淇℃伅.AllowSelect = true;
-            step鍩虹淇℃伅.Group = Group_Name_Base_Info;
-            step鍩虹淇℃伅.Caption = "绗竴姝�:鍩虹淇℃伅";
-            step鍩虹淇℃伅.Name = "StepHydParas";
-            step鍩虹淇℃伅.ID = Step_ID_Hdr_Base_Info;
-            step鍩虹淇℃伅.ParentID = Group_ID_Base_Info;
-            _allStepNodes.Add(step鍩虹淇℃伅);
-
-            var step鍑犱綍鍙傛暟 = new DPumpHydr.WinFrmUI.Volute.TreeStepNode()
-            {
-                ProgressState = WinFrmUI.Volute.TreeStepNode.eProgressState.鏈畬鎴�,
-                DataState = WinFrmUI.Volute.TreeStepNode.eDataState.鏈煡
-            };
-            step鍑犱綍鍙傛暟.AllowSelect = true;
-            step鍑犱綍鍙傛暟.Group = Group_Name_Base_Info;
-            step鍑犱綍鍙傛暟.Caption = "绗簩姝�:鍑犱綍鍙傛暟";
-            step鍑犱綍鍙傛暟.Name = "StepGeomParas";
-            step鍑犱綍鍙傛暟.ID = Step_ID_Geom_Base_Info;
-            step鍑犱綍鍙傛暟.ParentID = Group_ID_Base_Info;
-            _allStepNodes.Add(step鍑犱綍鍙傛暟);
-            #endregion
-
-
-            #region 鏂潰璁捐(1-8)
-
-            var stepGroup_CoverPlate = new DPumpHydr.WinFrmUI.Volute.TreeStepNode()
-            {
-                ProgressState = WinFrmUI.Volute.TreeStepNode.eProgressState.鏈畬鎴�,
-                DataState = WinFrmUI.Volute.TreeStepNode.eDataState.鏈煡
-            };
-            stepGroup_CoverPlate.AllowSelect = false;
-            stepGroup_CoverPlate.Caption = "鏂潰璁捐";
-            stepGroup_CoverPlate.Name = Group_Name_Section18;
-            stepGroup_CoverPlate.ID = Group_ID_Section18;
-            stepGroup_CoverPlate.ParentID = 0;
-            _allStepNodes.Add(stepGroup_CoverPlate);
-
-
-            var step鏂潰鍩烘湰淇℃伅 = new DPumpHydr.WinFrmUI.Volute.TreeStepNode()
-            {
-                ProgressState = WinFrmUI.Volute.TreeStepNode.eProgressState.鏈畬鎴�,
-                DataState = WinFrmUI.Volute.TreeStepNode.eDataState.鏈煡
-            };
-            step鏂潰鍩烘湰淇℃伅.AllowSelect = true;
-            step鏂潰鍩烘湰淇℃伅.Caption = string.Format("{0}:{1}", GetTranslateString("绗笁姝�"), GetTranslateString("闆朵欢鏉愭枡"));
-            step鏂潰鍩烘湰淇℃伅.Name = "SectBaseInfo18";
-            step鏂潰鍩烘湰淇℃伅.ID = Step_ID_Section18_Base;
-            step鏂潰鍩烘湰淇℃伅.Group = "鏂潰淇℃伅";
-            step鏂潰鍩烘湰淇℃伅.ParentID = Group_ID_Section18;
-            _allStepNodes.Add(step鏂潰鍩烘湰淇℃伅);
-
-       
-                var stepSetct18 = new DPumpHydr.WinFrmUI.Volute.TreeStepNode()
-                {
-                    ProgressState = WinFrmUI.Volute.TreeStepNode.eProgressState.鏈畬鎴�,
-                    DataState = WinFrmUI.Volute.TreeStepNode.eDataState.鏈煡
-                };
-                stepSetct18.AllowSelect = true;
-                stepSetct18.Caption =  "绗洓姝�: 绗�1-8鏂潰" ;
-            stepSetct18.Name = "TreeStepNode" + Step_ID_Section18_Dim;
-            stepSetct18.ID = Step_ID_Section18_Dim  ;
-                stepSetct18.Group = "鐩栨澘杩炴帴";
-                stepSetct18.ParentID = Group_ID_Section18;
-                _allStepNodes.Add(stepSetct18);
-             
-
-
-     
-
-
-            #endregion
-
-
-            #region 鍑烘按浣�
-
-            var stepGroup_鍑烘按浣� = new DPumpHydr.WinFrmUI.Volute.TreeStepNode()
-            {
-                ProgressState = WinFrmUI.Volute.TreeStepNode.eProgressState.鏈畬鎴�,
-                DataState = WinFrmUI.Volute.TreeStepNode.eDataState.鏈煡
-            };
-            stepGroup_鍑烘按浣�.AllowSelect = false;
-            stepGroup_鍑烘按浣�.Caption = "鍑烘按浣撹璁�";
-            stepGroup_鍑烘按浣�.Name = Group_Name_Outflow;
-            stepGroup_鍑烘按浣�.ID = Group_ID_Outflow;
-            stepGroup_鍑烘按浣�.ParentID = 0;
-            _allStepNodes.Add(stepGroup_鍑烘按浣�);
-
-
-            var step鍑烘按浣撶被鍨� = new DPumpHydr.WinFrmUI.Volute.TreeStepNode()
-            {
-                ProgressState = WinFrmUI.Volute.TreeStepNode.eProgressState.鏈畬鎴�,
-                DataState = WinFrmUI.Volute.TreeStepNode.eDataState.鏈煡
-            };
-            step鍑烘按浣撶被鍨�.AllowSelect = true;
-            step鍑烘按浣撶被鍨�.Caption = "绗簲姝�:鍑烘按浣撶被鍨�";
-            step鍑烘按浣撶被鍨�.Name = "TreeStepNode"+ Step_ID_Outflow_Style;
-            step鍑烘按浣撶被鍨�.ID = Step_ID_Outflow_Style;
-            step鍑烘按浣撶被鍨�.Group = Group_Name_Outflow;
-            step鍑烘按浣撶被鍨�.ParentID = Group_ID_Outflow;
-            _allStepNodes.Add(step鍑烘按浣撶被鍨�);
-
-
-            
-            var step鍑烘按浣撳昂瀵� = new DPumpHydr.WinFrmUI.Volute.TreeStepNode()
-            {
-                ProgressState = WinFrmUI.Volute.TreeStepNode.eProgressState.鏈畬鎴�,
-                DataState = WinFrmUI.Volute.TreeStepNode.eDataState.鏈煡
-            };
-            step鍑烘按浣撳昂瀵�.AllowSelect = true;
-            step鍑烘按浣撳昂瀵�.Caption = "绗叚姝�:鍑烘按浣撳昂瀵�";
-            step鍑烘按浣撳昂瀵�.Name = "TreeStepNode"+ Step_ID_Outflow_Dim;
-            step鍑烘按浣撳昂瀵�.ID = Step_ID_Outflow_Dim;
-            step鍑烘按浣撳昂瀵�.Group = Group_Name_Outflow;
-            step鍑烘按浣撳昂瀵�.ParentID = Group_ID_Outflow;
-            _allStepNodes.Add(step鍑烘按浣撳昂瀵�);
-
-            #endregion
-
-
-            ViewModel.HdrBaseInfo hdrBaseInfo = new ViewModel.HdrBaseInfo();
-            hdrBaseInfo.Q = 200;
-            hdrBaseInfo.H = 50;
-            hdrBaseInfo.n = 2900;
-            hdrBaseInfo.D2 = 220;
-            hdrBaseInfo.B2 = 20;
-
-            if (_ctrlHdrBaseInfo == null)
-            {
-                _ctrlHdrBaseInfo = new ctrlHdrBaseInfo();
-                _ctrlHdrBaseInfo.Name = "ctrlHdrBaseInfo";
-                _ctrlHdrBaseInfo.Dock = DockStyle.Right;
-                _ctrlHdrBaseInfo.SetBindingData(hdrBaseInfo);
-            }
-            this.panelParas.Controls.Clear();
-            this.panelParas.Controls.Add(_ctrlHdrBaseInfo);
-            this._currentStepID = Step_ID_Hdr_Base_Info;
-            //this.stepTreeListCtrl.SetStepSource(_allStepNodes, 1);
-        }
-
-        #endregion
-
     }
 }

--
Gitblit v1.9.3