|
@@ -42,6 +42,8 @@ import com.fxy.bean.ScanBean;
|
|
|
import com.fxy.common.CommonDialog;
|
|
|
import com.fxy.constant.BaseConfig;
|
|
|
import com.fxy.constant.EventCode;
|
|
|
+import com.fxy.hk.bean.InboundBean;
|
|
|
+import com.fxy.hk.bean.OutboundBean;
|
|
|
import com.fxy.net.MyDialogCallback;
|
|
|
import com.fxy.net.Urls;
|
|
|
import com.fxy.view.FloatingImageView;
|
|
@@ -77,6 +79,7 @@ public class HkOutboundMainActivity extends BaseActivity implements StoJNI.Scan
|
|
|
@BindView(R.id.et_container_code)
|
|
|
EditText etContainerCode;
|
|
|
|
|
|
+
|
|
|
//托盘组件
|
|
|
@BindView(R.id.ll_container)
|
|
|
LinearLayout llContainer;
|
|
@@ -89,6 +92,11 @@ public class HkOutboundMainActivity extends BaseActivity implements StoJNI.Scan
|
|
|
@BindView(R.id.iv_drag)
|
|
|
FloatingImageView iv_drag;
|
|
|
|
|
|
+ @BindView(R.id.tv_has_scan)
|
|
|
+ TextView tvHasScan;
|
|
|
+
|
|
|
+ @BindView(R.id.tv_no_scan)
|
|
|
+ TextView tvNoScan;
|
|
|
|
|
|
|
|
|
//扫码扫码动作
|
|
@@ -374,6 +382,7 @@ public class HkOutboundMainActivity extends BaseActivity implements StoJNI.Scan
|
|
|
if(bean.code == 1){
|
|
|
etOrderNo.setEnabled(false);
|
|
|
ibOrderNoClear.setVisibility(View.GONE);
|
|
|
+ setPageViewData(bean.data);
|
|
|
etContainerCode.setEnabled(true);
|
|
|
etContainerCode.requestFocus();
|
|
|
}else{
|
|
@@ -388,6 +397,11 @@ public class HkOutboundMainActivity extends BaseActivity implements StoJNI.Scan
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void setPageViewData(String data){
|
|
|
+ OutboundBean outboundBean = JsonUtil.getObject(data, OutboundBean.class);
|
|
|
+ tvHasScan.setText(String.valueOf(outboundBean.getHasScan()));
|
|
|
+ tvNoScan.setText(String.valueOf(outboundBean.getNoScan()));
|
|
|
+ }
|
|
|
/**
|
|
|
* 关闭托盘
|
|
|
*/
|
|
@@ -463,6 +477,7 @@ public class HkOutboundMainActivity extends BaseActivity implements StoJNI.Scan
|
|
|
ActionBean bean = JsonUtil.getObject(response.body(), ActionBean.class);
|
|
|
if(bean.code == 1){
|
|
|
showSuccessToast(bean.msg);
|
|
|
+ setPageViewData(bean.data);
|
|
|
clearData();
|
|
|
}else{
|
|
|
showWarningToast(bean.msg);
|
|
@@ -510,6 +525,10 @@ public class HkOutboundMainActivity extends BaseActivity implements StoJNI.Scan
|
|
|
|
|
|
etContainerCode.setText("");
|
|
|
etOrderNo.setText("");
|
|
|
+
|
|
|
+ tvHasScan.setText("0");
|
|
|
+ tvNoScan.setText("0");
|
|
|
+
|
|
|
etContainerCode.setEnabled(false);
|
|
|
etOrderNo.setEnabled(true);
|
|
|
setEditTextNormal(etContainerCode,true);
|