From eda3fb873e59544ff36301b51e05aef64f87b0f9 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 27 八月 2021 13:21:21 +0800
Subject: [PATCH] Merge branch 'newBranch1' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into newBranch1

---
 HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs |  313 ++++++++++++++++++++++++++-------------------------
 1 files changed, 159 insertions(+), 154 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs
index 3a28dd7..849be74 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs
@@ -57,33 +57,32 @@
         /// </summary>
         Button btnCommissioningAuthoritySwitchIcon;
 
-        #region F3闃舵
         #region 绠$悊鍛樻潈闄愯縼绉�
-        //FrameLayout administratorPermissionMigrationRow;
-        //Button btnAdministratorPermissionMigrationTitle;
-        //Button btnAdministratorPermissionMigrationExplan;
-        //Button btnAdministratorPermissionMigrationSkinIcon;
+        FrameLayout administratorPermissionMigrationRow;
+        Button btnAdministratorPermissionMigrationTitle;
+        Button btnAdministratorPermissionMigrationExplan;
+        Button btnAdministratorPermissionMigrationSkinIcon;
         #endregion
 
         #region 杩囨埛
-        ///// <summary>
-        ///// 
-        ///// </summary>
-        //FrameLayout transferRow;
-        ///// <summary>
-        ///// 
-        ///// </summary>
-        //Button btnTransferTitle;
-        ///// <summary>
-        ///// 
-        ///// </summary>
-        //Button btnTrasferExplan;
-        ///// <summary>
-        ///// 
-        ///// </summary>
-        //Button btnTrasferSkinIcon;
+        /// <summary>
+        /// 
+        /// </summary>
+        FrameLayout transferRow;
+        /// <summary>
+        /// 
+        /// </summary>
+        Button btnTransferTitle;
+        /// <summary>
+        /// 
+        /// </summary>
+        Button btnTrasferExplan;
+        /// <summary>
+        /// 
+        /// </summary>
+        Button btnTrasferSkinIcon;
         #endregion
-        #endregion
+
         #endregion
         /// <summary>
         /// 鏇存柊浣忓畢鍚嶇О鐨勫洖璋冨嚱鏁�
@@ -162,45 +161,46 @@
                     BackgroundColor = CSS_Color.DividingLineColor,
                 });
             #region 浣忓畢鍦板潃
-                        var residenceAddressRow = new FrameLayout()
-                        {
-                            Y = residenceNameRow.Bottom,
-                            Height = Application.GetRealHeight(50),
-                            BackgroundColor = CSS_Color.MainBackgroundColor,
-                        };
-                        contentView.AddChidren(residenceAddressRow);
+            var residenceAddressRow = new FrameLayout()
+            {
+                Y = residenceNameRow.Bottom,
+                Height = Application.GetRealHeight(50),
+                BackgroundColor = CSS_Color.MainBackgroundColor,
+            };
+            contentView.AddChidren(residenceAddressRow);
 
-                        var btnResidenceAddressTitle = new Button()
-                        {
-                            X = Application.GetRealWidth(16),
-                            Width = Application.GetRealWidth(78),
-                            TextID = StringId.ResidenceAddress,
-                            TextAlignment = TextAlignment.CenterLeft,
-                            TextSize = CSS_FontSize.SubheadingFontSize,
-                            TextColor = CSS_Color.FirstLevelTitleColor,
-                        };
-                        residenceAddressRow.AddChidren(btnResidenceAddressTitle);
+            var btnResidenceAddressTitle = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                Width = Application.GetRealWidth(78),
+                TextID = StringId.ResidenceAddress,
+                TextAlignment = TextAlignment.CenterLeft,
+                TextSize = CSS_FontSize.SubheadingFontSize,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+            };
+            residenceAddressRow.AddChidren(btnResidenceAddressTitle);
 
