From 10afb4f79299cae08344fd8245a7217ea49f712e Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 09 八月 2023 11:27:45 +0800
Subject: [PATCH] 空调,地暖温度类型支持

---
 HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
index 8098182..4373932 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
@@ -493,9 +493,22 @@
                     //灏唖pk瀹炰綋閲岄潰鐨刴in max鍊兼斁鍏ュ満鏅姛鑳藉疄浣撻噷锛岃涓嶇劧鏁版嵁浼氫涪澶� 2022-06-21 16:06:45
                     foreach (var tt in scenefunction.status)
                     {
-                        tt.min = scenefunction.localFunction.GetAttribute(tt.key).min;
-                        tt.max = scenefunction.localFunction.GetAttribute(tt.key).max;
-                        tt.valueList = scenefunction.localFunction.GetAttribute(tt.key).value;
+                        var attr = scenefunction.localFunction.GetAttribute(tt.key);
+                        if(attr == null)
+                        {
+                            continue;
+                        }
+                        tt.min = attr.min;
+                        tt.max = attr.max;
+                        tt.valueList = attr.value;
+                        if(tt.key == FunctionAttributeKey.SetTemp)
+                        {
+                            var tempType = scenefunction.localFunction.GetAttribute(FunctionAttributeKey.TempType);
+                            if(tempType != null)
+                            {
+                                tt.UintString = tempType.unit;
+                            }
+                        }
                     }
                 }catch(Exception ex)
                 {

--
Gitblit v1.8.0