Commit c034d98a authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Merge remote-tracking branch 'origin/b20' into b20

parents cd678708 c1a6965f
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -11,6 +11,17 @@



# OSE 20.1 (à venir)

## Nouveautés

* Les jauges des plafonds affichent maintenant tout le temps les heures restantes

## Corrections de bugs

* Les données suplémentaires des indicateurs s'affichent de nouveau correctement



# OSE 20 (fin février 2023)

@@ -149,7 +160,7 @@ A la **ligne 206** Ajouter le titre de colonne TAG dans le tableau $head :

# OSE 19.1 (21/07/2022)

## nouveautés
## Nouveautés

* Formule de calcul de Picardie
* Nouvel état de sortie pour les écarts des heures complémentaires, maintenant personnalisable (#45807)
+2 −0
Original line number Diff line number Diff line
@@ -373,6 +373,8 @@ CREATE OR REPLACE PACKAGE BODY FORMULE_UVSQ AS
        WHEN c = 'AQ' AND v >= 1 THEN
          IF cell('AO17') = 0 THEN
            RETURN (cell('AN',l) - cell('AP',l)) / cell('AE',l);
          ELSE
            RETURN 0;
          END IF;


+1 −1
Original line number Diff line number Diff line
@@ -290,7 +290,7 @@ FROM i
         LEFT JOIN compte ON compte.individu_id = induni.c_individu_chaine
    --On récupére la discipline adaptée directement dans Octopus
         LEFT JOIN cnua cnua ON cnua.individu_id = induni.c_individu_chaine
WHERE i.validite_fin >= (sysdate - (365 * 2))
WHERE i.validite_fin >= (sysdate - (365 * 2)) AND 1 = (CASE WHEN str2.code IS NULL AND i.z_type = 'permanent' AND i.z_statut_id NOT IN ('BIATSS', 'PAMSU') THEN 0 ELSE 1 END )



+57 −38
Original line number Diff line number Diff line
@@ -27,12 +27,14 @@ class SihamConnecteur implements ConnecteurRhInterface
    public Siham $siham;



    public function __construct(Siham $siham)
    {
        $this->siham = $siham;
    }



    public function rechercherIntervenantRh($nomUsuel = '', $prenom = '', $insee = ''): array
    {
        $params = [
@@ -63,6 +65,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?IntervenantRh
    {
        $agent  = null;
@@ -122,6 +125,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererDonneesAdministrativesIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?array
    {
        try {
@@ -156,6 +160,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererAffectationEnCoursIntervenantRh(\Application\Entity\Db\Intervenant $intervenant): ?array
    {
        $affectations           = [];
@@ -182,6 +187,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererContratEnCoursIntervenantRh(Intervenant $intervenant): ?array
    {
        $contrats               = [];
@@ -207,6 +213,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function synchroniserDonneesPersonnellesIntervenantRh(\Application\Entity\Db\Intervenant $intervenant, $datas): bool
    {
        try {
@@ -324,6 +331,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function trouverCodeRhByInsee(\Application\Entity\Db\Intervenant $intervenant): ?string
    {
        $intervenantDossier = $this->getServiceDossier()->getByIntervenant($intervenant);
@@ -346,6 +354,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function prendreEnChargeIntervenantRh(\Application\Entity\Db\Intervenant $intervenant, $datas): ?string
    {
        try {
@@ -368,7 +377,7 @@ class SihamConnecteur implements ConnecteurRhInterface
            ];
            /*CONTRAT*/
            $contrat[] =
                ['dateDebutContrat'  => Util::$dateEffet,
                ['dateDebutContrat'  => $dateEffet,
                 'dateFinContrat'    => $dateFin,
                 'natureContrat'     => 'CO',
                 'typeContrat'       => 'TC01',
@@ -541,6 +550,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function renouvellerIntervenantRH(\Application\Entity\Db\Intervenant $intervenant, $datas): ?string
    {
        try {
@@ -640,6 +650,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function cloreDossier(Intervenant $intervenant): ?bool
    {

@@ -669,6 +680,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererListeUO(): ?array
    {
        /*On récupére les UO avec le type paramétré*/
@@ -693,42 +705,49 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public function recupererListePositions(): ?array
    {
        return $this->siham->recupererListePositions();
    }



    public function recupererListeEmplois(): ?array
    {
        return $this->siham->recupererListeEmplois();
    }



    public function recupererListeStatuts(): ?array
    {
        return $this->siham->recupererListeStatuts();
    }



    public function recupererListeModalites(): ?array
    {
        return $this->siham->recupererListeModalites();
    }



    public function recupererListeContrats(): ?array
    {
        return $this->siham->recupererListeContrats();
    }



    public function getConnecteurName(): string
    {
        return 'siham';
    }



    public function recupererFieldsetConnecteur(): Fieldset
    {
        $fieldset = new SihamFieldset('connecteurForm', []);
@@ -737,6 +756,7 @@ class SihamConnecteur implements ConnecteurRhInterface
    }



    public static function cleanDatas($str, $strict = false, $encoding = 'UTF-8')
    {
        $from = 'ÀÁÂÃÄÅÇÐÈÉÊËÌÍÎÏÒÓÔÕÖØÙÚÛÜŸÑàáâãäåçðèéêëìíîïòóôõöøùúûüÿñ()…,<> /?€%!":’\'+.';
@@ -758,7 +778,6 @@ class SihamConnecteur implements ConnecteurRhInterface
        }

        return $rstr;

    }

}
 No newline at end of file
+19 −20
Original line number Diff line number Diff line
@@ -43,15 +43,26 @@ echo $this->messenger()->addMessagesFromFlashMessenger(); // pour les envois de
            function printValue($value)
            {
                if (is_array($value)) {
                    echo '<ul>';
                    echo '<td><ul>';
                    foreach ($value as $val) {
                        echo '<li>' . $val . '</li>';
                    }
                    echo '</ul>';
                    echo '</ul></td>';
                } elseif ($value) {
                    $dt = DateTime::createFromFormat('Y-m-d H:i:s', $value);
                    if ($dt && $dt->format('Y-m-d H:i:s') === $value) {
                        // C'est une date
                        $dtOrder = $dt->format(\Application\Constants::DATE_SORT);
                        echo '<td data-order="' . $dtOrder . '">';
                        echo $dt->format(\Application\Constants::DATE_FORMAT);
                        echo '</td>';
                    } else {
                        echo '<td>';
                        echo $value;
                        echo '</td>';
                    }
                } else {
                    echo '&nbsp;';
                    echo '<td>&nbsp;</td>';
                }
            }

@@ -81,7 +92,7 @@ echo $this->messenger()->addMessagesFromFlashMessenger(); // pour les envois de
                                                      class="indic-intervenant"/></th>
                            <?php endif; ?>
                            <td style="text-align: center"><?= $r['prioritaire'] ? '<i class="fas fa-star"></i>' : '' ?></td>
                            <td><?php printValue($r['structure-libelle']); ?></td>
                            <?php printValue($r['structure-libelle']); ?>
                            <td>
                                <a href="<?= $this->url($indicateur->getRoute(), ['intervenant' => $intervenantId]) ?>">
                                    <?php
@@ -95,21 +106,9 @@ echo $this->messenger()->addMessagesFromFlashMessenger(); // pour les envois de
                            </td>

                            <?php
                            foreach ($supCols as $supCol):
                                if (!is_array($r[$supCol])) {
                                    $dt = DateTime::createFromFormat('Y-m-d H:i:s', $r[$supCol]);
                                    if ($dt && $dt->format('Y-m-d H:i:s') === $r[$supCol]) {
                                        $dtOrder = $dt->format(\Application\Constants::DATE_SORT); ?>
                                        <td data-order=<?php echo $dtOrder ?>><?php printValue($dt->format(\Application\Constants::DATE_FORMAT)); ?></td>

                                    <?php }
                                } else {
                                    ?>
                                    <td><?php printValue($r[$supCol]); ?></td>

                                <?php }
                                ?>
                            <?php endforeach; ?>
                            foreach ($supCols as $supCol) {
                                printValue($r[$supCol]);
                            } ?>
                        </tr>
                    <?php endforeach; ?>
                    </tbody>
Loading