|
|
@@ -962,53 +962,17 @@ public class JLTStorageInBarcodeFragment extends BaseFragment implements View.On
|
|
|
progressDialog.dismiss();
|
|
|
try {
|
|
|
String result = o.toString();
|
|
|
- Log.e("result",result);
|
|
|
JSONObject resultObject = JSON.parseObject(result);
|
|
|
JSONObject dataObject = resultObject.getJSONObject("data");
|
|
|
- boolean isCheck = FastjsonUtil.getBoolean(dataObject, "isCheck");
|
|
|
- if (!isCheck) {
|
|
|
- new AlertDialog.Builder(mActivity)
|
|
|
- .setTitle("提示")
|
|
|
- .setMessage("PO:" + mBarcodeParseBean.getORDERCODE() + "不在当前入库单据范围内,是否继续保存?")
|
|
|
- .setNegativeButton("取消", null)
|
|
|
- .setPositiveButton("确定", new DialogInterface.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(DialogInterface dialog, int which) {
|
|
|
- mPoCheckBox.setChecked(false);
|
|
|
- saveBarcode(true, false);
|
|
|
- }
|
|
|
- }).create().show();
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
CommonUtil.toastNoRepeat(mActivity, "归属入库单:"
|
|
|
+ FastjsonUtil.getText(dataObject, "INOUTNO")
|
|
|
+ "成功");
|
|
|
|
|
|
- boolean isFinish = FastjsonUtil.getBoolean(dataObject, "ISFINISH");
|
|
|
- if (isFinish) {
|
|
|
- CommonUtil.toastNoRepeat(mActivity, "该入库单最后一行已完成采集!");
|
|
|
- mBarcodeEditText.setText("");
|
|
|
- mBarcodeEditText.requestFocus();
|
|
|
-// resetState();
|
|
|
-// getActivity().getSupportFragmentManager().popBackStackImmediate();
|
|
|
-// if (mOnFinishListener != null) {
|
|
|
-// mOnFinishListener.onFinish();
|
|
|
-// }
|
|
|
- } else {
|
|
|
- if (true) {
|
|
|
- getActivity().getSupportFragmentManager().popBackStack();
|
|
|
- } else {
|
|
|
- mBarcodeEditText.setText("");
|
|
|
- mBarcodeEditText.requestFocus();
|
|
|
-// resetState();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
mBarcodeEditText.setText("");
|
|
|
+ mBarcodeEditText.requestFocus();
|
|
|
jlt_storage_in_barcode_et.setText("");
|
|
|
jlt_edit_lotno.setText("");
|
|
|
jlt_edit_dataecode.setText("");
|