wei
2021-03-31 19e762179bdc9efc23704bc471cf974ed282b43d
HDL_ON/UI/UI2/FuntionControlView/Video/MainView.cs
@@ -5,6 +5,7 @@
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
{
@@ -16,8 +17,10 @@
        /// <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();
@@ -39,8 +42,8 @@
            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),
@@ -105,7 +108,13 @@
        /// <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
@@ -195,13 +204,11 @@
            }
            else
            {
                l = (list.Count / 3) + 1;
            }
            var fL = new FrameLayout
            {
                Height = Application.GetRealHeight((48 + 24) * l),
            };
            vv.AddChidren(fL);
            int line = 0;
@@ -259,7 +266,7 @@
                    if (flVideo.devType == "100")
                    {
                        //门禁二维码固定有的
                        VideoSend.GetQRcode(this, videoClouds, (tag, paw) =>
                                VideoSend.GetQRcode(this, FunctionList.List.videoIntercom, (tag, paw) =>
                        {
                            if (tag)
                            {
@@ -279,8 +286,8 @@
                        {
                            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);
                    }
@@ -288,8 +295,9 @@
                };
            }
                });
            })
            { IsBackground = true }.Start();
        }
        /// <summary>
        /// 第二个界面
@@ -297,9 +305,13 @@
        /// <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),
@@ -351,13 +363,15 @@
            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>
        /// 通话记录刷新界面