public override void OnPageLoad(object sender, EventArgs e) { fpCheckFacade = new FPCheckFacade(this); queryRequest = new CHQueryFilter(); viewModel.ChannelID = this.Request.Param; base.OnPageLoad(sender, e); if (!AuthMgr.HasFunctionPoint(AuthKeyConst.Customer_CHSet_Add)) { this.Button_New.IsEnabled = false; } }
public override void OnPageLoad(object sender, EventArgs e) { fpCheckFacade = new FPCheckFacade(this); WebChannelID = Request.Param; gridCCList.Bind(); base.OnPageLoad(sender, e); if (!AuthMgr.HasFunctionPoint(AuthKeyConst.Customer_CCSet_Save)) { this.ButtonSave.IsEnabled = false; } }
public override void OnPageLoad(object sender, EventArgs e) { commFacade = new CommonDataFacade(this); fpCheckFacade = new FPCheckFacade(this); this.DataContext = viewModel; base.OnPageLoad(sender, e); cbChannelSysNo.SelectedIndex = 0; gridFPMaster.Bind(); if (!AuthMgr.HasFunctionPoint(AuthKeyConst.Customer_FPCheck_Save)) { this.ButtonSave.IsEnabled = false; } }
private void ButtonSave_Click(object sender, RoutedEventArgs e) { viewModel.ValidationErrors.Clear(); ValidationManager.Validate(LayoutRoot); if (viewModel.HasValidationErrors) { return; } fpCheckFacade = new FPCheckFacade(CPApplication.Current.CurrentPage); fpCheckFacade.CreateCH(viewModel, (obj, args) => { if (args.FaultsHandle()) { return; } CPApplication.Current.CurrentPage.Context.Window.Alert("添加成功!"); Dialog.ResultArgs.DialogResult = DialogResultType.OK; Dialog.Close(); }); }