From 6b6a65cc86b668b57a84d6d8a7bec4c43ddcc0f5 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 02 十二月 2020 20:35:02 +0800
Subject: [PATCH] 2020-12-02-4

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs |   32 ++++++++++++++++++++++++++++++--
 1 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs
index 64c4bb1..5a1b895 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs
@@ -123,8 +123,32 @@
         /// <returns></returns>
         public static List<HDL_ON.Entity.Function> GetGatewayDeviceList()
         {
-
-            return HDL_ON.Entity.DB_ResidenceData.functionList.GetAllFunction();
+            List<HDL_ON.Entity.Function> list = new List<Entity.Function>();
+            for (int i=0;i<3;i++) {
+                HDL_ON.Entity.Function function = new Entity.Function();
+                switch (i) {
+                    case 0: {
+                            function.sid = "1234560001212121020182";
+                            function.name ="鐏厜";
+                            list.Add(function);
+                        }
+                        break;
+                    case 1: {
+                          
+                            function.sid = "1234560001212121030182";
+                            function.name = "绐楀笜";
+                            list.Add(function);
+                        } break;
+                    case 2: {
+                            function.sid = "1234560001212121040182";
+                            function.name = "绌鸿皟";
+                            list.Add(function);
+                        } break;
+                     
+                }
+            }
+            return list;
+            //return HDL_ON.Entity.DB_ResidenceData.functionList.GetAllFunction();
         }
         /// <summary>
         /// 鑾峰彇缃戝叧鍦烘櫙鍒楄〃
@@ -296,11 +320,15 @@
             switch (if_type) {
                 case condition_if: {
                         deviceTypeList.Add(FunctionType.Relay);
+                        deviceTypeList.Add(FunctionType.Curtain);
+                        deviceTypeList.Add(FunctionType.AC);
                     }
                     break;
                 case target_if:
                     {
                         deviceTypeList.Add(FunctionType.Relay);
+                        deviceTypeList.Add(FunctionType.Curtain);
+                        deviceTypeList.Add(FunctionType.AC);
                     }
                     break;
             }

--
Gitblit v1.8.0