From ff3cfcf62632bf43e51a6b6098c203bf0f5cddbc Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期二, 24 十二月 2019 19:53:29 +0800
Subject: [PATCH] 2019.12.24

---
 ZigbeeApp/Shared/Phone/UserView/UserPage.cs |   23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserView/UserPage.cs b/ZigbeeApp/Shared/Phone/UserView/UserPage.cs
index 5f4167b..432e4b5 100644
--- a/ZigbeeApp/Shared/Phone/UserView/UserPage.cs
+++ b/ZigbeeApp/Shared/Phone/UserView/UserPage.cs
@@ -147,7 +147,7 @@
                                 var ac = (AC)myDevice;
                                 ac.DeviceStatusReport = common.DeviceStatusReport;
                                 var attriButeList = ac.DeviceStatusReport.AttriBute;
-                                foreach(var attList in attriButeList)
+                                foreach (var attList in attriButeList)
                                 {
                                     //姝ゅ睘鎬ц〃鏄庡鍐呭綋鍓嶇殑娓╁害 * 100锛屽疄闄呮俯搴︿负鈥淟ocalTemperature / 100鈥濓紝鍗曚綅锛氣剝
                                     var curTemp = (attList.AttriButeData / 100 < ACControlBase.Temperature_High && attList.AttriButeData / 100 > ACControlBase.Temperature_Low) ? attList.AttriButeData / 100 : ACControlBase.Temperature_Default;
@@ -193,7 +193,7 @@
                                 var ac = (AC)myDevice;
                                 var attriButeList = common.DeviceStatusReport.AttriBute;
                                 ac.DeviceStatusReport = common.DeviceStatusReport;
-                                foreach(var attList in attriButeList)
+                                foreach (var attList in attriButeList)
                                 {
                                     switch (attList.AttributeId)
                                     {
@@ -262,6 +262,21 @@
                 //璁板綍鍥炲鏃堕棿
                 myDevice.LastDateTime = DateTime.Now;
             }
+            else if (typeTag == "IASInfoReport")
+            {
+                try
+                {
+                    switch (myDevice.Type)
+                    {
+                        case DeviceType.IASZone:
+                            var iAS = (IASZone)myDevice;
+                            iAS.iASInfo = (common as IASZone).iASInfo;
+                            iAS.LastDateTime = DateTime.Now;
+                            break;
+                    }
+                }
+                catch { }
+            }
         }
         /// <summary>
         /// Changeds the IL ogic status.
@@ -304,9 +319,9 @@
         {
             BackgroundColor = Shared.Common.ZigbeeColor.Current.MainColor;
             ZbGateway.StatusList.Add(this);
-            Shared.Application.LocationAction += (lat, lon) =>
+            Shared.Application.LocationAction += (lon, lat) =>
             {
-                AccountLogic.Instance.ReceiveAppLatAndLon(lat.ToString(), lon.ToString());
+                AccountLogic.Instance.ReceiveAppLatAndLon(lon.ToString(), lat.ToString());
             };
         }
 

--
Gitblit v1.8.0