|
@@ -34,7 +34,7 @@ public class WHCheckBarcodeFragment extends BaseFragment implements View.OnClick
|
|
|
private static final int SCAN_BARCODE_CODE = 402;
|
|
|
ClearableEditText etCollect;
|
|
|
TableLayout tlMsg;
|
|
|
- TextView tvBarcode, tvBarProcode, tvPrDetail, tvPrSpec, tvVeShortname, tvBarWhcode, tvBarRemain, tvBarLocation, tvStatus;
|
|
|
+ TextView tvBarcode, tvBarProcode,tv_type_value,tvPrDetail, tvPrSpec, tvVeShortname, tvBarWhcode, tvBarRemain, tvBarLocation, tvStatus;
|
|
|
private TextView btnSearch;
|
|
|
private ImageView mScanImageView;
|
|
|
private int mFocusId;
|
|
@@ -51,6 +51,7 @@ public class WHCheckBarcodeFragment extends BaseFragment implements View.OnClick
|
|
|
tlMsg = (TableLayout) root.findViewById(R.id.tl_msg);
|
|
|
tvBarcode = (TextView) root.findViewById(R.id.tv_bar_code);
|
|
|
tvBarProcode = (TextView) root.findViewById(R.id.tv_bar_procode);
|
|
|
+ tv_type_value=root.findViewById(R.id.tv_type_value);
|
|
|
tvPrDetail = (TextView) root.findViewById(R.id.tv_pr_detail);
|
|
|
tvPrSpec = (TextView) root.findViewById(R.id.tv_pr_spec);
|
|
|
tvVeShortname = (TextView) root.findViewById(R.id.tv_pr_ve_shortname);
|
|
@@ -189,20 +190,25 @@ public class WHCheckBarcodeFragment extends BaseFragment implements View.OnClick
|
|
|
String strRemain = changeNulltoBlank(dataJson, "BAR_REMAIN");
|
|
|
String strLocation = changeNulltoBlank(dataJson, "BAR_LOCATION");
|
|
|
String strStatus = changeNulltoBlank(dataJson, "BAR_STATUS");
|
|
|
+ String strType=changeNulltoBlank(dataJson,"PR_ORISPECCODE");
|
|
|
|
|
|
//显示数据
|
|
|
tvBarcode.setText(strBarcode);
|
|
|
tvBarProcode.setText(strProduct);
|
|
|
+ tv_type_value.setText(strType);
|
|
|
tvPrDetail.setText(strDetail);
|
|
|
tvPrSpec.setText(strSpec);
|
|
|
tvVeShortname.setText(strShortname);
|
|
|
tvBarWhcode.setText(strWhcode);
|
|
|
tvBarRemain.setText(strRemain);
|
|
|
tvBarLocation.setText(strLocation);
|
|
|
- tvStatus.setText("1".equals(strStatus) ? "在库"
|
|
|
- : "2".equals(strStatus) ? "出库"
|
|
|
- : "-2".equals(strStatus) ? "失效"
|
|
|
- : "");
|
|
|
+ if(strStatus.equals("1")){
|
|
|
+ tvStatus.setText("在库");
|
|
|
+ }else if(strStatus.equals("2")){
|
|
|
+ tvStatus.setText("出库");
|
|
|
+ }else{
|
|
|
+ tvStatus.setText(strStatus);
|
|
|
+ }
|
|
|
} catch (JSONException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
@@ -213,6 +219,7 @@ public class WHCheckBarcodeFragment extends BaseFragment implements View.OnClick
|
|
|
etCollect.setText("");
|
|
|
tvBarcode.setText("");
|
|
|
tvBarProcode.setText("");
|
|
|
+ tv_type_value.setText("");
|
|
|
tvPrDetail.setText("");
|
|
|
tvPrSpec.setText("");
|
|
|
tvVeShortname.setText("");
|