| | |
| | | var view1 = new FrameLayout(); |
| | | pageView.AddChidren(view1); |
| | | var view2 = new FrameLayout(); |
| | | pageView.AddChidren(view2); |
| | | if (!Entity.DB_ResidenceData.Instance.SupportFVDevice) {//非全视通展示通话记录 |
| | | pageView.AddChidren(view2); |
| | | } |
| | | View1(view1, videoList); |
| | | View2(view2, listCall, videoList); |
| | | Button btn11 = new Button |
| | |
| | | BackgroundColor = MusicColor.SelectedColor, |
| | | Radius = (uint)Application.GetRealHeight(4), |
| | | }; |
| | | view1.AddChidren(btn11); |
| | | //view1.AddChidren(btn11); |
| | | |
| | | Button btn12 = new Button |
| | | { |
| | |
| | | BackgroundColor = 0x404484F4, |
| | | Radius = (uint)Application.GetRealHeight(4), |
| | | }; |
| | | view1.AddChidren(btn12); |
| | | //view1.AddChidren(btn12); |
| | | if (!Entity.DB_ResidenceData.Instance.SupportFVDevice) |
| | | {//非全视通展示下方选择按钮 |
| | | view1.AddChidren(btn11); |
| | | view1.AddChidren(btn12); |
| | | } |
| | | |
| | | Button btn21 = new Button |
| | | { |
| | | X = Application.GetRealWidth(170), |
| | |
| | | Lc_Psk = video.deviceId,//2021-10-15 PSK字段不能取deviceName |
| | | Lc_PlayToken = video.playToken, |
| | | deviceSipAccount = video.deviceSipAccount, |
| | | HomeId = video.homeId |
| | | HomeId = video.homeId, |
| | | deviceCode=video.deviceCode |
| | | }; |
| | | |
| | | ESOnVideo.Current.ShowESVideoMonitor(eSVideoInfo, video.interphoneType); |
| | | } |
| | | }; |
| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 加载提示弹窗 |
| | | /// 获取门禁二维码 |
| | | /// </summary> |
| | | public void ChooseVideoShowQRCode() |
| | | { |
| | |
| | | }; |
| | | contentView.AddChidren(listView); |
| | | |
| | | if (ximoVideoList.Count == 1) |
| | | //if (ximoVideoList.Count == 1) |
| | | { |
| | | Loading loading = new Loading(); |
| | | contentView.AddChidren(loading); |
| | |
| | | ImageView codeImage = new ImageView() |
| | | { |
| | | Gravity = Gravity.Center, |
| | | Height = Application.GetRealWidth(200), |
| | | Width = Application.GetRealWidth(200), |
| | | Height = Application.GetRealWidth(320), |
| | | Width = Application.GetRealWidth(320), |
| | | ImageBytes = Scan.BytesFromText(pairs[0].qrcode, Application.GetRealWidth(200), Application.GetRealWidth(200)), |
| | | }; |
| | | contentView.AddChidren(codeImage); |
| | | dialogView.AddChidren(codeImage); |
| | | }); |
| | | } |
| | | } |
| | |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | else |
| | | { |
| | | //else |
| | | //{ |
| | | |
| | | foreach (var v in ximoVideoList) |
| | | { |
| | | Button btnMsg = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Height = Application.GetRealHeight(50), |
| | | Width = Application.GetRealHeight(160), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Text = v.deviceName, |
| | | Radius = (uint)Application.GetRealWidth(5), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | IsMoreLines = true, |
| | | }; |
| | | listView.AddChidren(btnMsg); |
| | | // foreach (var v in ximoVideoList) |
| | | // { |
| | | // Button btnMsg = new Button() |
| | | // { |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Height = Application.GetRealHeight(50), |
| | | // Width = Application.GetRealHeight(160), |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.TextualColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | // Text = v.deviceName, |
| | | // Radius = (uint)Application.GetRealWidth(5), |
| | | // BackgroundColor = CSS_Color.DividingLineColor, |
| | | // IsMoreLines = true, |
| | | // }; |
| | | // listView.AddChidren(btnMsg); |
| | | |
| | | listView.AddChidren(new Button() { Height = Application.GetRealHeight(12) }); |
| | | // listView.AddChidren(new Button() { Height = Application.GetRealHeight(12) }); |
| | | |
| | | btnMsg.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | // btnMsg.MouseUpEventHandler = (sender, e) => |
| | | // { |
| | | |
| | | |
| | | if (v.spk == "door.gate") |
| | | { |
| | | Loading loading = new Loading(); |
| | | contentView.AddChidren(loading); |
| | | loading.Start(""); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | try |
| | | { |
| | | var pack = VideoSend.GetQRcode(); |
| | | var pairs = Newtonsoft.Json.JsonConvert.DeserializeObject<List<AccessControlQRode>>(pack.Data.ToString()); |
| | | if (pairs.Count > 0) |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | ImageView codeImage = new ImageView() |
| | | { |
| | | Gravity = Gravity.Center, |
| | | Height = Application.GetRealWidth(200), |
| | | Width = Application.GetRealWidth(200), |
| | | ImageBytes = Scan.BytesFromText(pairs[0].qrcode, Application.GetRealWidth(200), Application.GetRealWidth(200)), |
| | | }; |
| | | contentView.AddChidren(codeImage); |
| | | }); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log($"获取门禁二维码异常:{ex.Message}"); |
| | | } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (loading != null) |
| | | { |
| | | loading.Hide(); |
| | | loading.RemoveFromParent(); |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | return; |
| | | } |
| | | // if (v.spk == "door.gate") |
| | | // { |
| | | |
| | | // return; |
| | | // } |
| | | |
| | | //门禁二维码固定有的 |
| | | VideoSend.GetQRcode(this, v, (tag, paw) => |
| | | { |
| | | if (tag) |
| | | { |
| | | //注意:密码有可能延时1分钟生效 |
| | | View.ShowDialog showDialog = new View.ShowDialog(); |
| | | showDialog.QRcode(paw); |
| | | } |
| | | }); |
| | | dialog.Close(); |
| | | }; |
| | | } |
| | | } |
| | | // //门禁二维码固定有的 |
| | | // VideoSend.GetQRcode(this, v, (tag, paw) => |
| | | // { |
| | | // if (tag) |
| | | // { |
| | | // //注意:密码有可能延时1分钟生效 |
| | | // View.ShowDialog showDialog = new View.ShowDialog(); |
| | | // showDialog.QRcode(paw); |
| | | // } |
| | | // }); |
| | | // dialog.Close(); |
| | | // }; |
| | | // } |
| | | //} |
| | | dialog.Show(); |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 选择徘徊报警列表显示 |
| | | /// </summary> |
| | | public void ChooseAlarmShow() |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = CSS_Color.DialogTransparentColor1, |
| | | }; |
| | | |
| | | FrameLayout dialogView = new FrameLayout(); |
| | | dialog.AddChidren(dialogView); |
| | | dialogView.MouseUpEventHandler = (sender, e) => { |
| | | dialog.Close(); |
| | | }; |
| | | |
| | | var contentView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.Center, |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealHeight(280), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | BorderColor = 0x00000000, |
| | | BorderWidth = 0, |
| | | Radius = (uint)Application.GetMinRealAverage(10), |
| | | }; |
| | | dialogView.AddChidren(contentView); |
| | | |
| | | var btnTitle = new Button() |
| | | { |
| | | Height = Application.GetRealHeight(64), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextID = StringId.menjinerweima, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | }; |
| | | contentView.AddChidren(btnTitle); |
| | | |
| | | var listView = new VerticalScrolViewLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(70), |
| | | Width = Application.GetRealWidth(230), |
| | | Height = Application.GetRealHeight(200), |
| | | }; |
| | | contentView.AddChidren(listView); |
| | | |
| | | if (ximoVideoList.Count == 1) |
| | | { |
| | | var wanderingAlarmPage = new WanderingAlarmPage(); |
| | | var wanderingAlarmPage = new WanderingAlarmPage(ximoVideoList[0].deviceId); |
| | | MainPage.BasePageView.AddChidren(wanderingAlarmPage); |
| | | wanderingAlarmPage.LoadPage(ximoVideoList[0].deviceId); |
| | | wanderingAlarmPage.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | } |
| | | else |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = CSS_Color.DialogTransparentColor1, |
| | | }; |
| | | |
| | | FrameLayout dialogView = new FrameLayout(); |
| | | dialog.AddChidren(dialogView); |
| | | dialogView.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | dialog.Close(); |
| | | }; |
| | | |
| | | var contentView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.Center, |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealHeight(280), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | BorderColor = 0x00000000, |
| | | BorderWidth = 0, |
| | | Radius = (uint)Application.GetMinRealAverage(10), |
| | | }; |
| | | dialogView.AddChidren(contentView); |
| | | |
| | | var btnTitle = new Button() |
| | | { |
| | | Height = Application.GetRealHeight(64), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextID = StringId.WanderingAlarm, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | }; |
| | | contentView.AddChidren(btnTitle); |
| | | |
| | | var listView = new VerticalScrolViewLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(70), |
| | | Width = Application.GetRealWidth(230), |
| | | Height = Application.GetRealHeight(200), |
| | | }; |
| | | contentView.AddChidren(listView); |
| | | |
| | | |
| | | foreach (var v in ximoVideoList) |
| | | { |
| | |
| | | { |
| | | |
| | | |
| | | var wanderingAlarmPage = new WanderingAlarmPage(); |
| | | var wanderingAlarmPage = new WanderingAlarmPage(v.deviceId); |
| | | MainPage.BasePageView.AddChidren(wanderingAlarmPage); |
| | | wanderingAlarmPage.LoadPage(v.deviceId); |
| | | wanderingAlarmPage.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | dialog.Close(); |
| | | }; |
| | | } |
| | | dialog.Show(); |
| | | } |
| | | dialog.Show(); |
| | | |
| | | } |
| | | |