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/PersonalDataPage.cs |  143 +++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 130 insertions(+), 13 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
index 1b00994..e7f2bb5 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
@@ -1,4 +1,4 @@
-锘縰sing System;
+锘�    using System;
 using HDL_ON.UI;
 using HDL_ON.UI.CSS;
 using Shared;
@@ -147,6 +147,33 @@
         Button btnResetPasswordText;
         Button btnResetPasswordRight;
         #endregion
+
+
+        #region 涓汉閫夐」-鏂板浣忓畢
+        /// <summary>
+        /// 涓汉閫夐」-鏂板浣忓畢鍖哄煙
+        /// </summary>
+        FrameLayout addResidenceView;
+        /// <summary>
+        /// 鏂板浣忓畢鎻愮ず鏂囨湰
+        /// </summary>
+        Button btnAddResidenceText;
+        Button btnAddResidenceScan;
+        #endregion
+
+
+        #region 涓汉閫夐」-浜鸿劯閫氳绠$悊
+        /// <summary>
+        /// 涓汉閫夐」-浜鸿劯閫氳绠$悊琛�
+        /// </summary>
+        FrameLayout faceManagementView;
+        /// <summary>
+        /// 浜鸿劯閫氳绠$悊鏂囨湰
+        /// </summary>
+        Button btnFaceManagementText;
+        #endregion
+
+
         #endregion
 
         #endregion
@@ -232,12 +259,17 @@
             /// </summary>
             optionListView = new VerticalScrolViewLayout()
             {
-                //Y = headPortraitView.Bottom + Application.GetRealHeight(8),
                 Height = Application.GetRealHeight(51 * 6),
                 BackgroundColor = CSS_Color.MainBackgroundColor,
                 ScrollEnabled = false,
             };
             bodyScrolView.AddChidren(optionListView);
+
+            if(Entity.DB_ResidenceData.Instance.SupportFacePass)
+            {
+                optionListView.Height = Application.GetRealHeight(51 * (6 + 1));
+            }
+
             #region 涓汉閫夐」-鍚嶅瓧鍖哄煙
             /// <summary>
             /// 涓汉閫夐」-鍚嶅瓧鍖哄煙
@@ -434,6 +466,7 @@
             optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
             #endregion
             #region 涓汉閫夐」-绗笁鏂规巿鏉冨尯鍩�
+            //2020-12-08 鏆傛椂闅愯棌绗笁鏂规巿鏉冨姛鑳�
             /// <summary>
             /// 涓汉閫夐」-绗笁鏂规巿鏉冨尯鍩�
             /// </summary>
@@ -441,7 +474,7 @@
             {
                 Height = Application.GetRealHeight(50),
             };
-            optionListView.AddChidren(thirdPartyAuthorizationView);
+            //optionListView.AddChidren(thirdPartyAuthorizationView);
             /// <summary>
             /// 绗笁鏂规巿鏉冩枃鏈彁绀轰俊鎭寜閽�
             /// </summary>
@@ -464,7 +497,6 @@
                 UnSelectedImagePath = "Public/Right.png",
             };
             thirdPartyAuthorizationView.AddChidren(btnThirdPartyAuthorizationRight);
-            optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
             #endregion
             #region 涓汉閫夐」-淇敼鐧诲綍瀵嗙爜鍖哄煙
             /// <summary>
@@ -481,7 +513,7 @@
             btnResetPasswordText = new Button()
             {
                 X = Application.GetRealWidth(16),
-                Width = Application.GetRealWidth(120),
+                Width = Application.GetRealWidth(220),
                 TextAlignment = TextAlignment.CenterLeft,
                 TextColor = CSS_Color.FirstLevelTitleColor,
                 TextSize = CSS_FontSize.SubheadingFontSize,
@@ -497,8 +529,87 @@
                 UnSelectedImagePath = "Public/Right.png",
             };
             resetPasswordView.AddChidren(btnResetPasswordRight);
-            //optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
+            optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
             #endregion
