From 1aa979f6e317ebbca096b8318c4fffd6e373363d Mon Sep 17 00:00:00 2001
From: liup <1454939542@qq.com>
Date: Thu, 16 May 2024 16:15:52 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/src/main/AndroidManifest.xml | 16 +-
.../ActivityViewModel/DiyUpdate1Activity.java | 6 +-
.../ActivityViewModel/WelcomeActivity.java | 43 +-
.../bonait/bnframework/business/MainInit.java | 2 +
.../common/db/mode/BPA_GOODSRECIPE.java | 4 +-
.../db/mode/BPA_GOODS_PROCESS_DETAIL.java | 2 +-
.../bnframework/common/db/mode/ModeBase.java | 3 +-
.../common/db/util/AttributeDBUtil.java | 24 ++
.../common/db/util/GoodsClassifyDBUtil.java | 18 +-
.../common/db/util/GoodsDBUtil.java | 26 +-
.../db/util/GoodsProcessDetailDBUtil.java | 30 +-
.../common/db/util/SubAttributeDBUtil.java | 48 ++-
.../db/util/SubAttributeGroupDBUtil.java | 71 ++-
.../manager/ActivityLifecycleManager.java | 17 +-
.../ui/activity/DiyProcessActivity.java | 233 ++++++++++
.../ui/activity/EditClassifyActivity.java | 406 +++++++++++-------
.../ui/activity/EditProcessActivity.java | 9 -
.../adapter/SelectAttributeListAdapter.java | 21 +-
.../ui/dialog/EditGoodsDialog.java | 80 ++--
.../ui/fragment/HomeFoodsFragment.java | 2 +
.../ui/viewmodel/HomeGoodsViewModel.java | 22 +-
.../res/drawable/bg_round50_left_green.xml | 7 +
.../main/res/drawable/bg_round50_red_btn.xml | 2 +-
.../res/drawable/bg_round50_right_green.xml | 7 +
.../res/layout/activity_edit_classify.xml | 28 +-
.../main/res/layout/activity_edit_process.xml | 224 ++++++++++
app/src/main/res/layout/activity_welcome.xml | 66 +--
.../layout/layout_add_goods_mainfood.xml | 68 +--
.../dialog/layout/layout_add_goods_name.xml | 8 +-
.../layout/layout_add_goods_sel_classify.xml | 8 +-
.../dialog/layout/layout_edit_goods_name.xml | 8 +-
.../layout_edit_goods_sub_attribute.xml | 8 +-
.../main/res/layout/fragment_local_goods.xml | 1 +
app/src/main/res/values/styles.xml | 16 +-
34 files changed, 1191 insertions(+), 343 deletions(-)
create mode 100644 app/src/main/java/com/bonait/bnframework/ui/activity/DiyProcessActivity.java
delete mode 100644 app/src/main/java/com/bonait/bnframework/ui/activity/EditProcessActivity.java
create mode 100644 app/src/main/res/drawable/bg_round50_left_green.xml
create mode 100644 app/src/main/res/drawable/bg_round50_right_green.xml
create mode 100644 app/src/main/res/layout/activity_edit_process.xml
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index a17a6516..f3a3ebf6 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -37,6 +37,11 @@
android:name=".ViewModel.ActivityViewModel.DiyUpdate1Activity"
android:screenOrientation="portrait"
android:exported="false" />
+
+
+
-
+
+
+
+
+
+
obj = QueryDB.Get(BPA_GOODS_PROCESS_DETAIL.class, where, args, orderby);
-
- return obj.size() > 0 ? (BPA_GOODS_PROCESS_DETAIL) obj.get(0) : null;
- }
-
/**
* 根据商品属性组合查询旗下的工序列表
*
- * @param name
+ * @param groupId
* @return
*/
- public static ArrayList getByGoodsSubAttributeGroupName(String name) {
+ public static ArrayList getByGroupId(String groupId) {
String orderby = QueryDB.Desc_Sort_Up + ',' + QueryDB.Desc_Time_Up;
- String where = "isDelete=? and goodsSubAttributeGroupId=?";
- String[] args = new String[]{"0", name};
+ String where = "goodsSubAttributeGroupId=?";
+ String[] args = new String[]{"0", groupId};
ArrayList data = new ArrayList<>();
ArrayList