diff --git a/app/src/main/java/com/example/as_trak/LoadScanActivity.java b/app/src/main/java/com/example/as_trak/LoadScanActivity.java index a84fc0b..80dfbf2 100644 --- a/app/src/main/java/com/example/as_trak/LoadScanActivity.java +++ b/app/src/main/java/com/example/as_trak/LoadScanActivity.java @@ -117,7 +117,7 @@ public class LoadScanActivity extends BaseActivity implements CargoListAdapter.C public void clickCargoInfo(int index) { cargoInfoTag = cargoInfoList.get(index); - Log.e("TAG", "clickCargoInfo:" + cargoInfoTag.toString()); + // Log.e("TAG", "clickCargoInfo:" + cargoInfoTag.toString()); loadOperations = LitePal.where("cargoId =? and type = ? and (state IS NULL or state = '修改') ", String.valueOf(cargoInfoTag.getId()), "正常") .find(LoadOperation.class); @@ -149,6 +149,13 @@ public class LoadScanActivity extends BaseActivity implements CargoListAdapter.C loadInfoAdapter.notifyDataSetChanged(); } + + public void loadOverupdate(View view) { + CargoInfo cargoInfo=new CargoInfo(); + cargoInfo.setState("装载中"); + cargoInfo.updateAll(); + } + // 装载完毕 @SuppressLint("NotifyDataSetChanged") public void loadOver(View view) { diff --git a/app/src/main/java/com/example/as_trak/adapter/CargoListAdapter.java b/app/src/main/java/com/example/as_trak/adapter/CargoListAdapter.java index a32b6b5..4d09f72 100644 --- a/app/src/main/java/com/example/as_trak/adapter/CargoListAdapter.java +++ b/app/src/main/java/com/example/as_trak/adapter/CargoListAdapter.java @@ -2,6 +2,7 @@ package com.example.as_trak.adapter; import android.annotation.SuppressLint; import android.content.Context; +import android.util.Log; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.TextView; @@ -74,11 +75,14 @@ public class CargoListAdapter extends RecyclerView.Adapter +