|
|
@@ -878,30 +878,7 @@ public class PieceActivity extends Activity {
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- if (collectType == 1 && nodeType == 3 &&proId==luociproId) {
|
|
|
- CarBrandModel carbrandModel = (CarBrandModel) trademarksource.getSelectedItem();
|
|
|
-
|
|
|
- String zhuangbanshuliang=carbrandModel.getCarBrandName();
|
|
|
-
|
|
|
- int num=Integer.parseInt(zhuangbanshuliang);
|
|
|
- if( piecelist.size()>num) {
|
|
|
- CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
|
|
|
- CommonUtil.showBarCodeAlertDialog(0, "超过装板数量【" + num + "】", PieceActivity.this,
|
|
|
- barcode, null, null);
|
|
|
- ProcessDialogUtils.closeProgressDilog();
|
|
|
- return;
|
|
|
- }
|
|
|
- else if( piecelist.size()<num){
|
|
|
- CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
|
|
|
- CommonUtil.showBarCodeAlertDialog(0, "未达到装板数量【" + num + "】", PieceActivity.this,
|
|
|
- barcode, null, null);
|
|
|
- ProcessDialogUtils.closeProgressDilog();
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
thread = null;
|
|
|
thread = new HandlerThread("BarCoderThread", 5);
|
|
|
@@ -1107,28 +1084,7 @@ public class PieceActivity extends Activity {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
- if (collectType == 1 && nodeType == 3 &&proId==luociproId) {
|
|
|
- CarBrandModel carbrandModel = (CarBrandModel) trademarksource.getSelectedItem();
|
|
|
-
|
|
|
- String zhuangbanshuliang=carbrandModel.getCarBrandName();
|
|
|
-
|
|
|
- int num=Integer.parseInt(zhuangbanshuliang);
|
|
|
- if( piecelist.size()>num) {
|
|
|
- CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
|
|
|
- CommonUtil.showBarCodeAlertDialog(0, "超过装板数量【" + num + "】", PieceActivity.this,
|
|
|
- barcode, null, null);
|
|
|
- ProcessDialogUtils.closeProgressDilog();
|
|
|
- return true;
|
|
|
- }
|
|
|
- else if( piecelist.size()<num){
|
|
|
- CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
|
|
|
- CommonUtil.showBarCodeAlertDialog(0, "未达到装板数量【" + num + "】", PieceActivity.this,
|
|
|
- barcode, null, null);
|
|
|
- ProcessDialogUtils.closeProgressDilog();
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
thread = null;
|
|
|
thread = new HandlerThread("BarCoderThread", 5);
|