From ee736e5d594e973e63e85647caa03cf635c8867f Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 20 七月 2023 10:42:21 +0800
Subject: [PATCH] 增加视频门锁电池管理说明页面

---
 HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorlockBatteryManagementPage.cs |   79 +++++++++++++++++++++++++++++++++++++--
 1 files changed, 74 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorlockBatteryManagementPage.cs b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorlockBatteryManagementPage.cs
index 3491440..9f0c115 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorlockBatteryManagementPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorlockBatteryManagementPage.cs
@@ -19,19 +19,88 @@
             new TopViewDiv(bodyView, Language.StringByID(StringId.AudioSetup)).LoadTopView();
             bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
 
-            var btn = new Button()
+
+            var view1 = new FrameLayout()
             {
-                Width = Application.GetRealWidth(343),
+                Y = Application.GetRealHeight(64),
+                Height = Application.GetRealHeight(276),
+                BackgroundColor = CSS_Color.MainBackgroundColor,
+                BackgroundImagePath = "FunctionIcon/Doorlock/VideoDoorlockBatteryManagementBg.png"
+            };
+            bodyView.AddChidren(view1);
+
+
+            var btnTitle1 = new Button()
+            {
+                Width = Application.GetRealWidth(200),
                 X = Application.GetRealWidth(16),
-                Y = Application.GetRealHeight(64 + 24),
+                Y = Application.GetRealHeight(16),
                 IsMoreLines = true,
                 TextAlignment = TextAlignment.TopLeft,
-                TextSize = CSS_FontSize.TextFontSize,
+                TextSize = CSS_FontSize.HeadlineFontSize,
                 TextColor = CSS_Color.FirstLevelTitleColor,
+                Text = "闂ㄩ攣鐢垫簮",
             };
-            bodyView.AddChidren(btn);
+            view1.AddChidren(btnTitle1);
 
+            var btnMsg1 = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                Y = Application.GetRealHeight(57),
+                Width = Application.GetRealWidth(213),
+                Height = Application.GetRealHeight(200),
+                TextAlignment = TextAlignment.TopLeft,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+                TextSize = CSS_FontSize.TextFontSize,
+                IsMoreLines = true,
+                Text = "鎵撳紑瀹ゅ唴闈㈡澘鐢垫睜鐩栵紝鍙栧嚭閿傜數姹犺繘琛屽厖鐢点�俓r\n璇蜂娇鐢� 5V2A 閫傞厤鍣ㄥ閿傜數姹犺繘琛屽厖鐢点��"
+            };
+            view1.AddChidren(btnMsg1);
 
+            var view2 = new FrameLayout()
+            {
+                Y = Application.GetRealHeight(8) + view1.Bottom,
+                BackgroundColor = CSS_Color.MainBackgroundColor,
+                Height = Application.GetRealHeight(170)
+            };
+            bodyView.AddChidren(view2);
+
+            var btnTitle2 = new Button()
+            {
+                Width = Application.GetRealWidth(200),
+                X = Application.GetRealWidth(16),
+                Y = Application.GetRealHeight(16),
+                IsMoreLines = true,
+                TextAlignment = TextAlignment.TopLeft,
+                TextSize = CSS_FontSize.HeadlineFontSize,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+                Text = "浣庣數閲忚鏄�",
+            };
+            view2.AddChidren(btnTitle2);
+
+            var btnMsg2 = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                Y = Application.GetRealHeight(57),
+                Width = Application.GetRealWidth(213),
+                Height = Application.GetRealHeight(110),
+                TextAlignment = TextAlignment.TopLeft,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+                TextSize = CSS_FontSize.TextFontSize,
+                IsMoreLines = true,
+                Text = "璁惧鐢甸噺浣庢椂灏嗚嚜鍔ㄥ叧闂娴嬪敜閱掑姛鑳斤紝浜鸿劯璇嗗埆寮�閿佷负鎵嬪姩瑙﹀彂銆俓r\n 褰撶數閲忎綆浜庢瀬闄愬�兼椂锛屼负淇濊瘉搴旀�ュ紑閿侊紝璁惧灏嗚嚜鍔ㄧ绾垮苟浠呮敮鎸佸紑閿佸姛鑳姐��"
+            };
+            view2.AddChidren(btnMsg2);
+
+            if (Language.CurrentLanguage != "Chinese")
+            {
+                btnTitle1.Text = "Door lock power supply";
+                btnMsg1.Text = "Open the indoor panel battery cover and remove the lithium battery for charging.\r\n" +
+                    "Please use a 5V2A adapter to charge the lithium battery.";
+                btnTitle2.Text = "Low battery description";
+                btnMsg2.Text = "When the device's battery is low, the detection and wake-up function will be automatically turned off, and the facial recognition unlock will be manually triggered.\r\n" +
+                    "When the battery level drops below the limit value, to ensure emergency unlocking, the device will automatically go offline and only support unlocking function.";
+            }
 
         }
 

--
Gitblit v1.8.0