@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand().equals("充值")) {
			String ms = textField.getText();
			if(!Check.checkNull(new String[]{"充值金额"}, new String[]{ms})){
				return ;
			}
			if(!Check.checkNum(new String[]{"充值金额"}, new String[]{ms})){
				return ;
			}
			BigDecimal money = new BigDecimal(ms);
			CardinfoService cis = new CardinfoService();
			Cardinfo card = cis.getCardinfoByCustomer(cusId);
			com.xx.modal.Recharge r = new com.xx.modal.Recharge();
			r.setCard(card);
			r.setMoney(money);
			r.setTime(DateUtil.getSystemTime());
			RechargeService rs = new RechargeService();
			rs.save(r);
			cpanel.select();
			Recharge_Add.this.dispose();
			JOptionPane.showMessageDialog(null, "充值成功！", "提示", JOptionPane.INFORMATION_MESSAGE);
		} else if (e.getActionCommand().equals("取消")) {
			Recharge_Add.this.dispose();
		} 
	}