From e4acb04670cee588ad45ef7d57a50dc3c928f2d9 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 04 六月 2024 13:23:17 +0800
Subject: [PATCH] 备份

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
index 020496b..b2ebfb6 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -416,6 +416,24 @@
                                         }
                                     }
                                     break;
+                                case SPK.VideoDoorLock:
+                                    {
+                                        string userName = string.Empty;
+                                        string tag = string.Empty;
+                                        for (int b = 0; b < dicList.Count; b++)
+                                        {
+                                            var dic = dicList[b];
+                                            //var userId = dic["value"].ToString();
+                                            //var FaceItem = this.GetVideoDoorLockUserItem(userId, device);
+                                            //s += FaceItem.userName;
+                                            //s += ",";
+                                            //tag += FaceItem.userId;
+                                            //tag += "_";
+                                            userName = dic["value"].ToString();
+                                        }
+                                        inputView.btnState.Text = RemoveLastStr(userName);
+                                    }
+                                    break;
                                 case SPK.doorgate:
                                     {
 
@@ -456,6 +474,27 @@
                                         }
                                         catch { }
                                         inputView.btnState.Text = s;
+                                    }
+                                    break;
+                                case SPK.IpCam_Imou:
+                                    {
+                                        if (inputCondition.identifier == "ipcam_region_alram_event")
+                                        {
+                                            inputView.btnState.Text = Language.StringByID(StringId.quyuruqingaojing);
+                                        }
+
+                                    }
+                                    break;
+                                case SPK.Ev_Ipcam:
+                                    if (inputCondition.identifier == Constant.intelligentDetection_event)
+                                    {
+                                        inputView.btnState.Text = Language.StringByID(StringId.shi);
+                                    }
+                                    break;
+                                case SPK.Peephole:
+                                    if (inputCondition.identifier == "pir_event")
+                                    {
+                                        inputView.btnState.Text = Language.StringByID(StringId.shi);
                                     }
                                     break;
                                 case SPK.SensorPirHold:
@@ -2458,6 +2497,26 @@
                         }
                     }
                     break;
+                case SPK.VideoDoorLock:
+                    {
+                        string userName = string.Empty;
+                        string tag = string.Empty;
+                        for (int b = 0; b < dicList.Count; b++)
+                        {
+                            var dic = dicList[b];
+                            //var userId = dic["value"].ToString();
+                            //var FaceItem = this.GetVideoDoorLockUserItem(userId, device);
+                            //s += FaceItem.userName;
+                            //s += ",";
+                            //tag += FaceItem.userId;
+                            //tag += "_";
+                            userName = dic["value"].ToString();
+
+                        }
+                        button1.Text = RemoveLastStr(userName);
+                        button1.Tag = tag;
+                    }
+                    break;
                 case SPK.MusicStandard:
                 case SPK.AvMusic:
                     {
@@ -3094,6 +3153,24 @@
             }
             return face;
         }
+        /// <summary>
+        /// 鏌ユ壘鎸囧畾钀ょ煶瑙嗛闂ㄩ攣userId
+        /// </summary>
+        /// <param name="userId"></param>
+        /// <returns></returns> 
+        public Face GetVideoDoorLockUserItem(string userId, Function device)
+        {
+            if (Send.Current.VideoDoorLockUserListInfo.Count == 0)
+            {
+                Send.Current.GetVideoDoorLockUserListInfo(device);
+            }
+            var face = Send.Current.VideoDoorLockUserListInfo.Find((o) => { return o.userId == userId; });
+            if (face == null)
+            {
+                face = new Face();
+            }
+            return face;
+        }
 
         /// <summary>
         /// 鍒犻櫎鏈�鍚庝竴涓� ","

--
Gitblit v1.8.0