From 533735b4bbaea0f7a87ccd3d1781ea7d469f75b5 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期二, 06 七月 2021 09:34:37 +0800 Subject: [PATCH] 合并乐橙代码 --- HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs | 48 +++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 41 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs index 47f2d15..5b55584 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs @@ -150,7 +150,7 @@ } } break; - case SPK.SensoruUtrasonic: + case SPK.SensorUtrasonic: { LogicView.FunTypeView view = new LogicView.FunTypeView(); @@ -172,6 +172,21 @@ if (edit) { GetEditState(device, index, view.btnState, view1.btnState, null, null); + } + } + break; + case SPK.SenesorMegahealth: + { + LogicView.FunTypeView view = new LogicView.FunTypeView(); + view.btnText.TextID = StringId.mubiaozhuangtai ;//鐩爣鐘舵�� + fLayout.AddChidren(view.FLayoutView()); + view.btnClick.MouseUpEventHandler += (sender, e) => + { + DeviceView(device, view.btnState, StringId.wuren, StringId.diedao); + }; + if (edit) + { + GetEditState(device, index, view.btnState, null, null, null); } } break; @@ -263,9 +278,14 @@ case SPK.SensorDuiShe: case SPK.SensorPir: case SPK.SensorDoorWindow: - case SPK.SensoruUtrasonic: + case SPK.SensorUtrasonic: { keyVlaue = "status"; + } + break; + case SPK.SenesorMegahealth: + { + keyVlaue = "action_state"; } break; @@ -294,12 +314,21 @@ value = "off"; } break; - case StringId.youren: { + case StringId.youren: + { value = "true"; } break; - case StringId.wuren: { - value = "false"; + case StringId.wuren: + { + if (device.spk == SPK.SenesorMegahealth) + { + value = "uninhabited"; + } + else + { + value = "false"; + } } break; case StringId.kaiqi: @@ -312,15 +341,20 @@ value = "close"; } break; - case StringId.zaixian: { + case StringId.zaixian: + { keyVlaue = "dismantle"; value = "true"; - };break; + }; break; case StringId.buzaixian: { keyVlaue = "dismantle"; value = "false"; }; break; + case StringId.diedao: + { + value = "fall"; + }; break; } //鏄剧ず鏂囨湰 button.TextID = intValue; -- Gitblit v1.8.0