Browse Source

一步入

${9999710+9999148}
mao 4 years ago
parent
commit
e153f97de4
  1. 19
      app/src/main/java/com/icssoft/icspda/activity/INVTransInActivity.java

19
app/src/main/java/com/icssoft/icspda/activity/INVTransInActivity.java

@ -112,8 +112,13 @@ public class INVTransInActivity extends AppCompatActivity {
HelpUtil.SetMsg(tvMsg, Color.BLUE, "调拨数量记录成功!");
break;
case 7:
barCode.requestFocus();
HelpUtil.SetMsg(tvMsg,Color.BLUE,"库位条码扫描成功!");
barCode.postDelayed(new Runnable() {
@Override
public void run() {
barCode.requestFocus();
}
},1000);
break;
case 6:
clear();
@ -411,11 +416,13 @@ public class INVTransInActivity extends AppCompatActivity {
if (result != null && result.length() != 0) {
applicationModel = new Gson().fromJson(result, ApplicationModel.class);
if (applicationModel.getCode().equals("0")) {
if (!applicationModel.getData().equals(ToWhCode)) {
ErrorMsg = "目标库位与源头单据不符,请确认后重新扫描!";
handler.sendEmptyMessage(2);
} else {
handler.sendEmptyMessage(7);
for (LotDetail lot:lotDetails){
if (!applicationModel.getData().equals(lot.getWHCode())) {
ErrorMsg = "目标库位与源头单据不符,请确认后重新扫描!";
handler.sendEmptyMessage(2);
} else {
handler.sendEmptyMessage(7);
}
}
} else {
ErrorMsg = "库位条码不存在!";

Loading…
Cancel
Save