Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 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;
     }
 }
Exemplo n.º 3
0
 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;
     }
 }
Exemplo n.º 4
0
 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();
     });
 }