Skip to content
Snippets Groups Projects
Commit faa54544 authored by gauthierb's avatar gauthierb
Browse files

2 nouveaux indicateurs :

- N intervenants ont clôturé la saisie de leurs services réalisés et sont en attente de validation de leurs enseignements Réalisé par d'autres composantes
- N intervenants ont clôturé la saisie de leurs services réalisés et sont en attente de validation de leur référentiel Réalisé par d'autres composantes
parent 40bee141
No related branches found
No related tags found
No related merge requests found
......@@ -130,48 +130,39 @@ return [
'applicationIndicateur' => 'Application\\Service\\Indicateur',
'IndicateurService' => 'Application\\Service\\Indicateur',
'NotificationIndicateurService' => 'Application\\Service\\NotificationIndicateur',
'AttenteAgrementCR' => 'Application\\Service\\Indicateur\\Agrement\\AttenteAgrementCRIndicateurImpl',
'AttenteAgrementCA' => 'Application\\Service\\Indicateur\\Agrement\\AttenteAgrementCAIndicateurImpl',
'AgrementCAMaisPasContrat' => 'Application\\Service\\Indicateur\\Contrat\\AgrementCAMaisPasContratIndicateurImpl',
'AttenteContrat' => 'Application\\Service\\Indicateur\\Contrat\\AttenteContratIndicateurImpl',
'AttenteAvenant' => 'Application\\Service\\Indicateur\\Contrat\\AttenteAvenantIndicateurImpl',
'AttenteRetourContrat' => 'Application\\Service\\Indicateur\\Contrat\\AttenteRetourContratIndicateurImpl',
'ContratAvenantDeposes' => 'Application\\Service\\Indicateur\\Contrat\\ContratAvenantDeposesIndicateurImpl',
'SaisieServiceApresContratAvenant' => 'Application\\Service\\Indicateur\\Contrat\\SaisieServiceApresContratAvenantIndicateurImpl',
'AttenteValidationDonneesPerso' => 'Application\\Service\\Indicateur\\Dossier\\AttenteValidationDonneesPersoIndicateurImpl',
'DonneesPersoDiffImport' => 'Application\\Service\\Indicateur\\Dossier\\DonneesPersoDiffImportIndicateurImpl',
'AttenteDemandeMepVac' => 'Application\\Service\\Indicateur\\Paiement\\AttenteDemandeMepVacIndicateurImpl',
'AttenteDemandeMepPerm' => 'Application\\Service\\Indicateur\\Paiement\\AttenteDemandeMepPermIndicateurImpl',
'AttenteMepVac' => 'Application\\Service\\Indicateur\\Paiement\\AttenteMepVacIndicateurImpl',
'AttenteMepPerm' => 'Application\\Service\\Indicateur\\Paiement\\AttenteMepPermIndicateurImpl',
'AttentePieceJustif' => 'Application\\Service\\Indicateur\\PieceJointe\\AttentePieceJustifIndicateurImpl',
'AttenteValidationPieceJustif' => 'Application\\Service\\Indicateur\\PieceJointe\\AttenteValidationPieceJustifIndicateurImpl',
'PermAffectAutreIntervMeme' => 'Application\\Service\\Indicateur\\Service\\Affectation\\PermAffectAutreIntervMemeIndicateurImpl',
'PermAffectMemeIntervAutre' => 'Application\\Service\\Indicateur\\Service\\Affectation\\PermAffectMemeIntervAutreIndicateurImpl',
'BiatssAffectMemeIntervAutre' => 'Application\\Service\\Indicateur\\Service\\Affectation\\BiatssAffectMemeIntervAutreIndicateurImpl',
'PlafondHcPrevuHorsRemuFcDepasse' => 'Application\\Service\\Indicateur\\Service\\Plafond\\PlafondHcPrevuHorsRemuFcDepasseIndicateurImpl',
'PlafondHcRealiseHorsRemuFcDepasse' => 'Application\\Service\\Indicateur\\Service\\Plafond\\PlafondHcRealiseHorsRemuFcDepasseIndicateurImpl',
'PlafondRefPrevuDepasse' => 'Application\\Service\\Indicateur\\Service\\Plafond\\PlafondRefPrevuDepasseIndicateurImpl',
'PlafondRefRealiseDepasse' => 'Application\\Service\\Indicateur\\Service\\Plafond\\PlafondRefRealiseDepasseIndicateurImpl',
'AttenteValidationEnsPrevuVac' => 'Application\\Service\\Indicateur\\Service\\Validation\\AttenteValidationEnsPrevuVacIndicateurImpl',
'AttenteValidationEnsPrevuPerm' => 'Application\\Service\\Indicateur\\Service\\Validation\\AttenteValidationEnsPrevuPermIndicateurImpl',
'AttenteValidationEnsRealiseVac' => 'Application\\Service\\Indicateur\\Service\\Validation\\AttenteValidationEnsRealiseVacIndicateurImpl',
'AttenteValidationEnsRealisePerm' => 'Application\\Service\\Indicateur\\Service\\Validation\\AttenteValidationEnsRealisePermIndicateurImpl',
'AttenteValidationEnsRealisePermAutreComp' => 'Application\\Service\\Indicateur\\Service\\Validation\\AttenteValidationEnsRealisePermAutreCompIndicateurImpl',
'AttenteValidationRefPrevuPerm' => 'Application\\Service\\Indicateur\\Service\\Validation\\AttenteValidationRefPrevuPermIndicateurImpl',
'AttenteValidationRefRealisePerm' => 'Application\\Service\\Indicateur\\Service\\Validation\\AttenteValidationRefRealisePermIndicateurImpl',
'AttenteValidationRefRealisePermAutreComp' => 'Application\\Service\\Indicateur\\Service\\Validation\\AttenteValidationRefRealisePermAutreCompIndicateurImpl',
'EnsHisto' => 'Application\\Service\\Indicateur\\Service\\EnsHistoIndicateurImpl',
'EnsRealisePermSaisieNonCloturee' => 'Application\\Service\\Indicateur\\Service\\EnsRealisePermSaisieNonClotureeIndicateurImpl',
],
'factories' => [
],
......
......@@ -18,6 +18,13 @@ abstract class AttenteValidationEnsAbstractIndicateurImpl extends AbstractInterv
protected $singularTitlePattern = "%s %s est en attente de validation de ses enseignements <em>%s</em>";
protected $pluralTitlePattern = "%s %s sont en attente de validation de leurs enseignements <em>%s</em>";
/**
* Témoin indiquant s'il faut appliquer le filtre Structure.
*
* @var boolean
*/
protected $findByStructure = true;
/**
* Témoin indiquant s'il faut que l'intervenant soit à l'étape concernée dans le WF pour être acceptable.
*
......@@ -74,7 +81,7 @@ abstract class AttenteValidationEnsAbstractIndicateurImpl extends AbstractInterv
// $qb->andWhere("ti.code = :type")->setParameter('type', TypeIntervenantEntity::CODE_EXTERIEUR);
$qb->andWhere("ti = :type")->setParameter('type', $this->getTypeIntervenant());
if ($this->getStructure()) {
if ($this->findByStructure && $this->getStructure()) {
$qb
->andWhere("ep.structure = :structure")
->setParameter('structure', $this->getStructure());
......
<?php
namespace Application\Service\Indicateur\Service\Validation;
/**
*
*
* @author Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>
*/
class AttenteValidationEnsRealisePermAutreCompIndicateurImpl extends AttenteValidationEnsRealisePermIndicateurImpl
{
protected $singularTitlePattern = "%s %s a clôturé la saisie de ses services réalisés et est en attente de validation de ses enseignements <em>%s</em> par d'autres composantes";
protected $pluralTitlePattern = "%s %s ont clôturé la saisie de leurs services réalisés et sont en attente de validation de leurs enseignements <em>%s</em> par d'autres composantes";
/**
* Témoin indiquant s'il faut appliquer le filtre Structure.
*
* @var boolean
*/
protected $findByStructure = false;
/**
* @return QueryBuilder
*/
protected function getQueryBuilder()
{
$qb = parent::getQueryBuilder();
/**
* Toute autre composante que celle spécifiée.
*/
if ($this->getStructure()) {
$qb
->andWhere("ep.structure <> :structure")
->setParameter('structure', $this->getStructure());
}
return $qb;
}
}
\ No newline at end of file
......@@ -18,6 +18,13 @@ abstract class AttenteValidationRefAbstractIndicateurImpl extends AbstractInterv
protected $singularTitlePattern = "%s %s est en attente de validation de son référentiel <em>%s</em>";
protected $pluralTitlePattern = "%s %s sont en attente de validation de leur référentiel <em>%s</em>";
/**
* Témoin indiquant s'il faut appliquer le filtre Structure.
*
* @var boolean
*/
protected $findByStructure = true;
/**
* Témoin indiquant s'il faut que l'intervenant soit à l'étape concernée dans le WF pour être acceptable.
*
......@@ -73,7 +80,7 @@ abstract class AttenteValidationRefAbstractIndicateurImpl extends AbstractInterv
*/
$qb->andWhere("ti = :type")->setParameter('type', $this->getTypeIntervenant());
if ($this->getStructure()) {
if ($this->findByStructure && $this->getStructure()) {
$qb
->andWhere("f.structure = :structure")
->setParameter('structure', $this->getStructure());
......
<?php
namespace Application\Service\Indicateur\Service\Validation;
/**
*
*
* @author Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>
*/
class AttenteValidationRefRealisePermAutreCompIndicateurImpl extends AttenteValidationRefRealisePermIndicateurImpl
{
protected $singularTitlePattern = "%s %s a clôturé la saisie de ses services réalisés et est en attente de validation de son référentiel <em>%s</em> par d'autres composantes";
protected $pluralTitlePattern = "%s %s ont clôturé la saisie de leurs services réalisés et sont en attente de validation de leur référentiel <em>%s</em> par d'autres composantes";
/**
* @return QueryBuilder
*/
protected function getQueryBuilder()
{
$qb = parent::getQueryBuilder();
/**
* Toute autre composante que celle spécifiée.
*/
if ($this->getStructure()) {
$qb
->andWhere("f.structure <> :structure")
->setParameter('structure', $this->getStructure());
}
return $qb;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment