|
@@ -83,7 +83,11 @@ public class SmartShelvestFragment extends BaseFragment {
|
|
|
CommonUtil.setEditorActionListener(mLocationEditText, new MyEditorActionListener() {
|
|
CommonUtil.setEditorActionListener(mLocationEditText, new MyEditorActionListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void MyEditorAction(String text, int actionId, KeyEvent event) {
|
|
public void MyEditorAction(String text, int actionId, KeyEvent event) {
|
|
|
-
|
|
|
|
|
|
|
+ if (!text.isEmpty()&&!mBarcodeEditText.getText().toString().isEmpty()){
|
|
|
|
|
+ saveBarAcceptCode("0");
|
|
|
|
|
+ }else {
|
|
|
|
|
+ mBarcodeEditText.requestFocus();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -93,10 +97,10 @@ public class SmartShelvestFragment extends BaseFragment {
|
|
|
public void onCheckedChanged(RadioGroup radioGroup, int checkid) {
|
|
public void onCheckedChanged(RadioGroup radioGroup, int checkid) {
|
|
|
switch (checkid){
|
|
switch (checkid){
|
|
|
case R.id.rb_zhuanchu:
|
|
case R.id.rb_zhuanchu:
|
|
|
- rb_changeinter = "0";
|
|
|
|
|
|
|
+ rb_changeinter = "1";
|
|
|
break;
|
|
break;
|
|
|
case R.id.rb_chexiao:
|
|
case R.id.rb_chexiao:
|
|
|
- rb_changeinter = "1";
|
|
|
|
|
|
|
+ rb_changeinter = "0";
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -170,14 +174,21 @@ public class SmartShelvestFragment extends BaseFragment {
|
|
|
String BAR_WHCODE = dataObject.getString("BAR_WHCODE") == null ? "" : dataObject.getString("BAR_WHCODE");
|
|
String BAR_WHCODE = dataObject.getString("BAR_WHCODE") == null ? "" : dataObject.getString("BAR_WHCODE");
|
|
|
String PR_LOCATION = dataObject.getString("PR_LOCATION") == null ? "" : dataObject.getString("PR_LOCATION");
|
|
String PR_LOCATION = dataObject.getString("PR_LOCATION") == null ? "" : dataObject.getString("PR_LOCATION");
|
|
|
String LOCATION = dataObject.getString("LOCATION") == null ? "" : dataObject.getString("LOCATION");
|
|
String LOCATION = dataObject.getString("LOCATION") == null ? "" : dataObject.getString("LOCATION");
|
|
|
|
|
+ String TYPE = dataObject.getString("TYPE") == null ? "" : dataObject.getString("TYPE");
|
|
|
mResultTextView.setTextColor(Color.BLUE);
|
|
mResultTextView.setTextColor(Color.BLUE);
|
|
|
mResultTextView.setVisibility(View.VISIBLE);
|
|
mResultTextView.setVisibility(View.VISIBLE);
|
|
|
- mResultTextView.setText("编号:"+BAR_PRODCODE+" 数量:"+BAR_REMAIN
|
|
|
|
|
- +"\n名称"+PR_DETAIL
|
|
|
|
|
|
|
+ mResultTextView.setText(TYPE+":"+mBarcodeEditText.getText().toString().trim()
|
|
|
|
|
+ +"\n编号:"+BAR_PRODCODE+" 数量:"+BAR_REMAIN
|
|
|
|
|
+ +"\n物料"+PR_DETAIL
|
|
|
+"\n规格"+PR_SPEC
|
|
+"\n规格"+PR_SPEC
|
|
|
- +"\n默认仓库:"+PR_LOCATION
|
|
|
|
|
- +"\n目前仓位;"+BAR_LOCATION
|
|
|
|
|
|
|
+ +"\n默认仓位:"+PR_LOCATION
|
|
|
|
|
+ +"\n目前仓位:"+BAR_LOCATION
|
|
|
+"\n建议仓位:"+LOCATION);
|
|
+"\n建议仓位:"+LOCATION);
|
|
|
|
|
+ if (!mLocationEditText.getText().toString().isEmpty()&&!mBarcodeEditText.getText().toString().isEmpty()){
|
|
|
|
|
+ saveBarAcceptCode("0");
|
|
|
|
|
+ }else {
|
|
|
|
|
+ mLocationEditText.requestFocus();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -226,15 +237,19 @@ public class SmartShelvestFragment extends BaseFragment {
|
|
|
public void onSuccess(int flag, Object o) throws Exception {
|
|
public void onSuccess(int flag, Object o) throws Exception {
|
|
|
progressDialog.dismiss();
|
|
progressDialog.dismiss();
|
|
|
mResultTextView.setVisibility(View.VISIBLE);
|
|
mResultTextView.setVisibility(View.VISIBLE);
|
|
|
- mResultTextView.setText(null);
|
|
|
|
|
- mBarcodeEditText.setText(null);
|
|
|
|
|
- mLocationEditText.setText(null);
|
|
|
|
|
mResultTextView.setTextColor(getResources().getColor(R.color.blue));
|
|
mResultTextView.setTextColor(getResources().getColor(R.color.blue));
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
JSONObject dataObject = FastjsonUtil.getJSONObject(o.toString(),"data");
|
|
JSONObject dataObject = FastjsonUtil.getJSONObject(o.toString(),"data");
|
|
|
String LOG = dataObject.getString("log") == null ? "" : dataObject.getString("log");
|
|
String LOG = dataObject.getString("log") == null ? "" : dataObject.getString("log");
|
|
|
String IFMIX = dataObject.getString("ifmix") == null ? "" : dataObject.getString("ifmix");
|
|
String IFMIX = dataObject.getString("ifmix") == null ? "" : dataObject.getString("ifmix");
|
|
|
String PRODCODE = dataObject.getString("prodcode") == null ? "" : dataObject.getString("prodcode");
|
|
String PRODCODE = dataObject.getString("prodcode") == null ? "" : dataObject.getString("prodcode");
|
|
|
|
|
+ if (StringUtil.isEmpty(IFMIX)){
|
|
|
|
|
+ mResultTextView.setText(null);
|
|
|
|
|
+ mBarcodeEditText.setText(null);
|
|
|
|
|
+ mLocationEditText.setText(null);
|
|
|
|
|
+ }
|
|
|
if (StringUtil.isEmpty(IFMIX)){
|
|
if (StringUtil.isEmpty(IFMIX)){
|
|
|
mResultTextView.setText(LOG);
|
|
mResultTextView.setText(LOG);
|
|
|
}else {
|
|
}else {
|