From 0f2e0147e8990e913d16d99bc1b94fb6bc53abd7 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 03 十二月 2020 15:35:42 +0800
Subject: [PATCH] 2020-12-03-1

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
index 086bd83..87a0886 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -63,7 +63,20 @@
                             //鍖哄埆涓嶅悓璁惧锛屾樉绀轰笉鍚岃澶囩姸鎬�
                             switch (device.functionType)
                             {
+                                //寮�鍏崇伅鍏� light.Switch
+                                case FunctionType.Dimmer:
+                                case FunctionType.RGB:
+                                case FunctionType.RGBW:
+                                case FunctionType.CCT:
                                 case FunctionType.Relay:
+                                //绐楀笜
+                                case FunctionType.Curtain:
+                                case FunctionType.RollerCurtain:
+                                case FunctionType.TrietexCurtain:
+                                //绌鸿皟
+                                case FunctionType.AC:
+                                //鍦扮儹
+                                case FunctionType.FloorHeating:
                                     {//寮�鍏崇伅
                                         foreach (var dic in dicList)
                                         {
@@ -94,8 +107,6 @@
                     int indexVulae = int.Parse(inputView.btnClick.Tag.ToString());
                     //鏍囪缂栬緫鐘舵��
                     bool edit = true;
-                    //琛ㄧず鏄潯浠�
-                    string if_type = LogicMethod.condition_if;
                     switch (button.Name)
                     {
                         case "1":
@@ -125,9 +136,9 @@
                             {
                                 //鐢╯id鎵惧埌璁惧锛�
                                 var device = LogicMethod.GetDevice(inputCondition.sid);
-                                DeviceFunList deviceFunList = new DeviceFunList();
+                                ConditionDeviceFunList deviceFunList = new ConditionDeviceFunList();
                                 MainPage.BasePageView.AddChidren(deviceFunList);
-                                deviceFunList.Show(device, indexVulae, edit, if_type);
+                                deviceFunList.Show(device, indexVulae, edit);
                                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                             }
                             break;
@@ -230,17 +241,15 @@
                     int indexVulae = int.Parse(targetView.btnClick.Tag.ToString());
                     //鏍囪缂栬緫鐘舵��
                     bool edit = true;
-                    //琛ㄧず鏄洰鏍�
-                    string if_type = LogicMethod.target_if;
                     switch (button.Name)
                     {
                         case "1":
                             {
                                 //鐢╯id鎵惧埌璁惧锛�
                                 var device = LogicMethod.GetDevice(outputTarget.sid);
-                                DeviceFunList deviceFunList = new DeviceFunList();
+                                TargetDeviceFunList deviceFunList = new TargetDeviceFunList();
                                 MainPage.BasePageView.AddChidren(deviceFunList);
-                                deviceFunList.Show(device, indexVulae, edit, if_type);
+                                deviceFunList.Show(device, indexVulae, edit);
                                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                             }
                             break;

--
Gitblit v1.8.0