How mohamedabdelnabi1/hr_system works
This is a small PyQt desktop HR application for viewing, filtering, adding, and deleting departments and employees, with visible employee-table export to CSV. Its runtime flow starts in the controller, which builds the window, loads model data, and handles UI actions; the models perform SQLite access. The tree includes separate add-dialog forms. The README is empty, so capabilities are limited to those shown in the sampled source; no additional integrations are inferred.
Main entry points: main.py Window controller · department.py Department records · employee.py Employee records · main_window.py HR main form
Components 9
Desktop interface
- Window controller
controller/main.py - HR main form
view/main_window.py - Add department form
view/add_dept.ui - Add employee form
view/add_emp.ui
HR records
- Department records
model/department.py - Employee records
model/employee.py
Persistence and export
- HR SQLite database
- CSV export file
Other components
- HR user
Connections 12
- HR user → Window controller: uses
controller/main.py - Window controller → HR main form: sets up
controller/main.py - HR main form → Window controller: dispatches actions
controller/main.py - Window controller → Department records: loads records
controller/main.py - Window controller → Employee records: loads records
controller/main.py - Window controller → Add department form: loads form
controller/main.py - Window controller → Add employee form: loads form
controller/main.py - Window controller → Department records: saves or deletes
controller/main.py - Window controller → Employee records: saves or deletes
controller/main.py - Department records → HR SQLite database: reads and writes
model/department.py - Employee records → HR SQLite database: reads and writes
model/employee.py - Window controller → CSV export file: writes visible rows
controller/main.py