From d18004970b3040ea27beb567694b496a56bedd5b Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 30 七月 2020 10:42:36 +0800
Subject: [PATCH] 2020-07-30-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs |   28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs
index 5616bc7..e329801 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs
@@ -17,6 +17,7 @@
             LoadEvent_SkinBindFloor();
             LoadEvent_SkipEditFunctionList();
             LoadEvent_Option();
+            LoadEvent_SkipSharedRoomFunctionPage();
         }
 
         /// <summary>
@@ -177,7 +178,32 @@
             functionManagemantView.MouseUpEventHandler = eventHandler;
         }
 
-
+        /// <summary>
+        /// 璺宠浆鍒板姛鑳藉垎浜晫闈�
+        /// </summary>
+        void LoadEvent_SkipSharedRoomFunctionPage()
+        {
+            EventHandler<MouseEventArgs> eHandler = (sender, e) =>
+            {
+                List<ShareData> sds = new List<ShareData>();
+                foreach (var f in room.functions)
+                {
+                    var sd = new ShareData();
+                    sd.ShareName = f.sid;
+                    sd.HouseDistributedMark = DB_ResidenceData.residenceData.residecenInfo.RegionID;
+                    sd.ShareDataBytes = DAL.CommonPage.MyEncodingUTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(f));
+                    //ssdd.SubAccountDistributedMark = memberInfo.SubAccountDistributedMark;
+                    sds.Add(sd);
+                }
+                var mmp = new MemberFunctionPermissionPage(room, sds);
+                MainPage.BasePageView.AddChidren(mmp);
+                mmp.LoadPage(StringId.ChooseSharedFunction);
+                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+            };
+            btnSharedRight.MouseUpEventHandler = eHandler;
+            sharedView.MouseUpEventHandler = eHandler;
+            btnSharedTitle.MouseUpEventHandler = eHandler;
+        }
         /// <summary>
         /// 鍔犺浇鑳屾櫙鍥鹃�夋嫨鍖哄煙浜嬩欢鍒楄〃
         /// </summary>

--
Gitblit v1.8.0