From 23fb45dd846ed8b62304c408c6bbe64265d4ac8b Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 20 十二月 2019 18:57:16 +0800
Subject: [PATCH] 代码合并

---
 ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs |   38 ++------------------------------------
 1 files changed, 2 insertions(+), 36 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs
index 73b6939..df51a9c 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/SharedContent/LookSharedContentForm.cs
@@ -389,43 +389,9 @@
             foreach (var device in listDevice)
             {
                 var typeInfo = Common.LocalDevice.Current.GetNotHdlMyDeviceEnumInfo(new List<ZigBee.Device.CommonDevice>() { device });
-                if (device.Type == DeviceType.IASZone)
+                if (dic.ContainsKey(typeInfo.BeloneTextId) == false)
                 {
-                    //杩欎釜寮哄埗涓轰紶鎰熷櫒
-                    typeInfo.BeloneTextId = R.MyInternationalizationString.uDeviceBelongId1200;
-                    typeInfo.ConcreteType = Common.DeviceConcreteType.Sensor;
-                }
-                if (device.Type == DeviceType.OnOffOutput)
-                {
-                    //缁х數鍣ㄧ殑鏃跺��,闇�瑕佺壒娈婂鐞�
-                    if (device.DfunctionType == DeviceFunctionType.A寮�鍏�)
-                    {
-                        typeInfo.BeloneTextId = R.MyInternationalizationString.uSwitch;
-                    }
-                    else if (device.DfunctionType == DeviceFunctionType.A鎻掑骇)
-                    {
-                        typeInfo.BeloneTextId = R.MyInternationalizationString.uSocket1;
-                    }
-                    else if (device.DfunctionType == DeviceFunctionType.A鐏厜)
-                    {
-                        typeInfo.BeloneTextId = R.MyInternationalizationString.uLight;
-                    }
-                    else
-                    {
-                        //缁х數鍣�
-                        typeInfo.BeloneTextId = R.MyInternationalizationString.uDeviceBelongId2300;
-                    }
-                    if (dic.ContainsKey(typeInfo.BeloneTextId) == false)
-                    {
-                        dic[typeInfo.BeloneTextId] = new List<CommonDevice>();
-                    }
-                }
-                else
-                {
-                    if (dic.ContainsKey(typeInfo.BeloneTextId) == false)
-                    {
-                        dic[typeInfo.BeloneTextId] = new List<CommonDevice>();
-                    }
+                    dic[typeInfo.BeloneTextId] = new List<CommonDevice>();
                 }
                 dic[typeInfo.BeloneTextId].Add(device);
             }

--
Gitblit v1.8.0