How zhou-air/engineering-workload-tool works
Engineering Workload Tool is an offline Windows desktop app for recording engineering work, calculating rule-based scores, reviewing history, and exporting summaries; SQLite is its authoritative store. The principal workflow is GUI entry → rule calculation and validation → snapshot-backed record persistence → history or export. The graph also preserves master-data administration, special-rule confirmation, database backup, and localization. Source excerpts and the index support the main service relationships; some README-listed UI features are not individually sampled, so their implementation is represented at the main-window level.
Main entry points: database.py Database operations · main_window.py Work entry · record_service.py Record validation and snapshots · main.py Application startup
Components 15
Desktop interface
- Work entry
app/ui/main_window.py - Master-data management
app/ui/main_window.py - History and editing
app/ui/main_window.py - Date selectors
app/ui/date_widgets.py - Chinese UI text
app/i18n.py - Application startup
main.py
Workload processing
- Rule calculation
app/services/calculator.py - Record validation and snapshots
app/services/record_service.py
SQLite persistence
- Database operations
app/database/database.py - Initial dictionaries
app/database/seed.py - SQLite workload database
- Online database backup
app/database/database.py
Review and export
- Export controls
app/ui/main_window.py - Excel and AI export
app/services/export_service.py
Other components
- Desktop user
Connections 19
- Desktop user → Work entry: enters work
README.md - Desktop user → Master-data management: manages dictionaries
README.md - Desktop user → History and editing: reviews records
README.md - Work entry → Date selectors: uses selectors
app/ui/main_window.py - Work entry → Chinese UI text: uses labels
app/ui/main_window.py - Work entry → Rule calculation: previews score
app/ui/main_window.py - Work entry → Record validation and snapshots: saves record
app/ui/main_window.py - Record validation and snapshots → Rule calculation: calculates score
app/services/record_service.py - Record validation and snapshots → Database operations: writes snapshot
app/services/record_service.py - Master-data management → Database operations: manages dictionaries
app/ui/main_window.py - History and editing → Database operations: filters records
app/ui/main_window.py - History and editing → Record validation and snapshots: resaves edits
app/ui/main_window.py - Database operations → SQLite workload database: reads and writes
app/database/database.py - Database operations → Initial dictionaries: loads initial data
app/database/database.py - Export controls → Excel and AI export: requests export
app/ui/main_window.py - Excel and AI export → Database operations: queries records
app/services/export_service.py - Online database backup → SQLite workload database: backs up database
app/database/database.py - Application startup → Database operations: initializes database
main.py - Application startup → Work entry: launches interface
main.py