From 2bec9c838d2d688025698de8ec1de401ffd7dd1f Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 11 八月 2020 14:13:55 +0800 Subject: [PATCH] 20200811 --- HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs index b003897..c989a00 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs @@ -185,7 +185,17 @@ { EventHandler<MouseEventArgs> eHandler = (sender, e) => { - var mmp = new MemberFunctionPermissionPage( room); + 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; @@ -219,8 +229,8 @@ { if (imagePath != null) { - btnRoomBg.UnSelectedImagePath = imagePath.ToString(); - room.backgroundImage = btnRoomBg.UnSelectedImagePath; + btnRoomBg.ImagePath = imagePath.ToString(); + room.backgroundImage = btnRoomBg.ImagePath; MainPage.Log("SelectPicture 瑁佸壀鍥剧墖杩斿洖璺緞: " + imagePath); } }, pid.ToString(), 16, 9); @@ -242,8 +252,8 @@ { if (imagePath != null) { - btnRoomBg.UnSelectedImagePath = imagePath.ToString(); - room.backgroundImage = btnRoomBg.UnSelectedImagePath; + btnRoomBg.ImagePath = imagePath.ToString(); + room.backgroundImage = btnRoomBg.ImagePath; MainPage.Log("SelectPicture 瑁佸壀鍥剧墖杩斿洖璺緞: " + imagePath); #if DEBUG new Tip() { CloseTime = 5, Text = imagePath }.Show(MainPage.BasePageView); -- Gitblit v1.8.0