From ae86b09b30621e1a8512c6bcdd7e22e9c67a5402 Mon Sep 17 00:00:00 2001
From: lss <lsc@hdlchina.com.cn>
Date: 星期二, 17 五月 2022 14:02:06 +0800
Subject: [PATCH] Merge branch 'dev' into lss

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
index 845f1de..49990a0 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
@@ -9,14 +9,7 @@
         {
             Tag = "Logic";
         }
-        /// <summary>
-        /// 榛樿閫変腑鏄埧闂存椂锛氬叏閮ㄥ尯鍩�
-        /// </summary>
-        private Entity.Room selectedRoom = new Entity.Room { roomId = "6688" };
-        /// <summary>
-        /// 琛ㄧず鏄�(鏉′欢/鐩爣)
-        /// </summary>
-        private string if_type = LogicMethod.condition_if;
+       
         public void Show()
         {
             LogicView.TopView topView = new LogicView.TopView();
@@ -49,8 +42,10 @@
             sceneView.frameLayout.Y = timeView.frameLayout.Bottom;
             sceneView.btnText.TextID = StringId.Scenes;
             sceneView.btnIcon.UnSelectedImagePath = "LogicIcon/scene.png";
-            viewLayout.AddChidren(sceneView.FLayoutView());
-
+            if (MainView.IsGatewayType)
+            {
+                viewLayout.AddChidren(sceneView.FLayoutView());
+            }
             //瀹ゅ鍙樺寲
             LogicView.SelectTypeView shiwaiView = new LogicView.SelectTypeView();
             shiwaiView.frameLayout.Y = sceneView.frameLayout.Bottom;
@@ -67,14 +62,15 @@
             likiadaodaView.frameLayout.Y = shiwaiView.frameLayout.Bottom;
             likiadaodaView.btnText.TextID = StringId.likiadaoda;
             likiadaodaView.btnIcon.UnSelectedImagePath = "LogicIcon/location.png";
-
+            int count = 0;//杈撳叆绫诲瀷涓暟
             if (MainView.IsGatewayType)
             {
+                count = 4;
                 viewLayout.AddChidren(likiadaodaView.FLayoutView());
             }
             ////鍔熻兘
             ///浜у搧缁忕悊鍚涚剷瑕佹眰锛岃澶囧姛鑳界Щ鍒拌繖閲屻��<2022-3-7>
-            new FunTpye(LogicMethod.condition_if).FunTypeView(viewLayout, likiadaodaView.frameLayout.Bottom,4);
+            new FunTpye(LogicMethod.condition_if).FunTypeView(viewLayout, likiadaodaView.frameLayout.Bottom, count);
 
             #endregion
 

--
Gitblit v1.8.0