Commit 6cdd6406 authored by Theo Lecolley's avatar Theo Lecolley
Browse files

#67974 Ajout d'un paramétrage dans les status, afin de pouvoir activer la...

#67974 Ajout d'un paramétrage dans les status, afin de pouvoir activer la visibilité des tags par statut.
parent 3500da18
Loading
Loading
Loading
Loading
Loading
+12
Changes for data/ddl/table/STATUT.php: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1257,6 +1257,18 @@ return [
            'position'    => 99,
            'commentaire' => NULL,
        ],
        'TAG_VISU'                => [
            'name'        => 'TAG_VISU',
            'type'        => 'bool',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 105,
            'commentaire' => NULL,
        ],
    ],
];

+1
Changes for data/ddl_columns_pos.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -1389,6 +1389,7 @@ return [
        'MISSION_INDEMNITEES',
        'PJ_ACTIVE',
        'DOSSIER_SITUATION_MATRIMONIALE',
        'TAG_VISU',
    ],
    'STRUCTURE'                           => [
        'ID',
+1
Changes for module/Intervenant/src/Entity/Db/Mapping/Intervenant.Entity.Db.Statut.dcm.xml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -122,6 +122,7 @@
        <field name="paiementVisualisation" type="boolean" column="PAIEMENT_VISUALISATION" nullable="false"/>
        <field name="motifNonPaiement" type="boolean" column="MOTIF_NON_PAIEMENT" nullable="false"/>
        <field name="formuleVisualisation" type="boolean" column="FORMULE_VISUALISATION" nullable="false"/>
        <field name="tagVisualisation" type="boolean" column="TAG_VISU" nullable="false"/>

        <field name="codesCorresp1" type="string" column="CODES_CORRESP_1" length="1000" nullable="true"/>
        <field name="codesCorresp2" type="string" column="CODES_CORRESP_2" length="1000" nullable="true"/>
+18
Changes for module/Intervenant/src/Entity/Db/Statut.php: 18 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -222,6 +222,8 @@ class Statut implements ParametreEntityInterface, RoleInterface, ResourceInterfa

    private ?string $typePaiePrime = null;

    private bool $tagVisualisation = false;



    public function __toString(): string
@@ -1446,6 +1448,21 @@ class Statut implements ParametreEntityInterface, RoleInterface, ResourceInterfa
        return $this;
    }

    public function getTagVisualisation(): bool
    {
        return $this->tagVisualisation;
    }



    public function setTagVisualisation(bool $tagVisualisation): Statut
    {
        $this->tagVisualisation = $tagVisualisation;

        return $this;
    }




    public function getCodesCorresp1(): ?string
@@ -1915,6 +1932,7 @@ class Statut implements ParametreEntityInterface, RoleInterface, ResourceInterfa
            Privileges::MISSION_OFFRE_EMPLOI_POSTULER              => $this->offreEmploiPostuler,
            Privileges::MISSION_OFFRE_EMPLOI_VISUALISATION         => $this->offreEmploiPostuler,
            Privileges::MISSION_CANDIDATURE_VISUALISATION          => $this->offreEmploiPostuler,
            Privileges::TAG_VISUALISATION                          => $this->tagVisualisation,

        ];

+2 −1
Changes for module/Intervenant/src/Form/StatutSaisieForm.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ class StatutSaisieForm extends AbstractForm
            'codeIndemnitePrime'            => 'Code indémnité primes mission (ex : 0204, 2251 etc...)',
            'typePaiePrime'                 => 'Type ou carte primes mission (ex : 20, P etc...)',
            'missionDecret'                 => 'Decret nécessaire pour postuler',

            'tagVisualisation'              => 'L\'intervenant peut voir les tags sur les lignes de service',
        ];

        $dveElements = [
@@ -574,6 +574,7 @@ class StatutSaisieForm extends AbstractForm
                        ],
                    ]);


        $this->build();
        $this->setAttribute('class', 'statut');

Loading