From 2763663f356b784404bcf81e873d1d24c10002be Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 16 十二月 2020 20:39:31 +0800 Subject: [PATCH] 2020-12-16 1.增加是否允许创建场景参数获取和判断 --- HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs b/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs index 7ce72e0..82b0d2e 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs @@ -69,7 +69,8 @@ }; bodyView.AddChidren(topView); - if (DB_ResidenceData.Instance.GatewayType == 0) + //涓嶆槸A缃戝叧鎴栬�呮槸鎴愬憳 鍙厑璁告坊鍔犲満鏅殣钘忚嚜鍔ㄥ寲 + if (DB_ResidenceData.Instance.GatewayType != 1 || DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) { btnSceneTilte = new Button() { @@ -485,6 +486,18 @@ { if (!btnAutomationTitle.IsSelected) { + //濡傛灉鏄垚鍛� + if (DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) + { + //濡傛灉娌℃湁鍦烘櫙鏉冮檺 + if (!DB_ResidenceData.Instance.CurrentRegion.isAllowCreateScene) + { + //鎻愮ず娌℃湁鍦烘櫙鐨勫垱寤烘潈闄� + Utlis.ShowTip(Language.StringByID(StringId.PermissionDenied)); + return; + } + } + Action action = () => { LoadSceneFunctionControlZone(); -- Gitblit v1.8.0