From 841e7972869b6e967d06da0d91186cd69f1d4eb5 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期二, 26 九月 2023 14:59:12 +0800 Subject: [PATCH] 2023年09月26日14:59:01 --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs index 8954694..3031525 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs @@ -361,7 +361,7 @@ } else if (SPK.SensorPm10 == device.spk || SPK.SensorPirHold == device.spk - || SPK.SensorLight == device.spk) + ) { return "LogicIcon/sensor.png"; } @@ -370,7 +370,15 @@ { return "FunctionIcon/DoorLock/DoorLock.png"; } - + else if (SPK.SensorDryContact == device.spk + || SPK.SensorDryContact2 == device.spk) + { + return "LogicIcon/ganjiedian.png"; + } + else if (SPK.SensorLight == device.spk) + { + return "LogicIcon/lightloguc.png"; + } //LogicIcon/heatlogic.png" return $"FunctionIcon/Icon/{device.IconName}.png"; @@ -1223,7 +1231,7 @@ //妯℃嫙璁惧 var functions = new List<Function> { new Entity.Function { sid = "1234567890", name = "鍏夌収浼犳劅鍣�", spk = Entity.SPK.SensorLight }, - new Entity.Function { sid = "1234567891", name = "鎻掑骇", spk = Entity.SPK.PanelSocket }, + new Entity.Function { sid = "1234567891", name = "骞茶妭鐐�", spk = Entity.SPK.SensorDryContact }, new Entity.Function { sid = "1234567892", name = "绱ф�ユ眰鍔╀紶鎰熷櫒", spk = Entity.SPK.SensorHelp }, //new Entity.Function { sid = "12345678933456", name = "闂ㄩ攣", spk = Entity.SPK.DoorLock }, // new Entity.Function { sid = "1234567895444", name = "瑙嗛闂ㄩ攣", spk = Entity.SPK.VideoDoorLock }, -- Gitblit v1.8.0