From f38f086c1ba1257e8353a803ea82d11c23c05d81 Mon Sep 17 00:00:00 2001
From: NXX <447201003@qq>
Date: Sat, 22 Apr 2023 16:23:05 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=99=E4=BB=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/compiler.xml | 2 +-
.idea/deploymentTargetDropDown.xml | 17 --
.idea/misc.xml | 10 +-
app/build.gradle | 1 +
app/src/main/AndroidManifest.xml | 3 +-
.../main/java/com/example/bpa/app/ICSApp.java | 11 ++
.../main/java/com/example/bpa/db/QueryDB.java | 36 +++-
.../com/example/bpa/db/file/DBHelper.java | 88 ++++++++--
.../java/com/example/bpa/db/file/Table.java | 37 +++-
.../com/example/bpa/db/mode/BPA_MATERIAL.java | 4 +
.../bpa/view/adapter/lc_item_adapter.java | 159 ++++++++++++++++++
.../bpa/view/adapter/selectitem_adapter.java | 41 +++++
.../example/bpa/view/dialog/lc_dialog.java | 130 ++++++++++++++
.../example/bpa/view/from/lcsz_activity.java | 135 +++++++++++++--
.../com/example/bpa/view/mode/lcMode.java | 25 +++
app/src/main/res/drawable/lcbg_border.xml | 11 ++
.../res/layout/Dialog/layout/lc_dialog.xml | 48 ++++++
.../layout/datatab/layout/selectitem_item.xml | 40 +++++
.../res/layout/datatab/values/strings.xml | 4 +
.../res/layout/from/layout/activity_lcsz.xml | 39 ++++-
.../main/res/layout/item/layout/lc_item.xml | 67 ++++++++
app/src/main/res/mipmap-xhdpi/dglc.png | Bin 0 -> 3743 bytes
app/src/main/res/values/styles.xml | 11 ++
23 files changed, 856 insertions(+), 63 deletions(-)
delete mode 100644 .idea/deploymentTargetDropDown.xml
create mode 100644 app/src/main/java/com/example/bpa/view/adapter/lc_item_adapter.java
create mode 100644 app/src/main/java/com/example/bpa/view/adapter/selectitem_adapter.java
create mode 100644 app/src/main/java/com/example/bpa/view/dialog/lc_dialog.java
create mode 100644 app/src/main/java/com/example/bpa/view/mode/lcMode.java
create mode 100644 app/src/main/res/drawable/lcbg_border.xml
create mode 100644 app/src/main/res/layout/Dialog/layout/lc_dialog.xml
create mode 100644 app/src/main/res/layout/datatab/layout/selectitem_item.xml
create mode 100644 app/src/main/res/layout/datatab/values/strings.xml
create mode 100644 app/src/main/res/layout/item/layout/lc_item.xml
create mode 100644 app/src/main/res/mipmap-xhdpi/dglc.png
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