private void goToList() {
    Globals.setWhichShop(mWhichShop);
    Globals.setShopName(mShops[mWhichShop].shopName);
    Globals.setWhichWarehouse(mWhichWarehouse);
    Globals.setModuleUseWarehouseId(mWarehouses[mWhichWarehouse].warehouseId);
    Globals.setCashSaleWarehouseNO(mWarehouses[mWhichWarehouse].warehouseNO);
    Intent intent = new Intent(getBaseContext(), CashSaleGoodsListActivity.class);

    if (!mNotRecordCustomerCheck.isChecked()) {
      String customerName = mCustomerNameEdit.getText().toString();
      String tel = mTelEdit.getText().toString();
      if (TextUtils.isEmpty(customerName) || TextUtils.isEmpty(tel)) {
        Util.toast(getApplicationContext(), "客户姓名和电话不能为空");
        return;
      }
      String zipCode = mZipCodeEdit.getText().toString();
      String streetAddress = mStreetAddressEdit.getText().toString();
      String email = mEmailEdit.getText().toString();
      Customer customer =
          new Customer(
              -1,
              null,
              customerName,
              tel,
              zipCode,
              mProvince,
              mCity,
              mDistrict,
              streetAddress,
              email);
      Globals.setCustomer(customer);
    }

    startActivity(intent);
  }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   Globals.setWhichShop(-1);
   Globals.setModuleUseWarehouseId(-1);
   Globals.setWhichPrice(-1);
   Globals.setCustomer(null);
 }