From fdbcb1f7463cb766f90bd29dd715485ba9d88524 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 06 九月 2023 17:55:03 +0800
Subject: [PATCH] Merge branch 'wxr-2.0' into Dev-Branch

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs
index baf20b9..1e2e788 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs
@@ -206,7 +206,7 @@
                 function.spk = videoDevice.spk;
                 function.name = videoDevice.deviceName;
                 function.deviceId = videoDevice.deviceId;
-                function.online = videoDevice.status == "online";
+                function.setOnine( videoDevice.status == "online");
                 function.sid = videoDevice.sid;
                 var video = functionList.Find((o) => o.deviceId == function.deviceId);
                 if (video == null)
@@ -359,7 +359,9 @@
             {
                 return "MusicIcon/localMusic.png";
             }
-            else if (SPK.SensorPm10 == device.spk || SPK.SensorPirHold == device.spk)
+            else if (SPK.SensorPm10 == device.spk
+                || SPK.SensorPirHold == device.spk
+                || SPK.SensorLight == device.spk)
             {
                 return "LogicIcon/sensor.png";
             }
@@ -368,6 +370,7 @@
             {
                 return "FunctionIcon/DoorLock/DoorLock.png";
             }
+
             //LogicIcon/heatlogic.png"
             return $"FunctionIcon/Icon/{device.IconName}.png";
 
@@ -576,6 +579,7 @@
                           || device.spk == SPK.SensorHelp
                           || device.spk == SPK.SensorPm10
                           || device.spk == SPK.SensorPirHold
+                          || device.spk == SPK.SensorLight
             );
             if (sensor != null)
             {
@@ -707,6 +711,7 @@
                 functionTypeList.Add(SPK.SensorHelp);
                 functionTypeList.Add(SPK.SensorPm10);
                 functionTypeList.Add(SPK.SensorPirHold);
+                functionTypeList.Add(SPK.SensorLight);
 
 
             }
@@ -810,6 +815,7 @@
                 functionTypeList.Add(SPK.AcIr);
                 functionTypeList.Add(SPK.SensorPirHold);
                 functionTypeList.Add(SPK.ElectricalTvHisense);
+                functionTypeList.Add(SPK.SensorLight);
 
             }
 
@@ -874,6 +880,7 @@
                         deviceTypeList.Add(SPK.VideoDoorLock);
                         deviceTypeList.Add(SPK.AcIr);
                         deviceTypeList.Add(SPK.SensorPirHold);
+                        deviceTypeList.Add(SPK.SensorLight);
 
                     }
                     break;
@@ -1215,8 +1222,8 @@
             {
                 //妯℃嫙璁惧
                 var functions = new List<Function> {
-                 //new Entity.Function { sid = "1234567890", name = "瓒呭0娉紶鎰熷櫒", spk = Entity.SPK.SensorUtrasonic },
-                 // new Entity.Function { sid = "1234567891", name = "娓╁害浼犳劅鍣�", spk = Entity.SPK.SensorTemperature },
+                 new Entity.Function { sid = "1234567890", name = "鐓ф槑浼犳劅鍣�", spk = Entity.SPK.SensorLight },
+                  new Entity.Function { sid = "1234567891", name = "鎻掑骇", spk = Entity.SPK.PanelSocket },
                  //  new Entity.Function { sid = "1234567892", name = "婀垮害浼犳劅鍣�", spk = Entity.SPK.SensorHumidity },
                     //new Entity.Function { sid = "12345678933456", name = "闂ㄩ攣", spk = Entity.SPK.DoorLock },
                     //  new Entity.Function { sid = "1234567895444", name = "瑙嗛闂ㄩ攣", spk = Entity.SPK.VideoDoorLock },

--
Gitblit v1.8.0