From 1f26d743028ceb7e37555e1e89cd078e90a5c242 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 04 七月 2022 10:46:07 +0800
Subject: [PATCH] 毫米波传感器对接

---
 HDL_ON/UI/UI2/1-HomePage/HomePage.cs |   39 ++++++++++++++++++++++++++++-----------
 1 files changed, 28 insertions(+), 11 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
index 33dc5d2..c13e415 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -206,17 +206,17 @@
                     //    Control.Ins.OneKeyUnlocking(new Function(), UserInfo.Current.doorPasswordString);
                     //}
 
-                ddd++;
-                    Function function_online = FunctionList.List.GetLightList().Find((obj) => obj.sid == "0001017DB92D2602020100010101");
-                    if(ddd%2 == 0)
-                    {
-                        function_online.online = true;
-                    }
-                    else
-                    {
-                        function_online.online = false;
-                    }
-                    HomePage.LoadEvent_RefreshDevcieOnline(function_online);
+                //ddd++;
+                //    Function function_online = FunctionList.List.GetLightList().Find((obj) => obj.sid == "0001017DB92D2602020100010101");
+                //    if(ddd%2 == 0)
+                //    {
+                //        function_online.online = true;
+                //    }
+                //    else
+                //    {
+                //        function_online.online = false;
+                //    }
+                //    HomePage.LoadEvent_RefreshDevcieOnline(function_online);
                     
 
                 };
@@ -591,6 +591,23 @@
                 }
             });
 
+            FunctionList.List.Functions.Add(new Function
+            {
+                name = "娴嬭瘯姣背娉紶鎰熷櫒",
+                spk = SPK.SenesorMegahealth,
+                attributes = new List<FunctionAttributes>
+                {
+                    new FunctionAttributes(){ key = "enable",curValue = "true",state = "true" },
+                    new FunctionAttributes(){ key = "people_num",curValue = "0",state = "0" },
+                    new FunctionAttributes(){ key = "people_id",curValue = "1",state = "1" },
+                    new FunctionAttributes(){ key = "target_status",curValue = "0",state = "0" },//0绌猴紝1璧帮紝2璺戯紝3鍧愶紝4璺屽�掞紝5绔�
+                    new FunctionAttributes(){ key = "people_status",curValue = "false",state = "false" },//鐘舵��  鏈変汉鏃犱汉
+                    //new FunctionAttributes(){ key = "",curValue = "",state = "" },
+                    //new FunctionAttributes(){ key = "",curValue = "",state = "" },
+                    //new FunctionAttributes(){ key = "",curValue = "",state = "" },
+                }
+            });
+
             //FunctionList.List.Functions.Add(new Function
             //{
             //    name = "闂ㄩ攣",

--
Gitblit v1.8.0