|
|
@@ -285,6 +285,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
} 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")) {
|
|
|
@@ -311,7 +312,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
|
|
|
mCollectResultTextView.setText(barcodeResult);
|
|
|
-
|
|
|
+ mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
|
|
|
mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
mBoxTableLayout.setVisibility(View.GONE);
|
|
|
@@ -353,7 +354,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
|
|
|
mCollectResultTextView.setText(boxResult);
|
|
|
-
|
|
|
+ mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
|
|
|
mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
mBoxTableLayout.setVisibility(View.GONE);
|
|
|
@@ -386,7 +387,8 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
MaterialInformationBean.DataBean materialInformationBean = JsonTools.parseJsonToBean(nextObject.toString(), MaterialInformationBean.DataBean.class);
|
|
|
if (materialInformationBean != null) {
|
|
|
String materialInfo =
|
|
|
- "物料:" + (materialInformationBean.getPD_PRODCODE() == null ? "" : materialInformationBean.getPD_PRODCODE())
|
|
|
+ "型号:" + (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())
|
|
|
@@ -681,7 +683,8 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
MaterialInformationBean materialInformationBean = JsonTools.parseJsonToBean(s, MaterialInformationBean.class);
|
|
|
if (materialInformationBean != null && materialInformationBean.getData() != null) {
|
|
|
String materialInfo =
|
|
|
- "物料:" + (materialInformationBean.getData().getPD_PRODCODE() == null ? "" : materialInformationBean.getData().getPD_PRODCODE())
|
|
|
+ "型号:" + (materialInformationBean.getData().getPR_ORISPECCODE() == null ? "" : materialInformationBean.getData().getPR_ORISPECCODE())
|
|
|
+ + "物料:" + (materialInformationBean.getData().getPD_PRODCODE() == null ? "" : materialInformationBean.getData().getPD_PRODCODE())
|
|
|
+ "; 名称规格:" + (materialInformationBean.getData().getPR_DETAIL() == null ? "" : materialInformationBean.getData().getPR_DETAIL())
|
|
|
+ " " + (materialInformationBean.getData().getPR_SPEC() == null ? "" : materialInformationBean.getData().getPR_SPEC())
|
|
|
+ "; 未备料数:" + (materialInformationBean.getData().getPD_RESTQTY() == null ? "" : materialInformationBean.getData().getPD_RESTQTY())
|
|
|
@@ -830,6 +833,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
} 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")) {
|
|
|
@@ -853,6 +857,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
|
|
|
mCollectResultTextView.setText(barcodeResult);
|
|
|
+ mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
|
|
|
|
|
|
mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
@@ -895,6 +900,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
|
|
|
mCollectResultTextView.setText(boxResult);
|
|
|
+ mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
|
|
|
|
|
|
mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
@@ -928,7 +934,8 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
MaterialInformationBean.DataBean materialInformationBean = JsonTools.parseJsonToBean(nextObject.toString(), MaterialInformationBean.DataBean.class);
|
|
|
if (materialInformationBean != null) {
|
|
|
String materialInfo =
|
|
|
- "物料:" + (materialInformationBean.getPD_PRODCODE() == null ? "" : materialInformationBean.getPD_PRODCODE())
|
|
|
+ "型号:" + (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())
|
|
|
@@ -957,6 +964,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
CommonUtil.editTextGetFocus(etBarCode);
|
|
|
String errorToast = CommonUtil.showErrorToast(volleyError, true);
|
|
|
mCollectResultTextView.setVisibility(View.VISIBLE);
|
|
|
+ mCollectResultTextView.setTextColor(getResources().getColor(R.color.red));
|
|
|
mCollectResultTextView.setText(errorToast);
|
|
|
}
|
|
|
|
|
|
@@ -1578,6 +1586,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
} 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")) {
|
|
|
@@ -1604,6 +1613,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
|
|
|
mCollectResultTextView.setText(barcodeResult);
|
|
|
+ mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
|
|
|
|
|
|
mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
@@ -1646,6 +1656,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
}
|
|
|
|
|
|
mCollectResultTextView.setText(boxResult);
|
|
|
+ mCollectResultTextView.setTextColor(getResources().getColor(R.color.green));
|
|
|
|
|
|
|
|
|
mBarcodeTableLayout.setVisibility(View.GONE);
|
|
|
@@ -1679,7 +1690,8 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
MaterialInformationBean.DataBean materialInformationBean = JsonTools.parseJsonToBean(nextObject.toString(), MaterialInformationBean.DataBean.class);
|
|
|
if (materialInformationBean != null) {
|
|
|
String materialInfo =
|
|
|
- "物料:" + (materialInformationBean.getPD_PRODCODE() == null ? "" : materialInformationBean.getPD_PRODCODE())
|
|
|
+ "型号:" + (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())
|