From 5edfd12deb166302708857515a833d1471a0f208 Mon Sep 17 00:00:00 2001 From: zuoxiao <lf_zuo@163.com> Date: 星期三, 25 六月 2025 16:15:23 +0800 Subject: [PATCH] feat(database): 增加管理卡相关功能并优化数据库结构- 新增 ManagerCardBean 数据类用于管理卡信息 - 在 AppDataBase 中添加 ManagerCardDao 接口 - 实现管理卡的数据库迁移策略 - 优化支付方式 ID 类型,从 Long改为 String - 重构更新写卡和上报状态的逻辑,支持管理卡和用户卡 --- qihealonelibrary/src/main/res/layout/activity_admin_setup_qha.xml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 54 insertions(+), 2 deletions(-) diff --git a/qihealonelibrary/src/main/res/layout/activity_admin_setup_qha.xml b/qihealonelibrary/src/main/res/layout/activity_admin_setup_qha.xml index aad804e..bc37b1d 100644 --- a/qihealonelibrary/src/main/res/layout/activity_admin_setup_qha.xml +++ b/qihealonelibrary/src/main/res/layout/activity_admin_setup_qha.xml @@ -28,7 +28,8 @@ <LinearLayout style="@style/newCardLL" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:visibility="gone"> <TextView android:layout_width="0dp" @@ -46,7 +47,6 @@ android:inputType="number" android:lines="1" android:maxLength="5" - android:paddingLeft="10dp" android:textSize="@dimen/new_card_size" /> @@ -81,6 +81,58 @@ </LinearLayout> <LinearLayout + style="@style/newCardLL" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="gone"> + + <TextView + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1.5" + android:text="姘村崟浠�(鍏�/鍚�)" + android:textSize="@dimen/new_card_size" /> + + <EditText + android:id="@+id/admin_waterPrice" + android:layout_width="0dp" + android:layout_height="@dimen/edt_height" + android:layout_weight="2" + android:background="@drawable/editbg" + android:inputType="numberDecimal" + android:lines="1" + android:paddingLeft="10dp" + android:textSize="@dimen/new_card_size" /> + + + </LinearLayout> + <LinearLayout + style="@style/newCardLL" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="visible"> + + <TextView + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1.5" + android:text="鐢靛崟浠�(鍏�/搴�)" + android:textSize="@dimen/new_card_size" /> + + <EditText + android:id="@+id/electric_newNum" + android:layout_width="0dp" + android:layout_height="@dimen/edt_height" + android:layout_weight="2" + android:background="@drawable/editbg" + android:inputType="numberDecimal" + android:lines="1" + android:paddingLeft="10dp" + android:textSize="@dimen/new_card_size" /> + + + </LinearLayout> + <LinearLayout android:id="@+id/chose_address" style="@style/newCardLL" android:layout_width="match_parent" -- Gitblit v1.8.0