From b8c54a7e4048317fc0f33c63a802d60396f82eb0 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 07 十二月 2022 17:31:59 +0800 Subject: [PATCH] 2022年12月07日17:31:56 --- HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs | 44 +++++++++++++++++++++++++++++++++++++++----- 1 files changed, 39 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs index 0cb5dd3..7aeb9f2 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs @@ -55,12 +55,35 @@ #region 缂栬緫璁惧鐘舵�� switch (device.spk) { - + //鎻掑骇(鏈塙SB) + case SPK.PanelSocket: + { + #region 鐣岄潰 + ///鎬绘帶寮�鍏� + LogicView.FunTypeView view1 = new LogicView.FunTypeView(); + view1.btnText.TextID = StringId.zongkogkaiguan; + view1.btnState.Name = "鎬绘帶寮�鍏�"; + fLayout.AddChidren(view1.FLayoutView()); + ///璁惧寤舵椂iewv + DelayView(fLayout, view1.frameLayout.Bottom); + #endregion + #region 鐐瑰嚮浜嬩欢 + ///鎬绘帶寮�鍏崇偣鍑讳簨浠� + view1.btnClick.MouseUpEventHandler += (sender, e) => + { + SwitchViewMethod(device, view1.btnState, 2); + }; + if (edit) + { + //鏄剧ず缂栬緫涔嬪墠鐨勮澶囩姸鎬� + GetEditDeviceState(device, index, view1.btnState, null, null, null); + } + #endregion + } + break; //寮�鍏崇伅鍏� case SPK.AirSwitch: case SPK.LightSwitch: - //鎻掑骇 - case SPK.PanelSocket: case SPK.ElectricSocket: //鏈烘鎵� case SPK.MechanicalArm: @@ -718,7 +741,7 @@ break; } - outputDevice.status = dicSateteList; + outputDevice.status.AddRange(dicSateteList); if (edit) { @@ -820,6 +843,17 @@ selectedState = device.spk + "_" + strValue; //璁惧灞炴�у�硷紝浜戦泙涓婂畾涔夊ソ鐨�; string keyVlaue = "on_off"; + switch (device.spk) + { + case SPK.PanelSocket: + { + if (button.Name == "鎬绘帶寮�鍏�") + { + keyVlaue = "on_off_master"; + } + } + break; + } //鏁版嵁灏佽 AddDictionary(keyVlaue, strValue); }); @@ -923,7 +957,7 @@ if (dicList.Count != 0) { //鏈夋暟鎹噸鏂拌祴鍊� - dicSateteList = dicList; + dicSateteList.AddRange(dicList); } if (this.btnDelay != null) { -- Gitblit v1.8.0