From 505effa88b17ce8c3c7ac5403b76d9e5d0cfc2a5 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 28 十月 2024 11:58:31 +0800 Subject: [PATCH] 谷歌版本问题修复 --- HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs index 3558ece..ca76ded 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs @@ -29,12 +29,14 @@ public void LoadPage() { bodyView.BackgroundColor = CSS_Color.BackgroundColor; - new TopViewDiv(bodyView, Language.StringByID(StringId.AddDefenseFunction)).LoadTopView(); + var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.AddDefenseFunction)); + topView.maginY = 10; + topView.LoadTopView(); #region 鏄剧ず鐨勫姛鑳界被鍨嬪垏鎹㈠尯鍩� var showdFunctionTypeRow = new FrameLayout() { - Y = Application.GetRealHeight(64), + Y = Application.GetRealHeight(64+10), Height = Application.GetRealHeight(53), BackgroundColor = CSS_Color.MainBackgroundColor, }; @@ -66,7 +68,7 @@ btnFloor.MouseUpEventHandler = (sender, e) => { string nowSelectId = null; - var list = FunctionList.List.GetArmSensorList(); + var list = FunctionList.List.GetArmCenterList(); #if DEBUG list.AddRange(FunctionList.List.GetLightList()); @@ -81,19 +83,25 @@ }, nowSelectId); }; + showdFunctionTypeRow.AddChidren(new Button() { + Height = 1, + Y = Application.GetRealHeight(52), + BackgroundColor = CSS_Color.DividingLineColor + }); + #endregion functionListView = new VerticalScrolViewLayout() { Y = showdFunctionTypeRow.Bottom, - Height = Application.GetRealHeight(530-60), + Height = Application.GetRealHeight(530-60-10), BackgroundColor = CSS_Color.BackgroundColor, }; bodyView.AddChidren(functionListView); - var listAllFun = FunctionList.List.GetArmSensorList(); + var listAllFun = FunctionList.List.GetArmCenterList(); #if DEBUG listAllFun.AddRange(FunctionList.List.GetLightList()); #endif @@ -145,7 +153,7 @@ if (functions == null) { //鍒濆鍊� - functions = FunctionList.List.GetArmSensorList(); + functions = FunctionList.List.GetArmCenterList(); } @@ -166,6 +174,7 @@ inValue = "alarm"; break; case SPK.SensorPir: + case SPK.SensorPirHold: inKey = "people_status"; break; case SPK.SensorSmoke: @@ -177,6 +186,8 @@ inValue = "alarm"; break; case SPK.SensorDoorWindow: + case SPK.SensorDryContact: + case SPK.SensorDryContact2: inKey = "contact_status"; inValue = "open"; break; -- Gitblit v1.8.0