private void BaseButtonConfirm_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.bean == null)
                {
                    GlobalMessageBox.Show(this, "找不到客户信息");
                    this.textBoxCustomer.Focus();
                    return;
                }

                if (this.textBoxAmount.Value == 0)
                {
                    GlobalMessageBox.Show(this, "请输入金额");
                    this.textBoxAmount.Focus();
                    return;
                }

                if (CommonGlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }


                PfCustomerRechargeRecord pfCustomerRechargeRecord = new PfCustomerRechargeRecord()
                {
                    BalanceOld = this.bean.Balance,
                    BalanceNew = this.bean.Balance + decimal.ToInt32(textBoxAmount.Value),
                    ID         = IDHelper.GetID(OrderPrefix.PfCustomerRechargeRecord, CommonGlobalCache.CurrentShop.AutoCode),
                    //  BalanceOld =
                    Remarks       = richTextBoxRemark.Text,
                    PfCustomerID  = bean.ID,
                    CreateTime    = DateTime.Now,
                    RechargeMoney = decimal.ToInt32(textBoxAmount.Value)
                };

                InteractResult result = GlobalCache.ServerProxy.InsertPfCustomerRechargeRecord(pfCustomerRechargeRecord);
                switch (result.ExeResult)
                {
                case ExeResult.Success:
                    GlobalMessageBox.Show(this.FindForm(), "添加成功!");
                    this.bean.Balance = pfCustomerRechargeRecord.BalanceNew;
                    //TabPageClose(this.CurrentTabPage, this.SourceCtrlType);
                    PfCustomerRechargeRecordSuccess?.Invoke(pfCustomerRechargeRecord);
                    this.Close();
                    break;

                case ExeResult.Error:
                    GlobalMessageBox.Show(this.FindForm(), result.Msg);
                    break;

                default:
                    break;
                }
            }
            catch (Exception ex) { ShowError(ex); }
            finally
            {
                UnLockPage();
            }
        }
 private void WholesaleCustomerRechargeForm_PfCustomerRechargeRecordSuccess(PfCustomerRechargeRecord obj)
 {
     this.RefreshPage();
 }