From dee21bf452a8979d0515d13e534fbb69ed9715dd Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 01 九月 2020 15:33:13 +0800
Subject: [PATCH] 上传一个版本

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs |   34 ++++++++++++++++------------------
 1 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs
index 30314e1..e7f0c06 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs
@@ -11,7 +11,9 @@
 namespace Shared.Phone.UserCenter.Device.Bind
 {
     /// <summary>
-    /// /鍙娇鐢ㄤ簬绠�绾﹀鍔熻兘闈㈡澘鐨勬柟娉�
+    /// 鍙娇鐢ㄤ簬绠�绾﹀鍔熻兘闈㈡澘鐨勬柟娉�
+    /// 銆愪竴涓寜閿彧鑳戒竴涓洰鏍囷紝涓�瀵逛竴缁戝畾銆備絾鏄鍔熻兘闈㈡澘60鎸夐敭锛屾渶澶氱粦瀹�60涓洰鏍囥��
+    /// 缁戝畾涓暟 鏈�澶�20涓満鏅紙鎸夐敭31锝�52锛�  鏈�澶�10涓紑鍏筹紙鎸夐敭52锝�61锛�  鏈�澶�10涓彃搴э紙鎸夐敭52锝�61锛�  鏈�澶�17涓伅鍏夛紙鎸夐敭52锝�61鎴栬��22锝�28锛�  鏈�澶�8涓伄闃筹紙鎸夐敭14锝�21锛� 鏈�澶�3涓┖璋冿紙鎸夐敭2锝�4锛� 鏈�澶�1涓柊椋庯紙鎸夐敭13锛�</param>
     /// </summary>
     public class MutilfunctionPanelMethod
     {
@@ -21,29 +23,25 @@
         /// </summary>
         public static int curSwitchCount = 0;
         /// <summary>
-        /// 鎻掑骇鐨勪釜鏁奥�
+        /// 鎻掑骇鐨勪釜鏁奥燵姣忔杩涘叆鍒板鍔熻兘缁戝畾鐣岄潰锛岄兘瑕佽閲嶆柊鍙栧�糫
         /// </summary>
         public static int curSocketCount = 0;
         /// <summary>
-        /// 鐏厜涓暟聽[浠庣户鐢靛櫒涓垎閰嶇殑鍔熻兘绫诲瀷鏄伅鍏塢
+        /// 鐏厜涓暟聽[浠庣户鐢靛櫒涓垎閰嶇殑鍔熻兘绫诲瀷鏄伅鍏塢[姣忔杩涘叆鍒板鍔熻兘缁戝畾鐣岄潰锛岄兘瑕佽閲嶆柊鍙栧�糫
         /// </summary>
         public static int curLightFromRelayCount = 0;
         /// <summary>
-        /// 璋冨厜涓暟聽
+        /// 璋冨厜涓暟聽[姣忔杩涘叆鍒板鍔熻兘缁戝畾鐣岄潰锛岄兘瑕佽閲嶆柊鍙栧�糫
         /// </summary>
         public static int curLightCount = 0;
-        /// <summary>
-        /// 澶氬姛鑳介潰鏉夸腑琚粦瀹氱殑鐩爣
-        /// </summary>
-        public static System.Collections.Generic.Dictionary<string, List<BindListAllInfo>> bindTargetsFromMutilfunctionPanelList = new System.Collections.Generic.Dictionary<string, List<BindListAllInfo>>();
         #endregion
 
         /// <summary>
         /// 鑾峰彇闈㈡澘宸茬粡缁戝畾鐨勫尮閰嶇被鍨嬬殑鍒楄〃
-        /// <param name="curBindType">褰撳墠绫诲瀷 0:鍦烘櫙  1:寮�鍏�  2:鎻掑骇  3:鐏厜  4:閬槼 5:绌鸿皟 6:鏂伴</param>
+        /// <param name="curBindType">褰撳墠绫诲瀷 0:鍦烘櫙  1:寮�鍏�   2:鎻掑骇   3:鐏厜  4:閬槼  5:绌鸿皟  6:鏂伴 </param>
         /// </summary>
         /// <returns></returns>
-        public static List<BindListAllInfo> GetMatchBindList(int curBindType)
+        public static List<BindListAllInfo> GetMatchBindList(Panel curControlDev, int curBindType)
         {
             var tempList = new List<BindListAllInfo>();
             int count1 = 0;
@@ -63,9 +61,9 @@
                     break;
             }
 
-            foreach (var key in bindTargetsFromMutilfunctionPanelList.Keys)
+            foreach (var key in curControlDev.bindTargetsFromMutilfunctionPanelList.Keys)
             {
-                var bList = bindTargetsFromMutilfunctionPanelList[key];
+                var bList = curControlDev.bindTargetsFromMutilfunctionPanelList[key];
                 foreach (var bDev in bList)
                 {
                     if (curBindType == 0)
@@ -177,7 +175,7 @@
         /// <param name="curBindType">褰撳墠绫诲瀷 0:鍦烘櫙  1:寮�鍏�  2:鎻掑骇  3:鐏厜  4:閬槼 5:绌鸿皟 6:鏂伴</param>
         /// </summary>
         /// <returns></returns>
-        public static void UpdateLightCount(int curBindType)
+        public static void UpdateLightCount(Panel curControlDev, int curBindType)
         {
 
             if (curBindType == 1 || curBindType == 2 || curBindType == 3)
@@ -187,9 +185,9 @@
                 curLightFromRelayCount = 0;
                 curLightCount = 0;
 
-                foreach (var key in bindTargetsFromMutilfunctionPanelList.Keys)
+                foreach (var key in curControlDev.bindTargetsFromMutilfunctionPanelList.Keys)
                 {
-                    var bList = bindTargetsFromMutilfunctionPanelList[key];
+                    var bList = curControlDev.bindTargetsFromMutilfunctionPanelList[key];
                     foreach (var bDev in bList)
                     {
                         var device = LocalDevice.Current.GetDevice(bDev.BindMacAddr, bDev.BindEpoint);
@@ -294,12 +292,12 @@
         /// <param name="curBindType">褰撳墠绫诲瀷 0:鍦烘櫙  1:寮�鍏�  2:鎻掑骇  3:鐏厜  4:閬槼 5:绌鸿皟 6:鏂伴</param>
         /// </summary>
         /// <returns></returns>
-        public static List<int> GetMatchEpointList(int curBindType)
+        public static List<int> GetMatchEpointList(Panel curControlDev, int curBindType)
         {
             var tempList = MatchEpointList(curBindType);
-            foreach (var key in bindTargetsFromMutilfunctionPanelList.Keys)
+            foreach (var key in curControlDev.bindTargetsFromMutilfunctionPanelList.Keys)
             {
-                var bList = bindTargetsFromMutilfunctionPanelList[key];
+                var bList = curControlDev.bindTargetsFromMutilfunctionPanelList[key];
                 foreach (var bDev in bList)
                 {
                     if (curBindType == 0)

--
Gitblit v1.8.0