From e22e6699a4ec73e81f45526eb8249379963e22d7 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 14 九月 2022 13:49:05 +0800
Subject: [PATCH] 光伏更新

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs |   35 ++++++++++++++++++++++-------------
 1 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
index 3db5687..a6402bb 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -338,7 +338,11 @@
                                                     {
                                                         if (value == "true")
                                                         {
-                                                            inputView.btnState.Text = Language.StringByID(StringId.shi);
+                                                            inputView.btnState.Text = Language.StringByID(StringId.youren);
+                                                        }
+                                                        else
+                                                        {
+                                                            inputView.btnState.Text = Language.StringByID(StringId.wuren);
                                                         }
 
                                                     }
@@ -2032,11 +2036,11 @@
                                     {
                                         if (value == "true")
                                         {
-                                            button1.Text = Language.StringByID(StringId.zaixian);
+                                            button2.Text = Language.StringByID(StringId.zaixian);
                                         }
                                         else
                                         {
-                                            button1.Text = Language.StringByID(StringId.buzaixian);
+                                            button2.Text = Language.StringByID(StringId.buzaixian);
                                         }
                                     }
                                     break;
@@ -2053,23 +2057,28 @@
                             string value = dic["value"];
                             switch (dic["key"])
                             {
-                                case "people_status":
-                                    {
-                                        if (value == "true")
-                                        {
-                                            button1.Text = Language.StringByID(StringId.shi);
-                                        }
-                                        
-                                    }
-                                    break;
+                               
                                 case "target_status":
                                     {
                                         if (value == "4")
                                         {
-                                            button2.Text = Language.StringByID(StringId.shi);
+                                            button1.Text = Language.StringByID(StringId.shi);
                                         }
                                     }
                                     break;
+                                case "people_status":
+                                    {
+                                        if (value == "true")
+                                        {
+                                            button2.Text = Language.StringByID(StringId.youren);
+                                        }
+                                        else
+                                        {
+                                            button2.Text = Language.StringByID(StringId.wuren);
+                                        }
+
+                                    }
+                                    break;
                             }
 
                         }

--
Gitblit v1.8.0