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/PirSensorWorkModeMenuForm.cs |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorWorkModeMenuForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorWorkModeMenuForm.cs
index 39ffcf6..428221f 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorWorkModeMenuForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorWorkModeMenuForm.cs
@@ -103,6 +103,11 @@
                     this.SavePirSensorData();
                 });
             };
+            //鏌ョ湅妯℃澘鏃�,涓嶅厑璁哥紪杈�
+            if (Common.Config.Instance.Home.IsShowTemplate == true)
+            {
+                btnSave.CanClick = false;
+            }
         }
 
         #endregion
@@ -132,7 +137,7 @@
             row1.ButtonClickEvent += (sender, e) =>
             {
                 var form = new BottomItemSelectForm();
-                form.AddForm(btnCaption1.Text, listSelect, this.pirConfigure.mode == 0 ? 1 : 0);
+                form.AddForm(btnCaption1.Text, listSelect, null, this.pirConfigure.mode == 0 ? 1 : 0);
                 form.FinishSelectEvent += (value) =>
                 {
                     this.isDataChanged = true;
@@ -141,6 +146,11 @@
                     this.pirConfigure.mode = value == 0 ? 1 : 0;
                 };
             };
+            //鏌ョ湅妯℃澘鏃�,涓嶅厑璁哥紪杈�
+            if (Common.Config.Instance.Home.IsShowTemplate == true)
+            {
+                row1.CanClick = false;
+            }
         }
 
         #endregion
@@ -170,7 +180,7 @@
             row2.ButtonClickEvent += (sender, e) =>
             {
                 var form = new BottomItemSelectForm();
-                form.AddForm(btnCaption2.Text, listSelect, this.pirConfigure.type);
+                form.AddForm(btnCaption2.Text, listSelect, null, this.pirConfigure.type);
                 form.FinishSelectEvent += (value) =>
                 {
                     this.isDataChanged = true;
@@ -185,6 +195,11 @@
                     }
                 };
             };
+            //鏌ョ湅妯℃澘鏃�,涓嶅厑璁哥紪杈�
+            if (Common.Config.Instance.Home.IsShowTemplate == true)
+            {
+                row2.CanClick = false;
+            }
         }
 
         #endregion
@@ -227,6 +242,11 @@
                 Language.StringByID(R.MyInternationalizationString.uFinish),
                 Language.StringByID(R.MyInternationalizationString.uCancel));
             };
+            //鏌ョ湅妯℃澘鏃�,涓嶅厑璁哥紪杈�
+            if (Common.Config.Instance.Home.IsShowTemplate == true)
+            {
+                row3.CanClick = false;
+            }
         }
 
         #endregion

--
Gitblit v1.8.0