-                        btnLocationAddressIcon = new Button()
-                        {
-                            X = Application.GetRealWidth(333),
-                            Gravity = Gravity.CenterVertical,
-                            Width = Application.GetMinRealAverage(28),
-                            Height = Application.GetMinRealAverage(28),
-                            UnSelectedImagePath = "Public/LocationAddressIcon.png",
-                        };
-                        residenceAddressRow.AddChidren(btnLocationAddressIcon);
+            btnLocationAddressIcon = new Button()
+            {
+                X = Application.GetRealWidth(333),
+                Gravity = Gravity.CenterVertical,
+                Width = Application.GetMinRealAverage(28),
+                Height = Application.GetMinRealAverage(28),
+                //UnSelectedImagePath = "Public/LocationAddressIcon.png",
+                UnSelectedImagePath = "Public/Edit.png",
+            };
+            residenceAddressRow.AddChidren(btnLocationAddressIcon);
 
-                        btnResidenceAddress = new Button()
-                        {
-                            X = Application.GetRealWidth(2) + btnResidenceNameTitle.Right,
-                            Width = Application.GetRealWidth(200),
-                            Text = DB_ResidenceData.Instance.CurrentRegion.homeAddress,
-                            TextSize = CSS_FontSize.TextFontSize,
-                            TextAlignment = TextAlignment.CenterLeft,
-                            TextColor = CSS_Color.TextualColor,
-                        };
-                        residenceAddressRow.AddChidren(btnResidenceAddress);
+            btnResidenceAddress = new Button()
+            {
+                X = Application.GetRealWidth(2) + btnResidenceNameTitle.Right,
+                Width = Application.GetRealWidth(200),
+                Text = DB_ResidenceData.Instance.CurrentRegion.homeAddress,
+                TextSize = CSS_FontSize.TextFontSize,
+                TextAlignment = TextAlignment.CenterLeft,
+                TextColor = CSS_Color.TextualColor,
+            };
+            residenceAddressRow.AddChidren(btnResidenceAddress);
             #endregion
             #region 妤煎眰绠$悊
             contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) });
@@ -275,112 +275,116 @@
             roomManagementRow.AddChidren(btnRoomManagementSkinIcon);
             #endregion
 
-
-            #region F3闃舵
             #region 绠$悊鍛樻潈闄愯縼绉�
-            //contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) });
-            //administratorPermissionMigrationRow = new FrameLayout()
-            //{
-            //    Height = Application.GetRealHeight(65),
-            //    BackgroundColor = CSS_Color.MainBackgroundColor,
-            //};
-            //contentView.AddChidren(administratorPermissionMigrationRow);
+            contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8) });
+            administratorPermissionMigrationRow = new FrameLayout()
+            {
+                Height = Application.GetRealHeight(65),
+                BackgroundColor = CSS_Color.MainBackgroundColor,
+            };
+            if (DB_ResidenceData.Instance.CurrentRegion.isOtherShare == false)
+            {
+                //鏄富璐﹀彿鏈汉鎵嶈兘鏄剧ず杩欎釜鑿滃崟
+                contentView.AddChidren(administratorPermissionMigrationRow);
+            }
 
-            //btnAdministratorPermissionMigrationTitle = new Button()
-            //{
-            //    X = Application.GetRealWidth(16),
-            //    Y = Application.GetRealHeight(10),
-            //    Width = Application.GetRealWidth(308),
-            //    Height = Application.GetRealHeight(24),
-            //    TextID = StringId.AdministratorPermissionMigration,
-            //    TextAlignment = TextAlignment.CenterLeft,
-            //    TextSize = CSS_FontSize.SubheadingFontSize,
-            //    TextColor = CSS_Color.FirstLevelTitleColor,
-            //};
-            //administratorPermissionMigrationRow.AddChidren(btnAdministratorPermissionMigrationTitle);
+            btnAdministratorPermissionMigrationTitle = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                Y = Application.GetRealHeight(10),
+                Width = Application.GetRealWidth(308),
+                Height = Application.GetRealHeight(24),
+                TextID = StringId.AdministratorPermissionMigration,
+                TextAlignment = TextAlignment.CenterLeft,
+                TextSize = CSS_FontSize.SubheadingFontSize,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+            };
+            administratorPermissionMigrationRow.AddChidren(btnAdministratorPermissionMigrationTitle);
 
