From 1f26d743028ceb7e37555e1e89cd078e90a5c242 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 04 七月 2022 10:46:07 +0800 Subject: [PATCH] 毫米波传感器对接 --- HDL_ON/UI/UI2/FuntionControlView/ArmSensor/SenesorMegahealthPage.cs | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmSensor/SenesorMegahealthPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmSensor/SenesorMegahealthPage.cs index fc66920..a547f49 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/ArmSensor/SenesorMegahealthPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/ArmSensor/SenesorMegahealthPage.cs @@ -119,6 +119,7 @@ { Application.RunOnMainThread(() => { var temp = device.attributes.Find((sta) => sta.key == FunctionAttributeKey.ActionStatus); + if (temp != null) { if (temp.state == "fall") //璺屽�� @@ -140,6 +141,38 @@ btnSuctionView.IsSelected = true; } } + + else + { + temp = device.attributes.Find((sta) => sta.key == FunctionAttributeKey.PeopleStatus); + if (temp != null) + { + if (temp.state == "true") + { + btnIcon.IsSelected = true; + btnSuctionView.TextID = StringId.Someone; + btnSuctionView.IsSelected = true; + } + else + { + btnIcon.IsSelected = false; + btnSuctionView.TextID = StringId.SensorNormalState; + btnSuctionView.IsSelected = false; + } + //澧炲姞瀹為獙瀹ゆā寮忓弽棣� + var tempStatus = device.attributes.Find((sta) => sta.key == FunctionAttributeKey.TargetStatus); + if(tempStatus != null) + { + if(tempStatus.state == "4") + { + btnIcon.UnSelectedImagePath = "FunctionIcon/ArmSensor/SomeoneFellBgIcon.png"; + btnSuctionView.TextID = StringId.SomeoneFell; + btnSuctionView.IsSelected = true; + } + } + } + } + }); } -- Gitblit v1.8.0