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/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp20200828/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs
old mode 100644
new mode 100755
similarity index 97%
rename from ZigbeeApp20200828/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs
rename to ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs
index edca003..a308a49
--- a/ZigbeeApp20200828/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs
@@ -139,6 +139,11 @@
             //棣栨鍒濆鍖栨暟鎹�
             CommonPage.Loading.Start("");
             InitData();
+
+            //澶囨敞寮圭獥鎻愮ず
+            string msg = Language.StringByID(R.MyInternationalizationString.BindRemarkTip1).Replace("{0}", "\r\n");
+            var alert = new Shared.Phone.UserCenter.ShowMsgControl(ShowMsgType.Confirm, msg, Language.StringByID(R.MyInternationalizationString.Iknown));
+            alert.Show();
         }
 
         /// <summary>
@@ -600,6 +605,13 @@
 
                 EventHandler<MouseEventArgs> hander = (sender, e) =>
                 {
+                    //鐩爣澶囨敞澶勭悊
+                    var localName = System.Text.Encoding.UTF8.GetBytes(Common.LocalDevice.Current.GetDeviceEpointName(device));
+                    if (localName.Length > 20)
+                    {
+                        new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.BindRemarkTip2), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance);
+                        return;
+                    }
                     btnChoose.IsSelected = !btnChoose.IsSelected;
                     if (curBindType != 6)
                     {
@@ -831,6 +843,18 @@
 
                 EventHandler<MouseEventArgs> hander = (sender, e) =>
                 {
+
+                    //鐩爣澶囨敞澶勭悊
+                    if (!string.IsNullOrEmpty(scene.Name))
+                    {
+                        var localName = System.Text.Encoding.UTF8.GetBytes(scene.Name);
+                        if (localName.Length > 20)
+                        {
+                            new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.BindRemarkTip2), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance);
+                            return;
+                        }
+                    }
+
                     btnChoose.IsSelected = !btnChoose.IsSelected;
 
                     if (curSupportBindEpointList.Count == 0)

--
Gitblit v1.8.0