From 98c51b309741620d7a9d6bf6260327a6041b8f12 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 22 七月 2022 17:48:12 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/wjc' into release0123 --- HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs index ebfe07b..3c52457 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs @@ -213,7 +213,25 @@ //姣背娉紶鎰熷櫒(鑷爺鍖楅偖) case SPK.SenesorMegahealth: { + int intValue =0; + if (edit) + { + Input inputs = Logic.currlogic.input[index]; + var dicList = inputs.condition; + foreach (var dic in dicList) + { + if (dic["key"] == "target_status") + { + intValue = 1; + } + else + { + intValue = 2; + } + break; + } + } LogicView.FunTypeView view1= new LogicView.FunTypeView(); view1.btnText.TextID = StringId.diedaobaojing; view1.btnState.Name = Language.StringByID(StringId.diedaobaojing); @@ -228,6 +246,16 @@ view2.btnText.TextID = StringId.yourenbaojing; view2.btnState.Name = Language.StringByID(StringId.yourenbaojing); fLayout.AddChidren(view2.FLayoutView()); + + if (intValue==1) { + view2.frameLayout.Visible = false; + + } + if (intValue == 2) + { + view2.frameLayout.Y = Application.GetRealHeight(0); + } + view2.btnClick.MouseUpEventHandler += (sender, e) => { DeviceView(device, view2.btnState, StringId.youren, StringId.wuren, 2); -- Gitblit v1.8.0