Loading code/test6.php +14 −9 Changes for code/test6.php: 14 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -5,19 +5,24 @@ * @var $container \Psr\Container\ContainerInterface */ use Formule\Model\FormuleDetailsExtractor; $em = $container->get(\Doctrine\ORM\EntityManager::class); $fts = $container->get(\Formule\Service\TestService::class); $fs = $container->get(\Formule\Service\FormuleService::class); //2023/2024 - DALMASSO Marion $fi = $fs->getFormuleServiceIntervenant(783665, 1, 1); $intervenantId = 783665; $typeVolumeHoraireId = 1; $etatVolumeHoraireId = 1; $intervenant = $em->find(\Intervenant\Entity\Db\Intervenant::class, $intervenantId); $typeVolumeHoraire = $em->find(\Service\Entity\Db\TypeVolumeHoraire::class, $typeVolumeHoraireId); $etatVolumeHoraire = $em->find(\Service\Entity\Db\EtatVolumeHoraire::class, $etatVolumeHoraireId); if (null == $fi->getArrondisseurTrace()) { $fs->calculer($fi); } $trace = $fi->getArrondisseurTrace(); $vu = $trace->getValeursUtilisees(); $ft = $fts->creerDepuisIntervenant($intervenant, $typeVolumeHoraire, $etatVolumeHoraire); var_dump($vu); No newline at end of file var_dump($ft); No newline at end of file data/ddl/table/CONTRAT.php +1 −1 Changes for data/ddl/table/CONTRAT.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -196,7 +196,7 @@ return [ 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'nullable' => TRUE, 'default' => NULL, 'position' => 10, 'commentaire' => NULL, Loading front/Formule/Details.vue +13 −3 Changes for front/Formule/Details.vue: 13 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ <h2>{{ listeTypes[typeVolumeHoraire] }} {{ listeEtats[etatVolumeHoraire] }}</h2> </div> <div v-if="Object.keys(this.data).length > 0"> <h2>Paramètres intervenant</h2> <table class="table table-bordered"> <tbody> <tr> Loading Loading @@ -59,6 +60,7 @@ </tbody> </table> <h2>Données utilisées pour le calcul des <abbr title="Heures équivalent TD">HETD</abbr></h2> <table class="table table-bordered table-xs table-details"> <thead> </thead> Loading Loading @@ -115,6 +117,8 @@ </tr> </tbody> </table> <a v-if="canReporter" :href="reportUrl()" class="btn btn-secondary">Reporter les données de cet intervenant dans l'interface de tests de formule</a> </div> </template> <script> Loading @@ -137,6 +141,7 @@ export default { props: { intervenant: {type: Number}, typesVolumesHoraires: {type: Object}, canReporter: {type: Boolean}, }, data() { Loading Loading @@ -176,9 +181,14 @@ export default { this.data = response.data; }); }, dataUrl() reportUrl() { const params = { intervenant: this.intervenant, typeVolumeHoraire: this.data.intervenant.typeVolumeHoraireId, etatVolumeHoraire: this.data.intervenant.etatVolumeHoraireId, }; return unicaenVue.url('formule-test/creer-from-reel/:intervenant/:typeVolumeHoraire/:etatVolumeHoraire', params); }, totalColSpan() { Loading Loading @@ -262,7 +272,7 @@ table tr.details th { font-weight: bold; } table.table { table.table-details { border-top: 0px white solid; } Loading module/Application/src/Hydrator/GenericHydrator.php +2 −2 Changes for module/Application/src/Hydrator/GenericHydrator.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -29,11 +29,11 @@ class GenericHydrator implements HydratorInterface public function __construct(EntityManager $entityManager, string|object|array $spec = []) public function __construct(EntityManager $entityManager, string|object|array $spec = [], array $ignore = []) { $this->setEntityManager($entityManager); if (!empty($spec)) { $this->spec = ArrayUtils::merge($this->spec, $spec); $this->spec($spec, $ignore); } } Loading module/Formule/config/module.config.php +1 Changes for module/Formule/config/module.config.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ return [ 'routes' => [ 'formule' => [ 'route' => '/formule', /* Ne pas supprimer, les childs soont écrites dans les autres fichiers de conf !! */ ], 'intervenant' => [ Loading Loading
code/test6.php +14 −9 Changes for code/test6.php: 14 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -5,19 +5,24 @@ * @var $container \Psr\Container\ContainerInterface */ use Formule\Model\FormuleDetailsExtractor; $em = $container->get(\Doctrine\ORM\EntityManager::class); $fts = $container->get(\Formule\Service\TestService::class); $fs = $container->get(\Formule\Service\FormuleService::class); //2023/2024 - DALMASSO Marion $fi = $fs->getFormuleServiceIntervenant(783665, 1, 1); $intervenantId = 783665; $typeVolumeHoraireId = 1; $etatVolumeHoraireId = 1; $intervenant = $em->find(\Intervenant\Entity\Db\Intervenant::class, $intervenantId); $typeVolumeHoraire = $em->find(\Service\Entity\Db\TypeVolumeHoraire::class, $typeVolumeHoraireId); $etatVolumeHoraire = $em->find(\Service\Entity\Db\EtatVolumeHoraire::class, $etatVolumeHoraireId); if (null == $fi->getArrondisseurTrace()) { $fs->calculer($fi); } $trace = $fi->getArrondisseurTrace(); $vu = $trace->getValeursUtilisees(); $ft = $fts->creerDepuisIntervenant($intervenant, $typeVolumeHoraire, $etatVolumeHoraire); var_dump($vu); No newline at end of file var_dump($ft); No newline at end of file
data/ddl/table/CONTRAT.php +1 −1 Changes for data/ddl/table/CONTRAT.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -196,7 +196,7 @@ return [ 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'nullable' => TRUE, 'default' => NULL, 'position' => 10, 'commentaire' => NULL, Loading
front/Formule/Details.vue +13 −3 Changes for front/Formule/Details.vue: 13 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ <h2>{{ listeTypes[typeVolumeHoraire] }} {{ listeEtats[etatVolumeHoraire] }}</h2> </div> <div v-if="Object.keys(this.data).length > 0"> <h2>Paramètres intervenant</h2> <table class="table table-bordered"> <tbody> <tr> Loading Loading @@ -59,6 +60,7 @@ </tbody> </table> <h2>Données utilisées pour le calcul des <abbr title="Heures équivalent TD">HETD</abbr></h2> <table class="table table-bordered table-xs table-details"> <thead> </thead> Loading Loading @@ -115,6 +117,8 @@ </tr> </tbody> </table> <a v-if="canReporter" :href="reportUrl()" class="btn btn-secondary">Reporter les données de cet intervenant dans l'interface de tests de formule</a> </div> </template> <script> Loading @@ -137,6 +141,7 @@ export default { props: { intervenant: {type: Number}, typesVolumesHoraires: {type: Object}, canReporter: {type: Boolean}, }, data() { Loading Loading @@ -176,9 +181,14 @@ export default { this.data = response.data; }); }, dataUrl() reportUrl() { const params = { intervenant: this.intervenant, typeVolumeHoraire: this.data.intervenant.typeVolumeHoraireId, etatVolumeHoraire: this.data.intervenant.etatVolumeHoraireId, }; return unicaenVue.url('formule-test/creer-from-reel/:intervenant/:typeVolumeHoraire/:etatVolumeHoraire', params); }, totalColSpan() { Loading Loading @@ -262,7 +272,7 @@ table tr.details th { font-weight: bold; } table.table { table.table-details { border-top: 0px white solid; } Loading
module/Application/src/Hydrator/GenericHydrator.php +2 −2 Changes for module/Application/src/Hydrator/GenericHydrator.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -29,11 +29,11 @@ class GenericHydrator implements HydratorInterface public function __construct(EntityManager $entityManager, string|object|array $spec = []) public function __construct(EntityManager $entityManager, string|object|array $spec = [], array $ignore = []) { $this->setEntityManager($entityManager); if (!empty($spec)) { $this->spec = ArrayUtils::merge($this->spec, $spec); $this->spec($spec, $ignore); } } Loading
module/Formule/config/module.config.php +1 Changes for module/Formule/config/module.config.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ return [ 'routes' => [ 'formule' => [ 'route' => '/formule', /* Ne pas supprimer, les childs soont écrites dans les autres fichiers de conf !! */ ], 'intervenant' => [ Loading