|
|
@@ -58,6 +58,7 @@ public class SolderChargingFragment extends BaseFragment {
|
|
|
private ClearableEditText ct_id;
|
|
|
private ClearableEditText tv_pr_code;
|
|
|
private ClearableEditText tv_pr_detail;
|
|
|
+ private Button bt_query_work_order_no;
|
|
|
|
|
|
@Override
|
|
|
protected int getLayout() {
|
|
|
@@ -81,6 +82,7 @@ public class SolderChargingFragment extends BaseFragment {
|
|
|
ct_id = root.findViewById(R.id.ct_id);
|
|
|
tv_pr_code = root.findViewById(R.id.tv_pr_code);
|
|
|
tv_pr_detail = root.findViewById(R.id.tv_pr_detail);
|
|
|
+ bt_query_work_order_no = root.findViewById(R.id.bt_query_work_order_no);
|
|
|
mRecyclerView.setLayoutManager(new LinearLayoutManager(mActivity));
|
|
|
mCaptionValueBeans = new ArrayList<>();
|
|
|
initFormList();
|
|
|
@@ -131,7 +133,12 @@ public class SolderChargingFragment extends BaseFragment {
|
|
|
CommonUtil.toastNoRepeat(mActivity, "请采集条码号");
|
|
|
return;
|
|
|
}
|
|
|
- confirmCharging(barcode);
|
|
|
+ if (TextUtils.isEmpty(mMacodeEditText.getText().toString().trim())) {
|
|
|
+ String va_code = ct_id.getText().toString().trim();
|
|
|
+ getfuzzySearchData(va_code,"getData");
|
|
|
+ }else {
|
|
|
+ confirmCharging(barcode);
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -163,6 +170,14 @@ public class SolderChargingFragment extends BaseFragment {
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ bt_query_work_order_no.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ String va_code = ct_id.getText().toString().trim();
|
|
|
+ getfuzzySearchData(va_code,"");
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
public void getfuzzySearchData(String inoutNo,String stop){
|
|
|
@@ -188,11 +203,18 @@ public class SolderChargingFragment extends BaseFragment {
|
|
|
}
|
|
|
mLinecodeEditText.requestFocus();
|
|
|
mLinecodeEditText.setSelection(mLinecodeEditText.getText().toString().length());
|
|
|
+ if (!TextUtils.isEmpty(stop) && stop.equals("getData")) {
|
|
|
+ String barcode = mBarcodeEditText.getText().toString().trim();
|
|
|
+ barcode = CommonUtil.deleteBarcodeSymbol(barcode);
|
|
|
+ if (TextUtils.isEmpty(barcode)) {
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, "请采集条码号");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ confirmCharging(barcode);
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
@Override
|