From c2cae389c932a9ab2c03d67d0276376655f26343 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 06 八月 2024 14:17:04 +0800 Subject: [PATCH] OnPro(安卓/IOS)可视对讲 TCP UDP连接选择 ;自动切换服务器 --- HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs | 28 +++++++++++++--------------- 1 files changed, 13 insertions(+), 15 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs index 7661e18..77219e2 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs @@ -24,6 +24,7 @@ Sensor sensorTemp = new Sensor(); + Function function; List<Function> showFunctions; List<Function> sensorList; @@ -237,16 +238,6 @@ TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, }); break; - //case SPK.SensorPm25: - //_intervalValue.Add("0 ~ 35"); - //_intervalValue.Add("36 ~ 75"); - //_intervalValue.Add("76 ~ 115"); - //_intervalValue.Add("115 ~"); - //_levelTextList.Add(StringId.Great); - //_levelTextList.Add(StringId.Good); - //_levelTextList.Add(StringId.MildPollution); - //_levelTextList.Add(StringId.HeavyPollution); - //break; case SPK.SensorCO2: tipValuesView.AddChidren(new Button() { @@ -503,7 +494,7 @@ tipTextView.AddChidren(new Button() { Width = Application.GetRealWidth(101), - TextID = StringId.SensorReferenceHumidityTipLevel1, + TextID = StringId.SensorReferenceHumidityTipLevel3, TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, @@ -519,7 +510,7 @@ tipTextView.AddChidren(new Button() { Width = Application.GetRealWidth(101), - TextID = StringId.SensorReferenceHumidityTipLevel3, + TextID = StringId.SensorReferenceHumidityTipLevel1, TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, @@ -918,11 +909,18 @@ Application.RunOnMainThread(() => { - ebl.xTitle = ""; - ebl.yTitle = ""; + if (curQueryType == "hour") + { + ebl.xTitle = Language.StringByID(StringId.HourUint); + } + else + { + ebl.xTitle = Language.StringByID(StringId.Date); + } + ebl.yTitle = Language.StringByID(StringId.Uint) + "(" + sensorTemp.Unit(function) + ")"; + myEchartsView.ShowWithOption(ebl.InitOption()); }); - } catch (Exception ex) { -- Gitblit v1.8.0