@Override
  public void onClick(View v) {

    switch (v.getId()) {
      case R.id.tv_cancel:
        if (shopOperatorBean != null) {
          showProgressDialog(true);
          ShopOperatorServer.onDeleteOperator_xutils(shopOperatorBean.getId(), this);
        }
        break;
      case R.id.tv_ok:
        // 修改
        user = et_user.getText().toString().trim(); // 用户名
        name = et_name.getText().toString().trim(); // 真实姓名
        id = et_id.getText().toString().trim(); // 身份证
        num = et_num.getText().toString().trim(); // 电话号码
        pwd = et_pwd.getText().toString().trim(); // 密码
        System.out.println(">>>>>>>>>>>>>>是否接收短信<<<<<<<<<<<<" + ismessage);
        if (match()) {
          showProgressDialog(true);
          RequestParams params = BaseServer.getParams();
          MultipartEntity multipartEntity = new MultipartEntity();
          multipartEntity.setMultipartSubtype(
              "multipart/form-data; boundary=--ling--"); // 加上这个就不报404了,坑
          params.setBodyEntity(multipartEntity);
          params.addQueryStringParameter("username", user);
          params.addQueryStringParameter("password", pwd);
          params.addQueryStringParameter("name", name);
          params.addQueryStringParameter("phoneNumber", num);
          params.addQueryStringParameter("cardNumber", id);
          params.addQueryStringParameter("receiveSms", ismessage);
          ShopOperatorServer.onUpdateOperator_xutils(params, OperatorDetailsActivity.this);
        }
        break;

      default:
        break;
    }
  }
 private void updateViews() {
   et_user.setText(shopOperatorBean.getUsername());
   et_name.setText(shopOperatorBean.getName());
   et_id.setText(shopOperatorBean.getCardNumber());
   et_num.setText(shopOperatorBean.getMobile());
   et_pwd.setText(shopOperatorBean.getPassword());
   ismessage = shopOperatorBean.getReceiveSms();
   System.out.println(">>>>>>>>>>>>>>是否接收短信<<<<<<<<<<<<" + ismessage);
   if ("true".equals(ismessage)) {
     tv_false.setBackgroundResource(R.drawable.leftcorner);
     tv_false.setTextColor(getResources().getColor(R.color.txt_green));
     tv_true.setBackgroundResource(R.drawable.rightcorner_green);
     tv_true.setTextColor(getResources().getColor(R.color.txt_white));
   } else {
     tv_false.setBackgroundResource(R.drawable.leftcorner_green);
     tv_false.setTextColor(getResources().getColor(R.color.txt_white));
     tv_true.setBackgroundResource(R.drawable.rightcorner);
     tv_true.setTextColor(getResources().getColor(R.color.txt_green));
   }
 }