+
+            #region 涓汉閫夐」-娣诲姞浣忓畢
+            addResidenceView = new FrameLayout()
+            {
+                Height = Application.GetRealHeight(50),
+            };
+            optionListView.AddChidren(addResidenceView);
+            btnAddResidenceScan = new Button()
+            {
+                X = Application.GetRealWidth(319),
+                Gravity = Gravity.CenterVertical,
+                Width = Application.GetMinRealAverage(30),
+                Height = Application.GetMinRealAverage(30),
+                UnSelectedImagePath = "Public/ScanGrey.png",
+            };
+            addResidenceView.AddChidren(btnAddResidenceScan);
+            btnAddResidenceText = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                TextAlignment = TextAlignment.CenterLeft,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+                TextSize = CSS_FontSize.SubheadingFontSize,
+                TextID = StringId.AddResidence,
+            };
+            addResidenceView.AddChidren(btnAddResidenceText);
+
+            btnAddResidenceText.MouseUpEventHandler = (sender, e) =>
+            {
+                Scan.OpenScan((scanString) =>
+                {
+                    //鎵ц缁戝畾浣忓畢
+                    new BindingResidencePage().DoBindResidence(scanString);
+                });
+            };
+
+            optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
+            #endregion
+
+            if (Entity.DB_ResidenceData.Instance.SupportFacePass)
+            {
+                #region 涓汉閫夐」-浜鸿劯閫氳绠$悊
+                faceManagementView = new FrameLayout()
+                {
+                    Height = Application.GetRealHeight(50),
+                };
+                optionListView.AddChidren(faceManagementView);
+
+                var btnFaceManagementRight = new Button()
+                {
+                    X = Application.GetRealWidth(339),
+                    Gravity = Gravity.CenterVertical,
+                    Width = Application.GetMinRealAverage(16),
+                    Height = Application.GetMinRealAverage(16),
+                    UnSelectedImagePath = "Public/Right.png",
+                };
+                faceManagementView.AddChidren(btnFaceManagementRight);
+
+                btnFaceManagementText = new Button()
+                {
+                    X = Application.GetRealWidth(16),
+                    TextAlignment = TextAlignment.CenterLeft,
+                    TextColor = CSS_Color.FirstLevelTitleColor,
+                    TextSize = CSS_FontSize.SubheadingFontSize,
+                    TextID = StringId.FacePassageSetting,
+                };
+                faceManagementView.AddChidren(btnFaceManagementText);
+
+                btnFaceManagementText.MouseUpEventHandler = (sender, e) =>
+                {
+                    var page = new FacePassagePage();
+                    MainPage.BasePageView.AddChidren(page);
+                    page.LoadPage();
+                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                };
+
+                #endregion
+
+            }
+
             #endregion
 
             #region 瑙i攣璁剧疆鍖哄煙
@@ -512,11 +623,15 @@
             /// </summary>
             interpretationSettingsView = new FrameLayout()
             {
-                //Y = optionListView.Bottom + Application.GetRealHeight(8),
                 BackgroundColor = CSS_Color.MainBackgroundColor,
-                Height = Application.GetRealHeight(66),
+                Height = Application.GetRealHeight(70),
             };
             bodyScrolView.AddChidren(interpretationSettingsView);
+            if(Language.CurrentLanguage != "Chinese")
+            {
+                interpretationSettingsView.Height = Application.GetRealHeight(80);
+            }
+
             btnInterpretationSettingsTitle = new Button()
             {
                 X = Application.GetRealWidth(16),
@@ -531,12 +646,14 @@
             btnInterpretationSettingsTip = new Button()
             {
                 X = Application.GetRealWidth(16),
-                Y = btnInterpretationSettingsTitle.Bottom + Application.GetRealHeight(4),
+                Y = btnInterpretationSettingsTitle.Bottom,
                 Height = Application.GetRealHeight(32),
+                Width = Application.GetRealWidth(310),
                 TextAlignment = TextAlignment.TopLeft,
                 TextColor = CSS_Color.PromptingColor1,
                 TextSize = CSS_FontSize.TextFontSize,
-                TextID = StringId.AppUnlockSettingsTip
+                TextID = StringId.AppUnlockSettingsTip,
+                IsMoreLines = true,
             };
             interpretationSettingsView.AddChidren(btnInterpretationSettingsTip);
 
@@ -565,9 +682,9 @@
                 myServerInfoPage.LoadPage();
                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
             };
-            myServerInfoCellView.goAction = selectAction;
-            myServerInfoCellView.btnTilte.Text = Language.StringByID(StringId.ServerInformation);
-            myServerInfoCellView.lineView.RemoveFromParent();
+            myServerInfoCellView.GoAction = selectAction;
+            myServerInfoCellView.BtnTilte.Text = Language.StringByID(StringId.ServerInformation);
+            myServerInfoCellView.LineView.RemoveFromParent();
 
             #endregion
 

--
Gitblit v1.8.0