feat(access): paridad funcional de verificacion peaton vs conductor y pulsos a barrera/molinete segun desktop pct_view

This commit is contained in:
Carlos Tello
2026-10-14 08:36:35 -03:00
parent d80a4dba74
commit 1f2b029e39
11 changed files with 345 additions and 15 deletions
@@ -40,6 +40,8 @@ class WorkstationService:
es_entrada = True
else:
es_entrada = not bool(m.get("ModuloEntradaID"))
tipo_acc = int(m.get("tipo_acceso_id") or 3)
es_peatonal = tipo_acc in (1, 2, 7)
dto = LaneModuleDTO(
id=m["ModuloID"],
name=nom,
@@ -48,6 +50,9 @@ class WorkstationService:
grupo_modulos=m.get("GrupoModulos"),
es_entrada=es_entrada,
duracion_pulso=m.get("duracion_pulso"),
tipo_acceso_id=tipo_acc,
tipo_acceso_nombre=m.get("tipo_acceso_nombre") or ("Molinete/Puerta" if es_peatonal else "Barrera"),
es_acceso_peatonal=es_peatonal,
)
if es_entrada:
entry_modules.append(dto)