How pt131923/qlns-nh-m-11 works
This is an Angular client and ASP.NET API for internal HR management. The principal workflow is staff using the client to manage workforce records and HR operations through API controllers backed by MongoDB; payroll and dashboard services provide additional processing and summaries. The tree shows broad employee, department, contract, salary, attendance, leave, recruitment, training, contact, and user capabilities. Source excerpts verify only selected backend interactions, so unverified client-to-API wiring is not drawn.
Main entry points: app.module.ts Application shell · EmployeesController.cs Employee endpoints · PayrollService.cs Payroll service · DashboardService.cs Dashboard aggregation
Components 19
Angular client
- Application shell
client/src/app/app.module.ts - Dashboard view
client/src/app/dashboard/dashboard.component.ts - HR workflows
client/src/app - Sign-in and registration
client/src/app/User/user
HR API
- Employee endpoints
API/Controllers/EmployeesController.cs - User endpoints
API/Controllers/UsersController.cs - HR domain endpoints
API/Controllers - Salary endpoints
API/Controllers/SalariesController.cs - Dashboard endpoint
API/Controllers/DashboardController.cs
Domain services
- Payroll service
API/Services/PayrollService.cs - Payroll calculator
API/Services/PayrollCalculator.cs - Dashboard aggregation
API/Services/DashboardService.cs - Database initialization
API/Services/MongoBootstrapHostedService.cs - Dashboard hub
API/Entities/DashboardHub.cs
Persistence and models
- Employee repository
API/Data/EmployeeRepository.cs - HR repositories
API/Data - HR data models
API/Entities
Other components
- HR staff
- MongoDB
Connections 12
- HR staff → Application shell: uses
- Application shell → Dashboard view: declares
client/src/app/app.module.ts - Application shell → HR workflows: declares
client/src/app/app.module.ts - Application shell → Sign-in and registration: routes to
client/src/app/User/user/user-routing.module.ts - Employee endpoints → Employee repository: queries
API/Controllers/EmployeesController.cs - Employee endpoints → MongoDB: queries
API/Controllers/EmployeesController.cs - Payroll service → Payroll calculator: calculates with
API/Services/PayrollService.cs - Payroll service → MongoDB: reads and writes
API/Services/PayrollService.cs - Dashboard aggregation → MongoDB: aggregates
API/Services/DashboardService.cs - Dashboard aggregation → Dashboard hub: broadcasts through
API/Services/DashboardService.cs - Database initialization → MongoDB: seeds and indexes
API/Services/MongoBootstrapHostedService.cs - HR data models → HR data models: models relations