-            //btnAdministratorPermissionMigrationExplan = new Button()
-            //{
-            //    X = Application.GetRealWidth(16),
-            //    Y = btnAdministratorPermissionMigrationTitle.Bottom,
-            //    Width = Application.GetRealWidth(308),
-            //    Height = Application.GetRealHeight(21),
-            //    TextID = StringId.AdministratorPermissionMigrationExPlan,
-            //    TextAlignment = TextAlignment.CenterLeft,
-            //    TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-            //    TextColor = CSS_Color.PromptingColor1,
-            //};
-            //administratorPermissionMigrationRow.AddChidren(btnAdministratorPermissionMigrationExplan);
+            btnAdministratorPermissionMigrationExplan = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                Y = btnAdministratorPermissionMigrationTitle.Bottom,
+                Width = Application.GetRealWidth(308),
+                Height = Application.GetRealHeight(21),
+                TextID = StringId.AdministratorPermissionMigrationExPlan,
+                TextAlignment = TextAlignment.CenterLeft,
+                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+                TextColor = CSS_Color.PromptingColor1,
+            };
+            administratorPermissionMigrationRow.AddChidren(btnAdministratorPermissionMigrationExplan);
 
 
-            //btnAdministratorPermissionMigrationSkinIcon = new Button()
-            //{
-            //    X = Application.GetRealWidth(343),
-            //    Gravity = Gravity.CenterVertical,
-            //    Width = Application.GetMinRealAverage(16),
-            //    Height = Application.GetMinRealAverage(16),
-            //    UnSelectedImagePath = "Public/RightIcon.png",
-            //};
-            //administratorPermissionMigrationRow.AddChidren(btnAdministratorPermissionMigrationSkinIcon);
+            btnAdministratorPermissionMigrationSkinIcon = new Button()
+            {
+                X = Application.GetRealWidth(343),
+                Gravity = Gravity.CenterVertical,
+                Width = Application.GetMinRealAverage(16),
+                Height = Application.GetMinRealAverage(16),
+                UnSelectedImagePath = "Public/RightIcon.png",
+            };
+            administratorPermissionMigrationRow.AddChidren(btnAdministratorPermissionMigrationSkinIcon);
 
-            //administratorPermissionMigrationRow.AddChidren(
-            //    new Button()
-            //    {
-            //        Gravity = Gravity.CenterHorizontal,
-            //        Y = Application.GetRealHeight(64),
-            //        Height = Application.GetRealHeight(1),
-            //        Width = Application.GetRealWidth(343),
-            //        BackgroundColor = CSS_Color.DividingLineColor,
-            //    });
-            #endregion
+            administratorPermissionMigrationRow.AddChidren(
+                new Button()
+                {
+                    Gravity = Gravity.CenterHorizontal,
+                    Y = Application.GetRealHeight(64),
+                    Height = Application.GetRealHeight(1),
+                    Width = Application.GetRealWidth(343),
+                    BackgroundColor = CSS_Color.DividingLineColor,
+                });
             #endregion
 
-            #region F3闃舵
             #region 杩囨埛
-            //transferRow = new FrameLayout()
-            //{
-            //    Y = administratorPermissionMigrationRow.Bottom,
-            //    Height = Application.GetRealHeight(65),
-            //    BackgroundColor = CSS_Color.MainBackgroundColor,
-            //};
-            //contentView.AddChidren(transferRow);
+            transferRow = new FrameLayout()
+            {
+                Y = administratorPermissionMigrationRow.Bottom,
+                Height = Application.GetRealHeight(65),
+                BackgroundColor = CSS_Color.MainBackgroundColor,
+            };
+            //鏈夌綉鍏虫墠鑳借繃鎴�
+            if (DB_ResidenceData.Instance.HomeGateway != null && string.IsNullOrEmpty(DB_ResidenceData.Instance.HomeGateway.gatewayId) == false
+                && DB_ResidenceData.Instance.CurrentRegion.isOtherShare == false)
+            {
+                contentView.AddChidren(transferRow);
+            }
 
