How cristian-mtzzz/control-de-permisos works
Control de Permisos is an Angular application backed by an ASP.NET Core REST API and Oracle. The main workflow is an employee or administrator signing in, using the permissions panel to view or manage records within their assigned scope, and optionally exporting or printing results. The API enforces access and business rules, with separate stages for permissions, employee/area administration, and work absences. The README documents browser-generated Excel reports and role-specific capabilities; those details are retained, though some frontend implementation paths were not sampled.
Main entry points: permisos.component.ts Permissions panel · OracleRepository.cs Oracle SQL access · PermisosController.cs Permissions endpoints · PermisoService.cs Permission rules
Components 19
Angular application
- Permissions panel
Frontend/src/app/permisos/permisos.component.ts - Login UI
Frontend/src/app/auth/auth.component.ts - Session client
Frontend/src/app/auth/auth.service.ts - Permissions client
Frontend/src/app/permisos/permisos.service.ts - Absence client
Frontend/src/app/permisos/salidas.service.ts - Excel reports
Frontend/src/app/shared/excel-report.ts - Permission print
Frontend/src/app/permisos/permiso-impresion.ts - Memo PDF
Frontend/src/app/permisos/memo-pdf.ts
ASP.NET API
- Auth endpoints
Backend/ControlPermisos.Api/Controllers/AuthController.cs - Permissions endpoints
Backend/ControlPermisos.Api/Controllers/PermisosController.cs - Absence endpoints
Backend/ControlPermisos.Api/Controllers/SalidasController.cs
Domain services
- Authentication
Backend/ControlPermisos.Api/Services/AuthService.cs - Permission rules
Backend/ControlPermisos.Api/Services/PermisoService.cs - Scope and administration
Backend/ControlPermisos.Api/Services/PermisoAreaService.cs - Absence rules
Backend/ControlPermisos.Api/Services/SalidaService.cs - Permission validations
Backend/ControlPermisos.Api/Services/PermisoReglas.cs
Oracle persistence
- Oracle SQL access
Backend/ControlPermisos.Api/Data/OracleRepository.cs - Oracle connection
Backend/ControlPermisos.Api/Data/PermisosDbContext.cs
Other components
- Employee or admin
Connections 20
- Employee or admin → Login UI: signs in
- Login UI → Session client: submits credentials
Frontend/src/app/auth/auth.component.ts - Session client → Auth endpoints: calls login
- Auth endpoints → Authentication: authenticates
Backend/ControlPermisos.Api/Controllers/AuthController.cs - Authentication → Oracle connection: queries users
Backend/ControlPermisos.Api/Services/AuthService.cs - Employee or admin → Permissions panel: uses panel
- Permissions panel → Permissions client: requests records
- Permissions client → Permissions endpoints: calls API
- Permissions endpoints → Permission rules: delegates
Backend/ControlPermisos.Api/Controllers/PermisosController.cs - Permissions endpoints → Scope and administration: checks scope
- Permission rules → Permission validations: applies rules
Backend/ControlPermisos.Api/Services/PermisoService.cs - Permission rules → Oracle SQL access: reads and writes
Backend/ControlPermisos.Api/Services/PermisoService.cs - Scope and administration → Oracle SQL access: reads and writes
Backend/ControlPermisos.Api/Services/PermisoAreaService.cs - Absence client → Absence endpoints: calls API
- Absence endpoints → Absence rules: delegates
Backend/ControlPermisos.Api/Controllers/SalidasController.cs - Absence rules → Oracle SQL access: reads and writes
Backend/ControlPermisos.Api/Services/SalidaService.cs - Oracle SQL access → Oracle connection: uses connection
Backend/ControlPermisos.Api/Data/OracleRepository.cs - Permissions panel → Excel reports: exports reports
- Permissions panel → Permission print: prints permits
- Permissions panel → Memo PDF: creates memos