|
|
@@ -135,9 +135,11 @@ public class ModifyBarcodeQuantityFragment extends BaseFragment {
|
|
|
CommonUtil.toastNoRepeat(mActivity, "请输入条码数量");
|
|
|
} else if (!quantity.matches(Constants.REGEX.IS_FLOAT)) {
|
|
|
CommonUtil.toastNoRepeat(mActivity, "请输入正确的条码数量");
|
|
|
- } else if (!barcode.matches(Constants.REGEX.NO_CN_SYMBOL)) {
|
|
|
- CommonUtil.toastNoRepeat(mActivity, getString(R.string.barcode_cannot_contain_special));
|
|
|
- } else {
|
|
|
+ }
|
|
|
+// else if (!barcode.matches(Constants.REGEX.NO_CN_SYMBOL)) {
|
|
|
+// CommonUtil.toastNoRepeat(mActivity, getString(R.string.barcode_cannot_contain_special));
|
|
|
+// }
|
|
|
+ else {
|
|
|
progressDialog.show();
|
|
|
PdaApplication.mRequestQueue.cancelAll(TAG + "update");
|
|
|
|
|
|
@@ -239,13 +241,13 @@ public class ModifyBarcodeQuantityFragment extends BaseFragment {
|
|
|
private void getBarcodeData() {
|
|
|
String barcode = mBarcodeEditText.getText().toString().trim();
|
|
|
if (!TextUtils.isEmpty(barcode)) {
|
|
|
- if (!barcode.matches(Constants.REGEX.NO_CN_SYMBOL)) {
|
|
|
- CommonUtil.toastNoRepeat(mActivity, getString(R.string.barcode_cannot_contain_special));
|
|
|
- mResultTextView.setVisibility(View.VISIBLE);
|
|
|
- mResultTextView.setText(getString(R.string.barcode_cannot_contain_special));
|
|
|
- mBarcodeEditText.setText(null);
|
|
|
- mBarcodeEditText.requestFocus();
|
|
|
- } else {
|
|
|
+// if (!barcode.matches(Constants.REGEX.NO_CN_SYMBOL)) {
|
|
|
+// CommonUtil.toastNoRepeat(mActivity, getString(R.string.barcode_cannot_contain_special));
|
|
|
+// mResultTextView.setVisibility(View.VISIBLE);
|
|
|
+// mResultTextView.setText(getString(R.string.barcode_cannot_contain_special));
|
|
|
+// mBarcodeEditText.setText(null);
|
|
|
+// mBarcodeEditText.requestFocus();
|
|
|
+// } else {
|
|
|
mIgnoreFocusChange = true;
|
|
|
progressDialog.show();
|
|
|
String url = null;
|
|
|
@@ -305,7 +307,7 @@ public class ModifyBarcodeQuantityFragment extends BaseFragment {
|
|
|
mStringRequest.setRetryPolicy(new DefaultRetryPolicy(10 * 1000, 0, 1f));
|
|
|
mStringRequest.setTag(TAG + "barcodedata");
|
|
|
PdaApplication.mRequestQueue.add(mStringRequest);
|
|
|
- }
|
|
|
+// }
|
|
|
}
|
|
|
}
|
|
|
|