From 9bb130c33dabc1e33a1264d0723bf4fab52623d7 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期二, 05 九月 2023 10:30:24 +0800 Subject: [PATCH] 2023年09月05日10:29:37 --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs | 4 ++-- HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs | 3 ++- HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs | 12 ++++++------ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs index 31916af..803d84e 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs @@ -1045,7 +1045,8 @@ //鎻掑骇(鏈塙SB) case SPK.PanelSocket: { - string on_off = GetKeyValue("on_off_master", dicList); + //string on_off = GetKeyValue("on_off_master", dicList); + string on_off = GetKeyValue("on_off", dicList); if (on_off == "on") { stateStr = Language.StringByID(StringId.onLogic); diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs index 8d03e9a..b9b260f 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs @@ -189,7 +189,7 @@ list.AddRange(list2); list.AddRange(FunctionList.List.groupControls); #if DEBUG - //GetTestDevice(ref list, true); + GetTestDevice(ref list, true); #endif return list; } @@ -1223,7 +1223,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.SensorTemperature }, + 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 }, diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs index 89a1e85..a9274cb 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs @@ -145,8 +145,8 @@ #region 鐣岄潰 ///鎬绘帶寮�鍏� LogicView.FunTypeView view1 = new LogicView.FunTypeView(); - view1.btnText.TextID = StringId.zongkogkaiguan; - view1.btnState.Name = "鎬绘帶寮�鍏�"; + view1.btnText.TextID = StringId.switchLogic; + //view1.btnState.Name = "鎬绘帶寮�鍏�"; fLayout.AddChidren(view1.FLayoutView()); ///璁惧寤舵椂iewv DelayView(fLayout, view1.frameLayout.Bottom); @@ -1100,10 +1100,10 @@ { case SPK.PanelSocket: { - if (button.Name == "鎬绘帶寮�鍏�") - { - key = "on_off_master"; - } + //if (button.Name == "鎬绘帶寮�鍏�") + //{ + // key = "on_off_master"; + //} } break; case SPK.GroupControl: -- Gitblit v1.8.0