From f14dcfd967404e197e7ec995ca8d6f2b090d3b7d Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期五, 11 九月 2020 09:16:59 +0800
Subject: [PATCH] 优化多功能面板:绑定温湿度传感器目标,和设备列表回路显示。优化数据矫正功能温湿度度不设置的情况。优化门锁时间设置最后一天和最后最后一个月的时间显示等 细节

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/ZigbeeApp20200828/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
old mode 100644
new mode 100755
similarity index 96%
rename from ZigbeeApp20200828/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
rename to ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
index 55dbad5..61e4bf4
--- a/ZigbeeApp20200828/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs
@@ -102,6 +102,11 @@
             var btnLux = frameNowLinght.AddLeftCaption(txtValue + "锛�" + pirLuxValue + "lux", 900);
             HdlThreadLogic.Current.RunThread(async () =>
             {
+                //鏌ョ湅妯℃澘鏃�,涓嶅厑璁哥紪杈�
+                if (Common.Config.Instance.Home.IsShowTemplate == true)
+                {
+                    return;
+                }
                 while (this.Parent != null)
                 {
                     //浠栦滑璇磋繖涓笢瑗胯2绉掑埛鏂颁竴娆�  鑾峰彇PIR浼犳劅鍣ㄧ殑銆恖ux鍊笺��
@@ -233,6 +238,14 @@
                 this.pirConfigure.levelSize = seekBar.Progress;
                 btnLightValue.Text = this.pirConfigure.levelSize.ToString() + "lux";
             };
+            //鏌ョ湅妯℃澘鏃�,涓嶅厑璁哥紪杈�
+            if (Common.Config.Instance.Home.IsShowTemplate == true)
+            {
+                btnSwitch.CanClick = false;
+                seekBar.Enable = false;
+                btnMinus.CanClick = false;
+                btnPlus.CanClick = false;
+            }
 
             //鏆�
             var btnDark = new NormalViewControl(120, 50, true);
@@ -388,8 +401,12 @@
                 {
                     this.ShowDelayListTime(btnDelayView);
                 };
+                //鏌ョ湅妯℃澘鏃�,涓嶅厑璁哥紪杈�
+                if (Common.Config.Instance.Home.IsShowTemplate == true)
+                {
+                    rowDelay.CanClick = false;
+                }
             }
-
             //淇濆瓨
             var btnSave = new BottomClickButton();
             btnSave.TextID = R.MyInternationalizationString.uSave;
@@ -402,6 +419,11 @@
                     this.SavePirSensorData();
                 });
             };
+            //鏌ョ湅妯℃澘鏃�,涓嶅厑璁哥紪杈�
+            if (Common.Config.Instance.Home.IsShowTemplate == true)
+            {
+                btnSave.CanClick = false;
+            }
         }
 
         #endregion

--
Gitblit v1.8.0