|
|
@@ -42,7 +42,7 @@ import java.util.List;
|
|
|
*/
|
|
|
public class SolderChargingFragment extends BaseFragment {
|
|
|
private static final int SCAN_BARCODE_CODE = 204;
|
|
|
- private ClearableEditText mBarcodeEditText, mLinecodeEditText;
|
|
|
+ private ClearableEditText mBarcodeEditText, mLinecodeEditText, mMacodeEditText;
|
|
|
private RecyclerView mRecyclerView;
|
|
|
private CheckBox mCheckBox;
|
|
|
private Button mConfirmButton;
|
|
|
@@ -66,6 +66,7 @@ public class SolderChargingFragment extends BaseFragment {
|
|
|
|
|
|
mBarcodeEditText = root.findViewById(R.id.solder_charging_barcode_et);
|
|
|
mLinecodeEditText = root.findViewById(R.id.solder_charging_linecode_et);
|
|
|
+ mMacodeEditText = root.findViewById(R.id.solder_charging_macode_et);
|
|
|
mCheckBox = root.findViewById(R.id.solder_charging_runout_cb);
|
|
|
mConfirmButton = root.findViewById(R.id.solder_charging_confirm_btn);
|
|
|
mLineSelectIv = root.findViewById(R.id.solder_charging_linecode_select_iv);
|
|
|
@@ -189,6 +190,7 @@ public class SolderChargingFragment extends BaseFragment {
|
|
|
private void confirmCharging(String barcode) {
|
|
|
progressDialog.show();
|
|
|
String linecode = mLinecodeEditText.getText().toString().trim();
|
|
|
+ String macode = mMacodeEditText.getText().toString().trim();
|
|
|
VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
.url(GloableParams.ADDRESS_SPM_LODING)
|
|
|
.method(Request.Method.POST)
|
|
|
@@ -196,6 +198,7 @@ public class SolderChargingFragment extends BaseFragment {
|
|
|
.flag(0)
|
|
|
.addParam("barcode", barcode)
|
|
|
.addParam("linecode", linecode)
|
|
|
+ .addParam("macode", macode)
|
|
|
.addParam("isEmpty", String.valueOf(mCheckBox.isChecked()))
|
|
|
.build(), new HttpCallback() {
|
|
|
@Override
|