From 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期二, 21 七月 2020 09:46:53 +0800 Subject: [PATCH] 请合并最新多功能面板代码 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs index c654ee7..7e5db3d 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs @@ -15,7 +15,7 @@ /// </summary> public class MutilfunctionPanelMethod { - #region 鍙橀噺鐢虫槑 + #region 鍙橀噺鐢虫槑 /// <summary> /// 寮�鍏崇殑涓暟聽[姣忔杩涘叆鍒板鍔熻兘缁戝畾鐣岄潰锛岄兘瑕佽閲嶆柊鍙栧�糫 /// </summary> @@ -48,6 +48,21 @@ var tempList = new List<BindListAllInfo>(); int count1 = 0; int count2 = 0; + + switch (curBindType) + { + case 1: + curSwitchCount = 0; + break; + case 2: + curSocketCount = 0; + break; + case 3: + curLightFromRelayCount = 0; + curLightCount = 0; + break; + } + foreach (var key in bindTargetsFromMutilfunctionPanelList.Keys) { var bList = bindTargetsFromMutilfunctionPanelList[key]; @@ -540,7 +555,7 @@ /// <param name="currentPanelSupportBindDeviceList"></param> /// <param name="supportRoomList"></param> /// <param name="curDeviceBindType">褰撳墠璁惧缁戝畾绫诲瀷 1:寮�鍏� 2:鎻掑骇 3:鐏厜 4:閬槼 5:绌鸿皟 6:鏂伴</param> - /// <param name="curBindTypeList">褰撳墠绫诲瀷鐨勭粦瀹氳〃</param> + /// <param name="curBindTypeList">褰撳墠绫诲瀷鐨勭粦瀹氳〃</param> /// <returns></returns> public static List<CommonDevice> GetAllRoomSupportDeviceList(List<CommonDevice> currentPanelSupportBindDeviceList, List<Room> supportRoomList, List<BindListAllInfo> curBindTypeList, int curDeviceBindType) { @@ -636,7 +651,7 @@ /// </summary> /// <param name="currentPanelSupportBindSceneList"></param> /// <param name="supportRoomList"></param> - /// <param name="curBindTypeList">褰撳墠绫诲瀷鐨勭粦瀹氳〃</param> + /// <param name="curBindTypeList">褰撳墠绫诲瀷鐨勭粦瀹氳〃</param> /// <param name="curDeviceBindType">褰撳墠璁惧缁戝畾绫诲瀷 0:鍦烘櫙</param> /// <returns></returns> public static List<SceneUI> GetAllRoomSupportSceneList(List<SceneUI> currentPanelSupportBindSceneList, List<Room> supportRoomList, List<BindListAllInfo> curBindTypeList, int curDeviceBindType = 0) -- Gitblit v1.8.0