From 270b3d8539f6b4a991a9ebf3b3a9eceb436d61d5 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期四, 28 十月 2021 17:08:02 +0800
Subject: [PATCH] 自动化地址问题修复

---
 HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs |   37 +++++++++++++++++++++++++++----------
 1 files changed, 27 insertions(+), 10 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs
index 44e7821..7eacd06 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs
@@ -2,6 +2,7 @@
 using Shared;
 using HDL_ON.Entity;
 using HDL_ON.UI.CSS;
+using System.Collections.Generic;
 
 namespace HDL_ON.UI
 {
@@ -72,6 +73,14 @@
         /// </summary>
         Action actionRefresh;
         #endregion
+
+
+        /// <summary>
+        /// app鑷繁鎺у埗鐨勬俯搴︽暟鍊艰褰�
+        /// </summary>
+        List<string> seltControlTemp = new List<string>();
+
+
         public FloorHeatingPage(Function func)
         {
             bodyView = this;
@@ -131,12 +140,17 @@
                 UnSelectedImagePath = "Collection/CollectionGrayIcon.png",
                 IsSelected = function.collect
             };
-            //controlView.AddChidren(btnCollection);
+            controlView.AddChidren(btnCollection);
             //2020-12-16 濡傛灉鏄垚鍛橀殣钘忔敹钘忓姛鑳�
-            if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare)
-            {
-                controlView.AddChidren(btnCollection);
-            }
+            //if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare)
+            //{
+            //    controlView.AddChidren(btnCollection);
+            //}
+
+
+            var minValue = function.GetAttribute(FunctionAttributeKey.SetTemp).min;
+            var maxValue = function.GetAttribute(FunctionAttributeKey.SetTemp).max;
+            var progress = (int)Convert.ToDouble(function.GetAttrState(FunctionAttributeKey.SetTemp));
 
             arcBar = new DiyArcSeekBar()
             {
@@ -147,10 +161,10 @@
                 ProgressBarColor = CSS_Color.AuxiliaryColor1, // 0xFFFC9C04,
                 OfflineProgressBarColor = CSS_Color.PromptingColor2,
                 IsOffline = function.trait_on_off.curValue.ToString() == "off",
-                MinValue = function.GetAttribute(FunctionAttributeKey.SetTemp).min,
-                MaxValue = function.GetAttribute(FunctionAttributeKey.SetTemp).max,
+                MinValue = minValue,//function.GetAttribute(FunctionAttributeKey.SetTemp).min,
+                MaxValue = maxValue,// function.GetAttribute(FunctionAttributeKey.SetTemp).max,
                 ArcColor = CSS_Color.BackgroundColor,
-                Progress = Convert.ToInt32(function.GetAttrState(FunctionAttributeKey.SetTemp)),
+                Progress = progress,
 #if __IOS__
                 Y = Application.GetRealHeight(120+25),
                 Width = Application.GetRealWidth(260-40),
@@ -175,7 +189,7 @@
                 TextColor = CSS_Color.FirstLevelTitleColor,
                 TextSize = 56,
                 IsBold = true,
-                Text = function.GetAttrState(FunctionAttributeKey.SetTemp),
+                Text = progress.ToString(),
                 TextAlignment = TextAlignment.Center,
             };
             controlView.AddChidren(btnTemp);
@@ -234,7 +248,10 @@
                 Height = Application.GetRealWidth(30),
                 UnSelectedImagePath = fhTemp.GetModeIconPath(function.GetAttrState(FunctionAttributeKey.Mode))
             };
-            controlView.AddChidren(btnMode);
+            if (function.GetAttribute(FunctionAttributeKey.Mode)!=null)
+            {
+                controlView.AddChidren(btnMode);
+            }
 
             btnSwitch = new Button()
             {

--
Gitblit v1.8.0