Loading module/Application/src/Application/Entity/Db/Agent.php +8 −0 Original line number Diff line number Diff line Loading @@ -753,4 +753,12 @@ class Agent implements } return $result; } public function getQuotiteAffectation(?DateTime $date = null) : string { $ficheposte = $this->getFichePosteBest(); if ($ficheposte === null) return 'Aucun fiche de poste au format EMC2'; return $ficheposte->toStringCompositionFichesMetiers(); } } No newline at end of file module/Application/src/Application/Entity/Db/MacroContent/FichePosteMacroTrait.php +9 −1 Original line number Diff line number Diff line Loading @@ -47,11 +47,19 @@ trait FichePosteMacroTrait { /** @var FichePoste $ficheposte */ $ficheposte = $this; $texte = ""; $quotiteTotal = 0; foreach ($ficheposte->getFichesMetiers() as $ficheTypeExterne) { $quotiteTotal += $ficheTypeExterne->getQuotite(); } $texte = $quotiteTotal. " %"; $texte .= "<ul>"; foreach ($ficheposte->getFichesMetiers() as $ficheTypeExterne) { $texte .= "<li>"; $texte .= $ficheTypeExterne->getFicheType()->getMetier()->getLibelleGenre($ficheposte->getAgent()); // foreach ($ficheTypeExterne->getFicheType()->getMetier()->getReferences() as $reference) { // $texte .= $reference->getUrl(); // } $texte .= " (" .$ficheTypeExterne->getQuotite(). "%)"; $texte .= "</li>"; } Loading Loading
module/Application/src/Application/Entity/Db/Agent.php +8 −0 Original line number Diff line number Diff line Loading @@ -753,4 +753,12 @@ class Agent implements } return $result; } public function getQuotiteAffectation(?DateTime $date = null) : string { $ficheposte = $this->getFichePosteBest(); if ($ficheposte === null) return 'Aucun fiche de poste au format EMC2'; return $ficheposte->toStringCompositionFichesMetiers(); } } No newline at end of file
module/Application/src/Application/Entity/Db/MacroContent/FichePosteMacroTrait.php +9 −1 Original line number Diff line number Diff line Loading @@ -47,11 +47,19 @@ trait FichePosteMacroTrait { /** @var FichePoste $ficheposte */ $ficheposte = $this; $texte = ""; $quotiteTotal = 0; foreach ($ficheposte->getFichesMetiers() as $ficheTypeExterne) { $quotiteTotal += $ficheTypeExterne->getQuotite(); } $texte = $quotiteTotal. " %"; $texte .= "<ul>"; foreach ($ficheposte->getFichesMetiers() as $ficheTypeExterne) { $texte .= "<li>"; $texte .= $ficheTypeExterne->getFicheType()->getMetier()->getLibelleGenre($ficheposte->getAgent()); // foreach ($ficheTypeExterne->getFicheType()->getMetier()->getReferences() as $reference) { // $texte .= $reference->getUrl(); // } $texte .= " (" .$ficheTypeExterne->getQuotite(). "%)"; $texte .= "</li>"; } Loading