FoxV 2 years ago
parent
commit
30e52d550a
  1. 27
      app/src/main/java/com/icssoft/icspda/activity/INVTransActivity.java

27
app/src/main/java/com/icssoft/icspda/activity/INVTransActivity.java

@ -6,7 +6,9 @@ import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.os.SystemClock;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
@ -180,7 +182,7 @@ public class INVTransActivity extends AppCompatActivity {
btnOk = findViewById(R.id.btn_ok);
rbIn = findViewById(R.id.rbIn);
rbOut = findViewById(R.id.rbOut);
// HelpUtil.disableShowSoftInput(transferNo);
HelpUtil.disableShowSoftInput(etTransCode);
// HelpUtil.disableShowSoftInput(toBin);
// HelpUtil.disableShowSoftInput(barCode);
dataList = new ArrayList<>();
@ -224,6 +226,29 @@ public class INVTransActivity extends AppCompatActivity {
} return false;
}
});
etTransCode.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
@Override
public void afterTextChanged(Editable s) {
if (s != null && s.toString().length() != 0){
new Thread(new Runnable() {
@Override
public void run() {
CheckTransferNo();
}
}).start();
}
}
});
//目标库位
toBin.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override

Loading…
Cancel
Save