From 34fe00834737d35eedfeb41361c4d85ab0e0f10b Mon Sep 17 00:00:00 2001
From: yangyin <1850366751@qq.com>
Date: 星期五, 25 十月 2024 17:02:06 +0800
Subject: [PATCH] 增加蜗壳参数导出功能、修改部分界面代码

---
 WinFrmUI/DPumpHydr.WinFrmUI.Volute/断面设计/ctrlSectionBaseInfo.cs |   41 ++++++++++++++++++++++++++++++++---------
 1 files changed, 32 insertions(+), 9 deletions(-)

diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBaseInfo.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBaseInfo.cs"
index 010c6a7..cbcfb7c 100644
--- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBaseInfo.cs"
+++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\346\226\255\351\235\242\350\256\276\350\256\241/ctrlSectionBaseInfo.cs"
@@ -117,7 +117,7 @@
         {
             error = "";
             bool isOk = true;
-            if (string.IsNullOrEmpty(mTextBoxEdit铚楀骞冲潎閫熷害.Text) || mTextBoxEdit铚楀骞冲潎閫熷害.Text == "璇疯緭鍏�" || double.Parse(mTextBoxEdit铚楀骞冲潎閫熷害.Text) == 0)
+            if (string.IsNullOrEmpty(mTextBoxEdit铚楀骞冲潎閫熷害.Text) || double.Parse(mTextBoxEdit铚楀骞冲潎閫熷害.Text) == 0)
             {
                 error = "璇疯緭鍏ュ繀濉」锛�";
                 isOk = false;
@@ -140,6 +140,33 @@
             }
             return isOk;
         }
+
+        public bool IsParameterChange()
+        {
+            if(double.Parse(mTextBoxEdit铚楀骞冲潎閫熷害.Text) != this._paras.V3)
+            {
+                return true;
+            }
+            if(RBtn鏂潰瀵圭О姊舰.Checked && this._paras.ShapeType == eSectionShapeType.瀵圭О)
+            {
+                return true;
+            } if(RBtn涓嶅绉版褰�.Checked && this._paras.ShapeType == eSectionShapeType.涓嶅绉�)
+            {
+                return true;
+            } if(RBtn鐭╁舰.Checked && this._paras.ShapeType == eSectionShapeType.鐭╁舰)
+            {
+                return true;
+            }
+            if (double.Parse(skyTextBox鏂潰y18.Text) != this._paras.GaMa1[8])
+            {
+                return true;
+            }if (double.Parse(skyTextBox鏂潰y28.Text) != this._paras.GaMa2[8])
+            {
+                return true;
+            }
+            return false;
+        }
+
 
         private void BuildIcon()
         {
@@ -187,17 +214,13 @@
         {
             skyLabel铚楀骞冲潎閫熷害.Visible = false;
             mTextBoxEdit铚楀骞冲潎閫熷害.TrailingIcon = null;
-            if (mTextBoxEdit铚楀骞冲潎閫熷害.Text == "璇疯緭鍏�")
-            {
-                mTextBoxEdit铚楀骞冲潎閫熷害.Text = "";
-            }
         }
 
         private void mTextBoxEdit铚楀骞冲潎閫熷害_Leave(object sender, EventArgs e)
         {
             if (string.IsNullOrEmpty(mTextBoxEdit铚楀骞冲潎閫熷害.Text) || double.Parse(mTextBoxEdit铚楀骞冲潎閫熷害.Text) == 0)
             {
-                mTextBoxEdit铚楀骞冲潎閫熷害.Text = "璇疯緭鍏�";
+                mTextBoxEdit铚楀骞冲潎閫熷害.Text = _paras.V3.ToString();
             }
         }
 
@@ -205,7 +228,7 @@
         {
             foreach (var s in mTextBoxEdit铚楀骞冲潎閫熷害.Text)
             {
-                if (!double.TryParse(mTextBoxEdit铚楀骞冲潎閫熷害.Text, out double result) && !string.IsNullOrEmpty(mTextBoxEdit铚楀骞冲潎閫熷害.Text) && mTextBoxEdit铚楀骞冲潎閫熷害.Text != "璇疯緭鍏�")
+                if (!double.TryParse(mTextBoxEdit铚楀骞冲潎閫熷害.Text, out double result) && !string.IsNullOrEmpty(mTextBoxEdit铚楀骞冲潎閫熷害.Text) )
                 {
                     mTextBoxEdit铚楀骞冲潎閫熷害.UseAccent = true;
                     mTextBoxEdit铚楀骞冲潎閫熷害.ShowAssistiveText = true;
@@ -227,7 +250,7 @@
             {
                 if (!double.TryParse(skyTextBox鏂潰y18.Text, out double result) && !string.IsNullOrEmpty(skyTextBox鏂潰y18.Text))
                 {
-                    skyTextBox鏂潰y18.Text = "";
+                    skyTextBox鏂潰y18.Text = _paras.GaMa1[8].ToString();
                     skyLabel鎻愮ずy1.Visible = true;
                     break;
                 }
@@ -240,7 +263,7 @@
             {
                 if (!double.TryParse(skyTextBox鏂潰y28.Text, out double result) && !string.IsNullOrEmpty(skyTextBox鏂潰y28.Text))
                 {
-                    skyTextBox鏂潰y28.Text = "";
+                    skyTextBox鏂潰y28.Text = _paras.GaMa2[8].ToString();
                     skyLabel鎻愮ずy2.Visible = true;
                     break;
                 }

--
Gitblit v1.9.3