From a6e32221aa4bc5019a066fad90c4955064647cae Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 10 七月 2023 14:16:00 +0800
Subject: [PATCH] 视频门锁功能记录

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
index bd46f2d..a7dc2a6 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
@@ -696,6 +696,38 @@
                         }
                     }
                     break;
+                case SPK.Peephole:
+                    LogicView.FunTypeView viewPeephole = new LogicView.FunTypeView();
+                    viewPeephole.btnText.TextID = StringId.ActivityDetection;
+                    viewPeephole.btnText.Name = Language.StringByID(StringId.shipinmensuo);
+                    fLayout.AddChidren(viewPeephole.FLayoutView());
+                    viewPeephole.btnClick.MouseUpEventHandler += (sender, e) =>
+                    {
+                        this.identifier = "pir_event";//浜轰綋鎰熷簲鍛婅
+                        this.DeviceView(device, viewPeephole.btnState, StringId.shi, StringId.offLogic, 1);
+
+                    };
+                    if (edit)
+                    {
+                        this.GetEditState(device, index, viewPeephole.btnState, null, null, null);
+                    }
+                    break;
+                case SPK.Ev_Ipcam:
+                    LogicView.FunTypeView viewEzIpcam = new LogicView.FunTypeView();
+                    viewEzIpcam.btnText.TextID = StringId.ActivityDetection;
+                    viewEzIpcam.btnText.Name = Language.StringByID(StringId.shipinmensuo);
+                    fLayout.AddChidren(viewEzIpcam.FLayoutView());
+                    viewEzIpcam.btnClick.MouseUpEventHandler += (sender, e) =>
+                    {
+                        this.identifier = "motiondetect_event";//浜轰綋鎰熷簲鍛婅
+                        this.DeviceView(device, viewEzIpcam.btnState, StringId.shi, StringId.offLogic, 1);
+
+                    };
+                    if (edit)
+                    {
+                        this.GetEditState(device, index, viewEzIpcam.btnState, null, null, null);
+                    }
+                    break;
 
             }
             #region  淇濆瓨
@@ -747,6 +779,18 @@
                         inputDevice.condition = new List<Dictionary<string, string>>();
                     }
                 }
+                else if(device.spk == SPK.Peephole)
+                {
+                    //鐚溂-浜轰綋鎰熷簲鍛婅
+                    inputDevice.condition_type = "9";
+                    inputDevice.identifier = this.identifier;
+                }
+                else if(device.spk == SPK.Ev_Ipcam)
+                {
+                    //钀ょ煶鎽勫儚澶�-绉诲姩鐩戞祴鍛婅
+                    inputDevice.condition_type = "9";
+                    inputDevice.identifier = this.identifier;
+                }
                 else if (device.spk == SPK.VideoDoorLock)
                 {
                     ////钀ょ煶瑙嗛闂ㄩ攣

--
Gitblit v1.8.0