diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index fb7f4a8..b589d56 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml
deleted file mode 100644
index 46fc865..0000000
--- a/.idea/deploymentTargetDropDown.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index bdd9278..d86e80d 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,10 +1,16 @@
-
-
+
+
+
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index fc50c19..8d29209 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -36,6 +36,7 @@ android {
'src/main/res/layout/from',
'src/main/res/layout/item',
'src/main/res/layout/toast',
+ 'src/main/res/layout/Dialog',
'src/main/res/layout',
'src/main/res'
]
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index ee305eb..e4ceec7 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -17,7 +17,8 @@
tools:targetApi="31">
+ android:exported="false"
+ android:configChanges="keyboard|keyboardHidden"/>
diff --git a/app/src/main/java/com/example/bpa/app/ICSApp.java b/app/src/main/java/com/example/bpa/app/ICSApp.java
index eb488a2..3c24abc 100644
--- a/app/src/main/java/com/example/bpa/app/ICSApp.java
+++ b/app/src/main/java/com/example/bpa/app/ICSApp.java
@@ -7,6 +7,7 @@ import android.util.Log;
import com.example.bpa.config.ConfigName;
import com.example.bpa.db.QueryDB;
import com.example.bpa.db.mode.BPA_MATERIAL;
+import com.example.bpa.db.mode.BPA_SILOS;
import com.example.bpa.db.mode.BPA_USER;
import com.example.bpa.helper.Json;
import com.example.bpa.helper.SdCart;
@@ -51,6 +52,16 @@ public class ICSApp extends Application {
user.exp="管理员";
QueryDB.AddUser(user);
}
+
+ if(QueryDB.GetSilosALL().size() == 0)
+ {
+ for(int i=0;i<10;i++){
+ BPA_SILOS silo=new BPA_SILOS();
+ silo.id=java.util.UUID.randomUUID().toString();
+ silo.num=i+1;
+ QueryDB.AddSilos(silo);
+ }
+ }
}
/**
diff --git a/app/src/main/java/com/example/bpa/db/QueryDB.java b/app/src/main/java/com/example/bpa/db/QueryDB.java
index 4c44a8d..d75a7a0 100644
--- a/app/src/main/java/com/example/bpa/db/QueryDB.java
+++ b/app/src/main/java/com/example/bpa/db/QueryDB.java
@@ -3,6 +3,7 @@ package com.example.bpa.db;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
+import android.util.Log;
import com.example.bpa.config.ConfigName;
import com.example.bpa.db.file.DBHelper;
@@ -104,6 +105,17 @@ public class QueryDB {
return data;
}
+ public static BPA_MATERIAL GetMaterialbyid(String id){
+ String orderby=Desc_Time_Up;//时间
+ String where="isDelete=? and id=?";
+ String[] args=new String[] { "0" ,id};
+ BPA_MATERIAL data=new BPA_MATERIAL();
+ ArrayList