tx
2025-04-10 2538101febc78f525945da72c7cdcb2589f9e6ea
TProduct.WinFrmUI/TProduct.WinFrmUI.TPump/MainPage性能测试/FeatTestViewMainPage_Setting.cs
@@ -41,36 +41,27 @@
                MessageBox.Show("杩樻湭璁剧疆project鍙傛暟");
                return;
            }
            if (pump == null)
            if (pump != null)
            {
                MessageBox.Show("杩樻湭璁剧疆pump鍙傛暟");
                return;
                this._currentPump = pump;
                this._currentPart = part;
                this._ratedParas = TProduct.Model.RatedParas4Pump.ToModel(pump.RatedParas);
                if (_currentPump.MotorMainID.HasValue && _currentPump.MotorMainID > 0)
                {
                    _currentMotor = new BLL.ProductMotor().GetExByProductID((long)_currentPump.MotorMainID);
                }
                this._currentPumpSeries = new BLL.ProductSeries().GetByID(this._currentPump.SeriesID);
                if (this._currentPumpSeries == null)
                {
                    MessageBox.Show("褰撳墠娉靛搴旂郴鍒楁湭鎵惧埌");
                    return;
                }
            }
            if (part == null)
            {
                MessageBox.Show("杩樻湭璁剧疆part鍙傛暟");
                return;
            }
            if (string.IsNullOrEmpty(pump.RatedParas))
            {
                MessageBox.Show("杩樻湭璁剧疆娉电殑棰濆畾鍙傛暟");
                return;
            }
            this._currentPump = pump;
            this._currentPart = part;
            this._ratedParas = TProduct.Model.RatedParas4Pump.ToModel(pump.RatedParas);
            if (_currentPump.MotorMainID.HasValue && _currentPump.MotorMainID > 0)
            {
                _currentMotor = new BLL.ProductMotor().GetExByProductID((long)_currentPump.MotorMainID);
            }
            this._currentPumpSeries = new BLL.ProductSeries().GetByID(this._currentPump.SeriesID);
            if (this._currentPumpSeries == null)
            {
                MessageBox.Show("褰撳墠娉靛搴旂郴鍒楁湭鎵惧埌");
                return;
            }
            this._testProject = new TestProjectBase(items.First());
            this._featTestItem = items.Find(x => x.TestType == eTestType.FeatTest);