private void btnAddVoucher_Click(object sender, System.EventArgs e) { string text = this.txtVoucher.Text; if (!TradeHelper.ExitVoucherClaimCode(text)) { this.ShowMessage("你输入的现金券号码无效,请重试", false); return; } if (TradeHelper.AddVoucherClaimCodeToUser(text, HiContext.Current.User.UserId) > 0) { this.BindVoucher(); this.txtVoucher.Text = string.Empty; this.ShowMessage("成功的添加了现金券到你的账户", true); } }