From 741cf87691107698b211c45df1f7392329e87f9a Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 08 三月 2022 10:36:22 +0800
Subject: [PATCH] 门锁功能、俄语优化

---
 HDL_ON/UI/UI2/1-HomePage/HomePage.cs |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
index bed8a4e..7d7fdbe 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -193,6 +193,19 @@
 #if DEBUG
                 btnResidenceName.MouseUpEventHandler = (sender, e) =>
                 {
+
+                    if (UserInfo.Current.VerOpenDoorPw || string.IsNullOrEmpty(UserInfo.Current.doorPasswordString))
+                    {
+                        var page = new DoorLockUnlockPage(new Function());
+                        MainPage.BasePageView.AddChidren(page);
+                        page.LoadView();
+                        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                    }
+                    else
+                    {
+                        Control.Ins.OneKeyUnlocking(new Function(), UserInfo.Current.doorPasswordString);
+                    }
+
                 };
 #endif
 
@@ -924,6 +937,12 @@
                     functionViews.Add(functionView);
                     LoadDeviceFunctionDiv(functionView, function);
                     index++;
+
+
+                    if (!function.online)
+                    {
+                        btnbg.UnSelectedImagePath = "Collection/FunctionOfflineBg.png";
+                    }
                 }
 
                 if (index == 0)
@@ -1306,6 +1325,23 @@
                 {
                     UpdataFunctionStates(function);
                 }
+
+
+                if (!function.online)
+                {
+                    var btnOffline = new Button()
+                    {
+                        X = btnIcon.Right,
+                        Y = Application.GetRealWidth(16),
+                        Height = Application.GetMinRealAverage(32),
+                        TextID = StringId.DeviceOffline,
+                        TextColor = CSS_Color.WarningColor,
+                        TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+                        TextAlignment = TextAlignment.CenterLeft
+                    };
+                    view.AddChidren(btnOffline);
+
+                }
             }
             catch (Exception ex)
             {

--
Gitblit v1.8.0