From 0fa1534827bd21d763216550d11006fc1441c6cb Mon Sep 17 00:00:00 2001
From: tzy <hxb@hdlchina.com.cn>
Date: 星期五, 14 五月 2021 17:08:45 +0800
Subject: [PATCH] 门锁初始上传

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
index 7305feb..4583c26 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
@@ -192,12 +192,12 @@
                 TextAlignment = TextAlignment.Center,
                 TextColor = CSS_Color.FirstLevelTitleColor,
                 TextSize = CSS_FontSize.SubheadingFontSize,
-                Text = string.IsNullOrEmpty(UserInfo.Current.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : UserInfo.Current.userName
+                Text = UserInfo.Current.userName// string.IsNullOrEmpty(UserInfo.Current.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : UserInfo.Current.userName
             };
             personalInfoView.AddChidren(btnUserName);
-            if (!string.IsNullOrEmpty( UserInfo.Current.userName))
+            if (!string.IsNullOrEmpty( UserInfo.Current.userName) && UserInfo.Current.userName == UserInfo.Current.AccountString)
             {
-                btnUserName.Text =  UserInfo.Current.userName; ;
+                btnUserName.Text = Language.StringByID(StringId.UsersWhoNameIsEmpty);
             }
             btnEmail = new Button()
             {
@@ -337,10 +337,17 @@
                         == false ? StringId.Administrators : StringId.Member
             };
             userTypeView.AddChidren(btnUserTypeName);
-            btnUserTypeIcon.MouseUpEventHandler += (sender, e) =>
+            btnUserTypeName.MouseUpEventHandler += (sender, e) =>
             {
-                var form = new AddThirdPartyDeviceMenuListPage();
-                form.AddForm("Evoyo");
+                var form = new DoorLockListPage();
+                var listDevice = new System.Collections.Generic.List<Function>();
+                listDevice.Add(new Function { name = "娴嬭瘯璁惧1", sid = "1111", spk = "door.sone" });
+                listDevice.Add(new Function { name = "娴嬭瘯璁惧2", sid = "2222", spk = "door.sone" });
+                listDevice.Add(new Function { name = "娴嬭瘯璁惧3", sid = "3333", spk = "door.sone" });
+                listDevice.Add(new Function { name = "娴嬭瘯璁惧4", sid = "4444", spk = "door.sone" });
+                listDevice.Add(new Function { name = "娴嬭瘯璁惧5", sid = "5555", spk = "door.sone" });
+                listDevice.Add(new Function { name = "娴嬭瘯璁惧6", sid = "6666", spk = "door.sone" });
+                form.AddForm(listDevice);
             };
             #endregion
             #region 浣忓畢绠$悊
@@ -503,13 +510,13 @@
                 #region ---娣诲姞鍔熻兘鍖哄煙
                 residenceAddFunctionView = new FrameLayout()
                 {
-                    //X = residenceAuxiliaryFunctionView.Right,
-                    X = Application.GetRealWidth(28 - 24),
-                    Y = residenceManageView.Bottom,
+                    X = residenceMemberView.Right,
+                    //X = Application.GetRealWidth(28 - 24),
+                    Y = Application.GetRealHeight(68),
                     Width = Application.GetRealWidth(64 + 48),
                     Height = Application.GetRealWidth(64),
                 };
-                //residenceInfoView.AddChidren(residenceAddFunctionView);
+                residenceInfoView.AddChidren(residenceAddFunctionView);
                 btnResidenceAddFunctionIcon = new Button
                 {
                     Gravity = Gravity.CenterHorizontal,

--
Gitblit v1.8.0