|
|
|
@ -7,6 +7,8 @@ import android.content.Intent;
|
|
|
|
import android.content.IntentFilter;
|
|
|
|
import android.content.IntentFilter;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.os.Handler;
|
|
|
|
import android.os.Handler;
|
|
|
|
|
|
|
|
import android.text.Editable;
|
|
|
|
|
|
|
|
import android.text.TextWatcher;
|
|
|
|
import android.util.Log;
|
|
|
|
import android.util.Log;
|
|
|
|
import android.view.View;
|
|
|
|
import android.view.View;
|
|
|
|
import android.widget.Button;
|
|
|
|
import android.widget.Button;
|
|
|
|
@ -79,6 +81,26 @@ public class ShuangqianActivity2 extends BaseActivity {
|
|
|
|
Intent toKillService = new Intent();
|
|
|
|
Intent toKillService = new Intent();
|
|
|
|
toKillService.setAction(ACTION_CLOSE_SCAN);
|
|
|
|
toKillService.setAction(ACTION_CLOSE_SCAN);
|
|
|
|
sendBroadcast(toKillService);
|
|
|
|
sendBroadcast(toKillService);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
binding.dataEpc.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.length()==24){
|
|
|
|
|
|
|
|
haohuaMesSelect(s.toString());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -110,7 +132,7 @@ public class ShuangqianActivity2 extends BaseActivity {
|
|
|
|
if (readState) {
|
|
|
|
if (readState) {
|
|
|
|
dataReadRFID(null);
|
|
|
|
dataReadRFID(null);
|
|
|
|
// callWebService(buildSelectRequest(result));
|
|
|
|
// callWebService(buildSelectRequest(result));
|
|
|
|
haohuaMesSelect(result);
|
|
|
|
// haohuaMesSelect(result);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|