Loading data/parametres.php +6 −0 Original line number Diff line number Diff line Loading @@ -70,6 +70,12 @@ return [ "DESCRIPTION" => "État de sortie pour les états de paiement", "QUERY" => 'SELECT id valeur FROM etat_sortie WHERE code = :valeur', ], Parametre::ES_EXPORT_FORMATION => [ "VALEUR" => "export-offre-formation", "DESCRIPTION" => "État de sortie pour l'export offre de formation", "QUERY" => 'SELECT id valeur FROM etat_sortie WHERE code = :valeur', ], /* Divers */ Loading module/Application/src/Entity/Db/Parametre.php +1 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ class Parametre implements HistoriqueAwareInterface const ES_SERVICES_PDF = 'es_services_pdf'; const ES_SERVICES_CSV = 'es_services_csv'; const ES_ETAT_PAIEMENT = 'es_etat_paiement'; const ES_EXPORT_FORMATION = 'es_export_formation'; /* Divers */ Loading module/Application/src/Form/ParametresForm.php +13 −0 Original line number Diff line number Diff line Loading @@ -369,6 +369,19 @@ class ParametresForm extends AbstractForm ], ]); $this->add([ 'type' => 'Select', 'name' => 'es_export_formation', 'options' => [ 'value_options' => Util::collectionAsOptions($this->getServiceEtatSortie()->getList()), 'label' => 'État de sortie pour l\'export de l\'offre de formation', ], 'attributes' => [ 'class' => 'selectpicker', 'data-live-search' => 'true', ], ]); $this->add([ 'type' => 'Select', 'name' => 'scenario_charges_services', Loading module/Application/view/application/parametre/generaux.phtml +3 −0 Original line number Diff line number Diff line Loading @@ -80,6 +80,9 @@ <div class="col-md-6"> <?= $this->formControlGroup($form->get('es_extraction_indemnites')); ?> </div> <div class="col-md-6"> <?= $this->formControlGroup($form->get('es_export_formation')); ?> </div> </div> </div> </div> Loading module/OffreFormation/src/Service/OffreFormationService.php +2 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ use Application\Service\Traits\AnneeServiceAwareTrait; use Application\Service\Traits\ContextServiceAwareTrait; use Application\Service\Traits\EtatSortieServiceAwareTrait; use Application\Service\Traits\LocalContextServiceAwareTrait; use Application\Service\Traits\ParametresServiceAwareTrait; use Application\Service\Traits\SourceServiceAwareTrait; use Lieu\Entity\Db\Structure; use OffreFormation\Entity\Db\CheminPedagogique; Loading Loading @@ -298,7 +299,7 @@ class OffreFormationService extends AbstractEntityService public function generateCsvExport(?Structure $structure, ?NiveauEtape $niveau, ?Etape $etape): CsvModel { /* Préparation et affichage */ $etatSortie = $this->getServiceEtatSortie()->getRepo()->findOneBy(['code' => 'export-offre-formation']); $etatSortie = $this->getServiceEtatSortie()->getByParametre('es_export_formation'); $annee = $this->getServiceContext()->getAnnee()->getId(); $fileName = 'Export-offre-formation - ' . date('dmY') . '.csv'; Loading Loading
data/parametres.php +6 −0 Original line number Diff line number Diff line Loading @@ -70,6 +70,12 @@ return [ "DESCRIPTION" => "État de sortie pour les états de paiement", "QUERY" => 'SELECT id valeur FROM etat_sortie WHERE code = :valeur', ], Parametre::ES_EXPORT_FORMATION => [ "VALEUR" => "export-offre-formation", "DESCRIPTION" => "État de sortie pour l'export offre de formation", "QUERY" => 'SELECT id valeur FROM etat_sortie WHERE code = :valeur', ], /* Divers */ Loading
module/Application/src/Entity/Db/Parametre.php +1 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ class Parametre implements HistoriqueAwareInterface const ES_SERVICES_PDF = 'es_services_pdf'; const ES_SERVICES_CSV = 'es_services_csv'; const ES_ETAT_PAIEMENT = 'es_etat_paiement'; const ES_EXPORT_FORMATION = 'es_export_formation'; /* Divers */ Loading
module/Application/src/Form/ParametresForm.php +13 −0 Original line number Diff line number Diff line Loading @@ -369,6 +369,19 @@ class ParametresForm extends AbstractForm ], ]); $this->add([ 'type' => 'Select', 'name' => 'es_export_formation', 'options' => [ 'value_options' => Util::collectionAsOptions($this->getServiceEtatSortie()->getList()), 'label' => 'État de sortie pour l\'export de l\'offre de formation', ], 'attributes' => [ 'class' => 'selectpicker', 'data-live-search' => 'true', ], ]); $this->add([ 'type' => 'Select', 'name' => 'scenario_charges_services', Loading
module/Application/view/application/parametre/generaux.phtml +3 −0 Original line number Diff line number Diff line Loading @@ -80,6 +80,9 @@ <div class="col-md-6"> <?= $this->formControlGroup($form->get('es_extraction_indemnites')); ?> </div> <div class="col-md-6"> <?= $this->formControlGroup($form->get('es_export_formation')); ?> </div> </div> </div> </div> Loading
module/OffreFormation/src/Service/OffreFormationService.php +2 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ use Application\Service\Traits\AnneeServiceAwareTrait; use Application\Service\Traits\ContextServiceAwareTrait; use Application\Service\Traits\EtatSortieServiceAwareTrait; use Application\Service\Traits\LocalContextServiceAwareTrait; use Application\Service\Traits\ParametresServiceAwareTrait; use Application\Service\Traits\SourceServiceAwareTrait; use Lieu\Entity\Db\Structure; use OffreFormation\Entity\Db\CheminPedagogique; Loading Loading @@ -298,7 +299,7 @@ class OffreFormationService extends AbstractEntityService public function generateCsvExport(?Structure $structure, ?NiveauEtape $niveau, ?Etape $etape): CsvModel { /* Préparation et affichage */ $etatSortie = $this->getServiceEtatSortie()->getRepo()->findOneBy(['code' => 'export-offre-formation']); $etatSortie = $this->getServiceEtatSortie()->getByParametre('es_export_formation'); $annee = $this->getServiceContext()->getAnnee()->getId(); $fileName = 'Export-offre-formation - ' . date('dmY') . '.csv'; Loading