| | |
| | | using HDL_ON.Stan; |
| | | using ZXing.QrCode.Internal; |
| | | using static HDL_ON.UI.UI2.FuntionControlView.Video.VideoMethod; |
| | | using HDL_ON.Entity; |
| | | |
| | | namespace HDL_ON.UI.UI2.FuntionControlView.Video |
| | | { |
| | |
| | | /// <param name="listVideo">门口机列表</param> |
| | | /// <param name="listCall">通话记录列表</param> |
| | | /// <param name="video">当前的可视对讲</param> |
| | | public void Show(List<VideoMethod.FlVideo> listVideo, List<CallView> listCall, VideoClouds video) |
| | | //public void Show(List<VideoMethod.FlVideo> listVideo, List<CallView> listCall, VideoClouds video) |
| | | public void Show() |
| | | { |
| | | |
| | | #region 布局界面 |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | | var topView = new TopView(); |
| | |
| | | pageView.AddChidren(view1); |
| | | var view2 = new FrameLayout(); |
| | | pageView.AddChidren(view2); |
| | | View1(view1, listVideo, video); |
| | | View2(view2, listCall, video); |
| | | View1(view1); |
| | | View2(view2); |
| | | Button btn11 = new Button |
| | | { |
| | | X = Application.GetRealWidth(170), |
| | |
| | | /// <param name="view1">父控件</param> |
| | | /// <param name="list">门口机列表</param> |
| | | /// <param name="videoClouds">当前的可视对讲</param> |
| | | void View1(FrameLayout view1, List<VideoMethod.FlVideo> list, VideoClouds videoClouds) |
| | | void View1(FrameLayout view1) |
| | | { |
| | | |
| | | new System.Threading.Thread(() => |
| | | { |
| | | var list = VideoSend.GetVideoInfoList(FunctionList.List.videoIntercom); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | #region 布局界面 |
| | | var bjFl = new FrameLayout |
| | |
| | | } |
| | | else |
| | | { |
| | | |
| | | l = (list.Count / 3) + 1; |
| | | } |
| | | var fL = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight((48 + 24) * l), |
| | | |
| | | }; |
| | | vv.AddChidren(fL); |
| | | int line = 0; |
| | |
| | | if (flVideo.devType == "100") |
| | | { |
| | | //门禁二维码固定有的 |
| | | VideoSend.GetQRcode(this, videoClouds, (tag, paw) => |
| | | VideoSend.GetQRcode(this, FunctionList.List.videoIntercom, (tag, paw) => |
| | | { |
| | | if (tag) |
| | | { |
| | |
| | | { |
| | | ESVideoUUID = getUuid(flVideo.uuid), |
| | | DeviceName = flVideo.aliasName, |
| | | roomno = videoClouds.flRoomId, |
| | | unitno = videoClouds.flBuildingId, |
| | | roomno = FunctionList.List.videoIntercom.flRoomId, |
| | | unitno = FunctionList.List.videoIntercom.flBuildingId, |
| | | }; |
| | | ESOnVideo.Current.ShowESVideoMonitor(eSVideoInfo); |
| | | } |
| | |
| | | |
| | | }; |
| | | } |
| | | |
| | | |
| | | }); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | /// <summary> |
| | | /// 第二个界面 |
| | |
| | | /// <param name="view2">父控件</param> |
| | | /// <param name="listCall">通话记录列表</param> |
| | | /// <param name="video">当前的可视对讲</param> |
| | | void View2(FrameLayout view2, List<CallView> listCall, VideoClouds video) |
| | | void View2(FrameLayout view2) |
| | | { |
| | | |
| | | new System.Threading.Thread(() => |
| | | { |
| | | var listCall = new HDL_ON.UI.UI2.FuntionControlView.Video.VideoMethod().getCall(FunctionList.List.videoIntercom.id); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | var bjFl = new FrameLayout |
| | | { |
| | | Y = Application.GetRealHeight(24), |
| | |
| | | vv.BeginHeaderRefreshingAction += () => |
| | | { |
| | | VideoMethod videoMethod = new VideoMethod(); |
| | | var list = videoMethod.getCall(video.id); |
| | | var list = videoMethod.getCall(FunctionList.List.videoIntercom.id); |
| | | RefreshView(vv, list); |
| | | //关闭刷新View; |
| | | vv.EndHeaderRefreshing(); |
| | | }; |
| | | RefreshView(vv, listCall); |
| | | |
| | | //RefreshView(vv, listCall); |
| | | }); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | /// <summary> |
| | | /// 通话记录刷新界面 |