From 557c8c4f75aafc97533721766272410042440d34 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期六, 21 八月 2021 11:00:29 +0800
Subject: [PATCH] 安防功能
---
HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 111 insertions(+), 7 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
index 2b9b5f8..8c65a3e 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,8 +259,7 @@
/// </summary>
optionListView = new VerticalScrolViewLayout()
{
- //Y = headPortraitView.Bottom + Application.GetRealHeight(8),
- Height = Application.GetRealHeight(51 * 5),
+ Height = Application.GetRealHeight(51 * (6+1)),
BackgroundColor = CSS_Color.MainBackgroundColor,
ScrollEnabled = false,
};
@@ -465,7 +491,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>
@@ -498,8 +523,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
+
+
+ #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攣璁剧疆鍖哄煙
@@ -514,7 +618,7 @@
interpretationSettingsView = new FrameLayout()
{
BackgroundColor = CSS_Color.MainBackgroundColor,
- Height = Application.GetRealHeight(66),
+ Height = Application.GetRealHeight(70),
};
bodyScrolView.AddChidren(interpretationSettingsView);
if(Language.CurrentLanguage != "Chinese")
@@ -538,7 +642,7 @@
X = Application.GetRealWidth(16),
Y = btnInterpretationSettingsTitle.Bottom,
Height = Application.GetRealHeight(32),
- Width = Application.GetRealWidth(290),
+ Width = Application.GetRealWidth(310),
TextAlignment = TextAlignment.TopLeft,
TextColor = CSS_Color.PromptingColor1,
TextSize = CSS_FontSize.TextFontSize,
--
Gitblit v1.8.0