From ca233e3c6154859a17948d892fbc6bbf723b60a8 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期五, 29 五月 2020 15:47:30 +0800
Subject: [PATCH] 发布的1.0.20052901

---
 ZigbeeApp20200525/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs |   49 ++++++++++++++++++++++++++++++++++---------------
 1 files changed, 34 insertions(+), 15 deletions(-)

diff --git a/ZigbeeApp20200525/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs b/ZigbeeApp20200525/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
index fefadb2..269b005 100755
--- a/ZigbeeApp20200525/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
+++ b/ZigbeeApp20200525/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs
@@ -316,20 +316,38 @@
             int heightValue = ControlCommonResourse.ListViewRowHeight + rowInfo.frameTable.rowSpace;
             var listDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceMac);
             if (isShow == true)
-            {
-                //灞曞紑妯″紡鏃讹紝鎵╁ぇ渚濇嵁涓�:瀹冩湁鍑犱釜瀛愭帶浠�
-                heightValue = (listDevice.Count + 1) * (ControlCommonResourse.ListViewRowHeight + rowInfo.frameTable.rowSpace);
-                //鏍囬鑷繁灏辨槸涓�涓瓙鎺т欢
-                if (rowInfo.frameTable.ChildrenCount == 1)
-                {
-                    //鑾峰彇杩欎竴鍫嗚澶囨椂灞炰簬浠�涔堢被鍨嬬殑
-                    var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(listDevice);
-                    foreach (CommonDevice info in listDevice)
-                    {
-                        //鍔犺浇瀹冪殑鍒楄〃
-                        this.AddDeviceDetailRow(rowInfo.frameTable, info, deviceEnumInfo);
+            {
+                //鑾峰彇杩欎竴鍫嗚澶囨椂灞炰簬浠�涔堢被鍨嬬殑
+                var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(listDevice);
+                if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_SimpleMultifunction)
+                {
+                    var listTemp = Common.LocalDevice.Current.GetMutilfunctionPanelByMac(listDevice);
+                    //灞曞紑妯″紡鏃讹紝鎵╁ぇ渚濇嵁涓�:瀹冩湁鍑犱釜瀛愭帶浠�
+                    heightValue = (listTemp.Count + 1) * (ControlCommonResourse.ListViewRowHeight + rowInfo.frameTable.rowSpace);
+                    //鏍囬鑷繁灏辨槸涓�涓瓙鎺т欢
+                    if (rowInfo.frameTable.ChildrenCount == 1)
+                    {
+                        foreach (CommonDevice info in listTemp)
+                        {
+                            //鍔犺浇瀹冪殑鍒楄〃
+                            this.AddDeviceDetailRow(rowInfo.frameTable, info, deviceEnumInfo);
+                        }
+                    }
+                }
+                else
+                {
+                    //灞曞紑妯″紡鏃讹紝鎵╁ぇ渚濇嵁涓�:瀹冩湁鍑犱釜瀛愭帶浠�
+                    heightValue = (listDevice.Count + 1) * (ControlCommonResourse.ListViewRowHeight + rowInfo.frameTable.rowSpace);
+                    //鏍囬鑷繁灏辨槸涓�涓瓙鎺т欢
+                    if (rowInfo.frameTable.ChildrenCount == 1)
+                    {
+                        foreach (CommonDevice info in listDevice)
+                        {
+                            //鍔犺浇瀹冪殑鍒楄〃
+                            this.AddDeviceDetailRow(rowInfo.frameTable, info, deviceEnumInfo);
+                        }
                     }
-                }
+                }
             }
             //鑷韩楂樺害鍙樻洿
             rowInfo.frameTable.Height = heightValue;
@@ -447,8 +465,8 @@
             {
                 var form = new DeviceFunctionSettionForm();
                 form.AddForm(device, true);
-            }
-            //鏂伴闈㈡澘
+            }
+            //鏂伴闈㈡澘
             else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir)
             {
                 //鏂规偊鏂伴闈㈡澘鐨勬寜閿厤缃�
@@ -464,6 +482,7 @@
                     form.AddForm(device, true);
                 }
             }
+
             //鏂规偊闈㈡澘
             else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueTwo
                 || deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFour

--
Gitblit v1.8.0