From e66503d70f26a3109fbadf47abcb8ba31d619e3c Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期五, 10 三月 2023 16:56:03 +0800 Subject: [PATCH] 2023年03月10日16:56:00 --- HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs | 27 ++++++++++++++++++++------- 1 files changed, 20 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 3e8e461..6ad66c0 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs @@ -1061,7 +1061,7 @@ { try { - var faceIDList = Send.Current.GetListHomeFace(device.deviceId,true); + var faceIDList = Send.Current.GetListHomeFace(device.deviceId, true); List<string> faceNameList = new List<string>(); for (int i = 0; i < faceIDList.Count; i++) { @@ -1086,13 +1086,20 @@ }); } catch { } + finally + { + Application.RunOnMainThread(() => + { + loading.Hide(); + }); + } }); } /// <summary> - /// 钀ょ煶瑙嗛闂ㄩ攣涓撶敤(浜岀骇鐣岄潰) + /// 钀ょ煶瑙嗛闂ㄩ攣涓撶敤 /// </summary> /// <param name="frame">褰撳墠鐣岄潰</param> /// <param name="device">褰撳墠璁惧</param> @@ -1107,31 +1114,37 @@ { try { - var userList = Send.Current.GetVideoDoorLockUserIdList(device.deviceId, true); + var userList =FuntionControlView.VideoDoorLock.VideDoorLockSend.Current.GetVideoDoorLockUserListInfo(device); List<string> userIdList = new List<string>(); for (int i = 0; i < userList.Count; i++) { var user = userList[i]; - userIdList.Add(user.userName); + userIdList.Add(user.extUserId); } Application.RunOnMainThread(() => { loading.Hide(); - PublicInterface publicInterface = new PublicInterface(); + PublicInterface publicInterface = new PublicInterface();//鐢ㄦ埛鐣岄潰 publicInterface.FrameOrVv(this, userIdList, new List<string> { btnState.Text }, device.name, (index) => { var userId = userIdList[index]; //鐣岄潰鏄剧ず閫変腑鍊� btnState.Text = userId; //鏁版嵁灏佽 - AddDictionary("open_type", "1", "integer"); - AddDictionary("user_id", userId, "string"); + AddDictionary("open_user", userId, "string"); }, false); }); } catch { } + finally + { + Application.RunOnMainThread(() => + { + loading.Hide(); + }); + } }); -- Gitblit v1.8.0