@Override
 public void onClick(View v) {
   switch (v.getId()) {
     case R.id.search:
       currentPage = 1;
       findParameter = input.getText().toString();
       store_add_goods_lv.setMode(Mode.PULL_FROM_START);
       getResult();
       store_add_goods_lv.setRefreshing();
       break;
     case R.id.scan:
       startActivityForResult(new Intent(this, MipcaActivityCapture.class), Constants.FOR_GET);
       //			startActivityForResult(new Intent(this, CaptureActivity.class),10086);
       break;
     case R.id.ico_scan:
       startActivityForResult(new Intent(this, MipcaActivityCapture.class), Constants.FOR_GET);
       //			startActivityForResult(new Intent(this, CaptureActivity.class),10086);
       break;
     case R.id.clear_input:
       input.setText("");
       clear_input.setVisibility(View.GONE);
       break;
     default:
       break;
   }
 }
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_store_order_add_goods);
   setTitleText("选择商品");
   instance = this;
   showBackbtn();
   findView();
   store_add_goods_lv.setMode(Mode.PULL_FROM_START);
   getResult();
   store_add_goods_lv.setRefreshing();
 }
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   super.onActivityResult(requestCode, resultCode, data);
   if (resultCode == RESULT_OK) {
     findParameter = data.getStringExtra(Constants.DEVICE_CODE);
     input.setText(findParameter);
     currentPage = 1;
     store_add_goods_lv.setMode(Mode.PULL_FROM_START);
     getResult();
     store_add_goods_lv.setRefreshing();
   }
 }