Commit b03bc2cb authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Changement de indicateur

parent 098ae7e5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7,8 +7,8 @@ use Doctrine\Common\Collections\ArrayCollection;

class Indicateur {

    const ENTITY_COMPOSANTE='Composante';
    const ENTITY_ETUDIANT='Etudiant';
    const ENTITY_AGENT = 'Agent';
    const ENTITY_STRUCTURE = 'Structure';

    /** @var integer */
    private $id;
+2 −2
Original line number Diff line number Diff line
@@ -57,8 +57,8 @@ class IndicateurForm extends Form {
                'label' => "Entity associé* :",
                'empty_option' => "Sélectionner une entité ...",
                'value_options' => [
                   Indicateur::ENTITY_COMPOSANTE   => 'Composante',
                   Indicateur::ENTITY_ETUDIANT     => 'Étudiant',
                   Indicateur::ENTITY_AGENT       => 'Agent',
                   Indicateur::ENTITY_STRUCTURE   => 'Structure',
                ]
            ],
            'attributes' => [
+9 −9
Original line number Diff line number Diff line
@@ -185,21 +185,21 @@ class IndicateurService {
        $rawdata = $this->fetch($indicateur);
        $rubriques = [];

        if ($indicateur->getEntity() === Indicateur::ENTITY_COMPOSANTE) {
        if ($indicateur->getEntity() === Indicateur::ENTITY_STRUCTURE) {
            $rubriques = [
            'ID'                    => 'id',
            'Libelle'               => 'libelle',
            'Type'                  => 'type',
            'Code'                  => 'code',
            'Libelle'               => 'libelle_court',
            'Libelle long'          => 'libelle_long',
            'Type'                  => 'type',

            ];
        }
        if ($indicateur->getEntity() === Indicateur::ENTITY_ETUDIANT) {
        if ($indicateur->getEntity() === Indicateur::ENTITY_AGENT) {
            $rubriques = [
                'ID'                    => 'id',
                'ID'                    => 'c_src_individu',
                'SOURCE'                => 'c_source',
                'Prenom'                => 'prenom',
                'Nom'                   => 'nom',
                'Numero étudiant'       => 'numero_etudiant',
                'Identifiant ministériel' => 'identifiant_ministeriel',
                'Nom'                   => 'nom_usage',
            ];
        }