From a40848272e33822f72a7fe0310f079717bf73f23 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期五, 18 十月 2024 16:21:39 +0800
Subject: [PATCH] 修复金茂科技系统,金茂光伏问题

---
 HDL_ON/UI/UI2/FuntionControlView/Acst/WaterHeaterJinmaoPage.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Acst/WaterHeaterJinmaoPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Acst/WaterHeaterJinmaoPage.cs
index fe07f72..306332d 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Acst/WaterHeaterJinmaoPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Acst/WaterHeaterJinmaoPage.cs
@@ -673,7 +673,7 @@
                     TextAlignment = TextAlignment.CenterRight,
                     TextSize = 14,
                     TextColor = CSS_Color.FirstLevelTitleColor,
-                    Text = (volume - recyclVolume) + "t"
+                    Text = Math.Round((volume - recyclVolume),1) + "t"
                 };
                 flowView.AddChidren(flow_ElectricDriveValuesButton);
 
@@ -1282,7 +1282,7 @@
             {
                 flow_ElectricDriveProgressButton.Text = ((int)(100 - recyclVolumePercent)) + "%";
             }
-            flow_ElectricDriveValuesButton.Text = (((int)(volume * 100) - (int)(recyclVolume * 100)) / 100.0) + "t";
+            flow_ElectricDriveValuesButton.Text = Math.Round((volume - recyclVolume), 1) + "t";//(((int)(volume * 100) - (int)(recyclVolume * 100)) / 100.0) + "t";
         }
 
         /// <summary>

--
Gitblit v1.8.0