/**
   * 验证信息是否为空
   *
   * @return
   */
  private boolean verification() {
    name = et_user_name.getText().toString();
    idcard = et_user_card.getText().toString();
    bankid = et_user_ban.getText().toString();
    phone = et_user_phone.getText().toString();
    bankname = tv_bank_name.getText().toString();

    if ("".equals(bankname)) {
      TXWLApplication.getInstance().showTextToast("银行不能为空");
      return false;
    }
    if (DataVeri.isBlank(name)) {
      TXWLApplication.getInstance().showTextToast("真实姓名不能为空");
      return false;
    }
    if (DataVeri.isBlank(idcard)) {
      TXWLApplication.getInstance().showTextToast("证件号码不能为空");
      return false;
    }
    if (DataVeri.isBlank(bankid)) {
      TXWLApplication.getInstance().showTextToast("银行卡号不能为空");
      return false;
    }
    return !DataVeri.isMobileNum(phone);
  }
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   if (resultCode == Constant.ResultCode) {
     String bankname = data.getStringExtra("BankName");
     tv_bank_name.setText(bankname);
     bank_code = data.getStringExtra("bank_code");
     Log.d("bank_code:", bank_code);
     TXWLProgressDialog.createDialog(AddBankCardActivity.this);
     TXWLProgressDialog.setMessage("获取订单号中.....");
     getOrderNum();
   }
   super.onActivityResult(requestCode, resultCode, data);
 }
  private void initView() {
    TextView tv_title = (TextView) findViewById(R.id.tv_title);
    ibtn_title_back = (ImageButton) findViewById(R.id.ibtn_title_back);
    ibtn_title_back.setVisibility(View.VISIBLE);
    TextView tv_right = (TextView) findViewById(R.id.tv_right);
    tv_right.setVisibility(View.GONE);
    tv_title.setText("银行卡支付");

    cz_money = getIntent().getStringExtra("tip");

    et_user_name = (EditText) findViewById(R.id.et_user_name);
    et_user_card = (EditText) findViewById(R.id.et_user_card);
    et_user_ban = (EditText) findViewById(R.id.et_user_ban);
    et_user_phone = (EditText) findViewById(R.id.et_user_phone);
    ibtn_submit_next = (Button) findViewById(R.id.ibtn_submit_next);
    rl_bank_name = (RelativeLayout) findViewById(R.id.rl_bank_name);
    tv_bank_name = (TextView) findViewById(R.id.tv_bank_name_name);
    btn_vericode = (Button) findViewById(R.id.btn_vericode);
    bankcardnum = (TextView) findViewById(R.id.bankcardnum);
    et_vericode = (EditText) findViewById(R.id.et_vericode);
    ibtn_submit_next.setEnabled(false);
  }
 @Override
 public void onTextChanged(CharSequence s, int start, int before, int count) {
   String bankId = "";
   for (int i = 0; i < s.length(); i++) {
     if ((i + 1) % 4 == 0) {
       bankId += " ";
     }
     bankId += s.charAt(i);
   }
   bankcardnum.setText(bankId);
   Log.v(
       "TextWatcher-onTextChanged-->",
       " text="
           + s.toString()
           + " length="
           + s.length()
           + " start="
           + start
           + " before-"
           + before
           + " count="
           + count);
 }