How joaooo555/ine_sgrh works
SGRH is an ASP.NET Core MVC human-resources management application backed by Entity Framework Core and SQL Server. The principal evidenced workflow is an authenticated user managing personnel records: the MVC controllers handle requests, HomeController reads and updates employee, contract, document and absence data through AppDbContext, and the context persists it. Other model families indicate recruitment, training, internships, approvals and organizational administration. Authorization checks load profile permissions through AutorizacaoService. Controller excerpts are partial, so links to unsampled capabilities are limited to relationships shown by the source index; no unverified workflow is inferred.
Main entry points: HomeController.cs HR operations · AppDbContext.cs EF data context · AutorizacaoService.cs Authorization service · AdminController.cs User administration
Components 16
Access and identity
- Account access
SGRH/Controllers/AccountController.cs - User administration
SGRH/Controllers/AdminController.cs - Authorization service
SGRH/Services/AutorizacaoService.cs - Permission filters
SGRH/Authorization/VerificarPermissaoAttribute.cs
Personnel management
- Employee records
SGRH/Models/Colaborador.cs - Organizational units
SGRH/Models/UnidadeOrganica.cs - Contracts and history
SGRH/Models/Contrato.cs - Employee documents
SGRH/Models/Documento.cs - HR operations
SGRH/Controllers/HomeController.cs
Workforce processes
- Recruitment
SGRH/Models/Candidatura.cs - Training
SGRH/Models/AccaoFormacao.cs - Internships
SGRH/Models/Estagio.cs - Approval requests
SGRH/Models/PedidoAprovacao.cs
Persistence and infrastructure
- EF data context
SGRH/Data/AppDbContext.cs - SQL Server
Other components
- Staff user
Connections 17
- Staff user → Account access: signs in
- Staff user → HR operations: manages HR
- Account access → EF data context: queries users
SGRH/Controllers/AccountController.cs - User administration → EF data context: manages users
SGRH/Controllers/AdminController.cs - User administration → Authorization service: checks access
SGRH/Controllers/AdminController.cs - Permission filters → Authorization service: checks permissions
SGRH/Authorization/VerificarPermissaoAttribute.cs - HR operations → Authorization service: loads permissions
SGRH/Controllers/HomeController.cs - HR operations → EF data context: reads and writes
SGRH/Controllers/HomeController.cs - EF data context → SQL Server: persists records
- HR operations → Employee records: manages records
SGRH/Controllers/HomeController.cs - HR operations → Contracts and history: manages contracts
SGRH/Controllers/HomeController.cs - HR operations → Employee documents: stores documents
SGRH/Controllers/HomeController.cs - HR operations → Recruitment: handles recruitment
- HR operations → Training: handles training
- HR operations → Internships: registers interns
SGRH/Controllers/HomeController.cs - HR operations → Approval requests: handles approvals
SGRH/Controllers/HomeController.cs - HR operations → Organizational units: uses units
SGRH/Controllers/HomeController.cs