From c355072676c274e3f916b0488c4ee9c4730f6210 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 07 六月 2023 13:46:43 +0800
Subject: [PATCH] 2023年06月07日13:45:26

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
index 69ab0ce..2d8e3ba 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs
@@ -229,10 +229,10 @@
                         ///寮�鍏�
                         LogicView.FunTypeView curtainSwitchView = new LogicView.FunTypeView();
                         curtainSwitchView.btnText.TextID = StringId.switchLogic;
-                        fLayout.AddChidren(curtainSwitchView.FLayoutView());
+                        //fLayout.AddChidren(curtainSwitchView.FLayoutView());//2023骞�04鏈�17鏃�16:27:10 浜у搧瑕佹眰鐨勫幓鎺�
                         ///鐧惧垎姣�
                         LogicView.FunTypeView crtainPercentumView = new LogicView.FunTypeView();
-                        crtainPercentumView.frameLayout.Y = curtainSwitchView.frameLayout.Bottom;
+                        //crtainPercentumView.frameLayout.Y = curtainSwitchView.frameLayout.Bottom;
                         crtainPercentumView.btnText.TextID = StringId.percentum;
                         fLayout.AddChidren(crtainPercentumView.FLayoutView());
                         crtainPercentumView.btnState.Text = "5%";//浜у搧缁忕悊鏅撹緣瑕佹眰鏀圭殑 2021-11-06
@@ -331,6 +331,8 @@
                         {
                             SwitchViewMethod(device, acSwitchVie.btnState, 2);
                         };
+                        int min = device.GetAttribute("set_temp") == null ? 16 : device.GetAttribute("set_temp").min;
+                        int max = device.GetAttribute("set_temp") == null ? 32 : device.GetAttribute("set_temp").max;
                         ///娓╁害鐐瑰嚮浜嬩欢
                         temperatureView.btnClick.MouseUpEventHandler += (sender, e) =>
                         {
@@ -347,8 +349,7 @@
                                 string set_temp_value = stateStr.Replace("鈩�", "");
                                 //鏁版嵁灏佽
                                 AddDictionary(keyVlaue, set_temp_value);
-                            });
-
+                            }, min,max);
 
                         };
                         ///妯″紡鐐瑰嚮浜嬩欢
@@ -435,6 +436,8 @@
                         ///娓╁害鐐瑰嚮浜嬩欢
                         temperatureView.btnClick.MouseUpEventHandler += (sender, e) =>
                         {
+                            int min = device.GetAttribute("set_temp") == null ? 16 : device.GetAttribute("set_temp").min;
+                            int max = device.GetAttribute("set_temp") == null ? 32 : device.GetAttribute("set_temp").max;
                             string tempValue = temperatureView.btnState.Text;
                             LogicView.TemperatureView tempView = new LogicView.TemperatureView();
                             tempView.FLayoutView(this, tempValue, (stateStr) =>
@@ -448,7 +451,7 @@
                                 //鏁版嵁灏佽
                                 AddDictionary(keyVlaue, set_temp_value);
 
-                            });
+                            },min,max);
 
                         };
                         ///妯″紡鐐瑰嚮浜嬩欢

--
Gitblit v1.8.0