From bcb7e675e34b97c6b3cae311fef13f770348cee8 Mon Sep 17 00:00:00 2001 From: liup <1454939542@qq.com> Date: Tue, 4 Jun 2024 18:28:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=EF=BC=8C=E8=AE=A2=E5=8D=95=E8=AE=B0=E5=BD=95=EF=BC=9B?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/deploymentTargetSelector.xml | 4 +- app/build.gradle | 4 +- app/src/main/AndroidManifest.xml | 10 + .../bnframework/Model/OrderRecordBean.java | 10 + .../bnframework/Model/ProcessValueUtil.java | 29 ++- .../ActivityViewModel/LoginActivity.java | 18 +- .../ActivityViewModel/WelcomeActivity.java | 4 + .../bonait/bnframework/business/MainInit.java | 18 +- .../bnframework/business/RecordManager.java | 147 +++++++++++ .../bnframework/common/base/BaseActivity.java | 7 + .../common/constant/ConfigName.java | 2 +- .../bonait/bnframework/common/db/QueryDB.java | 35 +++ .../bnframework/common/db/file/DBHelper.java | 4 + .../bnframework/common/db/mode/BPA_LOG.java | 2 + .../common/db/mode/BPA_LOG_RECORD.java | 26 ++ .../common/db/mode/BPA_ORDER_RECORD.java | 29 +++ .../common/db/mode/BPA_SUBORDER_RECORD.java | 33 +++ .../db/util/GoodsProcessDetailDBUtil.java | 15 ++ .../common/db/util/LogRecordUtil.java | 69 ++++++ .../common/db/util/OrderRecordUtil.java | 77 ++++++ .../db/util/SubAttributeGroupDBUtil.java | 21 +- .../common/db/util/SubOrderRecordUtil.java | 77 ++++++ .../common/image/MyBitmapUtils.java | 2 + .../common/image/utils/LocalCacheUtils.java | 3 +- .../ui/activity/CookingActivity.java | 35 ++- .../ui/activity/DiyProcessActivity.java | 14 +- .../ui/activity/EditClassifyActivity.java | 108 ++++++--- .../ui/activity/EditGoodsActivity.java | 4 + .../ui/activity/ErrorInfoActivity.java | 7 + .../ui/activity/LogRecordActivity.java | 202 +++++++++++++++ .../bnframework/ui/activity/MainActivity.java | 18 +- .../ui/activity/OrderRecordActivity.java | 201 +++++++++++++++ .../ui/activity/RecProcessActivity.java | 18 ++ .../ui/activity/SetSeasoningActivity.java | 5 + .../ui/activity/SystemSetActivity.java | 5 + .../ui/adapter/LocalLogAdapter.java | 59 +++++ .../bnframework/ui/adapter/OrderAdapter.java | 55 +++++ .../ui/adapter/SubOrderAdapter.java | 59 +++++ .../ui/adapter/goods/CloudGoodsAdapter.java | 3 +- .../ui/adapter/goods/LocalGoodsAdapter.java | 6 +- .../ui/dialog/DeviceControlDialog.java | 16 ++ .../ui/dialog/EditGoodsDialog.java | 90 +++++-- .../bnframework/ui/dialog/SubOrderDialog.java | 97 ++++++++ .../ui/fragment/HomeDevicesFragment.java | 5 + .../ui/fragment/HomeMainFragment.java | 10 + .../ui/fragment/goods/CloudGoodsFragment.java | 8 +- .../ui/fragment/goods/LocalGoodsFragment.java | 12 +- .../ui/fragment/silos/MaterialFragment.java | 89 ++++++- .../ui/fragment/silos/SilosFragment.java | 7 +- .../ui/viewmodel/HomeGoodsViewModel.java | 26 +- app/src/main/res/drawable/bg_bottom_line.xml | 18 ++ .../main/res/drawable/bg_round25_red_btn.xml | 17 ++ app/src/main/res/layout/activity_cook.xml | 3 +- .../res/layout/activity_edit_classify.xml | 3 +- .../main/res/layout/activity_edit_process.xml | 3 +- .../main/res/layout/activity_error_info.xml | 3 +- app/src/main/res/layout/activity_log.xml | 215 ++++++++++++++++ app/src/main/res/layout/activity_order.xml | 229 ++++++++++++++++++ .../main/res/layout/activity_rec_process.xml | 3 +- .../res/layout/activity_seasoning_set.xml | 118 +++++---- .../main/res/layout/activity_system_set.xml | 5 +- .../dialog/layout/dialog_edit_goods.xml | 2 +- .../layout/dialog/layout/dialog_sub_order.xml | 149 ++++++++++++ .../layout/layout_add_goods_mainfood.xml | 52 ++-- .../layout_edit_goods_sub_attribute.xml | 6 +- .../main/res/layout/fragment_cloud_goods.xml | 2 +- .../main/res/layout/fragment_home_foods.xml | 3 +- .../main/res/layout/fragment_home_main.xml | 71 +++++- .../main/res/layout/fragment_local_goods.xml | 2 +- app/src/main/res/layout/fragment_material.xml | 19 +- .../main/res/layout/item/layout/item_log.xml | 53 ++++ .../res/layout/item/layout/item_order.xml | 74 ++++++ .../main/res/mipmap-xxxhdpi/home_log_ic.png | Bin 0 -> 6422 bytes .../main/res/mipmap-xxxhdpi/home_order_ic.png | Bin 0 -> 3738 bytes app/src/main/res/values/styles.xml | 4 +- build.gradle | 4 +- 76 files changed, 2646 insertions(+), 217 deletions(-) create mode 100644 app/src/main/java/com/bonait/bnframework/Model/OrderRecordBean.java create mode 100644 app/src/main/java/com/bonait/bnframework/business/RecordManager.java create mode 100644 app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_LOG_RECORD.java create mode 100644 app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_ORDER_RECORD.java create mode 100644 app/src/main/java/com/bonait/bnframework/common/db/mode/BPA_SUBORDER_RECORD.java create mode 100644 app/src/main/java/com/bonait/bnframework/common/db/util/LogRecordUtil.java create mode 100644 app/src/main/java/com/bonait/bnframework/common/db/util/OrderRecordUtil.java create mode 100644 app/src/main/java/com/bonait/bnframework/common/db/util/SubOrderRecordUtil.java create mode 100644 app/src/main/java/com/bonait/bnframework/ui/activity/LogRecordActivity.java create mode 100644 app/src/main/java/com/bonait/bnframework/ui/activity/OrderRecordActivity.java create mode 100644 app/src/main/java/com/bonait/bnframework/ui/adapter/LocalLogAdapter.java create mode 100644 app/src/main/java/com/bonait/bnframework/ui/adapter/OrderAdapter.java create mode 100644 app/src/main/java/com/bonait/bnframework/ui/adapter/SubOrderAdapter.java create mode 100644 app/src/main/java/com/bonait/bnframework/ui/dialog/SubOrderDialog.java create mode 100644 app/src/main/res/drawable/bg_bottom_line.xml create mode 100644 app/src/main/res/drawable/bg_round25_red_btn.xml create mode 100644 app/src/main/res/layout/activity_log.xml create mode 100644 app/src/main/res/layout/activity_order.xml create mode 100644 app/src/main/res/layout/dialog/layout/dialog_sub_order.xml create mode 100644 app/src/main/res/layout/item/layout/item_log.xml create mode 100644 app/src/main/res/layout/item/layout/item_order.xml create mode 100644 app/src/main/res/mipmap-xxxhdpi/home_log_ic.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/home_order_ic.png diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index 00759e03..64ff4e0d 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,10 +4,10 @@