{% set scoretot = "0" %}
{% for flux in fluxs %}
{% set score = "0" %}
{% if flux.objetmetiers | length > 0 %}{% set score = score + 10 %}{% set scoretot = scoretot + 10 %}{% endif %}
{% if flux.responsable is defined %}{% set score = score + 10 %}{% set scoretot = scoretot + 10 %}{% endif %}
{% if flux.finalite is defined %}{% set score = score + 10 %}{% set scoretot = scoretot + 10 %}{% endif %}
{% if flux.expin | length > 0 or flux.expout | length > 0 %}{% set score = score + 10 %}{% set scoretot = scoretot + 10 %}{% endif %}
{% if flux.destin | length > 0 or flux.destext | length > 0 %}{% set score = score + 10 %}{% set scoretot = scoretot + 10 %}{% endif %}
{% if flux.fluxConnectActivites | length > 0 %}{% set score = score + 10 %}{% set scoretot = scoretot + 10 %}{% endif %}
{% if flux.applications | length > 0 %}{% set score = score + 10 %}{% set scoretot = scoretot + 10 %}{% endif %}
{% if flux.periodicites | length > 0 %}{% set score = score + 5 %}{% set scoretot = scoretot + 5 %}{% endif %}
{% if flux.supports | length > 0 %}{% set score = score + 5 %}{% set scoretot = scoretot + 5 %}{% endif %}
{% if flux.dureeconservation is defined %}{% set score = score + 5 %}{% set scoretot = scoretot + 5 %}{% endif %}
{% if flux.dcpjuridique | length > 0 %}{% set score = score + 5 %}{% set scoretot = scoretot + 5 %}{% endif %}
{% if flux.personneconcerne | length > 0 %}{% set score = score + 5 %}{% set scoretot = scoretot + 5 %}{% endif %}
{% if flux.typetraitementrgpds | length > 0 %}{% set score = score + 5 %}{% set scoretot = scoretot + 5 %}{% endif %}
{% endfor %}
{% set scoretotfull = "0" %}
{% for allflux in allfluxs %}
{% set scorefull = "0" %}
{% if allflux.objetmetiers | length > 0 %}{% set scorefull = scorefull + 10 %}{% set scoretotfull = scoretotfull + 10 %}{% endif %}
{% if allflux.responsable is defined %}{% set scorefull = scorefull + 10 %}{% set scoretotfull = scoretotfull + 10 %}{% endif %}
{% if allflux.finalite is defined %}{% set scorefull = scorefull + 10 %}{% set scoretotfull = scoretotfull + 10 %}{% endif %}
{% if allflux.expin | length > 0 or allflux.expout | length > 0 %}{% set scorefull = scorefull + 10 %}{% set scoretotfull = scoretotfull + 10 %}{% endif %}
{% if allflux.destin | length > 0 or allflux.destext | length > 0 %}{% set scorefull = scorefull + 10 %}{% set scoretotfull = scoretotfull + 10 %}{% endif %}
{% if allflux.fluxConnectActivites | length > 0 %}{% set scorefull = scorefull + 10 %}{% set scoretotfull = scoretotfull + 10 %}{% endif %}
{% if allflux.applications | length > 0 %}{% set scorefull = scorefull + 10 %}{% set scoretotfull = scoretotfull + 10 %}{% endif %}
{% if allflux.periodicites | length > 0 %}{% set scorefull = scorefull + 5 %}{% set scoretotfull = scoretotfull + 5 %}{% endif %}
{% if allflux.supports | length > 0 %}{% set scorefull = scorefull + 5 %}{% set scoretotfull = scoretotfull + 5 %}{% endif %}
{% if allflux.dureeconservation is defined %}{% set scorefull = scorefull + 5 %}{% set scoretotfull = scoretotfull + 5 %}{% endif %}
{% if allflux.dcpjuridique | length > 0 %}{% set scorefull = scorefull + 5 %}{% set scoretotfull = scoretotfull + 5 %}{% endif %}
{% if allflux.personneconcerne | length > 0 %}{% set scorefull = scorefull + 5 %}{% set scoretotfull = scoretotfull + 5 %}{% endif %}
{% if allflux.typetraitementrgpds | length > 0 %}{% set scorefull = scorefull + 5 %}{% set scoretotfull = scoretotfull + 5 %}{% endif %}
{% endfor %}
{% if fluxs | length > 0 %}{% set scoretotgal = scoretot / fluxs | length %}{{ scoretotgal| round | default("0") }} % {% else %}{% set scoretotgal = 0 %}Pas de données{% endif %}
{% if is_granted('ROLE_ADMIN') == false %}({% set scoretotgalfull = scoretotfull / allfluxs | length %}{{ scoretotgalfull| round | default("0") }} %){% endif %}
Evaluation des objets métiers
{% set omrgpd = 0 %}
{% set omrgpdready = 0 %}
{% set omrgpdnok = 0 %}
{% set omrgpdtodo = 0 %}
{% for om in objetmetiers %}
{% if om.dcp.code is defined and om.dcp.code is not null and om.dcp.code=="1" %}
{% set omrgpd = omrgpd + 1 %}
{% endif %}
{% if om.statutrgpd.designation is defined and om.statutrgpd.designation is not null and om.statutrgpd.designation=="Conforme" %}
{% set omrgpdready = omrgpdready + 1 %}
{% endif %}
{% if om.statutrgpd.designation is defined and om.statutrgpd.designation is not null and om.statutrgpd.designation=="Non conforme" %}
{% set omrgpdnok = omrgpdnok + 1 %}
{% endif %}
{% endfor %}
{{ omrgpd | default("0") }}{% if omrgpd == 1 %} objet métier contient des données à caractère personnel.{% else %} objets métiers contiennent des données à caractère personnel.{% endif %}
Conforme
{{ omrgpdready | default("") }}
Non conforme
{{ omrgpdnok | default("") }}
Non évalué
{% set omrgpdtodo = omrgpd - omrgpdready - omrgpdnok %}{{ omrgpdtodo | default("") }}
Evaluation des traitements DCP
{% set fluxrgpd = fluxs | length %}
{% set fluxrgpdready = 0 %}
{% set fluxrgpdnok = 0 %}
{% set fluxrgpdtodo = 0 %}
{% for flux in fluxs if flux.objetmetiers is defined %}
{% if flux.statutrgpd.designation is defined and flux.statutrgpd.designation is not null and flux.statutrgpd.designation=="Conforme" %}
{% set fluxrgpdready = fluxrgpdready + 1 %}
{% endif %}
{% if flux.statutrgpd.designation is defined and flux.statutrgpd.designation is not null and flux.statutrgpd.designation=="Non conforme" %}
{% set fluxrgpdnok = fluxrgpdnok + 1 %}
{% endif %}
{% endfor %}
{{ fluxrgpd | default("0") }}{% if fluxrgpd == 1 %} traitement contient des données à caractère personnel.{% else %} traitements contiennent des données à caractère personnel.{% endif %}
Conforme
{{ fluxrgpdready | default("") }}
Non conforme
{{ fluxrgpdnok | default("") }}
Non évalué
{% set omrgpdtodo = omrgpd - omrgpdready - omrgpdnok %}{{ omrgpdtodo | default("") }}
Liste des traitements comportant des DCP sensibles
{% set handle = [] %}{% set count = 0 %}
{% for flux in fluxs if flux not in handle %}
{% set dcpsensible = "Non" %}
{% for om in flux.objetmetiers if om.dcpsensible.code is defined and om.dcpsensible.code==1 and flux not in handle %}
{% set handle = handle|merge([flux]) %}
{% set dcpsensible = "Oui" %}
{% set count = count + 1 %}
{% if count == 0 %}Il n'y a pas de traitement sensible{% endif %}
{{ flux.designation }}
{% endfor %}
{% endfor %}
Finalités juridiques
Répartition des traitements
Type de traitement
Répartition des traitements
Personnes concernées
Répartition des traitements
Données sensibles
Répartition des traitements
Applications
Répartition des traitements
Diagnostic traitements
Répartition des traitements
{% set fluxmetier = 0 %}
{% set scorefull = 0 %}
{% for metier in metiers %}
{% set scorefull = 0 %}
{% set fluxmetier = 0 %}
{% for processus in metier.processuses %}
{% for activite in processus.activites %}
{% for flux in activite.fluxConnectActivites %}
{% set fluxmetier = fluxmetier + 1 %}
{% if flux.flux.objetmetiers is defined and flux.flux.objetmetiers is not null and flux.flux.objetmetiers | length > 0 %}{% set scorefull = scorefull + 10 %}{% endif %}
{% if flux.flux.responsable is defined %}{% set scorefull = scorefull + 10 %}{% endif %}
{% if flux.flux.finalite is defined %}{% set scorefull = scorefull + 10 %}{% endif %}
{% if flux.flux.expin is defined and flux.flux.expin is not null and flux.flux.expin | length > 0 or flux.flux.expout is defined and flux.flux.expout is not null and flux.flux.expout | length > 0 %}{% set scorefull = scorefull + 10 %}{% endif %}
{% if flux.flux.destin is defined and flux.flux.destin is not null and flux.flux.destin | length > 0 or flux.flux.destext is defined and flux.flux.destext is not null and flux.flux.destext | length > 0 %}{% set scorefull = scorefull + 10 %}{% endif %}
{% if flux.flux.fluxConnectActivites is defined and flux.flux.fluxConnectActivites is not null and flux.flux.fluxConnectActivites | length > 0 %}{% set scorefull = scorefull + 10 %}{% endif %}
{% if flux.flux.applications is defined and flux.flux.applications is not null and flux.flux.applications | length > 0 %}{% set scorefull = scorefull + 10 %}{% endif %}
{% if flux.flux.periodicites is defined and flux.flux.periodicites is not null and flux.flux.periodicites | length > 0 %}{% set scorefull = scorefull + 5 %}{% endif %}
{% if flux.flux.supports is defined and flux.flux.supports is not null and flux.flux.supports | length > 0 %}{% set scorefull = scorefull + 5 %}{% endif %}
{% if flux.flux.dureeconservation is defined and flux.flux.dureeconservation is not null and flux.flux.dureeconservation is defined %}{% set scorefull = scorefull + 5 %}{% endif %}
{% if flux.flux.dcpjuridique is defined and flux.flux.dcpjuridique is not null and flux.flux.dcpjuridique | length > 0 %}{% set scorefull = scorefull + 5 %}{% endif %}
{% if flux.flux.personneconcerne is defined and flux.flux.personneconcerne is not null and flux.flux.personneconcerne | length > 0 %}{% set scorefull = scorefull + 5 %}{% endif %}
{% if flux.flux.typetraitementrgpds is defined and flux.flux.typetraitementrgpds is not null and flux.flux.typetraitementrgpds | length > 0 %}{% set scorefull = scorefull + 5 %}{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
{% if fluxmetier > 0 %}{% set scoretotgal = scorefull / fluxmetier %}
{% set handledTiers = [] %}
{% set handledT = [] %}
{% for om in objetmetiers %}
{% for fluxs in om.fluxes if om.dcp.code is defined and om.dcp.code==1 and fluxs not in handledTiers and fluxs %}
{% for flux in om.fluxes if flux.id == fluxs.id and flux not in handledTiers %}
{% set handledTiers = handledTiers|merge([flux]) %}
{% for expou in flux.expout if expou not in handledT %}
{% set handledT = handledT|merge([expou]) %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% set handledTiers = [] %}
{% for om in objetmetiers %}
{% for fluxs in om.fluxes if om.dcp.code is defined and om.dcp.code==1 and fluxs not in handledTiers and fluxs %}
{% for flux in om.fluxes if flux.id == fluxs.id and flux not in handledTiers %}
{% set handledTiers = handledTiers|merge([flux]) %}
{% for destext in flux.destext if destext not in handledT %}
{% set handledT = handledT|merge([destext]) %}