From 6de7f8a29b04737d80ad8cb17804fcc50d267bd9 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 20 十月 2023 14:21:28 +0800
Subject: [PATCH] 2.3版本

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
index ff12c6b..ed476fe 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -218,9 +218,9 @@
                                 case SPK.SensorDryContact2:
                                     {
 
-                                        string value = this.GetKeyValue("on_off", dicList);
+                                        string value = this.GetKeyValue(FunctionAttributeKey.ContactStatus, dicList);
                                         inputView.btnState.Text = Language.StringByID(StringId.offLogic);
-                                        if (value == "on")
+                                        if (value == "open")
                                         {
                                             inputView.btnState.Text = Language.StringByID(StringId.onLogic);
                                         }
@@ -2292,7 +2292,7 @@
                         foreach (var dic in dicList)
                         {
                             string value = dic["value"];
-                            if (value == "on")
+                            if (value == "on" || value == "open")
                             {
                                 button1.Text = Language.StringByID(StringId.onLogic);
                             }

--
Gitblit v1.8.0