|
@@ -87,6 +87,7 @@ import org.json.JSONException;
|
|
|
import org.json.JSONObject;
|
|
|
|
|
|
import java.io.File;
|
|
|
+import java.io.IOException;
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLEncoder;
|
|
|
import java.util.ArrayList;
|
|
@@ -94,9 +95,14 @@ import java.util.HashMap;
|
|
|
import java.util.Iterator;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+import java.util.Set;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
+import okhttp3.Call;
|
|
|
+import okhttp3.Callback;
|
|
|
+import okhttp3.FormBody;
|
|
|
import okhttp3.OkHttpClient;
|
|
|
+import okhttp3.RequestBody;
|
|
|
|
|
|
/**
|
|
|
* Created by RaoMeng on 2016/7/27.
|
|
@@ -107,6 +113,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
private static final int SPLIT_BARCODE_SUCCESS = 104;
|
|
|
private static final int SPLIT_BARCODE_FAIL = 105;
|
|
|
private static final int FLAG_CONFIRM_POST = 0x05;
|
|
|
+ private static final int BarcodeSplitting = 0x06; //按条码拆分
|
|
|
|
|
|
private TextView tvPiInoutno;
|
|
|
private TextView tvPdWhcode;
|
|
@@ -1117,6 +1124,19 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
if (flag == FLAG_CONFIRM_POST) {
|
|
|
progressDialog.dismiss();
|
|
|
CommonUtil.toastNoRepeat(mActivity, "过账成功");
|
|
|
+ }else if (flag == BarcodeSplitting) {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ try {
|
|
|
+ String result = o.toString();
|
|
|
+ if (FastjsonUtil.validate(result)) {
|
|
|
+ com.alibaba.fastjson.JSONObject resultObject = JSON.parseObject(result);
|
|
|
+ if (resultObject != null) {
|
|
|
+ CommonUtil.toastNoRepeat(mActivity,FastjsonUtil.getText(resultObject, "data"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1125,6 +1145,9 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
if (flag == FLAG_CONFIRM_POST) {
|
|
|
progressDialog.dismiss();
|
|
|
CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
+ }else if (flag == BarcodeSplitting) {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1201,6 +1224,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
Button stockSpecialBtn = (Button) materialOutMoreView.findViewById(R.id.pop_material_out_menu_5);
|
|
|
Button passBillBtn = (Button) materialOutMoreView.findViewById(R.id.pop_material_out_menu_6);
|
|
|
Button stockDataSummary = (Button) materialOutMoreView.findViewById(R.id.pop_material_out_menu_7);
|
|
|
+ Button barcodeSplitting = (Button) materialOutMoreView.findViewById(R.id.pop_material_out_menu_8);
|
|
|
|
|
|
stockTaskBtn.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@@ -1292,6 +1316,21 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ barcodeSplitting.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ progressDialog.show();
|
|
|
+ VolleyRequest.getInstance().stringRequest(mStringRequest,
|
|
|
+ new HttpParams.Builder()
|
|
|
+ .url(GloableParams.ADDRESS_BARCODE_SPLITTING)
|
|
|
+ .method(Request.Method.GET)
|
|
|
+ .addParam("id", pi_id)
|
|
|
+ .tag(TAG + "_barcodeSplitting")
|
|
|
+ .flag(BarcodeSplitting).build(),
|
|
|
+ 30 * 1000, IOCOutMakeMaterialOper.this);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
listPopupWindow = new PopupWindow(materialOutMoreView, LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT, true);
|
|
|
listPopupWindow.setBackgroundDrawable(new BitmapDrawable());
|
|
|
listPopupWindow.setOnDismissListener(new PopupWindow.OnDismissListener() {
|
|
@@ -1537,7 +1576,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
PdaApplication.mRequestQueue.add(stringRequest);
|
|
|
}
|
|
|
|
|
|
- private void spliteBarcode(final String currentBarcode, String barRemain, String restqty) {
|
|
|
+// private void spliteBarcode(final String currentBarcode, String barRemain, String restqty) {
|
|
|
// new AlertDialog.Builder(getActivity()).setTitle("提示")
|
|
|
// .setMessage("条码数量(" + barRemain + ")大于剩余需要采集数量(" + restqty + "),确认拆分?")
|
|
|
// .setPositiveButton("拆分", new DialogInterface.OnClickListener() {
|
|
@@ -1560,223 +1599,46 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
// }
|
|
|
// })
|
|
|
// .show();
|
|
|
- breakingBtnClickEvent(currentBarcode,"-1");
|
|
|
+//// breakingBtnClickEvent(currentBarcode,"-1");
|
|
|
+// }
|
|
|
+
|
|
|
+ private void spliteBarcode(final String bar_code, String bar_remain, String restqty) {
|
|
|
+ new AlertDialog.Builder(getActivity()).setTitle("提示")
|
|
|
+ .setMessage("条码数量大于剩余需要采集数量,确认拆分?")
|
|
|
+ .setPositiveButton("确认", new DialogInterface.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(DialogInterface dialog, int which) {
|
|
|
+ breakingBtnClickEvent(bar_code, bar_remain, restqty);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .setNegativeButton("取消", new DialogInterface.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(DialogInterface dialog, int which) {
|
|
|
+ dialog.dismiss();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .show();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 分拆批次
|
|
|
+ * 特殊出库条码数据获取
|
|
|
*
|
|
|
- * @param currentBarcode
|
|
|
+ * @param bar_code 条码号
|
|
|
+ * @param bar_remain 剩余条码
|
|
|
+ * @param restqty 所需条码
|
|
|
*/
|
|
|
- private void breakingBtnClickEvent(final String currentBarcode,String number) {
|
|
|
+ private void breakingBtnClickEvent(final String bar_code, String bar_remain, String restqty) {
|
|
|
progressDialog.show();
|
|
|
- String url = isMultiple ? GloableParams.ADDRESS_OUT_BYBATCH_BREAK_DEAL : GloableParams.ADDRESS_OUT_BYBATCH_BREAK_DEAL;
|
|
|
+// String url = GloableParams.ADDRESS_OUT_BYBATCH_BREAK_DEAL; //老接口
|
|
|
+ String url = GloableParams.ADDRESS_OUT_MATERIAL_SPECIAL_OUT_BREAK;
|
|
|
Log.d("breakDeal", url);
|
|
|
|
|
|
- VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
- .url(url)
|
|
|
- .method(Request.Method.POST)
|
|
|
- .addParam("ids", pi_id)
|
|
|
- .addParam("barcode", currentBarcode)
|
|
|
- .addParam("or_remain", mBarRemain)
|
|
|
- .addParam("bar_remain", mRestqty)
|
|
|
- .addParam("confirmout", number)
|
|
|
- .build(), new HttpCallback() {
|
|
|
- @Override
|
|
|
- public void onSuccess(int flag, Object o) throws Exception {
|
|
|
- progressDialog.dismiss();
|
|
|
-
|
|
|
- String s = o.toString();
|
|
|
- if (popupWindow != null && popupWindow.isShowing())
|
|
|
- closePopupWindow();
|
|
|
- mResults = new ArrayList<>();
|
|
|
- mCollectTypeRadioGroup.setEnabled(true);
|
|
|
- LogUtil.e("breaking", s);
|
|
|
- try {
|
|
|
- JSONObject jsonObject = new JSONObject(s);
|
|
|
- JSONObject dataObject = jsonObject.optJSONObject("data");
|
|
|
- if (dataObject == null) {
|
|
|
- return;
|
|
|
- }
|
|
|
- JSONObject messageObject = dataObject.optJSONObject("barcode");
|
|
|
-// JSONObject messagenextObject = dataObject.getJSONObject("next");
|
|
|
- com.alibaba.fastjson.JSONObject messagenextObject = FastjsonUtil.getJSONObject(dataObject.toString(), "next");
|
|
|
- if (messageObject == null) {
|
|
|
- return;
|
|
|
- }
|
|
|
- if (messageObject.has("ISMSD")) {
|
|
|
- if (messageObject.optBoolean("ISMSD")) {
|
|
|
- //成功,有返回值,判断返回值message中isMsd是否存在,存在判断if(isMsd)true,弹出显示框
|
|
|
- iocOutMakeMaterialOperMsd = JsonTools.parseJsonToBean(jsonObject.toString(), IOCOutMakeMaterialOperMsd.class);
|
|
|
-// Log.i("msdresult", iocOutMakeMaterialOperMsd.toString());
|
|
|
- mBarRemain = CommonUtil.doubleFormat(iocOutMakeMaterialOperMsd.getData().getBarcode().getBAR_REMAIN());
|
|
|
- mRestqty = CommonUtil.doubleFormat(iocOutMakeMaterialOperMsd.getData().getBarcode().getRESTQTY());
|
|
|
- showDewPopupWindow();
|
|
|
- } else {
|
|
|
- mIocoutMaterialSplitBean = JsonTools.parseJsonToBean(messageObject.toString(), IOCOutmakeMaterialSplitBean.class);
|
|
|
- mBarRemain = CommonUtil.doubleFormat(mIocoutMaterialSplitBean.getBAR_REMAIN());
|
|
|
- mRestqty = CommonUtil.doubleFormat(mIocoutMaterialSplitBean.getRESTQTY());
|
|
|
- if (CommonUtil.doubleCompare(mIocoutMaterialSplitBean.getBAR_REMAIN(), mIocoutMaterialSplitBean.getRESTQTY()) == 1) {
|
|
|
- spliteBarcode(currentBarcode, mBarRemain, mRestqty);
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- mCollectResultTextView.setVisibility(View.VISIBLE);
|
|
|
- mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
- mCollectResultTextView.setText(null);
|
|
|
- JSONArray listArray = dataObject.optJSONArray("nolist");
|
|
|
- if (mCollectType.equals("byBarcode") || mCollectType.equals("byBatchcode")) {
|
|
|
- String barcodeResult = "采集成功;" + JsonUtils.optStringNotNull(dataObject, "finishno")
|
|
|
- + "\n条码:" + JsonUtils.optStringNotNull(messageObject, "BAR_CODE")
|
|
|
- + ";数量:" + CommonUtil.doubleFormat(messageObject.optDouble("BAR_REMAIN"))
|
|
|
- + ";批号:" + JsonUtils.optStringNotNull(messageObject, "BAR_BATCHCODE")
|
|
|
- + ";料号:" + JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE")
|
|
|
- + ";名称规格:" + messageObject.optString("PR_DETAIL")
|
|
|
- + " " + JsonUtils.optStringNotNull(messageObject, "PR_SPEC")
|
|
|
- + ";仓位:" + JsonUtils.optStringNotNull(messageObject, "BAR_LOCATION")
|
|
|
- + ";\n出货数量:" + messagenextObject.getString("PD_OUTQTY")
|
|
|
- + ";待采集数:" + messagenextObject.getString("PD_RESTQTY");
|
|
|
-
|
|
|
- if (listArray != null && listArray.length() > 0) {
|
|
|
- for (int i = 0; i < listArray.length(); i++) {
|
|
|
- JSONObject listObject = listArray.optJSONObject(i);
|
|
|
- barcodeResult = barcodeResult
|
|
|
- + "\n单号:" + JsonUtils.optStringNotNull(listObject, "PI_INOUTNO")
|
|
|
- + ";条码号:" + JsonUtils.optStringNotNull(listObject, "BAR_CODE")
|
|
|
- + ";数量:" + CommonUtil.doubleFormat(JsonUtils.optDoubleNotNull(listObject, "BAR_REMAIN"));
|
|
|
- }
|
|
|
- if (number.equals("0")){
|
|
|
- //弹出拆分结果弹框
|
|
|
- initBreakPopupWindow(listArray);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- mCollectResultTextView.setText(barcodeResult);
|
|
|
- mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
-
|
|
|
-
|
|
|
- mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
- mBoxTableLayout.setVisibility(View.GONE);
|
|
|
-
|
|
|
- tvBarcodeCollectionSuccess.setVisibility(View.VISIBLE);
|
|
|
- tvBarcodeCollectionSuccess.setText("采集成功");
|
|
|
-
|
|
|
- mResult1 = messageObject.optString("BAR_CODE");
|
|
|
- mResult2 = messageObject.optDouble("BAR_REMAIN") + "";
|
|
|
- mResult3 = messageObject.optString("BAR_PRODCODE");
|
|
|
-
|
|
|
- mResults.add(mResult1);
|
|
|
- mResults.add(mResult2);
|
|
|
- mResults.add(mResult3);
|
|
|
-
|
|
|
- mCollectBarcodeTv.setText(mResult1);
|
|
|
- mCollectBarRemainTv.setText(mResult2);
|
|
|
- mCollectBarProdcodeTv.setText(mResult3);
|
|
|
-
|
|
|
- PdaApplication.putDataCache2Map(Constants.FLAG.MATERIAL_COLLECT_BARCODE_RESULT + pi_inoutno, mResults);
|
|
|
- } else if (false) {
|
|
|
- String boxResult = "采集成功;" + JsonUtils.optStringNotNull(dataObject, "finishno")
|
|
|
- + "\n箱号:" + JsonUtils.optStringNotNull(messageObject, "BAR_OUTBOXCODE1")
|
|
|
- + ";数量:" + CommonUtil.doubleFormat(messageObject.optDouble("BAR_REMAIN"))
|
|
|
- + ";批号:" + JsonUtils.optStringNotNull(messageObject, "BAR_BATCHCODE")
|
|
|
- + ";料号:" + JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE")
|
|
|
- + ";名称规格:" + JsonUtils.optStringNotNull(messageObject, "PR_DETAIL")
|
|
|
- + " " + JsonUtils.optStringNotNull(messageObject, "PR_SPEC")
|
|
|
- + ";\n出货数量:" + JsonUtils.optStringNotNull(messageObject, "PD_OUTQTY")
|
|
|
- + ";待采集数:" + JsonUtils.optStringNotNull(messageObject, "PD_RESTQTY");
|
|
|
-
|
|
|
-
|
|
|
- if (listArray != null && listArray.length() > 0) {
|
|
|
- for (int i = 0; i < listArray.length(); i++) {
|
|
|
- JSONObject listObject = listArray.optJSONObject(i);
|
|
|
- boxResult = boxResult
|
|
|
- + "\n单号:" + JsonUtils.optStringNotNull(listObject, "PI_INOUTNO")
|
|
|
- + ";条码号:" + JsonUtils.optStringNotNull(listObject, "BAR_CODE")
|
|
|
- + ";数量:" + CommonUtil.doubleFormat(JsonUtils.optDoubleNotNull(listObject, "BAR_REMAIN"));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- mCollectResultTextView.setText(boxResult);
|
|
|
- mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
-
|
|
|
-
|
|
|
- mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
- mBoxTableLayout.setVisibility(View.GONE);
|
|
|
-
|
|
|
- tvBoxCollectionSuccess.setVisibility(View.VISIBLE);
|
|
|
- tvBoxCollectionSuccess.setText("采集成功");
|
|
|
-
|
|
|
- mResult1 = messageObject.optString("PA_OUTBOXCODE");
|
|
|
- mResult2 = messageObject.optInt("PA_TOTALQTY") + "";
|
|
|
- mResult3 = messageObject.optString("PA_PRODCODE");
|
|
|
- mResult4 = messageObject.optString("PA_WHCODE");
|
|
|
-
|
|
|
- mResults.add(mResult1);
|
|
|
- mResults.add(mResult2);
|
|
|
- mResults.add(mResult3);
|
|
|
- mResults.add(mResult4);
|
|
|
-
|
|
|
- mCollectBoxTv.setText(mResult1);
|
|
|
- mCollectBoxNumTv.setText(mResult2);
|
|
|
- mCollectBoxrProdcodeTv.setText(mResult3);
|
|
|
- mCollectBoxWhcodeTv.setText(mResult4);
|
|
|
-
|
|
|
- PdaApplication.putDataCache2Map(Constants.FLAG.MATERIAL_COLLECT_BOX_RESULT + pi_inoutno, mResults);
|
|
|
- }
|
|
|
- CommonUtil.toastNoRepeat(getActivity(), "采集成功");
|
|
|
-
|
|
|
- Object next = jsonObject.getJSONObject("data").get("next");
|
|
|
- if (next != null && !"null".equals(next.toString())) {
|
|
|
- JSONObject nextObject = jsonObject.getJSONObject("data").getJSONObject("next");
|
|
|
- MaterialInformationBean.DataBean materialInformationBean = JsonTools.parseJsonToBean(nextObject.toString(), MaterialInformationBean.DataBean.class);
|
|
|
- if (materialInformationBean != null) {
|
|
|
- String materialInfo =
|
|
|
- "型号:" + (materialInformationBean.getPR_ORISPECCODE() == null ? "" : materialInformationBean.getPR_ORISPECCODE())
|
|
|
- + "物料:" + (materialInformationBean.getPD_PRODCODE() == null ? "" : materialInformationBean.getPD_PRODCODE())
|
|
|
- + "; 名称规格:" + (materialInformationBean.getPR_DETAIL() == null ? "" : materialInformationBean.getPR_DETAIL())
|
|
|
- + " " + (materialInformationBean.getPR_SPEC() == null ? "" : materialInformationBean.getPR_SPEC())
|
|
|
- + "; 未备料数:" + (materialInformationBean.getPD_RESTQTY() == null ? "" : materialInformationBean.getPD_RESTQTY())
|
|
|
- + "; 批数量:" + (CommonUtil.doubleFormat(materialInformationBean.getBAR_REMAIN()))
|
|
|
- + "; 仓位:" + (materialInformationBean.getBAR_LOCATION() == null ? "" : materialInformationBean.getBAR_LOCATION());
|
|
|
- if (materialInformationBean.getPD_BATCHCODE() != null) {
|
|
|
- materialInfo = materialInfo + "; 批号:" + materialInformationBean.getPD_BATCHCODE();
|
|
|
- }
|
|
|
- mMaterialInforTextView.setText(materialInfo);
|
|
|
- }
|
|
|
- } else {
|
|
|
- mMaterialInforTextView.setText("该出库单已经完成备料");
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- } catch (JSONException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void onFail(int flag, String failStr) throws Exception {
|
|
|
- progressDialog.dismiss();
|
|
|
- if (getActivity() != null) {
|
|
|
- try {
|
|
|
- etBarCode.setText(null);
|
|
|
- CommonUtil.editTextGetFocus(etBarCode);
|
|
|
- CommonUtil.makeNotice();
|
|
|
- CommonUtil.toastNoRepeat(getActivity(), failStr);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- /*RequestBody requestBody = new FormBody.Builder()
|
|
|
+ RequestBody requestBody = new FormBody.Builder()
|
|
|
.add("ids", pi_id)
|
|
|
- .add("barcode", currentBarcode)
|
|
|
- .add("or_remain", mBarRemain)
|
|
|
- .add("bar_remain", mRestqty)
|
|
|
+ .add("barcode", bar_code)
|
|
|
+ .add("or_remain", bar_remain)
|
|
|
+ .add("bar_remain", restqty)
|
|
|
+ .add("reason", "")
|
|
|
.build();
|
|
|
|
|
|
okhttp3.Request.Builder builder = new okhttp3.Request.Builder().url(url).post(requestBody);
|
|
@@ -1820,205 +1682,215 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
-*/
|
|
|
- /*stringRequest = new StringRequest(Request.Method.POST, url,
|
|
|
- new Response.Listener<String>() {
|
|
|
- @Override
|
|
|
- public void onResponse(String s) {
|
|
|
- progressDialog.dismiss();
|
|
|
-
|
|
|
- if (popupWindow != null && popupWindow.isShowing())
|
|
|
- closePopupWindow();
|
|
|
- mResults = new ArrayList<>();
|
|
|
- mCollectTypeRadioGroup.setEnabled(true);
|
|
|
- LogUtil.e("breaking", s);
|
|
|
- try {
|
|
|
- JSONObject jsonObject = new JSONObject(s);
|
|
|
- JSONObject dataObject = jsonObject.optJSONObject("data");
|
|
|
- if (dataObject == null) {
|
|
|
- return;
|
|
|
- }
|
|
|
- JSONObject messageObject = dataObject.optJSONObject("barcode");
|
|
|
- if (messageObject == null) {
|
|
|
- return;
|
|
|
- }
|
|
|
- if (messageObject.has("ISMSD")) {
|
|
|
- if (messageObject.optBoolean("ISMSD")) {
|
|
|
- //成功,有返回值,判断返回值message中isMsd是否存在,存在判断if(isMsd)true,弹出显示框
|
|
|
- iocOutMakeMaterialOperMsd = JsonTools.parseJsonToBean(jsonObject.toString(), IOCOutMakeMaterialOperMsd.class);
|
|
|
-// Log.i("msdresult", iocOutMakeMaterialOperMsd.toString());
|
|
|
- mBarRemain = CommonUtil.doubleFormat(iocOutMakeMaterialOperMsd.getData().getBarcode().getBAR_REMAIN());
|
|
|
- mRestqty = CommonUtil.doubleFormat(iocOutMakeMaterialOperMsd.getData().getBarcode().getRESTQTY());
|
|
|
- showDewPopupWindow();
|
|
|
- } else {
|
|
|
- mIocoutMaterialSplitBean = JsonTools.parseJsonToBean(messageObject.toString(), IOCOutmakeMaterialSplitBean.class);
|
|
|
- mBarRemain = CommonUtil.doubleFormat(mIocoutMaterialSplitBean.getBAR_REMAIN());
|
|
|
- mRestqty = CommonUtil.doubleFormat(mIocoutMaterialSplitBean.getRESTQTY());
|
|
|
- if (CommonUtil.doubleCompare(mIocoutMaterialSplitBean.getBAR_REMAIN(), mIocoutMaterialSplitBean.getRESTQTY()) == 1) {
|
|
|
- spliteBarcode(currentBarcode);
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- mCollectResultTextView.setVisibility(View.VISIBLE);
|
|
|
- mCollectResultTextView.setText(null);
|
|
|
- JSONArray listArray = dataObject.optJSONArray("nolist");
|
|
|
- if (mCollectType.equals("byBarcode")) {
|
|
|
- String barcodeResult = "采集成功;" + JsonUtils.optStringNotNull(dataObject, "finishno")
|
|
|
- + "\n条码:" + JsonUtils.optStringNotNull(messageObject, "BAR_CODE")
|
|
|
- + ";数量:" + CommonUtil.doubleFormat(messageObject.optDouble("BAR_REMAIN"))
|
|
|
- + ";批号:" + JsonUtils.optStringNotNull(messageObject, "BAR_BATCHCODE")
|
|
|
- + ";料号:" + JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE")
|
|
|
- + ";名称规格:" + messageObject.optString("PR_DETAIL")
|
|
|
- + " " + JsonUtils.optStringNotNull(messageObject, "PR_SPEC")
|
|
|
- + ";仓位:" + JsonUtils.optStringNotNull(messageObject, "BAR_LOCATION");
|
|
|
-
|
|
|
- if (listArray != null && listArray.length() > 0) {
|
|
|
- for (int i = 0; i < listArray.length(); i++) {
|
|
|
- JSONObject listObject = listArray.optJSONObject(i);
|
|
|
- barcodeResult = barcodeResult
|
|
|
- + "\n单号:" + JsonUtils.optStringNotNull(listObject, "PI_INOUTNO")
|
|
|
- + ";条码号:" + JsonUtils.optStringNotNull(listObject, "BAR_CODE")
|
|
|
- + ";数量:" + CommonUtil.doubleFormat(JsonUtils.optDoubleNotNull(listObject, "BAR_REMAIN"));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- mCollectResultTextView.setText(barcodeResult);
|
|
|
-
|
|
|
-
|
|
|
- mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
- mBoxTableLayout.setVisibility(View.GONE);
|
|
|
-
|
|
|
- tvBarcodeCollectionSuccess.setVisibility(View.VISIBLE);
|
|
|
- tvBarcodeCollectionSuccess.setText("采集成功");
|
|
|
-
|
|
|
- mResult1 = messageObject.optString("BAR_CODE");
|
|
|
- mResult2 = messageObject.optDouble("BAR_REMAIN") + "";
|
|
|
- mResult3 = messageObject.optString("BAR_PRODCODE");
|
|
|
-
|
|
|
- mResults.add(mResult1);
|
|
|
- mResults.add(mResult2);
|
|
|
- mResults.add(mResult3);
|
|
|
-
|
|
|
- mCollectBarcodeTv.setText(mResult1);
|
|
|
- mCollectBarRemainTv.setText(mResult2);
|
|
|
- mCollectBarProdcodeTv.setText(mResult3);
|
|
|
-
|
|
|
- PdaApplication.putDataCache2Map(Constants.FLAG.MATERIAL_COLLECT_BARCODE_RESULT + pi_inoutno, mResults);
|
|
|
- } else if (mCollectType.equals("byBatchcode")) {
|
|
|
- String boxResult = "采集成功;" + JsonUtils.optStringNotNull(dataObject, "finishno")
|
|
|
- + "\n箱号:" + JsonUtils.optStringNotNull(messageObject, "BAR_OUTBOXCODE1")
|
|
|
- + ";数量:" + CommonUtil.doubleFormat(messageObject.optDouble("BAR_REMAIN"))
|
|
|
- + ";批号:" + JsonUtils.optStringNotNull(messageObject, "BAR_BATCHCODE")
|
|
|
- + ";料号:" + JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE")
|
|
|
- + ";名称规格:" + JsonUtils.optStringNotNull(messageObject, "PR_DETAIL")
|
|
|
- + " " + JsonUtils.optStringNotNull(messageObject, "PR_SPEC");
|
|
|
-
|
|
|
-
|
|
|
- if (listArray != null && listArray.length() > 0) {
|
|
|
- for (int i = 0; i < listArray.length(); i++) {
|
|
|
- JSONObject listObject = listArray.optJSONObject(i);
|
|
|
- boxResult = boxResult
|
|
|
- + "\n单号:" + JsonUtils.optStringNotNull(listObject, "PI_INOUTNO")
|
|
|
- + ";条码号:" + JsonUtils.optStringNotNull(listObject, "BAR_CODE")
|
|
|
- + ";数量:" + CommonUtil.doubleFormat(JsonUtils.optDoubleNotNull(listObject, "BAR_REMAIN"));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- mCollectResultTextView.setText(boxResult);
|
|
|
-
|
|
|
-
|
|
|
- mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
- mBoxTableLayout.setVisibility(View.GONE);
|
|
|
-
|
|
|
- tvBoxCollectionSuccess.setVisibility(View.VISIBLE);
|
|
|
- tvBoxCollectionSuccess.setText("采集成功");
|
|
|
-
|
|
|
- mResult1 = messageObject.optString("PA_OUTBOXCODE");
|
|
|
- mResult2 = messageObject.optInt("PA_TOTALQTY") + "";
|
|
|
- mResult3 = messageObject.optString("PA_PRODCODE");
|
|
|
- mResult4 = messageObject.optString("PA_WHCODE");
|
|
|
-
|
|
|
- mResults.add(mResult1);
|
|
|
- mResults.add(mResult2);
|
|
|
- mResults.add(mResult3);
|
|
|
- mResults.add(mResult4);
|
|
|
-
|
|
|
- mCollectBoxTv.setText(mResult1);
|
|
|
- mCollectBoxNumTv.setText(mResult2);
|
|
|
- mCollectBoxrProdcodeTv.setText(mResult3);
|
|
|
- mCollectBoxWhcodeTv.setText(mResult4);
|
|
|
-
|
|
|
- PdaApplication.putDataCache2Map(Constants.FLAG.MATERIAL_COLLECT_BOX_RESULT + pi_inoutno, mResults);
|
|
|
- }
|
|
|
- CommonUtil.toastNoRepeat(getActivity(), "采集成功");
|
|
|
-
|
|
|
- Object next = jsonObject.getJSONObject("data").get("next");
|
|
|
- if (next != null && !"null".equals(next.toString())) {
|
|
|
- JSONObject nextObject = jsonObject.getJSONObject("data").getJSONObject("next");
|
|
|
- MaterialInformationBean.DataBean materialInformationBean = JsonTools.parseJsonToBean(nextObject.toString(), MaterialInformationBean.DataBean.class);
|
|
|
- if (materialInformationBean != null) {
|
|
|
- String materialInfo =
|
|
|
- "物料:" + (materialInformationBean.getPD_PRODCODE() == null ? "" : materialInformationBean.getPD_PRODCODE())
|
|
|
- + "; 名称规格:" + (materialInformationBean.getPR_DETAIL() == null ? "" : materialInformationBean.getPR_DETAIL())
|
|
|
- + " " + (materialInformationBean.getPR_SPEC() == null ? "" : materialInformationBean.getPR_SPEC())
|
|
|
- + "; 未备料数:" + (materialInformationBean.getPD_RESTQTY() == null ? "" : materialInformationBean.getPD_RESTQTY())
|
|
|
- + "; 批数量:" + (CommonUtil.doubleFormat(materialInformationBean.getBAR_REMAIN()))
|
|
|
- + "; 仓位:" + (materialInformationBean.getBAR_LOCATION() == null ? "" : materialInformationBean.getBAR_LOCATION());
|
|
|
- if (materialInformationBean.getPD_BATCHCODE() != null) {
|
|
|
- materialInfo = materialInfo + "; 批号:" + materialInformationBean.getPD_BATCHCODE();
|
|
|
- }
|
|
|
- mMaterialInforTextView.setText(materialInfo);
|
|
|
- }
|
|
|
- } else {
|
|
|
- mMaterialInforTextView.setText("该出库单已经完成备料");
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- } catch (JSONException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- new Response.ErrorListener() {
|
|
|
-
|
|
|
- @Override
|
|
|
- public void onErrorResponse(VolleyError volleyError) {
|
|
|
- progressDialog.dismiss();
|
|
|
-// Toast.makeText(getActivity().getApplicationContext(), "拆分失败", Toast.LENGTH_LONG).show();
|
|
|
- if (getActivity() != null) {
|
|
|
- etBarCode.setText(null);
|
|
|
- CommonUtil.editTextGetFocus(etBarCode);
|
|
|
- CommonUtil.showErrorToast(volleyError);
|
|
|
- }
|
|
|
- }
|
|
|
- }) {
|
|
|
- @Override
|
|
|
- public Map<String, String> getHeaders() throws AuthFailureError {
|
|
|
- return VolleyUtil.getVolleyUtil().setCookies();
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
- @Override
|
|
|
- protected Map<String, String> getParams() throws AuthFailureError {
|
|
|
- Map<String, String> params = new HashMap<>();
|
|
|
-// if (isMultiple) {
|
|
|
- params.put("ids", pi_id);
|
|
|
-// } else {
|
|
|
-// params.put("id", pi_id);
|
|
|
-// params.put("whcode", pd_whcode);
|
|
|
+ /**
|
|
|
+ * 分拆批次
|
|
|
+ */
|
|
|
+// private void breakingBtnClickEvent(final String currentBarcode,String number) {
|
|
|
+// progressDialog.show();
|
|
|
+// String url = isMultiple ? GloableParams.ADDRESS_OUT_BYBATCH_BREAK_DEAL : GloableParams.ADDRESS_OUT_BYBATCH_BREAK_DEAL;
|
|
|
+// Log.d("breakDeal", url);
|
|
|
+//
|
|
|
+// VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
+// .url(url)
|
|
|
+// .method(Request.Method.POST)
|
|
|
+// .addParam("ids", pi_id)
|
|
|
+// .addParam("barcode", currentBarcode)
|
|
|
+// .addParam("or_remain", mBarRemain)
|
|
|
+// .addParam("bar_remain", mRestqty)
|
|
|
+// .addParam("confirmout", number)
|
|
|
+// .build(), new HttpCallback() {
|
|
|
+// @Override
|
|
|
+// public void onSuccess(int flag, Object o) throws Exception {
|
|
|
+// progressDialog.dismiss();
|
|
|
+//
|
|
|
+// String s = o.toString();
|
|
|
+// if (popupWindow != null && popupWindow.isShowing())
|
|
|
+// closePopupWindow();
|
|
|
+// mResults = new ArrayList<>();
|
|
|
+// mCollectTypeRadioGroup.setEnabled(true);
|
|
|
+// LogUtil.e("breaking", s);
|
|
|
+// try {
|
|
|
+// JSONObject jsonObject = new JSONObject(s);
|
|
|
+// JSONObject dataObject = jsonObject.optJSONObject("data");
|
|
|
+// if (dataObject == null) {
|
|
|
+// return;
|
|
|
+// }
|
|
|
+// JSONObject messageObject = dataObject.optJSONObject("barcode");
|
|
|
+//// JSONObject messagenextObject = dataObject.getJSONObject("next");
|
|
|
+// com.alibaba.fastjson.JSONObject messagenextObject = FastjsonUtil.getJSONObject(dataObject.toString(), "next");
|
|
|
+// if (messageObject == null) {
|
|
|
+// return;
|
|
|
+// }
|
|
|
+// if (messageObject.has("ISMSD")) {
|
|
|
+// if (messageObject.optBoolean("ISMSD")) {
|
|
|
+// //成功,有返回值,判断返回值message中isMsd是否存在,存在判断if(isMsd)true,弹出显示框
|
|
|
+// iocOutMakeMaterialOperMsd = JsonTools.parseJsonToBean(jsonObject.toString(), IOCOutMakeMaterialOperMsd.class);
|
|
|
+//// Log.i("msdresult", iocOutMakeMaterialOperMsd.toString());
|
|
|
+// mBarRemain = CommonUtil.doubleFormat(iocOutMakeMaterialOperMsd.getData().getBarcode().getBAR_REMAIN());
|
|
|
+// mRestqty = CommonUtil.doubleFormat(iocOutMakeMaterialOperMsd.getData().getBarcode().getRESTQTY());
|
|
|
+// showDewPopupWindow();
|
|
|
+// } else {
|
|
|
+// mIocoutMaterialSplitBean = JsonTools.parseJsonToBean(messageObject.toString(), IOCOutmakeMaterialSplitBean.class);
|
|
|
+// mBarRemain = CommonUtil.doubleFormat(mIocoutMaterialSplitBean.getBAR_REMAIN());
|
|
|
+// mRestqty = CommonUtil.doubleFormat(mIocoutMaterialSplitBean.getRESTQTY());
|
|
|
+// if (CommonUtil.doubleCompare(mIocoutMaterialSplitBean.getBAR_REMAIN(), mIocoutMaterialSplitBean.getRESTQTY()) == 1) {
|
|
|
+// spliteBarcode(currentBarcode, mBarRemain, mRestqty);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// mCollectResultTextView.setVisibility(View.VISIBLE);
|
|
|
+// mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
+// mCollectResultTextView.setText(null);
|
|
|
+// JSONArray listArray = dataObject.optJSONArray("nolist");
|
|
|
+// if (mCollectType.equals("byBarcode") || mCollectType.equals("byBatchcode")) {
|
|
|
+// String barcodeResult = "采集成功;" + JsonUtils.optStringNotNull(dataObject, "finishno")
|
|
|
+// + "\n条码:" + JsonUtils.optStringNotNull(messageObject, "BAR_CODE")
|
|
|
+// + ";数量:" + CommonUtil.doubleFormat(messageObject.optDouble("BAR_REMAIN"))
|
|
|
+// + ";批号:" + JsonUtils.optStringNotNull(messageObject, "BAR_BATCHCODE")
|
|
|
+// + ";料号:" + JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE")
|
|
|
+// + ";名称规格:" + messageObject.optString("PR_DETAIL")
|
|
|
+// + " " + JsonUtils.optStringNotNull(messageObject, "PR_SPEC")
|
|
|
+// + ";仓位:" + JsonUtils.optStringNotNull(messageObject, "BAR_LOCATION")
|
|
|
+// + ";\n出货数量:" + messagenextObject.getString("PD_OUTQTY")
|
|
|
+// + ";待采集数:" + messagenextObject.getString("PD_RESTQTY");
|
|
|
+//
|
|
|
+// if (listArray != null && listArray.length() > 0) {
|
|
|
+// for (int i = 0; i < listArray.length(); i++) {
|
|
|
+// JSONObject listObject = listArray.optJSONObject(i);
|
|
|
+// barcodeResult = barcodeResult
|
|
|
+// + "\n单号:" + JsonUtils.optStringNotNull(listObject, "PI_INOUTNO")
|
|
|
+// + ";条码号:" + JsonUtils.optStringNotNull(listObject, "BAR_CODE")
|
|
|
+// + ";数量:" + CommonUtil.doubleFormat(JsonUtils.optDoubleNotNull(listObject, "BAR_REMAIN"));
|
|
|
+// }
|
|
|
+// if (number.equals("0")){
|
|
|
+// //弹出拆分结果弹框
|
|
|
+// initBreakPopupWindow(listArray);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// }
|
|
|
+//
|
|
|
+// mCollectResultTextView.setText(barcodeResult);
|
|
|
+// mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
+//
|
|
|
+//
|
|
|
+// mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
+// mBoxTableLayout.setVisibility(View.GONE);
|
|
|
+//
|
|
|
+// tvBarcodeCollectionSuccess.setVisibility(View.VISIBLE);
|
|
|
+// tvBarcodeCollectionSuccess.setText("采集成功");
|
|
|
+//
|
|
|
+// mResult1 = messageObject.optString("BAR_CODE");
|
|
|
+// mResult2 = messageObject.optDouble("BAR_REMAIN") + "";
|
|
|
+// mResult3 = messageObject.optString("BAR_PRODCODE");
|
|
|
+//
|
|
|
+// mResults.add(mResult1);
|
|
|
+// mResults.add(mResult2);
|
|
|
+// mResults.add(mResult3);
|
|
|
+//
|
|
|
+// mCollectBarcodeTv.setText(mResult1);
|
|
|
+// mCollectBarRemainTv.setText(mResult2);
|
|
|
+// mCollectBarProdcodeTv.setText(mResult3);
|
|
|
+//
|
|
|
+// PdaApplication.putDataCache2Map(Constants.FLAG.MATERIAL_COLLECT_BARCODE_RESULT + pi_inoutno, mResults);
|
|
|
+// } else if (false) {
|
|
|
+// String boxResult = "采集成功;" + JsonUtils.optStringNotNull(dataObject, "finishno")
|
|
|
+// + "\n箱号:" + JsonUtils.optStringNotNull(messageObject, "BAR_OUTBOXCODE1")
|
|
|
+// + ";数量:" + CommonUtil.doubleFormat(messageObject.optDouble("BAR_REMAIN"))
|
|
|
+// + ";批号:" + JsonUtils.optStringNotNull(messageObject, "BAR_BATCHCODE")
|
|
|
+// + ";料号:" + JsonUtils.optStringNotNull(messageObject, "BAR_PRODCODE")
|
|
|
+// + ";名称规格:" + JsonUtils.optStringNotNull(messageObject, "PR_DETAIL")
|
|
|
+// + " " + JsonUtils.optStringNotNull(messageObject, "PR_SPEC")
|
|
|
+// + ";\n出货数量:" + JsonUtils.optStringNotNull(messageObject, "PD_OUTQTY")
|
|
|
+// + ";待采集数:" + JsonUtils.optStringNotNull(messageObject, "PD_RESTQTY");
|
|
|
+//
|
|
|
+//
|
|
|
+// if (listArray != null && listArray.length() > 0) {
|
|
|
+// for (int i = 0; i < listArray.length(); i++) {
|
|
|
+// JSONObject listObject = listArray.optJSONObject(i);
|
|
|
+// boxResult = boxResult
|
|
|
+// + "\n单号:" + JsonUtils.optStringNotNull(listObject, "PI_INOUTNO")
|
|
|
+// + ";条码号:" + JsonUtils.optStringNotNull(listObject, "BAR_CODE")
|
|
|
+// + ";数量:" + CommonUtil.doubleFormat(JsonUtils.optDoubleNotNull(listObject, "BAR_REMAIN"));
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// mCollectResultTextView.setText(boxResult);
|
|
|
+// mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
+//
|
|
|
+//
|
|
|
+// mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
+// mBoxTableLayout.setVisibility(View.GONE);
|
|
|
+//
|
|
|
+// tvBoxCollectionSuccess.setVisibility(View.VISIBLE);
|
|
|
+// tvBoxCollectionSuccess.setText("采集成功");
|
|
|
+//
|
|
|
+// mResult1 = messageObject.optString("PA_OUTBOXCODE");
|
|
|
+// mResult2 = messageObject.optInt("PA_TOTALQTY") + "";
|
|
|
+// mResult3 = messageObject.optString("PA_PRODCODE");
|
|
|
+// mResult4 = messageObject.optString("PA_WHCODE");
|
|
|
+//
|
|
|
+// mResults.add(mResult1);
|
|
|
+// mResults.add(mResult2);
|
|
|
+// mResults.add(mResult3);
|
|
|
+// mResults.add(mResult4);
|
|
|
+//
|
|
|
+// mCollectBoxTv.setText(mResult1);
|
|
|
+// mCollectBoxNumTv.setText(mResult2);
|
|
|
+// mCollectBoxrProdcodeTv.setText(mResult3);
|
|
|
+// mCollectBoxWhcodeTv.setText(mResult4);
|
|
|
+//
|
|
|
+// PdaApplication.putDataCache2Map(Constants.FLAG.MATERIAL_COLLECT_BOX_RESULT + pi_inoutno, mResults);
|
|
|
+// }
|
|
|
+// CommonUtil.toastNoRepeat(getActivity(), "采集成功");
|
|
|
+//
|
|
|
+// Object next = jsonObject.getJSONObject("data").get("next");
|
|
|
+// if (next != null && !"null".equals(next.toString())) {
|
|
|
+// JSONObject nextObject = jsonObject.getJSONObject("data").getJSONObject("next");
|
|
|
+// MaterialInformationBean.DataBean materialInformationBean = JsonTools.parseJsonToBean(nextObject.toString(), MaterialInformationBean.DataBean.class);
|
|
|
+// if (materialInformationBean != null) {
|
|
|
+// String materialInfo =
|
|
|
+// "型号:" + (materialInformationBean.getPR_ORISPECCODE() == null ? "" : materialInformationBean.getPR_ORISPECCODE())
|
|
|
+// + "物料:" + (materialInformationBean.getPD_PRODCODE() == null ? "" : materialInformationBean.getPD_PRODCODE())
|
|
|
+// + "; 名称规格:" + (materialInformationBean.getPR_DETAIL() == null ? "" : materialInformationBean.getPR_DETAIL())
|
|
|
+// + " " + (materialInformationBean.getPR_SPEC() == null ? "" : materialInformationBean.getPR_SPEC())
|
|
|
+// + "; 未备料数:" + (materialInformationBean.getPD_RESTQTY() == null ? "" : materialInformationBean.getPD_RESTQTY())
|
|
|
+// + "; 批数量:" + (CommonUtil.doubleFormat(materialInformationBean.getBAR_REMAIN()))
|
|
|
+// + "; 仓位:" + (materialInformationBean.getBAR_LOCATION() == null ? "" : materialInformationBean.getBAR_LOCATION());
|
|
|
+// if (materialInformationBean.getPD_BATCHCODE() != null) {
|
|
|
+// materialInfo = materialInfo + "; 批号:" + materialInformationBean.getPD_BATCHCODE();
|
|
|
+// }
|
|
|
+// mMaterialInforTextView.setText(materialInfo);
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// mMaterialInforTextView.setText("该出库单已经完成备料");
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// } catch (JSONException e) {
|
|
|
+// e.printStackTrace();
|
|
|
// }
|
|
|
- params.put("barcode", currentBarcode);
|
|
|
- params.put("or_remain", mBarRemain);
|
|
|
- params.put("bar_remain", mRestqty);
|
|
|
- Log.e(TAG, params.toString());
|
|
|
- return params;
|
|
|
- }
|
|
|
-
|
|
|
- };
|
|
|
- stringRequest.setRetryPolicy(new DefaultRetryPolicy(20 * 1000, 0, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
|
|
|
- int timeoutMs = stringRequest.getTimeoutMs();
|
|
|
- stringRequest.setTag(TAG);
|
|
|
- PdaApplication.mRequestQueue.add(stringRequest);*/
|
|
|
- }
|
|
|
+// }
|
|
|
+//
|
|
|
+// @Override
|
|
|
+// public void onFail(int flag, String failStr) throws Exception {
|
|
|
+// progressDialog.dismiss();
|
|
|
+// if (getActivity() != null) {
|
|
|
+// try {
|
|
|
+// etBarCode.setText(null);
|
|
|
+// CommonUtil.editTextGetFocus(etBarCode);
|
|
|
+// CommonUtil.makeNotice();
|
|
|
+// CommonUtil.toastNoRepeat(getActivity(), failStr);
|
|
|
+// } catch (Exception e) {
|
|
|
+// e.printStackTrace();
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+// }
|
|
|
+// });
|
|
|
+// }
|
|
|
|
|
|
protected void initBreakPopupWindow(JSONArray listArray) {
|
|
|
messages.clear();
|