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 onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.fast_in_examine_goods_set_activity);

    final ActionBar actionBar = getActionBar();
    actionBar.setTitle(R.string.fast_in_examine_goods);
    actionBar.setDisplayHomeAsUpEnabled(true);

    mProgressLayout = (RelativeLayout) findViewById(R.id.progress_layout);
    mSupplierSp = (Spinner) findViewById(R.id.supplier_sp);
    mInWarehouseSp = (Spinner) findViewById(R.id.in_warehouse_sp);
    mDoPriceSp = (Spinner) findViewById(R.id.do_price_sp);
    mOkBtn = (Button) findViewById(R.id.ok_btn);

    Globals.setWhichSupplier(-1);
    Globals.setWhichWarehouse(-1);
    Globals.setWhichPrice(-1);

    mTempSuppliers = null;
    mWarehouses = null;

    mSupplierSp.setOnItemSelectedListener(
        new OnItemSelectedListener() {

          @Override
          public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
            mWhichSupplier = position;
          }

          @Override
          public void onNothingSelected(AdapterView<?> arg0) {}
        });
    mWhichSupplier = -1 != Globals.getWhichPrice() ? Globals.getWhichSupplier() : 0;

    mInWarehouseSp.setOnItemSelectedListener(
        new OnItemSelectedListener() {

          @Override
          public void onItemSelected(AdapterView<?> parent, View view, int positioin, long id) {
            mWhichWarehouse = positioin;
          }

          @Override
          public void onNothingSelected(AdapterView<?> arg0) {}
        });
    mWhichWarehouse = -1 != Globals.getWhichWarehouse() ? Globals.getWhichWarehouse() : 0;

    ArrayAdapter<String> adapter =
        new ArrayAdapter<String>(
            this,
            R.layout.simple_spinner_dropdown_item,
            getResources().getStringArray(R.array.prices));
    mDoPriceSp.setAdapter(adapter);
    mWhichPrice = -1 != Globals.getWhichPrice() ? Globals.getWhichPrice() : 0;
    mDoPriceSp.setSelection(mWhichPrice);

    mDoPriceSp.setOnItemSelectedListener(
        new OnItemSelectedListener() {

          @Override
          public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
            mWhichPrice = position;
          }

          @Override
          public void onNothingSelected(AdapterView<?> arg0) {}
        });

    mSupplierPos = 0;
    mSuppliers = null;
    WDTQuery.getinstance().querySupplierCount(this, this);

    mOkBtn.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View v) {
            Globals.setWhichSupplier(mWhichSupplier);
            Globals.setWhichWarehouse(mWhichWarehouse);
            Globals.setModuleUseWarehouseId(mWarehouses[mWhichWarehouse].warehouseId);
            Globals.setWhichPrice(mWhichPrice);
            Globals.setSupplierId(mTempSuppliers[mWhichSupplier].supplierId);
            Intent intent = new Intent(getBaseContext(), FastInExamineGoodsListActivity.class);
            intent.putExtra(Extras.SCAN_TYPE, ScanType.TYPE_FAST_IN_EXAMINE_GOODS);
            startActivity(intent);
          }
        });
  }