| | |
| | | private VerticalScrolViewLayout bodyScrolView; |
| | | private List<VisitorTempPassword> pwdList; |
| | | |
| | | Action action1; |
| | | Action backAction;// 后退按键,刷新UI |
| | | Action action; |
| | | |
| | | public override void RemoveFromParent() |
| | | { |
| | | action1?.Invoke(); |
| | | backAction?.Invoke(); |
| | | base.RemoveFromParent(); |
| | | } |
| | | |
| | | public VisitorHistoryPage(Action action) |
| | | { |
| | | action1 = action; |
| | | backAction = action; |
| | | bodyView = this; |
| | | } |
| | | |
| | | public void LoadPage() |
| | | { |
| | | action = () => |
| | | { |
| | | LoadPage(); |
| | | }; |
| | | |
| | | pwdList = getVisitorPasswordData(); |
| | | |
| | | #region 访客记录按钮 |
| | | Action click = () => |
| | | { |
| | | VisitorHistoryPage page = new VisitorHistoryPage(null); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.VisitorInvitation)).LoadTopView_SettingText(click, ""); |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.VisitorInvitation)).LoadTopView(); |
| | | #endregion |
| | | |
| | | bodyScrolView = new VerticalScrolViewLayout() |
| | |
| | | itemLayout.AddChidren(btn);//+= (sender, e) |
| | | btn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | VisitorQRCodePage page = new VisitorQRCodePage(temPwd); |
| | | VisitorQRCodePage page = new VisitorQRCodePage(action, temPwd); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | |
| | | } |
| | | return dataList; |
| | | } |
| | | |
| | | private List<TempPasswordInfo> infoList; |
| | | } |
| | | } |