|
@@ -100,8 +100,7 @@ public class FactoryTransferInActivity extends Activity {
|
|
|
private Handler barcodeUpperH = new Handler();
|
|
private Handler barcodeUpperH = new Handler();
|
|
|
private FactoryTransferInListMessageAdapter adapter;
|
|
private FactoryTransferInListMessageAdapter adapter;
|
|
|
private boolean isCancel = false;
|
|
private boolean isCancel = false;
|
|
|
- private boolean isFirst = true;
|
|
|
|
|
- private String IsSYNCSTATUS = "0";
|
|
|
|
|
|
|
+ private boolean isFirst = true;
|
|
|
private int Height = 188;
|
|
private int Height = 188;
|
|
|
private String DATAKEY = "";
|
|
private String DATAKEY = "";
|
|
|
|
|
|
|
@@ -118,10 +117,7 @@ public class FactoryTransferInActivity extends Activity {
|
|
|
sessionkey = preferences.getString("SessionKey", "");
|
|
sessionkey = preferences.getString("SessionKey", "");
|
|
|
barcodeList = new ArrayList<BarcodeInfo>();
|
|
barcodeList = new ArrayList<BarcodeInfo>();
|
|
|
initView();
|
|
initView();
|
|
|
- IsSYNCSTATUS = this.getIntent().getStringExtra("SYNCSTATUS");
|
|
|
|
|
- if (IsSYNCSTATUS == null || IsSYNCSTATUS.equals("")) {
|
|
|
|
|
- IsSYNCSTATUS = "0";
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
procedureTv.setText(send_userCode);
|
|
procedureTv.setText(send_userCode);
|
|
|
allListeners();
|
|
allListeners();
|
|
@@ -132,6 +128,20 @@ public class FactoryTransferInActivity extends Activity {
|
|
|
SendOutRunnable glazeRunnable = new SendOutRunnable(obj);
|
|
SendOutRunnable glazeRunnable = new SendOutRunnable(obj);
|
|
|
mHandler.post(glazeRunnable);
|
|
mHandler.post(glazeRunnable);
|
|
|
updateDataKey();
|
|
updateDataKey();
|
|
|
|
|
+ barcodeEdt.setEnabled(true);
|
|
|
|
|
+ barcodeEdt.setText("");
|
|
|
|
|
+ barcodeEdt.setFocusable(true);
|
|
|
|
|
+ barcodeEdt.setFocusableInTouchMode(true);
|
|
|
|
|
+ barcodeEdt.requestFocus();
|
|
|
|
|
+ barcodeEdt.findFocus();
|
|
|
|
|
+ barcodeEdt.setFilters(new InputFilter[] { new InputFilter() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public CharSequence filter(CharSequence source, int start, int end, Spanned dest,
|
|
|
|
|
+ int dstart, int dend) {
|
|
|
|
|
+
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+ } });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/** ¸üÐÂΨһ±êʶ */
|
|
/** ¸üÐÂΨһ±êʶ */
|
|
@@ -475,18 +485,18 @@ public class FactoryTransferInActivity extends Activity {
|
|
|
backbtn = (ImageButton) findViewById(R.id.left_img);
|
|
backbtn = (ImageButton) findViewById(R.id.left_img);
|
|
|
backtext = (TextView) findViewById(R.id.back);
|
|
backtext = (TextView) findViewById(R.id.back);
|
|
|
title.setText("¹¤³§µ÷Èë");
|
|
title.setText("¹¤³§µ÷Èë");
|
|
|
- procedureTv = (TextView) findViewById(R.id.procedureTv);
|
|
|
|
|
|
|
+ procedureTv = (TextView) findViewById(R.id.procedureTvFt);
|
|
|
procedureTv.setMovementMethod(ScrollingMovementMethod.getInstance());
|
|
procedureTv.setMovementMethod(ScrollingMovementMethod.getInstance());
|
|
|
|
|
|
|
|
procedureTv.setEllipsize(TextUtils.TruncateAt.MARQUEE);
|
|
procedureTv.setEllipsize(TextUtils.TruncateAt.MARQUEE);
|
|
|
procedureTv.setMarqueeRepeatLimit(6);
|
|
procedureTv.setMarqueeRepeatLimit(6);
|
|
|
- mRootView = findViewById(R.id.parentRel);
|
|
|
|
|
- barcodeEdt = (EditText) findViewById(R.id.barcodeEdt);
|
|
|
|
|
|
|
+ mRootView = findViewById(R.id.parentRelF);
|
|
|
|
|
+ barcodeEdt = (EditText) findViewById(R.id.barcodeEdtt);
|
|
|
barcodeEdt.setRawInputType(InputType.TYPE_CLASS_NUMBER);
|
|
barcodeEdt.setRawInputType(InputType.TYPE_CLASS_NUMBER);
|
|
|
CommonUtil.BarcodeMaxLength(barcodeEdt, 50);
|
|
CommonUtil.BarcodeMaxLength(barcodeEdt, 50);
|
|
|
descEdt = (EditText) findViewById(R.id.descEdt);
|
|
descEdt = (EditText) findViewById(R.id.descEdt);
|
|
|
- messageLst = (ListView) findViewById(R.id.message_listview);
|
|
|
|
|
- saveBtn = (Button) findViewById(R.id.btnSave);
|
|
|
|
|
|
|
+ messageLst = (ListView) findViewById(R.id.message_listview_ft);
|
|
|
|
|
+ saveBtn = (Button) findViewById(R.id.btnSaveFT);
|
|
|
sendOutSpinner = (Spinner) findViewById(R.id.fatory_transfer_in);
|
|
sendOutSpinner = (Spinner) findViewById(R.id.fatory_transfer_in);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -977,11 +987,7 @@ public class FactoryTransferInActivity extends Activity {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
} });
|
|
} });
|
|
|
- if (IsSYNCSTATUS.equals("1")) {
|
|
|
|
|
- barcodeEdt.setEnabled(false);
|
|
|
|
|
- saveBtn.setEnabled(false);
|
|
|
|
|
- // sendOutSpinner.setSpinnerMode(DialogFragment.MODE_DIALOG);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
CommonUtil.BarcodeMaxLength(barcodeEdt, 50);
|
|
CommonUtil.BarcodeMaxLength(barcodeEdt, 50);
|
|
|
// InputMethodManager im = (InputMethodManager) barcodeEdt
|
|
// InputMethodManager im = (InputMethodManager) barcodeEdt
|
|
|
// .getContext().getSystemService(
|
|
// .getContext().getSystemService(
|