|
|
@@ -12,7 +12,6 @@ import android.support.v7.widget.LinearLayoutManager;
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
import android.text.Editable;
|
|
|
import android.text.InputType;
|
|
|
-import android.text.TextUtils;
|
|
|
import android.text.TextWatcher;
|
|
|
import android.util.Base64;
|
|
|
import android.util.Log;
|
|
|
@@ -73,7 +72,6 @@ import com.uas.hycollection.util.StringUtil;
|
|
|
import com.uas.hycollection.util.VolleyRequest;
|
|
|
import com.uas.hycollection.util.VollyRequest;
|
|
|
import com.uas.hycollection.view.ClearableEditText;
|
|
|
-import com.umeng.commonsdk.debug.E;
|
|
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
import org.json.JSONException;
|
|
|
@@ -91,12 +89,12 @@ import razerdp.basepopup.BasePopupWindow;
|
|
|
* Created by cjh-sail on 2023-005-28
|
|
|
* 性能维修
|
|
|
*/
|
|
|
-public class BreakdownRepairFragment extends BaseFragment{
|
|
|
+public class BreakdownRepairFragment extends BaseFragment {
|
|
|
|
|
|
private ArrayList<StorageRechargeAloneBean> mFeededListone;
|
|
|
- private ArrayList<StorageRechargeAloneBean> mFeededListthree;
|
|
|
- private ArrayList<StorageRechargeAloneBean> mFeededListtwo;
|
|
|
- private RecyclerView rv_one,rv_two,rv_three;
|
|
|
+ private ArrayList<StorageRechargeAloneBean> mFeededListthree;
|
|
|
+ private ArrayList<StorageRechargeAloneBean> mFeededListtwo;
|
|
|
+ private RecyclerView rv_one, rv_two, rv_three;
|
|
|
private SelectAdapterone myAdapterone;
|
|
|
private SelectAdapterthree myAdapterthree;
|
|
|
private SelectAdaptertwo myAdaptertwo;
|
|
|
@@ -134,7 +132,7 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
private String ma_bomversion;
|
|
|
private SmartTable mSmartTable;
|
|
|
private List<TestcollectDataBean> listSama;
|
|
|
- private Column<String> va_classColumn,va_sr_reasonColumn,va_qtyColumn,va_timeColumn,va_sr_badnameremark,va_sr_ngqty;
|
|
|
+ private Column<String> va_classColumn, va_sr_reasonColumn, va_qtyColumn, va_timeColumn, va_sr_badnameremark, va_sr_ngqty;
|
|
|
private TableData<TestcollectDataBean> mTableData;
|
|
|
private List<TestcollectDataBean> mFilterStorageInBeans;
|
|
|
private RecyclerView rv_datapassqty;
|
|
|
@@ -200,9 +198,9 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
iv_number_search_for = root.findViewById(R.id.iv_number_search_for);
|
|
|
ce_wuli = root.findViewById(R.id.ce_wuli);
|
|
|
iv_wuli = root.findViewById(R.id.iv_wuli);
|
|
|
-// ce_length.setEnabled(false);
|
|
|
-// ce_length.setFocusable(false);
|
|
|
-// ce_length.setKeyListener(null);//重点
|
|
|
+ // ce_length.setEnabled(false);
|
|
|
+ // ce_length.setFocusable(false);
|
|
|
+ // ce_length.setKeyListener(null);//重点
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -212,7 +210,7 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
listSama = new ArrayList<>();
|
|
|
personnelList = new ArrayList<>();
|
|
|
WindowManager wm = mActivity.getWindowManager();
|
|
|
- int screenWith = wm.getDefaultDisplay().getWidth()/5;
|
|
|
+ int screenWith = wm.getDefaultDisplay().getWidth() / 5;
|
|
|
mSmartTable.getConfig().setMinTableWidth(screenWith)
|
|
|
.setShowXSequence(false)
|
|
|
.setShowYSequence(false)
|
|
|
@@ -252,18 +250,18 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
getclassify(); //不良归类
|
|
|
getqty(); //不良数量
|
|
|
|
|
|
-/**--------------------------------工单号----------------------------**/
|
|
|
+ /**--------------------------------工单号----------------------------**/
|
|
|
linecodeBeanList = new ArrayList<>();
|
|
|
ce_work_code.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
|
|
@Override
|
|
|
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
|
|
|
-// if (actionId == EditorInfo.IME_ACTION_DONE
|
|
|
-// || actionId == EditorInfo.IME_ACTION_SEND
|
|
|
-// || (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
|
|
|
- String va_code = ce_work_code.getText().toString().trim();
|
|
|
- getfuzzySearchData(va_code,"");
|
|
|
-// return true;
|
|
|
-// }
|
|
|
+ // if (actionId == EditorInfo.IME_ACTION_DONE
|
|
|
+ // || actionId == EditorInfo.IME_ACTION_SEND
|
|
|
+ // || (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
|
|
|
+ String va_code = ce_work_code.getText().toString().trim();
|
|
|
+ getfuzzySearchData(va_code, "");
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
@@ -311,7 +309,7 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
|
|
|
|
|
|
/**--------------------------------岗位资源----------------------------**/
|
|
|
- if (!at_station.getText().toString().isEmpty()){
|
|
|
+ if (!at_station.getText().toString().isEmpty()) {
|
|
|
at_station.setFocusable(false);
|
|
|
}
|
|
|
resourcesBeanList = new ArrayList<>();
|
|
|
@@ -322,7 +320,7 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
|| actionId == EditorInfo.IME_ACTION_SEND
|
|
|
|| (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
|
|
|
String va_code = at_station.getText().toString().trim();
|
|
|
- getfuzzySearchSourceData(va_code,"");
|
|
|
+ getfuzzySearchSourceData(va_code, "");
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
@@ -348,37 +346,37 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
-// ce_product_bar_code.addTextChangedListener(new TextWatcher() {
|
|
|
-// private CharSequence temp;
|
|
|
-// @Override
|
|
|
-// public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
|
|
-//
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void onTextChanged(CharSequence s, int start, int before, int count) {
|
|
|
-// temp = s;
|
|
|
-// }
|
|
|
-//
|
|
|
-// @Override
|
|
|
-// public void afterTextChanged(Editable s) {
|
|
|
-// int selectionStart = ce_product_bar_code.getSelectionStart();
|
|
|
-// int selectionEnd = ce_product_bar_code.getSelectionEnd();
|
|
|
-// ce_product_bar_code.getSelectionStart();
|
|
|
-// Log.e("gongbiao1", "" + selectionStart);
|
|
|
-// if (temp.length() > Integer.parseInt(ce_length.getText().toString().trim())) {
|
|
|
-// s.delete(selectionStart - 1, selectionEnd);
|
|
|
-// ce_product_bar_code.setText(s);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// });
|
|
|
+ // ce_product_bar_code.addTextChangedListener(new TextWatcher() {
|
|
|
+ // private CharSequence temp;
|
|
|
+ // @Override
|
|
|
+ // public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // @Override
|
|
|
+ // public void onTextChanged(CharSequence s, int start, int before, int count) {
|
|
|
+ // temp = s;
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // @Override
|
|
|
+ // public void afterTextChanged(Editable s) {
|
|
|
+ // int selectionStart = ce_product_bar_code.getSelectionStart();
|
|
|
+ // int selectionEnd = ce_product_bar_code.getSelectionEnd();
|
|
|
+ // ce_product_bar_code.getSelectionStart();
|
|
|
+ // Log.e("gongbiao1", "" + selectionStart);
|
|
|
+ // if (temp.length() > Integer.parseInt(ce_length.getText().toString().trim())) {
|
|
|
+ // s.delete(selectionStart - 1, selectionEnd);
|
|
|
+ // ce_product_bar_code.setText(s);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
|
|
|
iv_station.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
at_station.setFocusableInTouchMode(true);
|
|
|
at_station.setText("");
|
|
|
- getReapirInfo(at_station.getText().toString().trim(),tv_macode.getText().toString().trim(),ce_wuli.getText().toString().trim());
|
|
|
+ getReapirInfo(at_station.getText().toString().trim(), tv_macode.getText().toString().trim(), ce_wuli.getText().toString().trim());
|
|
|
at_station.requestFocus();
|
|
|
}
|
|
|
});
|
|
|
@@ -414,13 +412,13 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
tv_dc_emcode.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
|
|
@Override
|
|
|
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
|
|
|
-// if (actionId == EditorInfo.IME_ACTION_DONE
|
|
|
-// || actionId == EditorInfo.IME_ACTION_SEND
|
|
|
-// || (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
|
|
|
- String dc_emcode = tv_dc_emcode.getText().toString().trim();
|
|
|
- getOrImage(dc_emcode);
|
|
|
-// return true;
|
|
|
-// }
|
|
|
+ // if (actionId == EditorInfo.IME_ACTION_DONE
|
|
|
+ // || actionId == EditorInfo.IME_ACTION_SEND
|
|
|
+ // || (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
|
|
|
+ String dc_emcode = tv_dc_emcode.getText().toString().trim();
|
|
|
+ getOrImage(dc_emcode);
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
@@ -488,18 +486,18 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-// mFeededListone = new ArrayList<>();
|
|
|
-// myAdapterone = new SelectAdapterone(mFeededListone);
|
|
|
+ // mFeededListone = new ArrayList<>();
|
|
|
+ // myAdapterone = new SelectAdapterone(mFeededListone);
|
|
|
|
|
|
sc_codecollethree = SharedPreUtil.getString(mActivity, "sc_codecollethree", null);
|
|
|
at_station.setText(sc_codecollethree);
|
|
|
- getReapirInfo(sc_codecollethree,tv_macode.getText().toString().trim(),ce_wuli.getText().toString().trim());
|
|
|
- getfuzzySearchSourceData(sc_codecollethree,"");
|
|
|
+ getReapirInfo(sc_codecollethree, tv_macode.getText().toString().trim(), ce_wuli.getText().toString().trim());
|
|
|
+ getfuzzySearchSourceData(sc_codecollethree, "");
|
|
|
|
|
|
|
|
|
-/**
|
|
|
- * -----------------------------------物理线别-------------------------------------------------------------
|
|
|
- */
|
|
|
+ /**
|
|
|
+ * -----------------------------------物理线别-------------------------------------------------------------
|
|
|
+ */
|
|
|
wulilist = new ArrayList<>();
|
|
|
iv_wuli.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
@@ -509,22 +507,22 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
});
|
|
|
|
|
|
|
|
|
-// String work_order_flow = SharedPreUtil.getString(mActivity, SharedPreUtil.XN_WORK_ORDER_FLOW, "");
|
|
|
-// String plan_number = SharedPreUtil.getString(mActivity, SharedPreUtil.XN_PLAN_NUMBER, "");
|
|
|
-// String product_code = SharedPreUtil.getString(mActivity, SharedPreUtil.XN_PRODUCT_CODE, "");
|
|
|
-// String product_name = SharedPreUtil.getString(mActivity, SharedPreUtil.XN_PRODUCT_NAME, "");
|
|
|
-//
|
|
|
-// Log.e("aaa", "记录最后一次存的工单流水:" + work_order_flow);
|
|
|
-// Log.e("aaa", "记录最后一次存的计划单号:" + plan_number);
|
|
|
-// Log.e("aaa", "记录最后一次存的 PRODUCT_CODE:" + product_code);
|
|
|
-// Log.e("aaa", "记录最后一次存的 PRODUCT_NAME:" + product_name);
|
|
|
-//
|
|
|
-// if (!TextUtils.isEmpty(work_order_flow)) {
|
|
|
-// ce_work_code.setText(work_order_flow);
|
|
|
-// tv_macode.setText(""+plan_number);
|
|
|
-// tv_pr_code.setText(""+product_code);//pr_code ma_bomversion
|
|
|
-// tv_pr_detail.setText(""+product_name);
|
|
|
-// }
|
|
|
+ // String work_order_flow = SharedPreUtil.getString(mActivity, SharedPreUtil.XN_WORK_ORDER_FLOW, "");
|
|
|
+ // String plan_number = SharedPreUtil.getString(mActivity, SharedPreUtil.XN_PLAN_NUMBER, "");
|
|
|
+ // String product_code = SharedPreUtil.getString(mActivity, SharedPreUtil.XN_PRODUCT_CODE, "");
|
|
|
+ // String product_name = SharedPreUtil.getString(mActivity, SharedPreUtil.XN_PRODUCT_NAME, "");
|
|
|
+ //
|
|
|
+ // Log.e("aaa", "记录最后一次存的工单流水:" + work_order_flow);
|
|
|
+ // Log.e("aaa", "记录最后一次存的计划单号:" + plan_number);
|
|
|
+ // Log.e("aaa", "记录最后一次存的 PRODUCT_CODE:" + product_code);
|
|
|
+ // Log.e("aaa", "记录最后一次存的 PRODUCT_NAME:" + product_name);
|
|
|
+ //
|
|
|
+ // if (!TextUtils.isEmpty(work_order_flow)) {
|
|
|
+ // ce_work_code.setText(work_order_flow);
|
|
|
+ // tv_macode.setText(""+plan_number);
|
|
|
+ // tv_pr_code.setText(""+product_code);//pr_code ma_bomversion
|
|
|
+ // tv_pr_detail.setText(""+product_name);
|
|
|
+ // }
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -821,6 +819,9 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
ipAndResourcesPortAdapter.setmList(resourcesBeanList);
|
|
|
ipAndResourcesPortAdapter.notifyDataSetChanged();
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
else {
|
|
|
if (dataArray != null) {
|
|
|
@@ -1108,6 +1109,7 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
object_1.put("SR_ID", "");
|
|
|
object_1.put("SR_LOCATION", "");//不良位号
|
|
|
object_1.put("SR_MAKECODE", ce_work_codetrim);//工单号
|
|
|
@@ -1147,6 +1149,8 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
stringList.add(finalInput_alonedatathree+"\n");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
// if (!finalInput_AlonedaTwo.isEmpty()){
|
|
|
// stringList.add(finalInput_Aloneda+"\n");
|
|
|
// }
|
|
|
@@ -1435,7 +1439,6 @@ public class BreakdownRepairFragment extends BaseFragment{
|
|
|
tv_dc_emcode.requestFocus();
|
|
|
ce_work_code.setFocusable(false);
|
|
|
|
|
|
- recycleDataone(sr_badname);
|
|
|
getReapirInfo(at_station.getText().toString().trim(),ma_code,ce_wuli.getText().toString().trim());
|
|
|
closeListPopupWindow();
|
|
|
selectAdapterQty.notifyDataSetChanged();
|