Overview
TheRegistroIndivDoc component manages registration and photo synchronization for teachers and administrative staff with the HikCentral biometric system.
Component Location
Features
- Staff search by ID (cedula)
- Staff type identification (Docente, Administrativo, Trabajador)
- Personal information display
- Photo comparison (SIAD vs HikCentral)
- Facial similarity calculation
- HikCentral registration/update
- Real-time registration status
Usage
Data Properties
Staff Types
The component recognizes four staff types:| Code | Type | Spanish Label |
|---|---|---|
D | Teacher | Docente |
A | Administrative | Administrativo |
T | Worker | Trabajador |
TDO | Technical Teacher | Tecnico Docente |
Key Methods
buscarDocente()
Searches for a staff member and verifies registration:verificarRegistroHC(ci)
Verifies HikCentral registration status:ejecutarComparacion(ci)
Compares photos between systems:registrarEnHikCentral(post)
Registers staff member in HikCentral:UpdateEnHikCentral(post)
Updates staff member’s photo in HikCentral:Helper Methods
getPhotoUrl(ci)
Gets SIAD photo URL:getPhotoUrl2(ci)
Gets HikCentral photo URL:Template Structure
- Search Form
- Staff Type Display
- Photo Comparison
API Endpoints Used
GET /biometrico/getindivDoc/{ci}- Get staff member infoGET /biometrico/getperson/{ci}- Check HikCentral registrationGET /biometrico/compare-hikdoc/{ci}- Compare photosPOST /biometrico/sync-hikcentral/{ci}- Register in HikCentralPOST /biometrico/sync-hikdupdatedoce/{ci}- Update in HikCentralGET /biometrico/fotografiadoc/{ci}- Get SIAD photoGET /biometrico/gethick/{ci}- Get HikCentral photo
Error Handling
The component handles various HikCentral error codes:| Code | Meaning | Action |
|---|---|---|
0 | Success | Display success message |
131 | Already registered | Show warning, update status |
128 | Photo incompatible | Alert user, clear form |