|
|
@ -93,9 +93,14 @@ public class LoadScanActivity extends BaseActivity implements CargoListAdapter.C
|
|
|
|
updateBeen.setUpdateCargoTag(1);
|
|
|
|
updateBeen.setUpdateCargoTag(1);
|
|
|
|
String formattedTime = LocalDateTime.now().format(formatter);
|
|
|
|
String formattedTime = LocalDateTime.now().format(formatter);
|
|
|
|
updateBeen.setLoadTime(formattedTime);
|
|
|
|
updateBeen.setLoadTime(formattedTime);
|
|
|
|
updateBeen.updateAll("cargoId =?", String.valueOf(id));
|
|
|
|
updateBeen.setCargoCode(code);
|
|
|
|
|
|
|
|
updateBeen.updateAll("cargoId =?", String.valueOf(id));//修改行李
|
|
|
|
cargoInfo.setCargoCode(code);
|
|
|
|
cargoInfo.setCargoCode(code);
|
|
|
|
cargoInfo.update(id);
|
|
|
|
cargoInfo.update(id);//修改货箱
|
|
|
|
|
|
|
|
if (cargoInfoTag!=null){
|
|
|
|
|
|
|
|
cargoInfoTag.setCargoCode(code);//修改点击
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
adapter.notifyDataSetChanged();
|
|
|
|
adapter.notifyDataSetChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
loadInfoAdapter.notifyDataSetChanged();
|
|
|
|
loadInfoAdapter.notifyDataSetChanged();
|
|
|
@ -178,7 +183,7 @@ public class LoadScanActivity extends BaseActivity implements CargoListAdapter.C
|
|
|
|
addInfo(code);
|
|
|
|
addInfo(code);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 添加
|
|
|
|
// 添加行李
|
|
|
|
private void addInfo(String code) {
|
|
|
|
private void addInfo(String code) {
|
|
|
|
if (cargoInfoTag == null) {
|
|
|
|
if (cargoInfoTag == null) {
|
|
|
|
Toast.makeText(this, "没有选择装载单元", Toast.LENGTH_SHORT).show();
|
|
|
|
Toast.makeText(this, "没有选择装载单元", Toast.LENGTH_SHORT).show();
|
|
|
|