From f14dcfd967404e197e7ec995ca8d6f2b090d3b7d Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期五, 11 九月 2020 09:16:59 +0800
Subject: [PATCH] 优化多功能面板:绑定温湿度传感器目标,和设备列表回路显示。优化数据矫正功能温湿度度不设置的情况。优化门锁时间设置最后一天和最后最后一个月的时间显示等 细节

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/ZigbeeApp20200828/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs
old mode 100644
new mode 100755
similarity index 99%
rename from ZigbeeApp20200828/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs
rename to ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs
index 812295e..3fade11
--- a/ZigbeeApp20200828/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceBindLogic.cs
@@ -194,8 +194,8 @@
             TemplateData.TemplateDeviceDataLogic.Current.AddDeviceBindList(addBindData, result.JsonData[0]);
             var tempData = Newtonsoft.Json.JsonConvert.DeserializeObject<BindObj.AddedDeviceBindResponseData>(result.ReceiptData);
             return new BindObj.AddedDeviceBindResponseAllData() { addedDeviceBindResponseData = tempData };
-        }
-
+        }
+
         /// <summary>
         /// 鑾峰彇娣诲姞璁惧缁戝畾鐨勫懡浠ゅ瓧绗�
         /// </summary>
@@ -229,7 +229,7 @@
         ///璁惧缁戝畾銆愪竴瀵逛竴 缁戝畾锛屼竴涓寜閿洖璺彧鑳界粦瀹氫竴涓澶囥��
         /// </summary>
         public BindObj.AddedDeviceSingleBindResponseAllData AddDeviceSingleBindAsync(BindObj.AddSingleBindData addSingleBindData)
-        {
+        {
             var device = Common.LocalDevice.Current.GetDevice(addSingleBindData.DeviceAddr, addSingleBindData.Epoint);
             //鑾峰彇鍙戦�佺殑鍛戒护瀛楃
             var sendData = this.GetAddDeviceListSingleBindCommandText(addSingleBindData);
@@ -238,34 +238,34 @@
             if (result.ErrorMsg != null || result.ErrorMsgDiv == 0)
             {
                 return null;
-            }
-
+            }
+
             var tempData = Newtonsoft.Json.JsonConvert.DeserializeObject<BindObj.AddedDeviceSingleBindResponseData>(result.ReceiptData);
             return new BindObj.AddedDeviceSingleBindResponseAllData() { addedDeviceSingleBindResponseData = tempData };
-        }
-
+        }
+
         /// <summary>
         /// 鑾峰彇娣诲姞璁惧缁戝畾鐨勫懡浠ゅ瓧绗�
         /// </summary>
         /// <param name="addBindData"></param>
         /// <returns></returns>
         public string GetAddDeviceListSingleBindCommandText(BindObj.AddSingleBindData addSingleBindData)
-        {
+        {
             var jObject = new JObject { { "DeviceAddr", addSingleBindData.DeviceAddr }, { "Epoint", addSingleBindData.Epoint }, { "Cluster_ID", 0 }, { "Command", 5020 } };
-            var data = new JObject { };
-            var bindClusterList = new JArray { };
+            var data = new JObject { };
+            var bindClusterList = new JArray { };
             foreach (var cluster in addSingleBindData.BindClusterList)
-            {
+            {
                 bindClusterList.Add(cluster);
-            }
-            if (addSingleBindData.BindType == 0)
-            {
-                data = new JObject { { "BindName", addSingleBindData.BindName }, { "BindType", addSingleBindData.BindType }, { "BindClusterList", bindClusterList }, { "BindMacAddr", addSingleBindData.BindMacAddr }, { "BindEpoint", addSingleBindData.BindEpoint } };
-            }
-            else if (addSingleBindData.BindType == 1)
-            {
-                data = new JObject { { "BindName", addSingleBindData.BindName }, { "BindType", addSingleBindData.BindType }, { "BindClusterList", bindClusterList }, { "BindScenesId", addSingleBindData.BindScenesId } };
-
+            }
+            if (addSingleBindData.BindType == 0)
+            {
+                data = new JObject { { "BindName", addSingleBindData.BindName }, { "BindType", addSingleBindData.BindType }, { "BindClusterList", bindClusterList }, { "BindMacAddr", addSingleBindData.BindMacAddr }, { "BindEpoint", addSingleBindData.BindEpoint } };
+            }
+            else if (addSingleBindData.BindType == 1)
+            {
+                data = new JObject { { "BindName", addSingleBindData.BindName }, { "BindType", addSingleBindData.BindType }, { "BindClusterList", bindClusterList }, { "BindScenesId", addSingleBindData.BindScenesId } };
+
             }
             jObject.Add("Data", data);
             return jObject.ToString();

--
Gitblit v1.8.0