-            //btnTransferTitle = new Button()
-            //{
-            //    X = Application.GetRealWidth(16),
-            //    Y = Application.GetRealHeight(10),
-            //    Width = Application.GetRealWidth(308),
-            //    Height = Application.GetRealHeight(24),
-            //    TextID = StringId.Transfer,
-            //    TextAlignment = TextAlignment.CenterLeft,
-            //    TextSize = CSS_FontSize.SubheadingFontSize,
-            //    TextColor = CSS_Color.FirstLevelTitleColor,
-            //};
-            //transferRow.AddChidren(btnTransferTitle);
+            btnTransferTitle = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                Y = Application.GetRealHeight(10),
+                Width = Application.GetRealWidth(308),
+                Height = Application.GetRealHeight(24),
+                TextID = StringId.Transfer,
+                TextAlignment = TextAlignment.CenterLeft,
+                TextSize = CSS_FontSize.SubheadingFontSize,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+            };
+            transferRow.AddChidren(btnTransferTitle);
 
-            //btnTrasferExplan = new Button()
-            //{
-            //    X = Application.GetRealWidth(16),
-            //    Y = btnTransferTitle.Bottom,
-            //    Width = Application.GetRealWidth(308),
-            //    Height = Application.GetRealHeight(21),
-            //    TextID = StringId.TransferExPlan,
-            //    TextAlignment = TextAlignment.CenterLeft,
-            //    TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-            //    TextColor = CSS_Color.PromptingColor1,
-            //};
-            //transferRow.AddChidren(btnTrasferExplan);
+            btnTrasferExplan = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                Y = btnTransferTitle.Bottom,
+                Width = Application.GetRealWidth(308),
+                Height = Application.GetRealHeight(21),
+                TextID = StringId.TransferExPlan,
+                TextAlignment = TextAlignment.CenterLeft,
+                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+                TextColor = CSS_Color.PromptingColor1,
+            };
+            transferRow.AddChidren(btnTrasferExplan);
 
-            //btnTrasferSkinIcon = new Button()
-            //{
-            //    X = Application.GetRealWidth(343),
-            //    Gravity = Gravity.CenterVertical,
-            //    Width = Application.GetMinRealAverage(16),
-            //    Height = Application.GetMinRealAverage(16),
-            //    UnSelectedImagePath = "Public/RightIcon.png",
-            //};
-            //transferRow.AddChidren(btnTrasferSkinIcon);
-            #endregion
+            btnTrasferSkinIcon = new Button()
+            {
+                X = Application.GetRealWidth(343),
+                Gravity = Gravity.CenterVertical,
+                Width = Application.GetMinRealAverage(16),
+                Height = Application.GetMinRealAverage(16),
+                UnSelectedImagePath = "Public/RightIcon.png",
+            };
+            transferRow.AddChidren(btnTrasferSkinIcon);
             #endregion
 
             #region 璋冭瘯鏉冮檺
@@ -433,7 +437,8 @@
             };
             commissioningAuthorityRow.AddChidren(btnCommissioningAuthoritySwitchIcon);
 
-            btnCommissioningAuthoritySwitchIcon.MouseUpEventHandler = (sender, e) => {
+            btnCommissioningAuthoritySwitchIcon.MouseUpEventHandler = (sender, e) =>
+            {
                 DB_ResidenceData.Instance.CurrentRegion.debugPerm = !DB_ResidenceData.Instance.CurrentRegion.debugPerm;
                 btnCommissioningAuthoritySwitchIcon.IsSelected = DB_ResidenceData.Instance.CurrentRegion.debugPerm;
                 new System.Threading.Thread(() =>
@@ -449,4 +454,4 @@
             LoadEventList();
         }
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.8.0