From 50ad482974a7e838d11360a84e9e8ff3f7974ab2 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期六, 12 十月 2024 09:34:01 +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