From e247662a35dec4815041ff857015539a495c3205 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期四, 15 九月 2022 16:20:19 +0800 Subject: [PATCH] 完善的光伏功能 --- HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/A_EnvironmentalDataCenter.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/A_EnvironmentalDataCenter.cs b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/A_EnvironmentalDataCenter.cs index 967b540..cf7936f 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/A_EnvironmentalDataCenter.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/A_EnvironmentalDataCenter.cs @@ -713,7 +713,7 @@ sensorSPK = showList[0].spk; foreach (var s in showList) { - assembleValues += Convert.ToDouble(s.GetAttrState("value")); + assembleValues += Convert.ToDouble(s.GetAttrState("value").Replace(",", ".")); } @@ -1011,7 +1011,7 @@ assembleValues = 0; foreach (var s in sensorList) { - assembleValues += Convert.ToDouble(s.GetAttrState("value")); + assembleValues += Convert.ToDouble(s.GetAttrState("value").Replace(",", ".")); } } -- Gitblit v1.8.0