From 5eeafe3af80bfd88306bd8ad9e76c8f4b51ca35f Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期四, 17 十二月 2020 14:16:20 +0800
Subject: [PATCH] 增加本地发送的重发机制

---
 HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs
index 372f78f..172eb57 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberFunctionPermissionPage.cs
@@ -35,8 +35,17 @@
 
         Action<string> refreshFunctionCount;
 
+        /// <summary>
+        /// 涔嬪墠鐨勫垎浜垪琛�
+        /// </summary>
         List<ShareData> funs;
+        /// <summary>
+        /// 灞炰簬褰撳墠鎴块棿鏈�缁堢殑璁惧鍒嗕韩鍒楄〃
+        /// </summary>
         List<ShareData> funs_New;
+        /// <summary>
+        /// 鍒犻櫎鐨勫垎浜垪琛�
+        /// </summary>
         List<ShareData> funs_Del;
 
         public MemberFunctionPermissionPage(ResidenceMemberInfo mInfo, Room r, Action<string> action)
@@ -119,7 +128,7 @@
                 Y = Application.GetRealHeight(519 + 64),
                 Gravity = Gravity.CenterHorizontal,
                 Width = Application.GetRealWidth(220),
-                Height = Application.GetRealHeight(44),
+                Height = Application.GetRealWidth(44),
                 BackgroundColor = CSS_Color.MainColor,
                 TextAlignment = TextAlignment.Center,
                 TextColor = CSS_Color.MainBackgroundColor,
@@ -148,7 +157,7 @@
         void LoadFunctionRow(List<ShareData>  shareDatas)
         {
             contentView.RemoveAll();
-            foreach (var function in room.functions)
+            foreach (var function in room.GetRoomFunctions(false))
             {
                 var roomView = new FrameLayout()
                 {
@@ -180,9 +189,13 @@
                     Tag = "ChooseIcon"
                 };
                 roomView.AddChidren(btnChoose);
-                if (shareDatas.Find((obj) => obj.ShareName == function.sid) != null)
+
+                var shareData = shareDatas.Find((obj) => obj.shareTypeId == function.deviceId);
+                if (shareData != null)
                 {
                     btnChoose.IsSelected = true;
+                    //鍒锋柊灞炰簬褰撳墠鎴块棿鐨勫垎浜粺璁�
+                    funs_New.Add(shareData);
                 }
                 else
                 {

--
Gitblit v1.8.0