|
@@ -2,12 +2,16 @@ package com.uas.hy_electronic.fragment;
|
|
|
|
|
|
import android.content.Context;
|
|
|
import android.content.DialogInterface;
|
|
|
+import android.graphics.Color;
|
|
|
import android.graphics.drawable.BitmapDrawable;
|
|
|
import android.os.Bundle;
|
|
|
import android.support.v7.app.AlertDialog;
|
|
|
import android.text.Editable;
|
|
|
+import android.text.SpannableString;
|
|
|
+import android.text.Spanned;
|
|
|
import android.text.TextUtils;
|
|
|
import android.text.TextWatcher;
|
|
|
+import android.text.style.ForegroundColorSpan;
|
|
|
import android.util.Log;
|
|
|
import android.view.Gravity;
|
|
|
import android.view.KeyEvent;
|
|
@@ -61,6 +65,7 @@ import org.json.JSONArray;
|
|
|
import org.json.JSONException;
|
|
|
import org.json.JSONObject;
|
|
|
|
|
|
+import java.io.IOException;
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLEncoder;
|
|
|
import java.util.ArrayList;
|
|
@@ -119,7 +124,6 @@ public class IOCOutMakeMaterial extends BaseFragment {
|
|
|
mMultipleTextView = root.findViewById(R.id.iocout_material_multiple_tv);
|
|
|
|
|
|
|
|
|
-
|
|
|
mDbManager = new DBManager(getActivity());
|
|
|
((TextView) (getActivity().findViewById(R.id.tv_actionbar_withback))).setText("出库单");
|
|
|
|
|
@@ -157,6 +161,31 @@ public class IOCOutMakeMaterial extends BaseFragment {
|
|
|
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
|
|
|
mClickPosition = i;
|
|
|
rowClickEvent(i);
|
|
|
+
|
|
|
+// if (dataList.get(i).getPI_INOUTNO().equals("5401-241111110708")) {
|
|
|
+// String originalText = "未按先进先出扫码出库,401-003-0040包材仓存在2024-09-08的条码未出库";
|
|
|
+// SpannableString spannableString = new SpannableString(originalText);
|
|
|
+// // 设置指定范围内文字的颜色
|
|
|
+// ForegroundColorSpan colorSpan = new ForegroundColorSpan(Color.RED);
|
|
|
+// spannableString.setSpan(colorSpan, 28, 38, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
|
|
+// new AlertDialog.Builder(getActivity()).setTitle("提示")
|
|
|
+// .setCancelable(true)
|
|
|
+// .setMessage(spannableString)
|
|
|
+// .setPositiveButton("关闭", new DialogInterface.OnClickListener() {
|
|
|
+// @Override
|
|
|
+// public void onClick(DialogInterface dialog, int which) {
|
|
|
+// dialog.dismiss();
|
|
|
+// }
|
|
|
+// }).show();
|
|
|
+//// .setNegativeButton("否", new DialogInterface.OnClickListener() {
|
|
|
+//// @Override
|
|
|
+//// public void onClick(DialogInterface dialog, int which) {
|
|
|
+//// }
|
|
|
+//// }).show();
|
|
|
+// }else {
|
|
|
+// mClickPosition = i;
|
|
|
+// rowClickEvent(i);
|
|
|
+// }
|
|
|
}
|
|
|
});
|
|
|
listInOut.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
|