From 3fcb73db484d2bed5ee993702913a7eaea68068c Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 18 八月 2023 18:01:23 +0800 Subject: [PATCH] 2.1.2 --- HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 14 +++----------- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index c5fc92d..c032a6e 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs @@ -755,10 +755,6 @@ break; case ShowFunction.SecurityCenter: functionCount = FunctionList.List.securities.Count; - //if (DB_ResidenceData.Instance.GatewayType == 1) - //{ - // functionCount = 1; - //} break; case ShowFunction.Acst: functionCount = FunctionList.List.GetAcstParentList().Count; @@ -766,14 +762,10 @@ break; case ShowFunction.VideoDoorLock: functionCount = FunctionList.List.GetVideoDoorLockList().Count; -#if DEBUG - //functionCount = 1; -#endif - functionOnCount = 1; + functionOnCount = FunctionList.List.GetAcstParentList().FindAll((obj) => obj.GetAttrState("status").ToString() == "open" + || obj.GetAttrState("status").ToString() == "normal_open").Count; + break; - - - } if (functionCount == 0) -- Gitblit v1.8.0