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

Suppression code etablissement pour la recherche agent et permettre...

Suppression code etablissement pour la recherche agent et permettre l'affichage d'un code UO a plus de 3 Chiffres
parent 716a6ecd
Loading
Loading
Loading
Loading
Loading
+79 −44
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ class Siham
    protected $result;



    public function __construct(SihamClient $sihamClient, array $config)
    {
        $this->sihamClient                              = $sihamClient;
@@ -89,18 +90,21 @@ class Siham
    }



    public function getClient(): SihamClient
    {
        return $this->sihamClient;
    }



    public function getConfig(): array
    {
        return $this->sihamConfig;
    }



    /**
     * Méthode permettant de rechercher une liste d'agent par nom, prénom etc...
     * Possibilité d'utiliser le joker '?' pour faire des recherches
@@ -154,6 +158,7 @@ class Siham
    }



    /**
     * Méthode permettant de récuperer une liste d'agent avec des critères de recherches supplémentaire : nom, prénom, numero INSEE
     * et date d'observation
@@ -229,6 +234,7 @@ class Siham
    }



    /**
     *
     * Méthode permettant de récupérer les données personnelles d'un agent (Adresse, téléphone, email etc...)
@@ -273,6 +279,7 @@ class Siham
    }



    /**
     *
     * Méthode permettant de récupérer les données administrative d'un agent (Affectation, carrière, contrat etc...)
@@ -314,6 +321,7 @@ class Siham
    }



    /**
     *
     * Méthode permettant de modifier ou créer l'adresse principale d'un agent dans SIHAM
@@ -369,6 +377,7 @@ class Siham
    }



    /**
     *
     * Méthode permettant d'historiser (soft delete) l'adresse d'un agent dans SIHAM
@@ -434,6 +443,7 @@ class Siham
    }



    /**
     *
     * Méthode permettant de modifier ou créer un téléphone (pro, perso) ou un email (pro, perso) d'un agent dans SIHAM
@@ -487,6 +497,7 @@ class Siham
    }



    /**
     *
     * Méthode permettant d'historiser (soft delete) un téléphone (pro, perso) ou un email (pro, perso) d'un agent dans SIHAM
@@ -554,6 +565,7 @@ class Siham
    }



    public function modifierCoordonnéesBancairesAgent(array $params): bool
    {
        $paramsWS = ['ParamMCB' => [
@@ -587,6 +599,7 @@ class Siham
    }



    /**
     *
     * Méthode permettant la prise en charge (création d'un agent) dans SIHAM. Retour le matricule de l'agent SIHAM qui vient d'être créé.
@@ -875,6 +888,7 @@ class Siham
    }



    /**
     *
     * Méthode permettant le renouvellement d'un agent existant dans SIHAM. Retour le matricule de l'agent SIHAM qui vient d'être créé.
@@ -1016,10 +1030,12 @@ class Siham
            $this->sendDebug('WS PECWebService / METHOD RenouvellementAgent', $exception);
            throw $exception;
        }

        return null;
    }



    public function cloreDossier(array $params): bool
    {

@@ -1044,6 +1060,7 @@ class Siham
    }



    /**
     *
     * Méthode permettant de récupérer les valeurs d'une nomenclature (code répertoire) de SIHAM
@@ -1090,6 +1107,7 @@ class Siham
    }



    public function recupererListeStatuts($from = '')
    {
        if (!empty($this->sihamConfig['filters'][$this->codeNomenclatureStatuts])) {
@@ -1104,6 +1122,7 @@ class Siham
    }



    public function recupererListeGrades($from = '')
    {
        $params = [
@@ -1116,6 +1135,7 @@ class Siham
    }



    public function recupererListeModalites($from = '')
    {
        if (!empty($this->sihamConfig['filters'][$this->codeNomenclatureModalites])) {
@@ -1132,6 +1152,7 @@ class Siham
    }



    public function recupererListePositions($from = '')
    {
        if (!empty($this->sihamConfig['filters'][$this->codeNomenclaturePositions])) {
@@ -1148,6 +1169,7 @@ class Siham
    }



    public function recupererListeEmplois()
    {
        if (!empty($this->sihamConfig['filters']['emplois'])) {
@@ -1158,6 +1180,7 @@ class Siham
    }



    public function recupererListeCorps($from = '')
    {
        $params = [
@@ -1170,6 +1193,7 @@ class Siham
    }



    public function recupererListeSectionsCnu($from = '')
    {
        $params = [
@@ -1182,6 +1206,7 @@ class Siham
    }



    public function recupererListeContrats($from = '')
    {
        $params = [
@@ -1194,6 +1219,7 @@ class Siham
    }



    public function recupererListeFamillesProfessionnelles($from = '')
    {
        $params = [
@@ -1206,6 +1232,7 @@ class Siham
    }



    public function recupererListeCategories($from = '')
    {
        $params = [
@@ -1218,6 +1245,7 @@ class Siham
    }



    public function recupererListeEchelons($from = '')
    {
        $params = [
@@ -1230,6 +1258,7 @@ class Siham
    }



    public function recupererListeAdminsitrations($from = '')
    {
        $params = [
@@ -1242,6 +1271,7 @@ class Siham
    }



    public function recupererListeEtablissements($from = '')
    {
        $params = [
@@ -1254,6 +1284,7 @@ class Siham
    }



    public function recupererListeUO(array $params)
    {
        //Traitement des listes unité organisationnelle
@@ -1291,7 +1322,7 @@ class Siham
            if (isset($result->return)) {
                $unitesOrganisationnelles = [];
                foreach ($result->return as $value) {
                    $unitesOrganisationnelles[$value->codeUO] = substr($value->codeUO, 0, 3) . ' ' . $value->libCourtUO;
                    $unitesOrganisationnelles[$value->codeUO] = $value->codeUO . ' ' . $value->libCourtUO;
                }
                //Supprimer une composante de la liste
                if (!empty($this->sihamConfig['unites-organisationelles']['excludes'])) {
@@ -1321,6 +1352,7 @@ class Siham
    }



    public function formatCoordoonneesBancairesForSiham($iban, $bic)
    {
        //On récupére l'iban et on doit le décompser pour récupérer les informations nécessaire à SIHAM
@@ -1339,18 +1371,21 @@ class Siham
    }



    public function getCodeEtablissement()
    {
        return $this->codeEtablissement;
    }



    public function getCodeAdministration()
    {
        return $this->codeAdministration;
    }



    public function sendDebug($message = '', $exception = null)
    {
        $config = $this->sihamConfig;