mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
last processing of review remarks
This commit is contained in:
parent
af4bee4d50
commit
dac48ea4e0
@ -31,14 +31,10 @@ class AvgActivityDuration implements ExportInterface, GroupedExportInterface
|
|||||||
{
|
{
|
||||||
protected EntityRepository $repository;
|
protected EntityRepository $repository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->repository = $em->getRepository(Activity::class);
|
$this->repository = $em->getRepository(Activity::class);
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder) {}
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
@ -113,7 +109,7 @@ class AvgActivityDuration implements ExportInterface, GroupedExportInterface
|
|||||||
)
|
)
|
||||||
->setParameter('authorized_centers', $centers);
|
->setParameter('authorized_centers', $centers);
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
@ -31,14 +31,10 @@ class AvgActivityVisitDuration implements ExportInterface, GroupedExportInterfac
|
|||||||
{
|
{
|
||||||
protected EntityRepository $repository;
|
protected EntityRepository $repository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->repository = $em->getRepository(Activity::class);
|
$this->repository = $em->getRepository(Activity::class);
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -116,7 +112,7 @@ class AvgActivityVisitDuration implements ExportInterface, GroupedExportInterfac
|
|||||||
)
|
)
|
||||||
->setParameter('authorized_centers', $centers);
|
->setParameter('authorized_centers', $centers);
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
@ -31,14 +31,10 @@ class CountActivity implements ExportInterface, GroupedExportInterface
|
|||||||
{
|
{
|
||||||
protected EntityRepository $repository;
|
protected EntityRepository $repository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->repository = $em->getRepository(Activity::class);
|
$this->repository = $em->getRepository(Activity::class);
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder) {}
|
public function buildForm(FormBuilderInterface $builder) {}
|
||||||
@ -110,7 +106,7 @@ class CountActivity implements ExportInterface, GroupedExportInterface
|
|||||||
)
|
)
|
||||||
->setParameter('authorized_centers', $centers);
|
->setParameter('authorized_centers', $centers);
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
$qb->select('COUNT(DISTINCT activity.id) as export_count_activity');
|
$qb->select('COUNT(DISTINCT activity.id) as export_count_activity');
|
||||||
|
|
||||||
|
@ -31,18 +31,14 @@ class ListActivity implements ListInterface, GroupedExportInterface
|
|||||||
|
|
||||||
private TranslatableStringExportLabelHelper $translatableStringExportLabelHelper;
|
private TranslatableStringExportLabelHelper $translatableStringExportLabelHelper;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
ListActivityHelper $helper,
|
ListActivityHelper $helper,
|
||||||
EntityManagerInterface $entityManager,
|
EntityManagerInterface $entityManager,
|
||||||
TranslatableStringExportLabelHelper $translatableStringExportLabelHelper,
|
TranslatableStringExportLabelHelper $translatableStringExportLabelHelper,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->helper = $helper;
|
$this->helper = $helper;
|
||||||
$this->entityManager = $entityManager;
|
$this->entityManager = $entityManager;
|
||||||
$this->translatableStringExportLabelHelper = $translatableStringExportLabelHelper;
|
$this->translatableStringExportLabelHelper = $translatableStringExportLabelHelper;
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -152,7 +148,7 @@ class ListActivity implements ListInterface, GroupedExportInterface
|
|||||||
->addSelect('(SELECT AGGREGATE(acpScope.name) FROM ' . Scope::class . ' acpScope WHERE acpScope MEMBER OF acp.scopes) AS scopesNames')
|
->addSelect('(SELECT AGGREGATE(acpScope.name) FROM ' . Scope::class . ' acpScope WHERE acpScope MEMBER OF acp.scopes) AS scopesNames')
|
||||||
->addGroupBy('scopesNames');
|
->addGroupBy('scopesNames');
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
@ -31,14 +31,10 @@ class SumActivityDuration implements ExportInterface, GroupedExportInterface
|
|||||||
{
|
{
|
||||||
protected EntityRepository $repository;
|
protected EntityRepository $repository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->repository = $em->getRepository(Activity::class);
|
$this->repository = $em->getRepository(Activity::class);
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -116,7 +112,7 @@ class SumActivityDuration implements ExportInterface, GroupedExportInterface
|
|||||||
)
|
)
|
||||||
->setParameter('authorized_centers', $centers);
|
->setParameter('authorized_centers', $centers);
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
@ -31,14 +31,10 @@ class SumActivityVisitDuration implements ExportInterface, GroupedExportInterfac
|
|||||||
{
|
{
|
||||||
protected EntityRepository $repository;
|
protected EntityRepository $repository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->repository = $em->getRepository(Activity::class);
|
$this->repository = $em->getRepository(Activity::class);
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -116,7 +112,7 @@ class SumActivityVisitDuration implements ExportInterface, GroupedExportInterfac
|
|||||||
)
|
)
|
||||||
->setParameter('authorized_centers', $centers);
|
->setParameter('authorized_centers', $centers);
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
@ -28,14 +28,10 @@ class CountCalendars implements ExportInterface, GroupedExportInterface
|
|||||||
{
|
{
|
||||||
private CalendarRepository $calendarRepository;
|
private CalendarRepository $calendarRepository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
CalendarRepository $calendarRepository,
|
CalendarRepository $calendarRepository,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->calendarRepository = $calendarRepository;
|
$this->calendarRepository = $calendarRepository;
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -106,7 +102,7 @@ class CountCalendars implements ExportInterface, GroupedExportInterface
|
|||||||
$qb->select('COUNT(cal.id) AS export_result');
|
$qb->select('COUNT(cal.id) AS export_result');
|
||||||
$qb->join('cal.accompanyingPeriod', 'acp');
|
$qb->join('cal.accompanyingPeriod', 'acp');
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
@ -27,14 +27,10 @@ class StatCalendarAvgDuration implements ExportInterface, GroupedExportInterface
|
|||||||
{
|
{
|
||||||
private CalendarRepository $calendarRepository;
|
private CalendarRepository $calendarRepository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
CalendarRepository $calendarRepository,
|
CalendarRepository $calendarRepository,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->calendarRepository = $calendarRepository;
|
$this->calendarRepository = $calendarRepository;
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
@ -100,7 +96,7 @@ class StatCalendarAvgDuration implements ExportInterface, GroupedExportInterface
|
|||||||
$qb->select('AVG(cal.endDate - cal.startDate) AS export_result');
|
$qb->select('AVG(cal.endDate - cal.startDate) AS export_result');
|
||||||
$qb->join('cal.accompanyingPeriod', 'acp');
|
$qb->join('cal.accompanyingPeriod', 'acp');
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
@ -27,14 +27,10 @@ class StatCalendarSumDuration implements ExportInterface, GroupedExportInterface
|
|||||||
{
|
{
|
||||||
private CalendarRepository $calendarRepository;
|
private CalendarRepository $calendarRepository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
CalendarRepository $calendarRepository,
|
CalendarRepository $calendarRepository,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->calendarRepository = $calendarRepository;
|
$this->calendarRepository = $calendarRepository;
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
@ -100,7 +96,7 @@ class StatCalendarSumDuration implements ExportInterface, GroupedExportInterface
|
|||||||
$qb->select('SUM(cal.endDate - cal.startDate) AS export_result');
|
$qb->select('SUM(cal.endDate - cal.startDate) AS export_result');
|
||||||
$qb->join('cal.accompanyingPeriod', 'acp');
|
$qb->join('cal.accompanyingPeriod', 'acp');
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,3 @@ services:
|
|||||||
Chill\MainBundle\Service\EntityInfo\ViewEntityInfoManager:
|
Chill\MainBundle\Service\EntityInfo\ViewEntityInfoManager:
|
||||||
arguments:
|
arguments:
|
||||||
$vienEntityInfoProviders: !tagged_iterator chill_main.entity_info_provider
|
$vienEntityInfoProviders: !tagged_iterator chill_main.entity_info_provider
|
||||||
|
|
||||||
Chill\MainBundle\Export\AccompanyingCourseExportHelper:
|
|
||||||
autoconfigure: true
|
|
||||||
autowire: true
|
|
||||||
|
@ -52,3 +52,5 @@ services:
|
|||||||
$exportManager: '@Chill\MainBundle\Export\ExportManager'
|
$exportManager: '@Chill\MainBundle\Export\ExportManager'
|
||||||
tags:
|
tags:
|
||||||
- { name: chill.export_formatter, alias: 'csv_pivoted_list' }
|
- { name: chill.export_formatter, alias: 'csv_pivoted_list' }
|
||||||
|
|
||||||
|
Chill\MainBundle\Export\AccompanyingCourseExportHelper: ~
|
||||||
|
@ -70,8 +70,7 @@ class ClosingMotive
|
|||||||
private ?ClosingMotive $parent = null;
|
private ?ClosingMotive $parent = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var bool
|
* @ORM\Column(type="boolean", nullable=false, options={"default": false})
|
||||||
* @ORM\Column(type="boolean")
|
|
||||||
*/
|
*/
|
||||||
private bool $isCanceledAccompanyingPeriod = false;
|
private bool $isCanceledAccompanyingPeriod = false;
|
||||||
|
|
||||||
|
@ -30,14 +30,10 @@ class CountAccompanyingCourse implements ExportInterface, GroupedExportInterface
|
|||||||
{
|
{
|
||||||
protected EntityRepository $repository;
|
protected EntityRepository $repository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->repository = $em->getRepository(AccompanyingPeriod::class);
|
$this->repository = $em->getRepository(AccompanyingPeriod::class);
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
@ -116,7 +112,7 @@ class CountAccompanyingCourse implements ExportInterface, GroupedExportInterface
|
|||||||
->setParameter('count_acp_step', AccompanyingPeriod::STEP_DRAFT)
|
->setParameter('count_acp_step', AccompanyingPeriod::STEP_DRAFT)
|
||||||
->setParameter('authorized_centers', $centers);
|
->setParameter('authorized_centers', $centers);
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
$qb->select('COUNT(DISTINCT acp.id) AS export_result');
|
$qb->select('COUNT(DISTINCT acp.id) AS export_result');
|
||||||
|
|
||||||
|
@ -29,14 +29,10 @@ class CountAccompanyingPeriodWork implements ExportInterface, GroupedExportInter
|
|||||||
{
|
{
|
||||||
protected EntityManagerInterface $em;
|
protected EntityManagerInterface $em;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->em = $em;
|
$this->em = $em;
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
@ -117,7 +113,7 @@ class CountAccompanyingPeriodWork implements ExportInterface, GroupedExportInter
|
|||||||
|
|
||||||
$qb->select('COUNT(DISTINCT acpw.id) as export_result');
|
$qb->select('COUNT(DISTINCT acpw.id) as export_result');
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
@ -28,14 +28,10 @@ class CountEvaluation implements ExportInterface, GroupedExportInterface
|
|||||||
{
|
{
|
||||||
private EntityManagerInterface $entityManager;
|
private EntityManagerInterface $entityManager;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->entityManager = $em;
|
$this->entityManager = $em;
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -115,7 +111,7 @@ class CountEvaluation implements ExportInterface, GroupedExportInterface
|
|||||||
)
|
)
|
||||||
->setParameter('authorized_centers', $centers);
|
->setParameter('authorized_centers', $centers);
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
$qb->select('COUNT(DISTINCT workeval.id) AS export_result');
|
$qb->select('COUNT(DISTINCT workeval.id) AS export_result');
|
||||||
|
|
||||||
|
@ -30,14 +30,10 @@ class CountPersonWithAccompanyingCourse implements ExportInterface, GroupedExpor
|
|||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->repository = $em->getRepository(AccompanyingPeriod::class);
|
$this->repository = $em->getRepository(AccompanyingPeriod::class);
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -116,7 +112,7 @@ class CountPersonWithAccompanyingCourse implements ExportInterface, GroupedExpor
|
|||||||
)
|
)
|
||||||
)->setParameter('authorized_centers', $centers);
|
)->setParameter('authorized_centers', $centers);
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
$qb->select('COUNT(DISTINCT person.id) AS export_result');
|
$qb->select('COUNT(DISTINCT person.id) AS export_result');
|
||||||
|
|
||||||
|
@ -53,7 +53,6 @@ final readonly class ListAccompanyingPeriod implements ListInterface, GroupedExp
|
|||||||
private EntityManagerInterface $entityManager,
|
private EntityManagerInterface $entityManager,
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
|
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -134,7 +133,7 @@ final readonly class ListAccompanyingPeriod implements ListInterface, GroupedExp
|
|||||||
|
|
||||||
$this->listAccompanyingPeriodHelper->addSelectClauses($qb, $this->rollingDateConverter->convert($data['calc_date']));
|
$this->listAccompanyingPeriodHelper->addSelectClauses($qb, $this->rollingDateConverter->convert($data['calc_date']));
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
$qb
|
$qb
|
||||||
->addOrderBy('acp.openingDate')
|
->addOrderBy('acp.openingDate')
|
||||||
|
@ -101,8 +101,6 @@ class ListAccompanyingPeriodWork implements ListInterface, GroupedExportInterfac
|
|||||||
|
|
||||||
private UserHelper $userHelper;
|
private UserHelper $userHelper;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $entityManager,
|
EntityManagerInterface $entityManager,
|
||||||
DateTimeHelper $dateTimeHelper,
|
DateTimeHelper $dateTimeHelper,
|
||||||
@ -116,7 +114,6 @@ class ListAccompanyingPeriodWork implements ListInterface, GroupedExportInterfac
|
|||||||
RollingDateConverterInterface $rollingDateConverter,
|
RollingDateConverterInterface $rollingDateConverter,
|
||||||
AggregateStringHelper $aggregateStringHelper,
|
AggregateStringHelper $aggregateStringHelper,
|
||||||
SocialActionRepository $socialActionRepository,
|
SocialActionRepository $socialActionRepository,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->entityManager = $entityManager;
|
$this->entityManager = $entityManager;
|
||||||
$this->dateTimeHelper = $dateTimeHelper;
|
$this->dateTimeHelper = $dateTimeHelper;
|
||||||
@ -130,7 +127,6 @@ class ListAccompanyingPeriodWork implements ListInterface, GroupedExportInterfac
|
|||||||
$this->rollingDateConverter = $rollingDateConverter;
|
$this->rollingDateConverter = $rollingDateConverter;
|
||||||
$this->aggregateStringHelper = $aggregateStringHelper;
|
$this->aggregateStringHelper = $aggregateStringHelper;
|
||||||
$this->socialActionRepository = $socialActionRepository;
|
$this->socialActionRepository = $socialActionRepository;
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -296,7 +292,7 @@ class ListAccompanyingPeriodWork implements ListInterface, GroupedExportInterfac
|
|||||||
->setParameter('authorized_centers', $centers)
|
->setParameter('authorized_centers', $centers)
|
||||||
->setParameter('calc_date', $this->rollingDateConverter->convert($data['calc_date']));
|
->setParameter('calc_date', $this->rollingDateConverter->convert($data['calc_date']));
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
$this->addSelectClauses($qb, $this->rollingDateConverter->convert($data['calc_date']));
|
$this->addSelectClauses($qb, $this->rollingDateConverter->convert($data['calc_date']));
|
||||||
|
|
||||||
|
@ -91,8 +91,6 @@ class ListEvaluation implements ListInterface, GroupedExportInterface
|
|||||||
|
|
||||||
private UserHelper $userHelper;
|
private UserHelper $userHelper;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $entityManager,
|
EntityManagerInterface $entityManager,
|
||||||
SocialIssueRender $socialIssueRender,
|
SocialIssueRender $socialIssueRender,
|
||||||
@ -105,7 +103,6 @@ class ListEvaluation implements ListInterface, GroupedExportInterface
|
|||||||
TranslatableStringExportLabelHelper $translatableStringExportLabelHelper,
|
TranslatableStringExportLabelHelper $translatableStringExportLabelHelper,
|
||||||
AggregateStringHelper $aggregateStringHelper,
|
AggregateStringHelper $aggregateStringHelper,
|
||||||
RollingDateConverterInterface $rollingDateConverter,
|
RollingDateConverterInterface $rollingDateConverter,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->entityManager = $entityManager;
|
$this->entityManager = $entityManager;
|
||||||
$this->socialIssueRender = $socialIssueRender;
|
$this->socialIssueRender = $socialIssueRender;
|
||||||
@ -118,7 +115,6 @@ class ListEvaluation implements ListInterface, GroupedExportInterface
|
|||||||
$this->translatableStringExportLabelHelper = $translatableStringExportLabelHelper;
|
$this->translatableStringExportLabelHelper = $translatableStringExportLabelHelper;
|
||||||
$this->aggregateStringHelper = $aggregateStringHelper;
|
$this->aggregateStringHelper = $aggregateStringHelper;
|
||||||
$this->rollingDateConverter = $rollingDateConverter;
|
$this->rollingDateConverter = $rollingDateConverter;
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -275,7 +271,7 @@ class ListEvaluation implements ListInterface, GroupedExportInterface
|
|||||||
->setParameter('authorized_centers', $centers)
|
->setParameter('authorized_centers', $centers)
|
||||||
->setParameter('calc_date', $this->rollingDateConverter->convert($data['calc_date']));
|
->setParameter('calc_date', $this->rollingDateConverter->convert($data['calc_date']));
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
$this->addSelectClauses($qb, $this->rollingDateConverter->convert($data['calc_date']));
|
$this->addSelectClauses($qb, $this->rollingDateConverter->convert($data['calc_date']));
|
||||||
|
|
||||||
|
@ -49,18 +49,14 @@ class ListPersonHavingAccompanyingPeriod implements ExportElementValidatedInterf
|
|||||||
|
|
||||||
private ListPersonHelper $listPersonHelper;
|
private ListPersonHelper $listPersonHelper;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
ExportAddressHelper $addressHelper,
|
ExportAddressHelper $addressHelper,
|
||||||
ListPersonHelper $listPersonHelper,
|
ListPersonHelper $listPersonHelper,
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->addressHelper = $addressHelper;
|
$this->addressHelper = $addressHelper;
|
||||||
$this->listPersonHelper = $listPersonHelper;
|
$this->listPersonHelper = $listPersonHelper;
|
||||||
$this->entityManager = $em;
|
$this->entityManager = $em;
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -195,7 +191,7 @@ class ListPersonHavingAccompanyingPeriod implements ExportElementValidatedInterf
|
|||||||
|
|
||||||
$this->listPersonHelper->addSelect($qb, $fields, $data['address_date']);
|
$this->listPersonHelper->addSelect($qb, $fields, $data['address_date']);
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
$qb
|
$qb
|
||||||
->addOrderBy('person.lastName')
|
->addOrderBy('person.lastName')
|
||||||
|
@ -51,7 +51,6 @@ final readonly class ListPersonWithAccompanyingPeriodDetails implements ListInte
|
|||||||
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
|
private ListAccompanyingPeriodHelper $listAccompanyingPeriodHelper,
|
||||||
private EntityManagerInterface $entityManager,
|
private EntityManagerInterface $entityManager,
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder)
|
public function buildForm(FormBuilderInterface $builder)
|
||||||
@ -135,7 +134,7 @@ final readonly class ListPersonWithAccompanyingPeriodDetails implements ListInte
|
|||||||
$this->listPersonHelper->addSelect($qb, ListPersonHelper::FIELDS, $this->rollingDateConverter->convert($data['address_date']));
|
$this->listPersonHelper->addSelect($qb, ListPersonHelper::FIELDS, $this->rollingDateConverter->convert($data['address_date']));
|
||||||
$this->listAccompanyingPeriodHelper->addSelectClauses($qb, $this->rollingDateConverter->convert($data['address_date']));
|
$this->listAccompanyingPeriodHelper->addSelectClauses($qb, $this->rollingDateConverter->convert($data['address_date']));
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
$qb
|
$qb
|
||||||
->addOrderBy('person.lastName')
|
->addOrderBy('person.lastName')
|
||||||
|
@ -32,14 +32,10 @@ class StatAccompanyingCourseDuration implements ExportInterface, GroupedExportIn
|
|||||||
{
|
{
|
||||||
private EntityRepository $repository;
|
private EntityRepository $repository;
|
||||||
|
|
||||||
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
|
|
||||||
) {
|
) {
|
||||||
$this->repository = $em->getRepository(AccompanyingPeriod::class);
|
$this->repository = $em->getRepository(AccompanyingPeriod::class);
|
||||||
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
@ -147,7 +143,7 @@ class StatAccompanyingCourseDuration implements ExportInterface, GroupedExportIn
|
|||||||
->setParameter('count_acp_step', AccompanyingPeriod::STEP_DRAFT)
|
->setParameter('count_acp_step', AccompanyingPeriod::STEP_DRAFT)
|
||||||
->setParameter('authorized_centers', $centers);
|
->setParameter('authorized_centers', $centers);
|
||||||
|
|
||||||
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
|
||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user