1
0
forked from BRT/arc
Commit Graph

26 Commits

Author SHA1 Message Date
slava
ea986addb7 Daily commit 2025-05-10 12:07:07 +07:00
slava
cd4d6c7e89 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
slava
8a3c1c5196 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
slava
59cef50ad3 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
slava
15a9e788eb Refactor ScreenXmlParser to handle transaction parsing
Enhanced transaction parsing by integrating QDomElement for XML handling and adding functions to parse transaction details, history, and metadata. Replaced raw QString operations with structured data extraction and improved formatting for date, amount, and bank information parsing.
2025-05-06 10:28:46 +07:00
slava
a269de840b 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
slava
1bf701e3f4 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
slava
cab12293aa Add XML test files for card and SPB transaction histories
Introduced two new XML files for testing transaction history pages: `card_test_recive_history.xml` for card operations and `spb_test_send_history.xml` for SPB transactions. These files will support UI testing and
2025-05-06 10:27:14 +07:00
slava
dfbca410c9 - Добавил xml дампы и скрины анализируемых экранов
- Добавил наработки по скрипту оплаты
2025-04-30 22:16:30 +07:00
AmirS
8ae4dbe695 RAZRABOTKA-6 task completed 2025-04-27 18:35:22 +04:00
AmirS
2a75604d79 Auto Payment Script improvements) 2025-04-27 06:16:54 +04:00
AmirS
9f4ae0d726 Script auto starting 2025-04-25 15:42:51 +04:00
AmirS
71500f5023 Script initial 2025-04-24 15:45:44 +04:00
slava
c1b34ce7d7 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
slava
c1b8d0c23c Add menu navigation and cleanup main.cpp code
Introduced a navigation menu with actions "Окно 1" and "Окно 2" in `MainWindow`. Cleaned up commented-out code and adjusted formatting in `main.cpp` for clarity.
2025-04-22 10:18:52 +07:00
slava
92b78c3804 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
slava
b1876bc3b9 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
slava
e76113738e 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
slava
d21e7f4048 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
slava
d56b91425c 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
slava
2ee1e90d1b Add app_data.db to build directory during compilation
Ensures that the app_data.db file is copied to the build directory alongside other resources. This is necessary to guarantee all required files are available for the application to function correctly.
2025-04-18 20:07:03 +07:00
slava
4d9889db46 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
slava
1672216bdc 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
slava
144a784166 Test 2025-04-16 09:05:20 -07:00
slava
504c6629ab Integrate threading and Tesseract OCR functionality
Added a background worker using QThread for device screening and integrated Tesseract OCR for text recognition from images. Refactored project structure, updated CMakeLists for Tesseract support, and adjusted .gitignore for build files.
2025-04-14 13:59:19 +07:00
slava
944e32cfda First 2025-04-10 21:24:56 +07:00