From d9feb1d52963982a89a6e6d741a9b841042ce0b6 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 22 七月 2022 17:22:41 +0800 Subject: [PATCH] 毫米波传感器,温控一体化 --- HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs | 41 ++++++++++++++++++++++++++++++++++++++++- 1 files changed, 40 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs index 3f85a44..dbba017 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs @@ -400,13 +400,52 @@ if (function.GetAttribute(FunctionAttributeKey.Percent) != null) { state = function.GetAttrState(FunctionAttributeKey.Percent) != "0"; - }else + } + else { if (function.GetAttrState(FunctionAttributeKey.OnOff) == "stop") return; state = function.trait_on_off.curValue.ToString() == "on"; } } + else if (function.spk == SPK.SenesorMegahealth) + { + + var tempStatus = function.attributes.Find((sta) => sta.key == FunctionAttributeKey.TargetStatus); + if (tempStatus != null) + { + switch (tempStatus.state) + {//0绌猴紝1璧帮紝2璺戯紝3鍧愶紝4璺屽�掞紝5绔� + case "0": + state = false; + break; + case "1": + state = true; + break; + case "2": + if (function.extSet.labModel) + { + state = true; + } + break; + case "3": + if (function.extSet.labModel) + { + state = true; + } + break; + case "4": + state = true; + break; + case "5": + if (function.extSet.labModel) + { + state = true; + } + break; + } + } + } else { state = function.trait_on_off.curValue.ToString() == "on"; -- Gitblit v1.8.0