Commit 9a0d5dbe by zxl

出厂确认添加刷新数据

parent 0fd89aac
...@@ -7,6 +7,7 @@ import android.text.TextWatcher; ...@@ -7,6 +7,7 @@ import android.text.TextWatcher;
import android.view.View; import android.view.View;
import android.widget.EditText; import android.widget.EditText;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
...@@ -126,9 +127,14 @@ public class TransportActivity extends BaseActivity { ...@@ -126,9 +127,14 @@ public class TransportActivity extends BaseActivity {
intent.putExtra("car",beans.get(position).getCar_no()); intent.putExtra("car",beans.get(position).getCar_no());
intent.putExtra("carid",beans.get(position).getCar_id()); intent.putExtra("carid",beans.get(position).getCar_id());
intent.putExtra("data",(Serializable) beans.get(position).getOrder_details()); intent.putExtra("data",(Serializable) beans.get(position).getOrder_details());
startActivity(intent); startActivityForResult(intent,0);
} }
}); });
} }
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
initData();
}
} }
...@@ -104,6 +104,7 @@ public class TransportDetailActivity extends BaseActivity { ...@@ -104,6 +104,7 @@ public class TransportDetailActivity extends BaseActivity {
ShowMsgUtils.ShowMessage(mContext,result, new DialogInterface.OnClickListener() { ShowMsgUtils.ShowMessage(mContext,result, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
setResult(0);
finish(); finish();
} }
}); });
......
...@@ -2,6 +2,7 @@ package com.roke.huayangproject.ui.unloading; ...@@ -2,6 +2,7 @@ package com.roke.huayangproject.ui.unloading;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.graphics.Color; import android.graphics.Color;
import android.util.Log;
import android.view.View; import android.view.View;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
...@@ -214,4 +215,6 @@ public class UnLoadingActivity extends BaseActivity { ...@@ -214,4 +215,6 @@ public class UnLoadingActivity extends BaseActivity {
tvXq.setBackgroundResource(position == 0 ? R.drawable.btn_left_background : R.drawable.btn_left_background_normal); tvXq.setBackgroundResource(position == 0 ? R.drawable.btn_left_background : R.drawable.btn_left_background_normal);
tvSs.setBackgroundResource(position == 1 ? R.drawable.btn_right_background : R.drawable.btn_right_background_normal); tvSs.setBackgroundResource(position == 1 ? R.drawable.btn_right_background : R.drawable.btn_right_background_normal);
} }
} }
...@@ -7,6 +7,7 @@ import android.text.TextWatcher; ...@@ -7,6 +7,7 @@ import android.text.TextWatcher;
import android.view.View; import android.view.View;
import android.widget.EditText; import android.widget.EditText;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
...@@ -124,7 +125,7 @@ public class UnLoadingListActivity extends BaseActivity { ...@@ -124,7 +125,7 @@ public class UnLoadingListActivity extends BaseActivity {
Intent intent = new Intent(mContext, UnLoadingActivity.class); Intent intent = new Intent(mContext, UnLoadingActivity.class);
intent.putExtra("code",beans.get(position).getOrder_code()); intent.putExtra("code",beans.get(position).getOrder_code());
intent.putExtra("codeid",beans.get(position).getOrder_id()); intent.putExtra("codeid",beans.get(position).getOrder_id());
startActivity(intent); startActivityForResult(intent,0);
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment