| | |
| | | { |
| | | 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++) |
| | | { |
| | |
| | | }); |
| | | } |
| | | catch { } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | loading.Hide(); |
| | | }); |
| | | } |
| | | |
| | | }); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 萤石视频门锁专用(二级界面) |
| | | /// 萤石视频门锁专用 |
| | | /// </summary> |
| | | /// <param name="frame">当前界面</param> |
| | | /// <param name="device">当前设备</param> |
| | |
| | | { |
| | | 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(); |
| | | }); |
| | | } |
| | | |
| | | }); |
| | | |