/// <summary> /// 根据渠道,模块类型等加载前台网站的页面类型 /// </summary> public void ReloadPageTypes() { if (CPApplication.Current.CurrentPage == null) { return; } if (string.IsNullOrEmpty(ChannelID)) { BindPageType(null); return; } PageTypeFacade facade = new PageTypeFacade(CPApplication.Current.CurrentPage); facade.GetPageTypes(CPApplication.Current.CompanyCode, this.ChannelID, (int)this.ModuleType, (s, args) => { if (args.FaultsHandle()) { return; } BindPageType(args.Result); RaisePageTypeLoadCompleted(); }); }
private void lstChannelList_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.lstChannelList.SelectedValue == null) { return; } //根据渠道的变化,动态加载页面类型 var pageTypeFacade = new PageTypeFacade(CPApplication.Current.CurrentPage); pageTypeFacade.GetPageTypes(CPApplication.Current.CompanyCode, this.lstChannelList.SelectedValue.ToString(), (int)ModuleType.Banner, (s, args) => { if (args.FaultsHandle()) { return; } this.lstPageTypeList.ItemsSource = args.Result; }); }