|
|
@@ -441,6 +441,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
private List<PrintListBean> mFilterStorageInBeans;
|
|
|
private Button btn_print,btn_clean;
|
|
|
private PrintListBean printListBean;
|
|
|
+ private TextView text_add;
|
|
|
|
|
|
@Override
|
|
|
protected int getLayout() {
|
|
|
@@ -478,6 +479,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
mSmartTable = mActivity.findViewById(R.id.jlt_storage_in_filter_list_st);
|
|
|
btn_print = mActivity.findViewById(R.id.btn_print);
|
|
|
btn_clean = mActivity.findViewById(R.id.btn_clean);
|
|
|
+ text_add = mActivity.findViewById(R.id.text_add);
|
|
|
|
|
|
((TextView) (getActivity().findViewById(R.id.tv_actionbar_withback))).setText(getString(R.string.out_material_collect));
|
|
|
// ((FunctionActivity) getActivity()).fragment = new IOCOutMakeMaterialOper();
|
|
|
@@ -578,6 +580,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
public void onClick(DialogInterface dialog, int which) {
|
|
|
mFilterStorageInBeans.clear();
|
|
|
setFilterTableData(mFilterStorageInBeans);
|
|
|
+ text_add.setText(mFilterStorageInBeans.size()+"");
|
|
|
}
|
|
|
}).show();
|
|
|
}
|
|
|
@@ -629,6 +632,12 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
|| actionId == EditorInfo.IME_ACTION_DONE
|
|
|
|| (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
|
|
|
confirmEvent();
|
|
|
+// PrintListBean printListBean=new PrintListBean();
|
|
|
+// printListBean.setBar_code(etBarCode.getText().toString().trim());
|
|
|
+// mFilterStorageInBeans.add(printListBean);
|
|
|
+// setFilterTableData(mFilterStorageInBeans);
|
|
|
+// text_add.setText(mFilterStorageInBeans.size()+"");
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
@@ -749,7 +758,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
progressDialog.dismiss();
|
|
|
VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
.url(GloableParams.ADDRESS_ADDRESSTAIL_PRINTSUMLABEL)
|
|
|
- .method(Request.Method.GET)
|
|
|
+ .method(Request.Method.POST)
|
|
|
.tag(TAG + "getindatalist")
|
|
|
.flag(0)
|
|
|
.addParam("pi_inoutno",tvPiInoutno.getText().toString().trim())
|
|
|
@@ -1029,6 +1038,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
printListBean.setBar_code(etBarCode.getText().toString().trim());
|
|
|
mFilterStorageInBeans.add(printListBean);
|
|
|
setFilterTableData(mFilterStorageInBeans);
|
|
|
+ text_add.setText(mFilterStorageInBeans.size()+"");
|
|
|
}
|
|
|
etBarCode.setText(null);
|
|
|
PdaApplication.putDataCache2Map(Constants.FLAG.MATERIAL_COLLECT_BARCODE_RESULT + pi_inoutno, mResults);
|
|
|
@@ -1081,6 +1091,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
printListBean.setBar_code(etBarCode.getText().toString().trim());
|
|
|
mFilterStorageInBeans.add(printListBean);
|
|
|
setFilterTableData(mFilterStorageInBeans);
|
|
|
+ text_add.setText(mFilterStorageInBeans.size()+"");
|
|
|
}
|
|
|
etBarCode.setText(null);
|
|
|
PdaApplication.putDataCache2Map(Constants.FLAG.MATERIAL_COLLECT_BOX_RESULT + pi_inoutno, mResults);
|
|
|
@@ -1120,11 +1131,22 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
progressDialog.dismiss();
|
|
|
if (getActivity() != null) {
|
|
|
mCollectTypeRadioGroup.setEnabled(true);
|
|
|
+ etBarCode.setText(null);
|
|
|
CommonUtil.editTextGetFocus(etBarCode);
|
|
|
String errorToast = CommonUtil.showErrorToast(volleyError, true);
|
|
|
mCollectResultTextView.setVisibility(View.VISIBLE);
|
|
|
mCollectResultTextView.setTextColor(getResources().getColor(R.color.red));
|
|
|
mCollectResultTextView.setText(errorToast);
|
|
|
+ new AlertDialog.Builder(mActivity).setTitle("提示").setMessage(errorToast)
|
|
|
+ .setPositiveButton(getString(R.string.confirm), new DialogInterface.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(DialogInterface dialog, int which) {
|
|
|
+ etBarCode.setText(null);
|
|
|
+ CommonUtil.editTextGetFocus(etBarCode);
|
|
|
+ }
|
|
|
+ }).create().show();
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -2250,6 +2272,7 @@ public class IOCOutMakeMaterialOper extends BaseFragment implements View.OnClick
|
|
|
printListBean.setBar_code(messages.get(i).getBAR_CODE());
|
|
|
mFilterStorageInBeans.add(printListBean);
|
|
|
setFilterTableData(mFilterStorageInBeans);
|
|
|
+ text_add.setText(mFilterStorageInBeans.size()+"");
|
|
|
}
|
|
|
|
|
|
|