|
@@ -57,6 +57,7 @@ public class NewBePutInStorageOrderDetailFragment extends BaseFragment{
|
|
|
private TextView tv_generate_document_details;
|
|
|
private TextView tv_hint;
|
|
|
private TextView tv_qty;
|
|
|
+ private TextView tv_submint;
|
|
|
private RadioGroup radiogroup1;
|
|
|
private RadioButton radiobutton0;
|
|
|
private RadioButton radiobutton1;
|
|
@@ -79,6 +80,7 @@ public class NewBePutInStorageOrderDetailFragment extends BaseFragment{
|
|
|
tv_generate_document_details = root.findViewById(R.id.tv_generate_document_details);
|
|
|
tv_hint = root.findViewById(R.id.tv_hint);
|
|
|
tv_qty = root.findViewById(R.id.tv_qty);
|
|
|
+ tv_submint = root.findViewById(R.id.tv_submint);
|
|
|
|
|
|
radiogroup1 = root.findViewById(R.id.radiogroup1);
|
|
|
radiobutton1 = root.findViewById(R.id.radiobutton1);
|
|
@@ -147,7 +149,7 @@ public class NewBePutInStorageOrderDetailFragment extends BaseFragment{
|
|
|
tv_productdetails.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
- ProductDetailsFragment productDetailsFragment=new ProductDetailsFragment();
|
|
|
+ ProductDetailsFragment productDetailsFragment = new ProductDetailsFragment();
|
|
|
Bundle bundle = new Bundle();
|
|
|
bundle.putString("pi_inoutno", mPiInoutno);
|
|
|
productDetailsFragment.setArguments(bundle);
|
|
@@ -162,6 +164,45 @@ public class NewBePutInStorageOrderDetailFragment extends BaseFragment{
|
|
|
getDocumentDetails();
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ tv_submint.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ getSubmint();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ private void getSubmint() {
|
|
|
+ VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
+ .url(GloableParams.ADDRESS_INVENTORY_SUBMIT)
|
|
|
+ .method(Request.Method.POST)
|
|
|
+ .tag(TAG + "getindatalist")
|
|
|
+ .flag(0)
|
|
|
+ //.addParamInt("id",0)
|
|
|
+ .addParam("inoutno",mPiInoutno)
|
|
|
+ .addParam("caller","ProdInOut!Make!In")
|
|
|
+ .build(), new HttpCallback() {
|
|
|
+ @Override
|
|
|
+ public void onSuccess(int flag, Object o) throws Exception {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ String result = o.toString();
|
|
|
+ Log.e("result",result);
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, "提交成功");
|
|
|
+// JSONObject resultObject = JSON.parseObject(result);
|
|
|
+// String data = FastjsonUtil.getText(resultObject, "data");
|
|
|
+// //{"success":true,"data":"生成明細成功"}
|
|
|
+// if (!TextUtils.isEmpty(data)) {
|
|
|
+// CommonUtil.toastNoRepeat(mActivity, data);
|
|
|
+// }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onFail(int flag, String failStr) throws Exception {
|
|
|
+ progressDialog.dismiss();
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
private void getDocumentDetails() {
|