From e22fdb94322e6cec38e5e4a9aec13d431a133fde Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 28 四月 2020 16:32:35 +0800
Subject: [PATCH] 上传合并后的代码

---
 ZigbeeApp/Shared/Phone/Device/Logic/Method.cs |   41 ++++++++++++++++++++++-------------------
 1 files changed, 22 insertions(+), 19 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/Method.cs b/ZigbeeApp/Shared/Phone/Device/Logic/Method.cs
index 12f8acd..5df1e25 100755
--- a/ZigbeeApp/Shared/Phone/Device/Logic/Method.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/Method.cs
@@ -767,15 +767,20 @@
                 {
                     succeed = true;
                     CurrentLogic.LogicId = logicifon.LogicId;
+                    if (LogicView.IfString._Logic == if_logic || LogicView.IfString._SoneLogic == if_logic)
+                    {
+                        //鑷姩鍖栭�昏緫鍒楄〃
+                        Common.Logic.LogicList.Add(CurrentLogic);
+                    }
                     if (LogicView.IfString._LockLogic == if_logic)
                     {
                         //闂ㄩ攣鑱斿姩浜嬩欢閫昏緫鍒楄〃
                         Common.Logic.LockLogicList.Add(CurrentLogic);
                     }
-                    else
+                    if (LogicView.IfString._SoneLogic == if_logic)
                     {
-                        //鑷姩鍖栭�昏緫鍒楄〃
-                        Common.Logic.LogicList.Add(CurrentLogic);
+                        //Sone闂ㄩ攣鑱斿姩浜嬩欢閫昏緫鍒楄〃
+                        Common.Logic.SoneLogicList.Add(CurrentLogic);
 
                     }
                     if (tag)
@@ -802,34 +807,32 @@
                 //TipView("娣诲姞鑷姩鍖栧け璐�");
                 //return;
             }
-          
 
+            UserView.HomePage.Instance.RemoveViewByTag("Logic");//绉婚櫎鎵�鏈夋爣璁癓ogic鐣岄潰
             if (LogicView.IfString._Logic == if_logic)
             {
-                UserView.HomePage.Instance.RemoveViewByTag("Logic");
-                if (CurrentLogic.LogicType == 0)
-                {
-                    //鍙埛鏂板垎绫讳笂涓嬫粦鍔╲iew锛�
-                    Phone.Category.CategoryMainForm.instance?.RefreshBodyView();
-                    // Category.Category.instance?.RefreshBodyView();
-                }
-                else if (CurrentLogic.LogicType == 2)
-                {
-                    //鍒锋柊鏁翠釜鍒嗙被锛�
-                    //闂ㄩ攣甯稿紑妯″紡鐗规畩;
-                    UserView.UserPage.Instance.ShowCategoryAutoListForm();
-
-                }
+                //鍙埛鏂板垎绫�-鑷姩鍖栦笂涓嬫粦鍔╲iew锛�
+                Phone.Category.CategoryMainForm.instance?.RefreshBodyView();
+                // Category.Category.instance?.RefreshBodyView();
             }
             else if (LogicView.IfString._LockLogic == if_logic)
             {
-                UserView.HomePage.Instance.RemoveViewByTag("Logic");//绉婚櫎鎵�鏈夋爣璁癓ogic鐣岄潰
+                //璺冲埌闂ㄩ攣鑱斿姩浜嬩欢鍒楄〃鐣岄潰
                 UserView.HomePage.Instance.RemoveViewByTag("LockListView");//绉婚櫎鎵�鏈夋爣璁癓ockListView鐣岄潰
                 var doorLockLogicList = new DoorLockLogic.LockLogicList();
                 UserView.HomePage.Instance.AddChidren(doorLockLogicList);
                 UserView.HomePage.Instance.PageIndex += 1;
                 doorLockLogicList.Show();
             }
+            else if (LogicView.IfString._SoneLogic == if_logic)
+            {
+                //璺冲埌Sone闂ㄩ攣鑱斿姩浜嬩欢鍒楄〃鐣岄潰
+                UserView.HomePage.Instance.RemoveViewByTag("SoneLogic");//绉婚櫎鎵�鏈夋爣璁癓ockListView鐣岄潰
+                var soneLogicList = new SoneLogicList();
+                UserView.HomePage.Instance.AddChidren(soneLogicList);
+                UserView.HomePage.Instance.PageIndex += 1;
+                soneLogicList.Show();
+            }
 
         }
         /// <summary>

--
Gitblit v1.8.0