Bladeren bron

升级版本号

songw 2 maanden geleden
bovenliggende
commit
5cebfe0558
2 gewijzigde bestanden met toevoegingen van 36 en 3 verwijderingen
  1. 30 1
      app/src/main/java/com/uas/hy_electronic/fragment/IOCOutMakeMaterial.java
  2. 6 2
      build.gradle

+ 30 - 1
app/src/main/java/com/uas/hy_electronic/fragment/IOCOutMakeMaterial.java

@@ -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() {

+ 6 - 2
build.gradle

@@ -3,6 +3,10 @@
 
 buildscript {
     repositories {
+        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
+        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
+        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
+        maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
         maven { url "https://jitpack.io" }
         mavenCentral()
         google()
@@ -50,8 +54,8 @@ ext {
             targetSdkVersion : 28,
             compileSdkVersion: 28,
             buildToolsVersion: "28.0.3",
-            versionCode      : 28,
-            versionName      : "v1.1.8"
+            versionCode      : 29,
+            versionName      : "v1.1.9"
     ]
 
     depsVersion = [