From 2538101febc78f525945da72c7cdcb2589f9e6ea Mon Sep 17 00:00:00 2001
From: tx <123456>
Date: 星期四, 10 四月 2025 17:37:33 +0800
Subject: [PATCH] 添加无产品测试

---
 TProduct.WinFrmUI/TProduct.WinFrmUI.TPump/MainPage性能测试/FeatTestViewMainPage_Setting.cs |   43 +++++++++++++++++--------------------------
 1 files changed, 17 insertions(+), 26 deletions(-)

diff --git "a/TProduct.WinFrmUI/TProduct.WinFrmUI.TPump/MainPage\346\200\247\350\203\275\346\265\213\350\257\225/FeatTestViewMainPage_Setting.cs" "b/TProduct.WinFrmUI/TProduct.WinFrmUI.TPump/MainPage\346\200\247\350\203\275\346\265\213\350\257\225/FeatTestViewMainPage_Setting.cs"
index c7056d5..0e1a611 100644
--- "a/TProduct.WinFrmUI/TProduct.WinFrmUI.TPump/MainPage\346\200\247\350\203\275\346\265\213\350\257\225/FeatTestViewMainPage_Setting.cs"
+++ "b/TProduct.WinFrmUI/TProduct.WinFrmUI.TPump/MainPage\346\200\247\350\203\275\346\265\213\350\257\225/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);

--
Gitblit v1.9.3