From a91a9388bef8bbc619dee6db5e369f801a2d2864 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 22 三月 2023 17:39:33 +0800 Subject: [PATCH] 群控功能 --- HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs b/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs index 932bb37..28dea93 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/CombinedDimming/GroupControl.cs @@ -1,5 +1,6 @@ 锘縰sing System; using System.Collections.Generic; +using Shared; namespace HDL_ON.Entity { @@ -24,10 +25,40 @@ /// 鎴块棿uid /// </summary> public List<String> uids = new List<string>(); + public List<String> roomIds = new List<string>(); /// <summary> /// 缇ゆ帶鍔熻兘sid閰嶇疆 /// </summary> public List<GroupControlFunction> sids = new List<GroupControlFunction>(); + + + + /// <summary> + /// 鑾峰彇璁惧娣诲姞鍒版埧闂寸殑鎴块棿鍚嶇О + /// </summary> + /// <returns></returns> + public string GetRoomListName() + { + string roomNameList = ""; + foreach (var roomId in roomIds) + { + var findRoom = SpatialInfo.CurrentSpatial.RoomList.Find(obj => obj.roomId == roomId); + if (findRoom == null) + { + continue; + } + if (roomNameList != "") + { + roomNameList += ","; + } + roomNameList += findRoom.floorName + "-" + findRoom.roomName; + } + if (roomNameList == "") + { + roomNameList = Language.StringByID(StringId.WholeZone); + } + return roomNameList; + } } public class GroupControlFunction -- Gitblit v1.8.0