yangyin
2025-02-13 f6888fa19323a612f1dc963a7000a4835d5c0181
WinFrmUI/DPumpHydr.WinFrmUI.Volute/¶ÏÃæÉè¼Æ/ctrlSectionBundleInfo.cs
@@ -168,12 +168,12 @@
        ViewModel.SectionBundleInfo _sectionBundleInfo = null;
        ViewModel.HdrBaseInfo _hdrBaseInfo = null;
        ViewModel.GeomBaseInfo _geomBaseInfo = null;
        public void ShowPage(
            ViewModel.HdrBaseInfo base_info,
            ViewModel.GeomBaseInfo geom_info,
            DPumpHydr.ViewModel.eWizardStepDiretion step_direction)
            DPumpHydr.ViewModel.eWizardStepDiretion step_direction,bool isxml)
        {
            if (step_direction == DPumpHydr.ViewModel.eWizardStepDiretion.后退)
            {
@@ -181,7 +181,10 @@
            }
            this._hdrBaseInfo = base_info;
            this._geomBaseInfo = geom_info;
            if (isxml)
            {
                return;
            }
            if (_sectionBundleInfo == null)
            {
                _sectionBundleInfo = new ViewModel.SectionBundleInfo();
@@ -455,7 +458,8 @@
            SkyTextBox controlGaMa1 = this.Controls.Find($"skyTextBox断面y1{index}", true).FirstOrDefault() as SkyTextBox;
            SkyTextBox controlh1 = this.Controls.Find($"skyTextBox断面H1{index}", true).FirstOrDefault() as SkyTextBox;
            //目前这个只检测对称的 b3-2(r1-(tan(Gama1)*(h-r1))) //若不对称  b3-(r1-(tan(Gama1)*(h-r1)))-(r2-(tan(Gama2)*(h-r2)))
            if ((!RBtn矩形.Checked && _sectionBundleInfo.BaseWidth-2*(Convert.ToDouble(controlr1.Text) - ( Math.Tan(Convert.ToDouble(controlGaMa1.Text) * Math.PI / 180)* (Convert.ToDouble(controlh1.Text)- Convert.ToDouble(controlr1.Text)))) < 1 )|| Convert.ToDouble(controlr1.Text) == 0)
            var a = _sectionBundleInfo.BaseWidth - 2 * (Convert.ToDouble(controlr1.Text) - (Math.Tan(Convert.ToDouble(controlGaMa1.Text) * Math.PI / 180) * (Convert.ToDouble(controlh1.Text) - Convert.ToDouble(controlr1.Text))));//_sectionBundleInfo.R_out/200
            if ((!RBtn矩形.Checked && _sectionBundleInfo.BaseWidth-2*(Convert.ToDouble(controlr1.Text) - ( Math.Tan(Convert.ToDouble(controlGaMa1.Text) * Math.PI / 180)* (Convert.ToDouble(controlh1.Text)- Convert.ToDouble(controlr1.Text)))) < 10) || Convert.ToDouble(controlr1.Text) == 0)
            {
                controlr1.BackColor = Color.OrangeRed;
                MessageBox.Show("r不合理!请重新输入");