From 56dfdc1bf7e7f2bb2456f29c3686dfa935a89e80 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 30 六月 2022 13:59:45 +0800
Subject: [PATCH] 2022年06月30日13:59:08

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs |   33 +++++++++++++++------------------
 1 files changed, 15 insertions(+), 18 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..2072723 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
@@ -9,14 +9,6 @@
         {
             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 +41,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,27 +61,30 @@
             likiadaodaView.frameLayout.Y = shiwaiView.frameLayout.Bottom;
             likiadaodaView.btnText.TextID = StringId.likiadaoda;
             likiadaodaView.btnIcon.UnSelectedImagePath = "LogicIcon/location.png";
-
-            if (MainView.IsGatewayType)
-            {
-                viewLayout.AddChidren(likiadaodaView.FLayoutView());
-            }
+            int count = 3;//杈撳叆绫诲瀷涓暟
+            //2022骞�05鏈�24鏃�15:08:22 闅愯棌鎺夊湴鐞嗗洿鏍�
+            //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, shiwaiView.frameLayout.Bottom, count);
 
             #endregion
 
             #region  鎵�鏈夌偣鍑讳簨浠�
             //鏃堕棿
             timeView.btnClick.MouseUpEventHandler += (sen, e) =>
-      {
+             {
+
           TimeTpye timeTpye = new TimeTpye();
           MainPage.BasePageView.AddChidren(timeTpye);
           timeTpye.Show();
           MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
 
-      };
+             };
             
             //鍦烘櫙鐐瑰嚮浜嬩欢
             sceneView.btnClick.MouseUpEventHandler += (sen, e) =>

--
Gitblit v1.8.0