| | |
| | | using HDL_ON.UI; |
| | | using HDL_ON.UI.CSS; |
| | | using Shared; |
| | | using Foundation; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | |
| | | Button btnFaceManagementText; |
| | | #endregion |
| | | |
| | | #region 个人选项-访客管理 |
| | | /// <summary> |
| | | /// 个人选项-访客管理 |
| | | /// |
| | | /// </summary> |
| | | FrameLayout visitorManagementView; |
| | | /// <summary> |
| | | /// 人脸通行管理文本isitor |
| | | /// </summary> |
| | | Button btnisitorVManagementText; |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | |
| | | /// <summary> |
| | | /// 解锁设置区域 |
| | | /// </summary> |
| | | FrameLayout interpretationSettingsView; |
| | | Button btnInterpretationSettingsTitle; |
| | | Button btnInterpretationSettingsTip; |
| | | Button btnInterpretationSettingsRight; |
| | | //FrameLayout interpretationSettingsView; |
| | | //Button btnInterpretationSettingsTitle; |
| | | //Button btnInterpretationSettingsTip; |
| | | //Button btnInterpretationSettingsRight; |
| | | #endregion |
| | | |
| | | /// <summary> |
| | |
| | | }; |
| | | bodyScrolView.AddChidren(optionListView); |
| | | |
| | | //根据需要添加行 |
| | | int addRow = 0; |
| | | if(Entity.DB_ResidenceData.Instance.SupportFacePass) |
| | | { |
| | | optionListView.Height = Application.GetRealHeight(51 * (6 + 1)); |
| | | addRow += 1; |
| | | } |
| | | |
| | | if (Entity.DB_ResidenceData.Instance.SupportVisitorManage) |
| | | { |
| | | addRow += 1; |
| | | } |
| | | |
| | | //有全视通的情况 |
| | | optionListView.Height = Application.GetRealHeight(51 * (6 + addRow)); |
| | | |
| | | |
| | | #region 个人选项-名字区域 |
| | | /// <summary> |
| | |
| | | |
| | | btnAddResidenceText.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | Scan.OpenScan((scanString) => |
| | | Scan.Ins.OpenScan((scanString) => |
| | | { |
| | | if (string.IsNullOrEmpty(scanString)) |
| | | { |
| | |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | //访客管理 |
| | | #region 个人选项-访客管理 |
| | | if (!Entity.DB_ResidenceData.Instance.SupportVisitorManage)//判断是否支持访客管理 |
| | | { |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | |
| | | #region 解锁设置区域 |
| | | visitorManagementView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | optionListView.AddChidren(visitorManagementView); |
| | | |
| | | |
| | | var btnVisitorManagementRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | visitorManagementView.AddChidren(btnVisitorManagementRight); |
| | | |
| | | btnisitorVManagementText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = StringId.VisitorManage, |
| | | }; |
| | | visitorManagementView.AddChidren(btnisitorVManagementText); |
| | | |
| | | btnisitorVManagementText.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | #if __IOS__ |
| | | //刷新接口请求所需要的参数 |
| | | NSDictionary info = new NSDictionary("regionUrl", HttpUtil.GlobalRequestHttpsHost, "token", UserInfo.Current.LoginTokenString, "appkey", "HDL-HOME-APP-TEST", "secret", "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss", "refreshToken", UserInfo.Current.RefreshToken); |
| | | Shared.IOS.HDLFVSDK.Video.RefreshInfo(info); |
| | | //跳转访客管理界面 |
| | | Shared.IOS.HDLFVSDK.Video.ShowVisitorManager(); |
| | | #endif |
| | | }; |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | #endregion |
| | | var topPaddingView2 = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(8) |
| | | }; |
| | | bodyScrolView.AddChidren(topPaddingView2); |
| | | /// <summary> |
| | | /// 解锁设置区域 |
| | | /// </summary> |
| | | interpretationSettingsView = new FrameLayout() |
| | | { |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Height = Application.GetRealHeight(70), |
| | | }; |
| | | bodyScrolView.AddChidren(interpretationSettingsView); |
| | | if(Language.CurrentLanguage != "Chinese") |
| | | { |
| | | interpretationSettingsView.Height = Application.GetRealHeight(80); |
| | | } |
| | | |
| | | btnInterpretationSettingsTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Height = Application.GetRealHeight(32), |
| | | TextAlignment = TextAlignment.BottomLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = StringId.InterpretationSettings, |
| | | }; |
| | | interpretationSettingsView.AddChidren(btnInterpretationSettingsTitle); |
| | | #region 解锁设置区域 |
| | | ///// <summary> |
| | | ///// 解锁设置区域 |
| | | ///// </summary> |
| | | //interpretationSettingsView = new FrameLayout() |
| | | //{ |
| | | // BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | // Height = Application.GetRealHeight(70), |
| | | //}; |
| | | //bodyScrolView.AddChidren(interpretationSettingsView); |
| | | //if(Language.CurrentLanguage != "Chinese") |
| | | //{ |
| | | // interpretationSettingsView.Height = Application.GetRealHeight(80); |
| | | //} |
| | | |
| | | btnInterpretationSettingsTip = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Y = btnInterpretationSettingsTitle.Bottom, |
| | | Height = Application.GetRealHeight(32), |
| | | Width = Application.GetRealWidth(310), |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = StringId.AppUnlockSettingsTip, |
| | | IsMoreLines = true, |
| | | }; |
| | | interpretationSettingsView.AddChidren(btnInterpretationSettingsTip); |
| | | //btnInterpretationSettingsTitle = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(16), |
| | | // Height = Application.GetRealHeight(32), |
| | | // TextAlignment = TextAlignment.BottomLeft, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.SubheadingFontSize, |
| | | // TextID = StringId.InterpretationSettings, |
| | | //}; |
| | | //interpretationSettingsView.AddChidren(btnInterpretationSettingsTitle); |
| | | |
| | | btnInterpretationSettingsRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(339), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | interpretationSettingsView.AddChidren(btnInterpretationSettingsRight); |
| | | interpretationSettingsView.AddChidren(new LineView(interpretationSettingsView.Height)); |
| | | #endregion |
| | | //btnInterpretationSettingsTip = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(16), |
| | | // Y = btnInterpretationSettingsTitle.Bottom, |
| | | // Height = Application.GetRealHeight(32), |
| | | // Width = Application.GetRealWidth(310), |
| | | // TextAlignment = TextAlignment.TopLeft, |
| | | // TextColor = CSS_Color.PromptingColor1, |
| | | // TextSize = CSS_FontSize.TextFontSize, |
| | | // TextID = StringId.AppUnlockSettingsTip, |
| | | // IsMoreLines = true, |
| | | //}; |
| | | //interpretationSettingsView.AddChidren(btnInterpretationSettingsTip); |
| | | |
| | | #region 服务器信息 |
| | | //btnInterpretationSettingsRight = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(339), |
| | | // Gravity = Gravity.CenterVertical, |
| | | // Width = Application.GetMinRealAverage(16), |
| | | // Height = Application.GetMinRealAverage(16), |
| | | // UnSelectedImagePath = "Public/Right.png", |
| | | //}; |
| | | //interpretationSettingsView.AddChidren(btnInterpretationSettingsRight); |
| | | //interpretationSettingsView.AddChidren(new LineView(interpretationSettingsView.Height)); |
| | | #endregion |
| | | |
| | | #region 服务器信息 |
| | | ListCellView myServerInfoCellView = new ListCellView() |
| | | { |
| | | }; |
| | |
| | | }; |
| | | myServerInfoCellView.GoAction = selectAction; |
| | | myServerInfoCellView.BtnTilte.Text = Language.StringByID(StringId.ServerInformation); |
| | | myServerInfoCellView.LineView.RemoveFromParent(); |
| | | //myServerInfoCellView.LineView.RemoveFromParent(); |
| | | |
| | | #endregion |
| | | #endregion |
| | | |
| | | |
| | | #region 注销账号 |
| | | ListCellView logOffView = new ListCellView() |
| | | { |
| | | }; |
| | | bodyScrolView.AddChidren(logOffView); |
| | | //注销账号界面 |
| | | Action logOffAction = () => |
| | | { |
| | | var myServerInfoPage = new CancelAccountPage(); |
| | | MainPage.BasePageView.AddChidren(myServerInfoPage); |
| | | myServerInfoPage.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | logOffView.GoAction = logOffAction; |
| | | logOffView.BtnTilte.Text = Language.StringByID(StringId.CancelAccount); |
| | | logOffView.LineView.RemoveFromParent(); |
| | | |
| | | #endregion |
| | | |
| | | btnLogout = new Button() |
| | | { |