From a3313818a548d51777ae4e6cc006e9d1e2c1036e Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 07 四月 2023 09:15:37 +0800
Subject: [PATCH] 群控备份

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
index 6ad66c0..ef2c271 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs
@@ -89,6 +89,7 @@
                 //绌鸿皟
                 case SPK.AcStandard:
                 case SPK.HvacAC:
+                case SPK.AcIr:
                 //鍦扮儹
                 case SPK.FloorHeatStandard:
                 case SPK.HvacFloorHeat:
@@ -342,7 +343,7 @@
                     }
                     break;
                 //鐜妫�娴嬩紶鎰熷櫒
-                case SPK.SensorEnvironment:
+                case SPK.SensorEnvironment:case SPK.SensorEnvironmentHailin:
                 case SPK.SensorEnvironment2:
                 case SPK.SensorEnvironment3:
                     {
@@ -622,11 +623,12 @@
                 case SPK.VideoDoorLock:
                     {
                         LogicView.FunTypeView view1 = new LogicView.FunTypeView();
-                        view1.btnText.Text = "鐢ㄦ埛浜哄憳";// StringId.shipintonghuahujiao;
+                        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)
@@ -685,6 +687,12 @@
                         //condition榛樿[]
                         inputDevice.condition = new List<Dictionary<string, string>>();
                     }
+                }
+                else if (device.spk == SPK.VideoDoorLock)
+                {
+                    ////钀ょ煶瑙嗛闂ㄩ攣
+                    inputDevice.condition_type = "9";
+                    inputDevice.identifier = this.identifier;
                 }
 
 
@@ -1115,19 +1123,19 @@
                 try
                 {
                     var userList =FuntionControlView.VideoDoorLock.VideDoorLockSend.Current.GetVideoDoorLockUserListInfo(device);
-                    List<string> userIdList = new List<string>();
+                    List<string> userNameList = new List<string>();
                     for (int i = 0; i < userList.Count; i++)
                     {
                         var user = userList[i];
-                        userIdList.Add(user.extUserId);
+                        userNameList.Add(user.extUserName);
                     }
                     Application.RunOnMainThread(() =>
                     {
                         loading.Hide();
                         PublicInterface publicInterface = new PublicInterface();//鐢ㄦ埛鐣岄潰
-                        publicInterface.FrameOrVv(this, userIdList, new List<string> { btnState.Text }, device.name, (index) =>
+                        publicInterface.FrameOrVv(this, userNameList, new List<string> { btnState.Text }, device.name, (index) =>
                         {
-                            var userId = userIdList[index];
+                            var userId = userNameList[index];
                             //鐣岄潰鏄剧ず閫変腑鍊�
                             btnState.Text = userId;
                             //鏁版嵁灏佽

--
Gitblit v1.8.0