From a9d1161b1df96e7ddad566335989a1444e433ef5 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 28 三月 2023 11:54:45 +0800
Subject: [PATCH] 2023年03月28日11:52:02

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs |   39 ++++++++++++++++++++++++++++++++-------
 1 files changed, 32 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
index 2e237f6..1c62cfb 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
@@ -342,7 +342,7 @@
                     }
                     break;
                 //鐜妫�娴嬩紶鎰熷櫒
-                case SPK.SensorEnvironment:
+                case SPK.SensorEnvironment:case SPK.SensorEnvironmentHailin:
                 case SPK.SensorEnvironment2:
                 case SPK.SensorEnvironment3:
                     {
@@ -466,7 +466,7 @@
                         };
                     }
                     break;
-                //pm210
+                //pm10
                 case SPK.SensorPm10:
                     {
                         ///pm210
@@ -618,7 +618,25 @@
                         }
                     }
                     break;
-                    
+                //钀ょ煶瑙嗛闂ㄩ攣
+                case SPK.VideoDoorLock:
+                    {
+                        LogicView.FunTypeView view1 = new LogicView.FunTypeView();
+                        view1.btnText.TextID=StringId.yonghurenyuan;
+                        view1.btnText.Name = Language.StringByID(StringId.shipinmensuo);
+                        fLayout.AddChidren(view1.FLayoutView());
+                        view1.btnClick.MouseUpEventHandler += (sender, e) =>
+                        {
+                            this.identifier = "open_door";//寮�閿佷簨浠�
+                            this.VideoDoorLockAction(this, device, view1.btnState);
+                        };
+                        if (edit)
+                        {
+                            this.GetEditState(device, index, view1.btnState,null, null, null);
+                        }
+                    }
+                    break;
+
             }
             #region  淇濆瓨
             ///淇濆瓨View
@@ -647,7 +665,7 @@
                 Input inputDevice = new Input();
                 inputDevice.condition_type = "3";
                 inputDevice.sid = device.sid;
-                inputDevice.condition = dicSateteList;
+                inputDevice.condition.AddRange(dicSateteList);
                 if (device.spk == SPK.doorgate)
                 {
                     //鍙瀵硅
@@ -668,6 +686,12 @@
                         //condition榛樿[]
                         inputDevice.condition = new List<Dictionary<string, string>>();
                     }
+                }
+                else if (device.spk == SPK.VideoDoorLock)
+                {
+                    ////钀ょ煶瑙嗛闂ㄩ攣
+                    inputDevice.condition_type = "9";
+                    inputDevice.identifier = this.identifier;
                 }
 
 
@@ -928,7 +952,7 @@
                 if (inputs.condition.Count != 0)
                 {
                     //鏈夋暟鎹噸鏂拌祴鍊�
-                    dicSateteList = inputs.condition;
+                    dicSateteList.AddRange(inputs.condition);
                 }
             }
             new LogicView.TipPopView { }.InputBox(textInt, stateValue, (value) =>
@@ -990,7 +1014,7 @@
                 if (inputs.condition.Count != 0)
                 {
                     //鏈夋暟鎹噸鏂拌祴鍊�
-                    dicSateteList = inputs.condition;
+                    dicSateteList.AddRange(inputs.condition);
                 }
             }
             PublicInterface view = new PublicInterface();
@@ -1016,6 +1040,7 @@
                        case SPK.SensorPm25:
                        case SPK.SensorTVOC:
                        case SPK.SensorHcho:
+                       case SPK.SensorPm10:
                            {
                                if (!Is_SpkAttribute(key))
                                {
@@ -1091,7 +1116,7 @@
             if (dicList.Count != 0)
             {
                 //鏈夋暟鎹噸鏂拌祴鍊�
-                dicSateteList = dicList;
+                dicSateteList.AddRange(dicList);
             }
             InpOrOutLogicMethod.Current.EditDeviceState(device, dicList, button1, button2, button3, button4);
         }

--
Gitblit v1.8.0