yangyin
2025-03-09 81d202d7fa26efe3db01b3aabc59468c46deec37
WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowParas.cs
@@ -204,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);
@@ -503,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.涓績鍑哄彛)
                    {
@@ -547,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();
@@ -569,18 +597,18 @@
        private void checkBox鍦嗗姬杩炴帴_CheckedChanged(object sender, EventArgs e)
        {
            if (!checkBox鍦嗗姬杩炴帴.Checked)
            {
                _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎;
            }
            else
            {
                _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.鐩寸嚎鍦嗗姬;
            //}
            InitialOutflowStyle();
            //InitialOutflowStyle();
            RefreshModel();
            //RefreshModel();
        }
    }
}