コード例 #1
0
  /**
   * 验证信息是否为空
   *
   * @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);
  }
コード例 #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.add_backcard_layout);
    TXWLApplication.getInstance().pushStack(this);
    //        mContext = this;

    initView();

    initListener();
  }
コード例 #3
0
 @Override
 protected void onPostExecute(String[] result) {
   if ("T".equals(result[0])) {
     encrypt_key = result[1];
     Log.d("encrypt_key---->", "时间戳:" + encrypt_key);
     new BeiFuPayHttpPost()
         .execute(billno, token, et_vericode.getText().toString(), cz_money, encrypt_key);
   } else {
     TXWLProgressDialog.Dismiss();
     TXWLApplication.getInstance().showTextToast(result[1]);
   }
 }
コード例 #4
0
    @Override
    protected void onPostExecute(String result) {
      FastPayReturn returnBean = new GsonBuilder().create().fromJson(result, FastPayReturn.class);
      if ("T".equals(returnBean.getResult())) {
        boundBankCard();

      } else {
        TXWLProgressDialog.Dismiss();
        TXWLApplication.getInstance().showTextToast(returnBean.getError_message());
        Log.d("mobileFast_error---->", returnBean.getError_message());
      }
    }
コード例 #5
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   TXWLApplication.getInstance().popStack(this);
 }