From cbc156bc38d8b8eae7aef60cb186ab2b52fa701f Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 16 七月 2024 13:59:56 +0800 Subject: [PATCH] 增加全部挂断 --- HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs index a10b239..7661e18 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs @@ -661,12 +661,14 @@ { new System.Threading.Thread(() => { + foreach (var tempSensor in sensorList) { if (index >= 6) { break; } + if (tempSensor.sid == function.sid) { continue; @@ -729,7 +731,7 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.TextFontSize, - Text = function.name, + Text = tempSensor.name, IsBold = true, }; otherInfoView.AddChidren(btnSensorName); @@ -824,6 +826,12 @@ }); System.Threading.Thread.Sleep(50); } + Application.RunOnMainThread(() => { + if (index > 1) + { + contentView.ScrollEnabled = true; + } + }); }).Start(); } catch(Exception ex) @@ -836,6 +844,7 @@ LoadMothed_GetSensorHistoryData(); LoadEvent_ChangeSensorHistoryShowType(); } + } @@ -900,7 +909,7 @@ } ebl.InitXdataText(vs); } - yDataString += ebl.InitYdataText(sr.name, revertData, tipColorStringList[i]); + yDataString += ebl.InitYdataText("", revertData, tipColorStringList[i]); } } i++; @@ -909,6 +918,8 @@ Application.RunOnMainThread(() => { + ebl.xTitle = ""; + ebl.yTitle = ""; myEchartsView.ShowWithOption(ebl.InitOption()); }); -- Gitblit v1.8.0