yangyin
2025-03-25 db33bc6d9a30db6be4b40e45097c9a87a67cc845
WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowParas.cs
@@ -18,6 +18,7 @@
            InitializeComponent();
            _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.鏈煡;
            _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎;
            _parasControlCenter = new SetOutflowParasCtrl1() { Name = "SetOutflowParasCtrlCenter" };
@@ -203,6 +204,10 @@
            outflowParas2.H2 = 5;
            outflowParas2.Dia = GetStdDia(outer_dia);
            double height2 = 5 * (int)(((outflowParas2.Dia - Math.Sqrt(4 * sectionBundleInfo.Area[8] / Math.PI)) / (2 * Math.Tan(4 * Math.PI / 180))) / 5 + 0.5);
            if(height2 < geomBaseInfo.D3/ 2)
            {
                height2 = geomBaseInfo.D3 * 0.75;
            }
            outflowParas2.Heigh = height2;
            outflowParas2.Septalradius = 3;
            _parasControlLine.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
@@ -400,6 +405,7 @@
            }
            _outflowParas.ShapeStyle = _sharp_type;
            _outflowParas.LinkStyle = _link_type;
            return _outflowParas;
        }
@@ -413,6 +419,7 @@
                throw new Exception("鏈垵濮嬪寲ctrlSetOutflowParas鎺т欢");
            }
            this._sharp_type = paras.ShapeStyle;
            this._link_type = paras.LinkStyle;
            var paras1 = new ViewModel.OutflowParas(paras);
            var paras2 = new ViewModel.OutflowParas(paras);
            var paras3 = new ViewModel.OutflowParas(paras);
@@ -445,7 +452,14 @@
            {
                comboBoxType.SelectedIndex = 2;
            }
            if(_link_type == eOutflowLinkStyle.鐩寸嚎鍦嗗姬)
            {
                checkBox鍦嗗姬杩炴帴.Checked = true;
            }
            else
            {
                checkBox鍦嗗姬杩炴帴.Checked = false;
            }
            InitialOutflowStyle();
        }
@@ -493,7 +507,7 @@
            var resp = OnRefreshShape3D(GetBindingData(out error));
            if (resp != null)
            {
                if (_link_type != eOutflowLinkStyle.鐩寸嚎鍦嗗姬 && _sharp_type != eOutflowShapeStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴)
                if (_link_type == eOutflowLinkStyle.鐩寸嚎鍦嗗姬 && _sharp_type != eOutflowShapeStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴)
                {
                    if (_sharp_type == eOutflowShapeStyle.涓績鍑哄彛)
                    {
@@ -537,14 +551,38 @@
            if (comboBoxType.SelectedIndex == 0)
            {
                _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.涓績鍑哄彛;
                checkBox鍦嗗姬杩炴帴.Enabled = true;
                checkBox鍦嗗姬杩炴帴.Visible = true;
                if (checkBox鍦嗗姬杩炴帴.Checked)
                {
                    _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鐩寸嚎鍦嗗姬;
                }
                else
                {
                    _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎;
                }
            }
            else if (comboBoxType.SelectedIndex == 1)
            {
                _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴;
            }
                checkBox鍦嗗姬杩炴帴.Enabled = false;
                checkBox鍦嗗姬杩炴帴.Visible = false;
                _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎;
                if (checkBox鍦嗗姬杩炴帴.Checked)
                {
                    _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鐩寸嚎鍦嗗姬;
                }
                else
                {
                    _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎;
                }
              }
            else if (comboBoxType.SelectedIndex == 2)
            {
                _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴;
                checkBox鍦嗗姬杩炴帴.Enabled = false;
                checkBox鍦嗗姬杩炴帴.Visible = false;
                _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎;
            }
            InitialOutflowStyle();