From 7167334c0e89dd84827d59e726123d14776e3a09 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 16 六月 2020 11:14:13 +0800
Subject: [PATCH] 2020-06-16-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/ResidentialManagePage.cs |   60 ++++++++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 46 insertions(+), 14 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/ResidentialManagePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/ResidentialManagePage.cs
index 4e667d6..f60948b 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/ResidentialManagePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/ResidentialManagePage.cs
@@ -1,4 +1,5 @@
 锘縰sing System;
+using HDL_ON.Entity;
 using HDL_ON.UI.CSS;
 using Shared;
 
@@ -8,9 +9,24 @@
     {
         #region 鍖哄煙鎺т欢鍒楄〃
         FrameLayout bodyView;
-        #endregion
 
-        #region 鍖哄煙鍙橀噺
+        /// <summary>
+        /// 浣忓畢鍚嶇О鏄剧ず鎸夐挳
+        /// </summary>
+        Button btnResidenceName;
+        /// <summary>
+        /// 浣忓畢鍚嶇О缂栬緫鎸夐挳
+        /// </summary>
+        Button btnEditResidenceNameIcon;
+        /// <summary>
+        /// 浣忓畢鍦板潃缂栬緫鎸夐挳
+        /// </summary>
+        Button btnLocationAddressIcon;
+        /// <summary>
+        /// 浣忓畢鍦板潃
+        /// </summary>
+        Button btnResidenceAddress;
+
         /// <summary>
         /// 妤煎眰绠$悊Row
         /// </summary>
@@ -20,6 +36,10 @@
         /// </summary>
         Button btnFloorManagementSkinIcon;
         /// <summary>
+        /// 妤煎眰鍚嶇О鏄剧ず鎸夐挳
+        /// </summary>
+        Button btnFloorManagementTitle;
+        /// <summary>
         /// 鎴块棿绠$悊Row
         /// </summary>
         FrameLayout roomManagementRow;
@@ -27,11 +47,26 @@
         /// 鎴块棿绠$悊璺宠浆鎸夐挳
         /// </summary>
         Button btnRoomManagementSkinIcon;
-        #endregion
+        /// <summary>
+        /// 鎴块棿鍚嶇О
+        /// </summary>
+        Button btnRoomManagementTitle;
 
-        public ResidentialManagePage()
+        /// <summary>
+        /// 璋冭瘯鏉冮檺寮�鍏虫寜閽�
+        /// </summary>
+        Button btnCommissioningAuthoritySwitchIcon;
+
+        #endregion
+        /// <summary>
+        /// 鏇存柊浣忓畢鍚嶇О鐨勫洖璋冨嚱鏁�
+        /// </summary>
+        Action upateResidenceName;
+
+        public ResidentialManagePage(Action action)
         {
             bodyView = this;
+            upateResidenceName = action;
         }
 
         public void LoadPage()
@@ -61,18 +96,17 @@
             };
             residenceNameRow.AddChidren(btnResidenceNameTitle);
 
-            Button btnResidenceName = new Button()
+            btnResidenceName = new Button()
             {
                 X = Application.GetRealWidth(2)+ btnResidenceNameTitle.Right,
                 Width = Application.GetRealWidth(200),
-                Text = UserConfig.Instance.CurrentRegion.Name,
+                Text = DB_ResidenceData.residenceData.residecenInfo.Name,
                 TextSize = CSS_FontSize.TextFontSize,
                 TextAlignment = TextAlignment.CenterLeft,
                 TextColor = CSS_Color.TextualColor,
             };
             residenceNameRow.AddChidren(btnResidenceName);
 
-            Button btnEditResidenceNameIcon;
             btnEditResidenceNameIcon = new Button()
             {
                 X = Application.GetRealWidth(333),
@@ -84,7 +118,8 @@
             residenceNameRow.AddChidren(btnEditResidenceNameIcon);
 
             residenceNameRow.AddChidren(
-                new Button() {
+                new Button()
+                {
                     Gravity = Gravity.CenterHorizontal,
                     Y = Application.GetRealHeight(49),
                     Height = Application.GetRealHeight(1),
@@ -113,7 +148,6 @@
             };
             residenceAddressRow.AddChidren(btnResidenceAddressTitle);
 
-            Button btnLocationAddressIcon;
             btnLocationAddressIcon = new Button()
             {
                 X = Application.GetRealWidth(333),
@@ -124,12 +158,11 @@
             };
             residenceAddressRow.AddChidren(btnLocationAddressIcon);
 
-            Button btnResidenceAddress;
             btnResidenceAddress = new Button()
             {
                 X = Application.GetRealWidth(2) + btnResidenceNameTitle.Right,
                 Width = Application.GetRealWidth(200),
-                Text = UserConfig.Instance.CurrentRegion.Name,
+                Text = DB_ResidenceData.residenceData.residecenInfo.Address,
                 TextSize = CSS_FontSize.TextFontSize,
                 TextAlignment = TextAlignment.CenterLeft,
                 TextColor = CSS_Color.TextualColor,
@@ -146,7 +179,7 @@
             };
             bodyView.AddChidren(floorManagementRow);
 
-            Button btnFloorManagementTitle = new Button()
+            btnFloorManagementTitle = new Button()
             {
                 X = Application.GetRealWidth(16),
                 Width = Application.GetRealWidth(308),
@@ -187,7 +220,7 @@
             };
             bodyView.AddChidren(roomManagementRow);
 
-            var btnRoomManagementTitle = new Button()
+            btnRoomManagementTitle = new Button()
             {
                 X = Application.GetRealWidth(16),
                 Width = Application.GetRealWidth(300),
@@ -352,7 +385,6 @@
             };
             commissioningAuthorityRow.AddChidren(btnCommissioningAuthorityExplan);
 
-            Button btnCommissioningAuthoritySwitchIcon;
             btnCommissioningAuthoritySwitchIcon = new Button()
             {
                 X = Application.GetRealWidth(314),

--
Gitblit v1.8.0