|
@@ -62,6 +62,7 @@ import com.uas.hycollection.bean.StorageRechargeAloneBean;
|
|
|
import com.uas.hycollection.bean.TestcollectDataBean;
|
|
import com.uas.hycollection.bean.TestcollectDataBean;
|
|
|
import com.uas.hycollection.camera.CaptureActivity;
|
|
import com.uas.hycollection.camera.CaptureActivity;
|
|
|
import com.uas.hycollection.global.GloableParams;
|
|
import com.uas.hycollection.global.GloableParams;
|
|
|
|
|
+import com.uas.hycollection.tools.GsonUtil;
|
|
|
import com.uas.hycollection.tools.SharedPreUtil;
|
|
import com.uas.hycollection.tools.SharedPreUtil;
|
|
|
import com.uas.hycollection.util.CameraUtil;
|
|
import com.uas.hycollection.util.CameraUtil;
|
|
|
import com.uas.hycollection.util.CommonUtil;
|
|
import com.uas.hycollection.util.CommonUtil;
|
|
@@ -136,6 +137,7 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
private AutoCompleteTextView tv_dc_line;
|
|
private AutoCompleteTextView tv_dc_line;
|
|
|
private ImageView iv_dc_emcode;
|
|
private ImageView iv_dc_emcode;
|
|
|
private ImageView iv_dc_line;
|
|
private ImageView iv_dc_line;
|
|
|
|
|
+ private ImageView iv_number_search_for;
|
|
|
private int mFocusId;
|
|
private int mFocusId;
|
|
|
private static final int SCAN_BARCODE_CODESD = 925;
|
|
private static final int SCAN_BARCODE_CODESD = 925;
|
|
|
private static final int SCAN_BARCODE_LINE = 888;
|
|
private static final int SCAN_BARCODE_LINE = 888;
|
|
@@ -175,8 +177,10 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
private String ma_bomversion;
|
|
private String ma_bomversion;
|
|
|
private InputMethodManager imm;
|
|
private InputMethodManager imm;
|
|
|
private ArrayList<LineCodeEntity> codeEntityArrayList;
|
|
private ArrayList<LineCodeEntity> codeEntityArrayList;
|
|
|
|
|
+ private ArrayList<LineCodeEntity> personnelList;
|
|
|
private GetLinePortAdapter getLinePortAdapter;
|
|
private GetLinePortAdapter getLinePortAdapter;
|
|
|
private String li_code;
|
|
private String li_code;
|
|
|
|
|
+ private String li_personne_id;
|
|
|
private RecyclerView rv_getline_ip_port_data;
|
|
private RecyclerView rv_getline_ip_port_data;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -216,6 +220,7 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
tv_station = root.findViewById(R.id.tv_station);
|
|
tv_station = root.findViewById(R.id.tv_station);
|
|
|
tv_dc_emcode = root.findViewById(R.id.tv_dc_emcode);
|
|
tv_dc_emcode = root.findViewById(R.id.tv_dc_emcode);
|
|
|
iv_dc_emcode = root.findViewById(R.id.iv_dc_emcode);
|
|
iv_dc_emcode = root.findViewById(R.id.iv_dc_emcode);
|
|
|
|
|
+ iv_number_search_for = root.findViewById(R.id.iv_number_search_for);
|
|
|
rv_datachange = root.findViewById(R.id.rv_datachange);
|
|
rv_datachange = root.findViewById(R.id.rv_datachange);
|
|
|
rv_datapassqty = root.findViewById(R.id.rv_datapassqty);
|
|
rv_datapassqty = root.findViewById(R.id.rv_datapassqty);
|
|
|
tv_macode = root.findViewById(R.id.tv_macode);
|
|
tv_macode = root.findViewById(R.id.tv_macode);
|
|
@@ -250,6 +255,7 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
protected void initDatas() {
|
|
protected void initDatas() {
|
|
|
resourcesBeanList = new ArrayList<>();
|
|
resourcesBeanList = new ArrayList<>();
|
|
|
codeEntityArrayList = new ArrayList<>();
|
|
codeEntityArrayList = new ArrayList<>();
|
|
|
|
|
+ personnelList = new ArrayList<>();
|
|
|
WindowManager wm = mActivity.getWindowManager();
|
|
WindowManager wm = mActivity.getWindowManager();
|
|
|
int screenWith = wm.getDefaultDisplay().getWidth()/3;
|
|
int screenWith = wm.getDefaultDisplay().getWidth()/3;
|
|
|
mSmartTable.getConfig().setMinTableWidth(screenWith)
|
|
mSmartTable.getConfig().setMinTableWidth(screenWith)
|
|
@@ -536,10 +542,6 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
handleFeededDataTwo(dataArray);
|
|
handleFeededDataTwo(dataArray);
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
tv_save.setOnClickListener(new View.OnClickListener() {
|
|
tv_save.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|
|
@@ -607,6 +609,13 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ iv_number_search_for.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void onClick(View v) {
|
|
|
|
|
+ initGetPersonnelID();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
recycleDataundesirable();
|
|
recycleDataundesirable();
|
|
|
|
|
|
|
|
sc_codecolleone = SharedPreUtil.getString(mActivity, "sc_codecolleone", null);
|
|
sc_codecolleone = SharedPreUtil.getString(mActivity, "sc_codecolleone", null);
|
|
@@ -629,12 +638,176 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ String work_order_flow = SharedPreUtil.getString(mActivity, SharedPreUtil.SJ_WORK_ORDER_FLOW, "");
|
|
|
|
|
+ String plan_number = SharedPreUtil.getString(mActivity, SharedPreUtil.SJ_PLAN_NUMBER, "");
|
|
|
|
|
+ String product_code = SharedPreUtil.getString(mActivity, SharedPreUtil.SJ_PRODUCT_CODE, "");
|
|
|
|
|
+ String product_name = SharedPreUtil.getString(mActivity, SharedPreUtil.SJ_PRODUCT_NAME, "");
|
|
|
|
|
+
|
|
|
|
|
+ if (!TextUtils.isEmpty(work_order_flow)) {
|
|
|
|
|
+ et_linecode_smts.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);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private void initGetPersonnelID() {
|
|
|
|
|
+ getLinePortAdapter = new GetLinePortAdapter(personnelList);
|
|
|
|
|
+ View contView = LayoutInflater.from(mActivity).inflate(R.layout.index_line_pup, null);
|
|
|
|
|
+ edit_et = (ClearableEditText) contView.findViewById(R.id.edit_et);
|
|
|
|
|
+ TextView sure_tv = (TextView) contView.findViewById(R.id.sure_tv);
|
|
|
|
|
+ TextView cancle_tv = (TextView) contView.findViewById(R.id.cancle_tv);
|
|
|
|
|
+ ImageView search_im = contView.findViewById(R.id.search_im);
|
|
|
|
|
+ LinearLayout line_top = contView.findViewById(R.id.line_top);
|
|
|
|
|
+ rv_getline_ip_port_data = contView.findViewById(R.id.rv_ip_port_data);
|
|
|
|
|
+ rv_getline_ip_port_data.addItemDecoration(new DividerItemDecoration(mActivity, LinearLayout.VERTICAL));
|
|
|
|
|
+ rv_getline_ip_port_data.setLayoutManager(new LinearLayoutManager(mActivity));
|
|
|
|
|
+ getLinePortAdapter.setmList(personnelList);
|
|
|
|
|
+ rv_getline_ip_port_data.setAdapter(getLinePortAdapter);
|
|
|
|
|
+ getPersonnelID();
|
|
|
|
|
+
|
|
|
|
|
+ editPW = new PopupWindow(contView, LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT, true);
|
|
|
|
|
+ editPW.setTouchable(true);
|
|
|
|
|
+ editPW.setBackgroundDrawable(new BitmapDrawable());
|
|
|
|
|
+ editPW.setOnDismissListener(new BasePopupWindow.OnDismissListener() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void onDismiss() {
|
|
|
|
|
+ closeListPopupWindow();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ View parentView = mActivity.getWindow().findViewById(Window.ID_ANDROID_CONTENT);
|
|
|
|
|
+ editPW.showAtLocation(parentView, Gravity.CENTER, 0, 0);
|
|
|
|
|
+ CommonUtil.setBackgroundAlpha(mActivity, 0.5f);
|
|
|
|
|
+ search_im.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void onClick(View v) {
|
|
|
|
|
+ String mSearchStr = edit_et.getText().toString().trim();
|
|
|
|
|
+ if (!mSearchStr.isEmpty()) {
|
|
|
|
|
+ List<LineCodeEntity> thisList = new ArrayList<>();
|
|
|
|
|
+ for(int i=0;i<personnelList.size();i++){
|
|
|
|
|
+ if(personnelList.get(i).getLI_CODE().contains(mSearchStr)){
|
|
|
|
|
+ thisList.add(personnelList.get(i));
|
|
|
|
|
+ }
|
|
|
|
|
+ if(i == personnelList.size() -1){
|
|
|
|
|
+ getLinePortAdapter = new GetLinePortAdapter(thisList);
|
|
|
|
|
+ rv_getline_ip_port_data.setAdapter(getLinePortAdapter);
|
|
|
|
|
+ LogUtil.i("mSearchStr", JSON.toJSONString(thisList));
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ List<LineCodeEntity> lineCodeEntities = getLinePortAdapter.getmList();
|
|
|
|
|
+ for (int j = 0; j < lineCodeEntities.size(); j++) {
|
|
|
|
|
+ lineCodeEntities.get(j).setChecked(false);
|
|
|
|
|
+ }
|
|
|
|
|
+ getLinePortAdapter.notifyDataSetChanged();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ } else {
|
|
|
|
|
+ getLinePortAdapter = new GetLinePortAdapter(personnelList);
|
|
|
|
|
+ rv_getline_ip_port_data.setAdapter(getLinePortAdapter);
|
|
|
|
|
+ List<LineCodeEntity> lineCodeEntities = getLinePortAdapter.getmList();
|
|
|
|
|
+ for (int i = 0; i < lineCodeEntities.size(); i++) {
|
|
|
|
|
+ lineCodeEntities.get(i).setChecked(false);
|
|
|
|
|
+ }
|
|
|
|
|
+ getLinePortAdapter.notifyDataSetChanged();
|
|
|
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ getLinePortAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
|
|
|
|
|
+ List<LineCodeEntity> lineCodeEntities = getLinePortAdapter.getmList();
|
|
|
|
|
+ li_personne_id = lineCodeEntities.get(position).getLI_CODE();
|
|
|
|
|
+ for (int i = 0; i < lineCodeEntities.size(); i++) {
|
|
|
|
|
+ lineCodeEntities.get(i).setChecked(false);
|
|
|
|
|
+ }
|
|
|
|
|
+ lineCodeEntities.get(position).setChecked(true);
|
|
|
|
|
+ getLinePortAdapter.notifyDataSetChanged();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
|
|
+ getLinePortAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
|
|
|
|
|
+ List<LineCodeEntity> lineCodeEntities = getLinePortAdapter.getmList();
|
|
|
|
|
+ li_personne_id = lineCodeEntities.get(position).getLI_CODE();
|
|
|
|
|
+ for (int i = 0; i < lineCodeEntities.size(); i++) {
|
|
|
|
|
+ lineCodeEntities.get(i).setChecked(false);
|
|
|
|
|
+ }
|
|
|
|
|
+ lineCodeEntities.get(position).setChecked(true);
|
|
|
|
|
+ getLinePortAdapter.notifyDataSetChanged();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ //确定
|
|
|
|
|
+ sure_tv.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void onClick(View v) {
|
|
|
|
|
+ if (!StringUtil.isEmpty(li_personne_id)){
|
|
|
|
|
+ tv_dc_emcode.setText(li_personne_id);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ CommonUtil.toastNoRepeat(mActivity,"请选择人员编号");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ closeListPopupWindow();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ //取消
|
|
|
|
|
+ cancle_tv.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void onClick(View v) {
|
|
|
|
|
+ closeListPopupWindow();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ private void getPersonnelID() {
|
|
|
|
|
+// progressDialog.show();
|
|
|
|
|
+ VolleyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
|
|
+ .url(GloableParams.ADD_GET_PERSONNEL_ID)
|
|
|
|
|
+ .method(Request.Method.POST)
|
|
|
|
|
+ .build(), new HttpCallback() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void onSuccess(int flag, Object o) throws Exception {
|
|
|
|
|
+ progressDialog.dismiss();
|
|
|
|
|
+ personnelList.clear();
|
|
|
|
|
+ try {
|
|
|
|
|
+ String result = o.toString();
|
|
|
|
|
+ JSONObject resultObject = JSON.parseObject(result);
|
|
|
|
|
+ JSONArray dataArray = resultObject.getJSONArray("data");
|
|
|
|
|
+ if (dataArray != null) {
|
|
|
|
|
+ for (int i = 0; i < dataArray.size(); i++) {
|
|
|
|
|
+ JSONObject dataObject = dataArray.getJSONObject(i);
|
|
|
|
|
+ if (dataObject != null) {
|
|
|
|
|
+ LineCodeEntity lineCodeEntity = new LineCodeEntity();
|
|
|
|
|
+ lineCodeEntity.setLI_CODE(FastjsonUtil.getText(dataObject, "EM_CODE"));
|
|
|
|
|
+ lineCodeEntity.setLI_NAME(FastjsonUtil.getText(dataObject, "EM_NAME"));
|
|
|
|
|
+ personnelList.add(lineCodeEntity);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (personnelList.size() == 0) {
|
|
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, "人员编号数据为空");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ setcodelineAdapter(personnelList);
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void onFail(int flag, String failStr) throws Exception {
|
|
|
|
|
+ progressDialog.dismiss();
|
|
|
|
|
+ CommonUtil.toastNoRepeat(mActivity, failStr);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private void handleFeededDataTwo(JSONArray dataArray) {
|
|
private void handleFeededDataTwo(JSONArray dataArray) {
|
|
|
StorageRechargeAloneBean bean;
|
|
StorageRechargeAloneBean bean;
|
|
|
passFeededListQty.clear();
|
|
passFeededListQty.clear();
|
|
@@ -838,8 +1011,6 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
private class IpAndPortAdapter extends BaseQuickAdapter<IpAndPortBean, BaseViewHolder> {
|
|
private class IpAndPortAdapter extends BaseQuickAdapter<IpAndPortBean, BaseViewHolder> {
|
|
|
private List<IpAndPortBean> mmmmList;
|
|
private List<IpAndPortBean> mmmmList;
|
|
|
|
|
|
|
@@ -965,13 +1136,6 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
private class IpAndunhealthyPortAdapter extends BaseQuickAdapter<ResourcesBean, BaseViewHolder> {
|
|
private class IpAndunhealthyPortAdapter extends BaseQuickAdapter<ResourcesBean, BaseViewHolder> {
|
|
|
private List<ResourcesBean> mmmmList;
|
|
private List<ResourcesBean> mmmmList;
|
|
|
|
|
|
|
@@ -1004,7 +1168,6 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
|
|
|
|
|
|
|
|
|
|
public void getfuzzySearchData(String inoutNo,String sone){
|
|
public void getfuzzySearchData(String inoutNo,String sone){
|
|
|
-
|
|
|
|
|
VollyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
VollyRequest.getInstance().stringRequest(new HttpParams.Builder()
|
|
|
.url(GloableParams.ADDRESS_SMT_FUZZY_SEARCH)
|
|
.url(GloableParams.ADDRESS_SMT_FUZZY_SEARCH)
|
|
|
.method(Request.Method.GET)
|
|
.method(Request.Method.GET)
|
|
@@ -1497,6 +1660,7 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
rv_ip_port_data.setLayoutManager(new LinearLayoutManager(mActivity));
|
|
rv_ip_port_data.setLayoutManager(new LinearLayoutManager(mActivity));
|
|
|
ipAndlinecodePortAdapter.setmList(linecodeBeanList);
|
|
ipAndlinecodePortAdapter.setmList(linecodeBeanList);
|
|
|
rv_ip_port_data.setAdapter(ipAndlinecodePortAdapter);
|
|
rv_ip_port_data.setAdapter(ipAndlinecodePortAdapter);
|
|
|
|
|
+
|
|
|
getfuzzySearchData(edit_et.getText().toString().trim(),"弹框");
|
|
getfuzzySearchData(edit_et.getText().toString().trim(),"弹框");
|
|
|
|
|
|
|
|
editPW = new PopupWindow(contView, LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT, true);
|
|
editPW = new PopupWindow(contView, LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT, true);
|
|
@@ -1534,10 +1698,16 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
}
|
|
}
|
|
|
ipAndPortBeans.get(position).setChecked(true);
|
|
ipAndPortBeans.get(position).setChecked(true);
|
|
|
ipAndlinecodePortAdapter.notifyDataSetChanged();
|
|
ipAndlinecodePortAdapter.notifyDataSetChanged();
|
|
|
|
|
+
|
|
|
|
|
+ //增加缓存,记录最后一次存的工单
|
|
|
|
|
+ SharedPreUtil.saveString(mActivity, SharedPreUtil.SJ_WORK_ORDER_FLOW, ma_id); //工单流水
|
|
|
|
|
+ SharedPreUtil.saveString(mActivity, SharedPreUtil.SJ_PLAN_NUMBER, ma_code); //计划单号
|
|
|
|
|
+ SharedPreUtil.saveString(mActivity, SharedPreUtil.SJ_PRODUCT_CODE, ma_bomversion); //产品代码
|
|
|
|
|
+ SharedPreUtil.saveString(mActivity, SharedPreUtil.SJ_PRODUCT_NAME, pr_detail); //产品名称
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-
|
|
|
|
|
//确定
|
|
//确定
|
|
|
sure_tv.setOnClickListener(new View.OnClickListener() {
|
|
sure_tv.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
@@ -1563,7 +1733,6 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
cancle_tv.setOnClickListener(new View.OnClickListener() {
|
|
cancle_tv.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|
|
|
-
|
|
|
|
|
closeListPopupWindow();
|
|
closeListPopupWindow();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -1899,9 +2068,6 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 不良现象
|
|
* 不良现象
|
|
|
*/
|
|
*/
|
|
@@ -2191,7 +2357,6 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
cancle_tv.setOnClickListener(new View.OnClickListener() {
|
|
cancle_tv.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|
|
|
-
|
|
|
|
|
closeListPopupWindow();
|
|
closeListPopupWindow();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -2345,7 +2510,6 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
sure_tv.setOnClickListener(new View.OnClickListener() {
|
|
sure_tv.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|
|
|
-
|
|
|
|
|
if (!StringUtil.isEmpty(li_code)){
|
|
if (!StringUtil.isEmpty(li_code)){
|
|
|
tv_dc_line.setText(li_code);
|
|
tv_dc_line.setText(li_code);
|
|
|
}else {
|
|
}else {
|
|
@@ -2360,7 +2524,6 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
cancle_tv.setOnClickListener(new View.OnClickListener() {
|
|
cancle_tv.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|
|
|
-
|
|
|
|
|
closeListPopupWindow();
|
|
closeListPopupWindow();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -2461,23 +2624,11 @@ public class DataCollectionFragment extends BaseFragment implements View.OnClick
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void setcodelineAdapter(ArrayList<LineCodeEntity> mList) {
|
|
private void setcodelineAdapter(ArrayList<LineCodeEntity> mList) {
|
|
|
- getLinePortAdapter.setmList(codeEntityArrayList);
|
|
|
|
|
|
|
+ getLinePortAdapter.setmList(mList);
|
|
|
getLinePortAdapter.notifyDataSetChanged();
|
|
getLinePortAdapter.notifyDataSetChanged();
|
|
|
rv_getline_ip_port_data.setAdapter(getLinePortAdapter);
|
|
rv_getline_ip_port_data.setAdapter(getLinePortAdapter);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
public class SelectAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
|
public class SelectAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
|
|
private int checkedPosition = -1;
|
|
private int checkedPosition = -1;
|
|
|
private boolean onBind;
|
|
private boolean onBind;
|