1
0
forked from BRT/arc
Commit Graph

15 Commits

Author SHA1 Message Date
trnsmkot
41b07ef2b5 Refactor device and account data handling, enhance UI.
Introduced a new `NetworkService` for posting account and device data efficiently. Improved the transaction UI with styled tables and added lazy content loading. Changed screenshot handling to return JPEG data directly, and restructured device processing for better error handling and data integration.
2025-05-18 23:42:23 +07:00
trnsmkot
1a6b320540 Fix default timestamp and add card report asset
Corrected the default timestamp value in multiple database schemas to ensure proper functionality and consistent formatting. Added a new asset file for the card report layout to support UI rendering for card transactions.
2025-05-10 19:42:14 +07:00
trnsmkot
688a71c0b2 Update transaction handling with a new history parsing script.
Replaced `PayByPhoneScript` with `GetLastDaysHistoryScript` in `main.cpp`. Introduced enhanced date/time utilities and improved database timestamp handling with `DateUtils`. Refactored `TransactionDAO` methods to separate parsing logic and added support for retrieving recent transactions within specified hours. Added the `GetLastDaysHistoryScript` class to parse and save recent transaction history.
2025-05-09 22:44:29 +07:00
trnsmkot
ededac3152 Refactor scripts to improve modularity and add transaction handling.
Enhanced `CommonScript` and `PayByPhoneScript` functionalities by restructuring functions for better readability and parameterization (e.g., device-specific inputs). Included a new transaction handling process and database updates for tracking payment details and statuses.
2025-05-07 19:16:08 +07:00
trnsmkot
290f89fae4 Add enhanced account and transaction handling features
Refactored code to improve account and transaction data parsing and management, introducing support for additional fields like card numbers and account statuses. Added new utilities for database connections, device-specific screenshot handling, and XML parsing for enriched account and transaction details.
2025-05-07 14:15:08 +07:00
trnsmkot
404ea7705b Add support for transaction types, statuses, and detailed fields
Enhanced `TransactionInfo` with new fields such as type, status, fee, and timestamps. Updated DAO functionality to handle these changes, including insertion, updates, and retrieval methods. Additionally, implemented utility functions for type/status conversion.
2025-05-06 10:28:34 +07:00
trnsmkot
6a83f83ade Expand transactions table schema to include additional fields.
Added new columns such as fee, status, type, phone, name, and timestamps to support enhanced transaction tracking and metadata. Ensured compatibility with existing relationships and constraints, maintaining data integrity.
2025-05-06 10:28:16 +07:00
trnsmkot
f8fa93a6d9 Implement AccountWindow and TransactionWindow for account management
Added AccountWindow to display account tables linked to devices and TransactionWindow for viewing account details. Enhanced DeviceDAO and AccountDAO to support additional filtering and data retrieval functionalities.
2025-04-22 12:22:56 +07:00
trnsmkot
4f5229da0a Add description field to accounts table and related logic
Added a new `description` column to the `accounts` table in the database schema. Updated the model, DAO methods, and queries to handle the `description` field for both inserting and retrieving account data. This change ensures that account entries can now include descriptive information.
2025-04-22 10:18:42 +07:00
trnsmkot
2ac5dcc5e5 Refactor includes and add AccountInfoScreener functionality
Updated include paths for consistent structure under the `db` directory. Added `AccountInfoScreener` for parsing card data using Tesseract OCR and enhanced related models. Removed unused code and simplified main workflow.
2025-04-21 23:12:21 +07:00
trnsmkot
4b6f740d62 Update database and image files
Replaced the app_data.db and img.png files with new versions. These updates likely include important data and visual changes.
2025-04-21 12:01:34 +07:00
trnsmkot
60460751d6 Add database schema and DAO implementation for accounts and transactions
Introduced tables for devices, accounts, and transactions in the schema, along with associated models. Implemented DAO methods for CRUD operations, including upsert functionality for accounts and deduplication for transactions. These changes enable structured management of account and transaction data.
2025-04-21 12:01:24 +07:00
trnsmkot
37c0f69d97 Rename database fields to use consistent snake_case format.
Updated all SQL queries and bindings to replace camelCase field names (e.g., `updateTime`, `lastScan`) with snake_case equivalents (e.g., `update_time`). Ensures uniformity across database schema and codebase.
2025-04-21 12:00:55 +07:00
trnsmkot
9fb9cf0005 Refactor UI and database logic for device management
Replaced `MyWindow` with `MainWindow` featuring dynamic device widgets. Introduced `DeviceInfo`, `DeviceDAO`, and improved database interaction. Added flow layout and refactored image handling for better performance.
2025-04-18 16:39:13 +07:00
trnsmkot
b66f5c2851 Integrate device data management with database access
Added SQLite database support for managing device information and common data. Implemented DAOs for handling device and common data operations, such as inserting/updating devices and tracking the last scan time. Enhanced `DeviceScreener` to read device info, update database records, and take screenshots.
2025-04-17 22:10:11 +07:00