From 9281822c02a3b2b7f7f6b4215505095e9ff12fe1 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期日, 06 六月 2021 13:52:26 +0800 Subject: [PATCH] 2021-6-6-1 --- HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs | 44 +++++++++++++++++++++++++++++++++++++++----- 1 files changed, 39 insertions(+), 5 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..b1dd561 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs @@ -175,6 +175,21 @@ } } break; + case SPK.SenesorMegahealth: + { + LogicView.FunTypeView view = new LogicView.FunTypeView(); + view.btnText.TextID = StringId.kaiqiandbihe;//鐩爣鐘舵�� + fLayout.AddChidren(view.FLayoutView()); + view.btnClick.MouseUpEventHandler += (sender, e) => + { + DeviceView(device, view.btnState, StringId.kaiqi, StringId.bihe); + }; + if (edit) + { + GetEditState(device, index, view.btnState, null, null, null); + } + } + break; } #region 淇濆瓨 @@ -268,6 +283,11 @@ keyVlaue = "status"; } break; + case SPK.SenesorMegahealth: + { + keyVlaue = "action_state"; + } + break; } switch (intValue) @@ -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