From a40848272e33822f72a7fe0310f079717bf73f23 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期五, 18 十月 2024 16:21:39 +0800
Subject: [PATCH] 修复金茂科技系统,金茂光伏问题

---
 HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
index f7d63d1..f7b65d4 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
@@ -446,7 +446,7 @@
                     d.Add(FunctionAttributeKey.Mode, m);
                     Control.Ins.SendWriteCommand(device, d);
                     dialog.Close();
-                    if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan")
+                    if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan" || device.GetAttrState(FunctionAttributeKey.Mode) == "dry")
                     {
 
                         setTempBar.IsClickable = false;
@@ -998,16 +998,10 @@
                 if (device.trait_on_off.curValue.ToString() == "on")
                 {
                     btnSwitch.IsSelected = true;
-                    //setTempBar.IsOffline = false;
-                    //setTempBar.Enable = true;
-                    //setTempBar.ProgressBarColor = CSS_Color.MainColor;
                 }
                 else
                 {
                     btnSwitch.IsBold = false;
-                    //setTempBar.IsOffline = true;
-                    //setTempBar.Enable = false;
-                    //setTempBar.ProgressBarColor = CSS_Color.DividingLineColor;
                 }
                 System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                 d.Add(FunctionAttributeKey.OnOff, device.trait_on_off.curValue.ToString());
@@ -1093,7 +1087,7 @@
                         setTempBar.IsClickable = false;
                     }
 
-                    if (device.GetAttrState(FunctionAttributeKey.Mode) == "dry" || device.GetAttrState(FunctionAttributeKey.Mode) == "fan")
+                    if ( device.GetAttrState(FunctionAttributeKey.Mode) == "fan")
                     {
                         setTempBar.IsOffline = true;
                         setTempBar.IsClickable = false;

--
Gitblit v1.8.0