From 9904031f5291daaf56985146bb671f25e18ebbdf Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 02 四月 2020 19:51:31 +0800
Subject: [PATCH] 最新代码

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceOtherLogic.cs |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceOtherLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceOtherLogic.cs
index 25ed175..179faf5 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceOtherLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceOtherLogic.cs
@@ -104,6 +104,11 @@
         {
             if (device.Type == DeviceType.OnOffOutput)
             {
+                //鍦ㄧ綉鍏虫病鏈夊洖澶嶄箣鍓�,榛樿绂荤嚎
+                if (device.HadReadDeviceStatu == false)
+                {
+                    return Language.StringByID(R.MyInternationalizationString.uOffLine);
+                }
                 if ((device as ToggleLight).OnOffStatus == 1)
                 {
                     return Language.StringByID(R.MyInternationalizationString.uOpen1);
@@ -112,6 +117,11 @@
             }
             else if (device.Type == DeviceType.AirSwitch)
             {
+                //鍦ㄧ綉鍏虫病鏈夊洖澶嶄箣鍓�,榛樿绂荤嚎
+                if (device.HadReadDeviceStatu == false)
+                {
+                    return Language.StringByID(R.MyInternationalizationString.uOffLine);
+                }
                 if ((device as AirSwitch).OnOffStatus == 1)
                 {
                     return Language.StringByID(R.MyInternationalizationString.uOpen1);
@@ -120,6 +130,11 @@
             }
             else if (device.Type == DeviceType.DimmableLight)
             {
+                //鍦ㄧ綉鍏虫病鏈夊洖澶嶄箣鍓�,榛樿绂荤嚎
+                if (device.HadReadDeviceStatu == false)
+                {
+                    return Language.StringByID(R.MyInternationalizationString.uOffLine);
+                }
                 if ((device as DimmableLight).OnOffStatus == 0 || (device as DimmableLight).Level == 0)
                 {
                     return Language.StringByID(R.MyInternationalizationString.Close);
@@ -128,6 +143,11 @@
             }
             else if (device.Type == DeviceType.WindowCoveringDevice)
             {
+                //鍦ㄧ綉鍏虫病鏈夊洖澶嶄箣鍓�,榛樿绂荤嚎
+                if (device.HadReadDeviceStatu == false)
+                {
+                    return Language.StringByID(R.MyInternationalizationString.uOffLine);
+                }
                 if ((device as Rollershade).WcdCurrentPositionLiftPercentage == 0)
                 {
                     return Language.StringByID(R.MyInternationalizationString.Close);
@@ -136,6 +156,11 @@
             }
             else if (device.Type == DeviceType.Thermostat)
             {
+                //鍦ㄧ綉鍏虫病鏈夊洖澶嶄箣鍓�,榛樿绂荤嚎
+                if (device.HadReadDeviceStatu == false)
+                {
+                    return Language.StringByID(R.MyInternationalizationString.uOffLine);
+                }
                 //娓╁害锛屾ā寮忥紝椋庨��
                 string tempareture = string.Empty;
                 string model = string.Empty;
@@ -150,7 +175,7 @@
                 else if (ac.currentSystemMode == 1)
                 {
                     model = Language.StringByID(R.MyInternationalizationString.Mode_Auto);
-                    tempareture = $"{ac.currentCoolingSetpoint} 鈩�";
+                    tempareture = $"{ac.currentAutoSetpoint} 鈩�";
                 }
                 else if (ac.currentSystemMode == 3)
                 {

--
Gitblit v1.8.0