Loading module/Structure/config/merged/structure.config.php −13 Changes for module/Structure/config/merged/structure.config.php: 0 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -77,7 +77,6 @@ return [ [ 'controller' => StructureController::class, 'action' => [ 'afficher', 'description', 'agents', 'missions-specifiques', Loading Loading @@ -160,18 +159,6 @@ return [ 'may_terminate' => true, 'child_routes' => [], ], 'afficher' => [ 'type' => Segment::class, 'options' => [ 'route' => '/afficher/:structure', 'defaults' => [ 'controller' => StructureController::class, 'action' => 'afficher', ], ], 'may_terminate' => true, 'child_routes' => [], ], 'description' => [ 'type' => Segment::class, 'options' => [ Loading module/Structure/src/Structure/Controller/StructureController.php −75 Changes for module/Structure/src/Structure/Controller/StructureController.php: 0 added lines, 75 removed lines. Original line number Diff line number Diff line Loading @@ -73,81 +73,6 @@ class StructureController extends AbstractActionController { ]); } public function afficherAction() : ViewModel { $role = $this->getUserService()->getConnectedRole(); $utilisateur = $this->getUserService()->getConnectedUser(); $selecteur = $this->getStructureService()->getStructuresByCurrentRole($utilisateur, $role); /** Récupération des structures */ $structure = $this->getStructureService()->getRequestedStructure($this); $structures = $this->getStructureService()->getStructuresFilles($structure); $structures[] = $structure; /** Récupération des missions spécifiques liées aux structures */ $missionsSpecifiques = $this->getAgentMissionSpecifiqueService()->getAgentMissionsSpecifiquesByStructures($structures, false); /** Récupération des agents et postes liés aux structures */ $agents = $this->getAgentService()->getAgentsByStructures($structures); $agentsForces = $this->getStructureService()->getAgentsForces($structure); $agentsForces = array_map(function (StructureAgentForce $a) { return $a->getAgent(); }, $agentsForces); $allAgents = array_merge($agents, $agentsForces); usort($allAgents, function (Agent $a, Agent $b) { $aaa = $a->getNomUsuel() . " ". $a->getPrenom(); $bbb = $b->getNomUsuel() . " ". $b->getPrenom(); return $aaa > $bbb;}); $fichespostes_pdf = $this->getAgentService()->getFichesPostesPdfByAgents($allAgents); /** Campagne d'entretien professionnel ************************************************************************/ $last = $this->getCampagneService()->getLastCampagne(); $campagnes = $this->getCampagneService()->getCampagnesActives(); $campagnes[] = $last; usort($campagnes, function (Campagne $a, Campagne $b) { return $a->getDateDebut() > $b->getDateDebut();}); $allAgents = []; $entretiensArray = []; $agentsArray = []; foreach ($campagnes as $campagne) { $agentsCampagne = $this->getCampagneService()->computeAgentByStructures($structures, $campagne); $agentsArray[$campagne->getId()] = $agentsCampagne; foreach ($agentsCampagne as $agent) { $allAgents[$agent->getId()] = $agent;} $entretiensArray[$campagne->getId()] = $this->getEntretienProfessionnelService()->getEntretienProfessionnelByCampagneAndAgents($campagne, $agentsArray[$campagne->getId()]); } $allAgentsAffectations = []; foreach ($allAgents as $id => $agent) { $allAgentsAffectations[$id] = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent, false, true); } return new ViewModel([ 'selecteur' => $selecteur, 'structure' => $structure, 'responsables' => $this->getStructureService()->getResponsables($structure, new DateTime()), 'gestionnaires' => $this->getStructureService()->getGestionnaires($structure, new DateTime()), 'filles' => $structure->getEnfants(), 'missions' => $missionsSpecifiques, 'fichespostes' => $this->getFichePosteService()->getFichesPostesbyAgents($allAgents), 'fichespostes_pdf' => $fichespostes_pdf, 'fichePosteEtats' => $this->getEtatService()->getEtatsByTypeCode(FichePosteEtats::TYPE), 'agents' => $agents, 'agentsForces' => $agentsForces, 'agentsAll' => $allAgents, 'allAgentsAffectations' => $allAgentsAffectations, // Partie -- Entretiens Professionnels -- 'campagnes' => $campagnes, 'agentsArray' => $agentsArray, 'entretiensArray' => $entretiensArray, 'emailAssistance' => $this->getParametreService()->getValeurForParametre(GlobalParametres::TYPE, GlobalParametres::EMAIL_ASSISTANCE), // - Fiches de recrutement - // // 'fichesRecrutements' => $fichesRecrutements, // 'profils' => $profils, ]); } public function descriptionAction() : ViewModel { $role = $this->getUserService()->getConnectedRole(); Loading module/Structure/view/structure/structure/afficher.phtml −266 File deleted. Show changes module/Structure/view/structure/structure/partial/campagne.phtml −268 File deleted.Preview size limit exceeded, changes collapsed. Show changes module/Structure/view/structure/structure/partial/extraction.phtml −55 File deleted. Show changes Loading
module/Structure/config/merged/structure.config.php −13 Changes for module/Structure/config/merged/structure.config.php: 0 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -77,7 +77,6 @@ return [ [ 'controller' => StructureController::class, 'action' => [ 'afficher', 'description', 'agents', 'missions-specifiques', Loading Loading @@ -160,18 +159,6 @@ return [ 'may_terminate' => true, 'child_routes' => [], ], 'afficher' => [ 'type' => Segment::class, 'options' => [ 'route' => '/afficher/:structure', 'defaults' => [ 'controller' => StructureController::class, 'action' => 'afficher', ], ], 'may_terminate' => true, 'child_routes' => [], ], 'description' => [ 'type' => Segment::class, 'options' => [ Loading
module/Structure/src/Structure/Controller/StructureController.php −75 Changes for module/Structure/src/Structure/Controller/StructureController.php: 0 added lines, 75 removed lines. Original line number Diff line number Diff line Loading @@ -73,81 +73,6 @@ class StructureController extends AbstractActionController { ]); } public function afficherAction() : ViewModel { $role = $this->getUserService()->getConnectedRole(); $utilisateur = $this->getUserService()->getConnectedUser(); $selecteur = $this->getStructureService()->getStructuresByCurrentRole($utilisateur, $role); /** Récupération des structures */ $structure = $this->getStructureService()->getRequestedStructure($this); $structures = $this->getStructureService()->getStructuresFilles($structure); $structures[] = $structure; /** Récupération des missions spécifiques liées aux structures */ $missionsSpecifiques = $this->getAgentMissionSpecifiqueService()->getAgentMissionsSpecifiquesByStructures($structures, false); /** Récupération des agents et postes liés aux structures */ $agents = $this->getAgentService()->getAgentsByStructures($structures); $agentsForces = $this->getStructureService()->getAgentsForces($structure); $agentsForces = array_map(function (StructureAgentForce $a) { return $a->getAgent(); }, $agentsForces); $allAgents = array_merge($agents, $agentsForces); usort($allAgents, function (Agent $a, Agent $b) { $aaa = $a->getNomUsuel() . " ". $a->getPrenom(); $bbb = $b->getNomUsuel() . " ". $b->getPrenom(); return $aaa > $bbb;}); $fichespostes_pdf = $this->getAgentService()->getFichesPostesPdfByAgents($allAgents); /** Campagne d'entretien professionnel ************************************************************************/ $last = $this->getCampagneService()->getLastCampagne(); $campagnes = $this->getCampagneService()->getCampagnesActives(); $campagnes[] = $last; usort($campagnes, function (Campagne $a, Campagne $b) { return $a->getDateDebut() > $b->getDateDebut();}); $allAgents = []; $entretiensArray = []; $agentsArray = []; foreach ($campagnes as $campagne) { $agentsCampagne = $this->getCampagneService()->computeAgentByStructures($structures, $campagne); $agentsArray[$campagne->getId()] = $agentsCampagne; foreach ($agentsCampagne as $agent) { $allAgents[$agent->getId()] = $agent;} $entretiensArray[$campagne->getId()] = $this->getEntretienProfessionnelService()->getEntretienProfessionnelByCampagneAndAgents($campagne, $agentsArray[$campagne->getId()]); } $allAgentsAffectations = []; foreach ($allAgents as $id => $agent) { $allAgentsAffectations[$id] = $this->getAgentAffectationService()->getAgentAffectationsByAgent($agent, false, true); } return new ViewModel([ 'selecteur' => $selecteur, 'structure' => $structure, 'responsables' => $this->getStructureService()->getResponsables($structure, new DateTime()), 'gestionnaires' => $this->getStructureService()->getGestionnaires($structure, new DateTime()), 'filles' => $structure->getEnfants(), 'missions' => $missionsSpecifiques, 'fichespostes' => $this->getFichePosteService()->getFichesPostesbyAgents($allAgents), 'fichespostes_pdf' => $fichespostes_pdf, 'fichePosteEtats' => $this->getEtatService()->getEtatsByTypeCode(FichePosteEtats::TYPE), 'agents' => $agents, 'agentsForces' => $agentsForces, 'agentsAll' => $allAgents, 'allAgentsAffectations' => $allAgentsAffectations, // Partie -- Entretiens Professionnels -- 'campagnes' => $campagnes, 'agentsArray' => $agentsArray, 'entretiensArray' => $entretiensArray, 'emailAssistance' => $this->getParametreService()->getValeurForParametre(GlobalParametres::TYPE, GlobalParametres::EMAIL_ASSISTANCE), // - Fiches de recrutement - // // 'fichesRecrutements' => $fichesRecrutements, // 'profils' => $profils, ]); } public function descriptionAction() : ViewModel { $role = $this->getUserService()->getConnectedRole(); Loading
module/Structure/view/structure/structure/partial/campagne.phtml −268 File deleted.Preview size limit exceeded, changes collapsed. Show changes