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

Ajout du bouton de transmission des documents de soutenance à la direction de thèse

parent ca5c3a27
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ Journal des modifications
-----
- Second dépôt (correction de thèse) : améliorations et nouvelle notification (MDD, BU, DT).
- Fiche Thèse : bouton usurper pour le rôle Président du jury
- Ajout du bouton de transmission des documents de soutenance à la direction de thèse
- [FIX] Module formation : récupération du doctorant via l'utilisateur si aucun n'est fourni
- [FIX] Filtres de recherche réutilisables : nouvelle stratégie de prise en compte ou non des filtres.
- [FIX] Changement des fonctions de récupération des emails dans la partie exportation
+6 −0
Original line number Diff line number Diff line
@@ -12,8 +12,12 @@ use Soutenance\Provider\Privilege\PresoutenancePrivileges;
use Soutenance\Provider\Privilege\PropositionPrivileges;
use Soutenance\Service\Membre\MembreService;
use Soutenance\Service\Membre\MembreServiceFactory;
use Soutenance\Service\Notification\NotificationService;
use Soutenance\Service\Notification\NotificationServiceFactory;
use Soutenance\Service\Notifier\NotifierService;
use Soutenance\Service\Notifier\NotifierServiceFactory;
use Soutenance\Service\Url\UrlService;
use Soutenance\Service\Url\UrlServiceFactory;
use Soutenance\Service\Validation\ValidationService;
use Soutenance\Service\Validation\ValidationServiceFactory;
use UnicaenAuth\Guard\PrivilegeController;
@@ -204,6 +208,8 @@ return array(
            MembreService::class => MembreServiceFactory::class,
            NotifierService::class => NotifierServiceFactory::class,
            ValidationService::class => ValidationServiceFactory::class,
            NotificationService::class => NotificationServiceFactory::class,
            UrlService::class => UrlServiceFactory::class,
        ],
    ],

+14 −2
Original line number Diff line number Diff line
@@ -68,11 +68,10 @@ return [
                        'stopper-demarche',
                        'avis-soutenance',
                        'convocations',
                        'proces-verbal-soutenance',
                        'modifier-adresse',
                        'envoyer-convocation',
                        'rapport-soutenance',
                        'rapport-technique',
                        'transmettre-documents-direction-these',
                    ],
                    'privileges' => PresoutenancePrivileges::PRESOUTENANCE_DATE_RETOUR_MODIFICATION,
                ],
@@ -81,6 +80,8 @@ return [
                    'action' => [
                        'convocation-doctorant',
                        'convocation-membre',
                        'proces-verbal-soutenance',
                        'rapport-soutenance',
                    ],
                    'roles' => [],
                ],
@@ -254,6 +255,17 @@ return [
                                    ],
                                ],
                            ],
                            'transmettre-documents-direction-these' => [
                                'type' => Segment::class,
                                'may_terminate' => true,
                                'options' => [
                                    'route' => '/transmettre-documents-direction-these',
                                    'defaults' => [
                                        'controller' => PresoutenanceController::class,
                                        'action' => 'transmettre-documents-direction-these',
                                    ],
                                ],
                            ],
                            'date-rendu-rapport' => [
                                'type' => Segment::class,
                                'may_terminate' => true,
+14 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ use Soutenance\Service\Exporter\RapportSoutenance\RapportSoutenancePdfExporter;
use Soutenance\Service\Exporter\RapportTechnique\RapportTechniquePdfExporter;
use Soutenance\Service\Justificatif\JustificatifServiceAwareTrait;
use Soutenance\Service\Membre\MembreServiceAwareTrait;
use Soutenance\Service\Notification\NotificationServiceAwareTrait;
use Soutenance\Service\Notifier\NotifierServiceAwareTrait;
use Soutenance\Service\Parametre\ParametreServiceAwareTrait;
use Soutenance\Service\Proposition\PropositionServiceAwareTrait;
@@ -75,6 +76,7 @@ class PresoutenanceController extends AbstractController
    use TokenServiceAwareTrait;
    use SourceServiceAwareTrait;
    use FichierStorageServiceAwareTrait;
    use NotificationServiceAwareTrait;

    use DateRenduRapportFormAwareTrait;
    use AdresseSoutenanceFormAwareTrait;
@@ -655,6 +657,18 @@ class PresoutenanceController extends AbstractController
        exit();
    }

    public function transmettreDocumentsDirectionTheseAction() : Response
    {
        $these = $this->requestedThese();
        $proposition = $this->getPropositionService()->findOneForThese($these);

        $this->getNotificationService()->triggerTransmettreDocumentsDirectionThese($these, $proposition);

        return $this->redirect()->toRoute('soutenance/presoutenance', ['these' => $these->getId()], [], true);
    }

    /** SIMULATION DE JURY ********************************************************************************************/

    public function genererSimulationAction() : Response
    {
        $these = $this->requestedThese();
+4 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ namespace Soutenance\Controller;

use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Soutenance\Service\Notification\NotificationService;
use These\Service\Acteur\ActeurService;
use Fichier\Service\Fichier\FichierService;
use Fichier\Service\Fichier\FichierStorageService;
@@ -61,6 +62,7 @@ class PresoutenanceControllerFactory
         * @var SourceService $sourceService
         * @var JustificatifService $justificatifService
         * @var FichierStorageService $fichierStorageService
         * @var NotificationService $notificationService
         */
        $evenementService = $container->get(EvenementService::class);
        $propositionService = $container->get(PropositionService::class);
@@ -82,6 +84,7 @@ class PresoutenanceControllerFactory
        $sourceService = $container->get(SourceService::class);
        $justificatifService = $container->get(JustificatifService::class);
        $fichierStorageService = $container->get(FichierStorageService::class);
        $notificationService = $container->get(NotificationService::class);

        /**
         * @var DateRenduRapportForm $dateRenduRapportForm
@@ -114,6 +117,7 @@ class PresoutenanceControllerFactory
        $controller->setTokenService($tokenService);
        $controller->setJustificatifService($justificatifService);
        $controller->setFichierStorageService($fichierStorageService);
        $controller->setNotificationService($notificationService);

        $controller->setDateRenduRapportForm($dateRenduRapportForm);
        $controller->setAdresseSoutenanceForm($adresseSoutenanceForm);
Loading