Browse Source

字符串分阶参数添加

callm 1 month ago
parent
commit
18c66a5ebb
1 changed files with 9 additions and 6 deletions
  1. 9 6
      UAS-MES/CustomControl/TextBoxWithIcon/EnterTextBox.cs

+ 9 - 6
UAS-MES/CustomControl/TextBoxWithIcon/EnterTextBox.cs

@@ -1,6 +1,7 @@
 using System;
 using System.Drawing;
 using System.Windows.Forms;
+using UAS_MES.Entity;
 
 namespace UAS_MES.CustomControl.TextBoxWithIcon
 {
@@ -21,12 +22,14 @@ namespace UAS_MES.CustomControl.TextBoxWithIcon
         {
             get
             {
-                return base.Text.Trim();
-            }
-
-            set
-            {
-                base.Text = value;
+                if (SystemInf.SplitStr)
+                {
+                    return base.Text.Split(';')[0];
+                }
+                else
+                {
+                    return base.Text;
+                }
             }
         }