From 47fd8d410a0a85832758751b1f25b77e02ae3d58 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 25 十一月 2022 18:20:21 +0800
Subject: [PATCH] 2022年11月25日18:19:37

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs |   40 +++++++++++++++++++++++++++++++++++++---
 1 files changed, 37 insertions(+), 3 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..d9b1b60 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:
@@ -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);
             });

--
Gitblit v1.8.0