-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'import-2023' into preprod
- Loading branch information
Showing
7 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace App\Report; | ||
|
||
class ExperienceInCurrentJobReport extends AbstractReport | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getName() | ||
{ | ||
return 'experience_in_current_job'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function execute() | ||
{ | ||
$this->queryBuilder | ||
->select('response.experienceInCurrentJob') | ||
->addSelect('COUNT(response.id) as nbResponse') | ||
->having('nbResponse >= :minResult') | ||
->setParameter('minResult', $this->minResult) | ||
->groupBy('response.experienceInCurrentJob') | ||
->orderBy('experienceInCurrentJob', 'asc'); | ||
|
||
$this->data = $this->queryBuilder->fetchAllAssociative(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace App\Report; | ||
|
||
class LeaveJobReport extends AbstractReport | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getName() | ||
{ | ||
return 'leave_job'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function execute() | ||
{ | ||
$this->queryBuilder | ||
->select('response.leaveJob') | ||
->addSelect('COUNT(response.id) as nbResponse') | ||
->having('nbResponse >= :minResult') | ||
->setParameter('minResult', $this->minResult) | ||
->groupBy('response.leaveJob') | ||
->orderBy('nbResponse', 'desc'); | ||
|
||
$this->data = $this->queryBuilder->fetchAllAssociative(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<table class="table table-striped highchart tablesorter" | ||
data-graph-container-before="1" | ||
data-graph-type="column" | ||
data-graph-legend-disabled="1"> | ||
<thead> | ||
<tr> | ||
<th>{{ 'report.view.experience_in_current_job' | trans }}</th> | ||
<th>{{ "report.view.response_number" | trans }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for row in results %} | ||
<tr> | ||
<td>{{ row.experienceInCurrentJob }}</td> | ||
<td class="text-right">{{ row.nbResponse }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<table class="highchart highchart-align-xaxis-left-labels table table-striped" | ||
data-graph-datalabels-enabled="1" | ||
data-graph-container-before="1" | ||
data-graph-type="pie" | ||
data-graph-legend-disabled="1" | ||
data-graph-inverted="1" | ||
data-graph-xaxis-labels-align="right" | ||
> | ||
<thead> | ||
<tr> | ||
<th>{{ 'report.view.leave_job' | trans }}</th> | ||
<th>{{ "report.view.response_number" | trans }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for row in results %} | ||
<tr> | ||
<td>{{ row.leaveJob|enum_label('App\\Enums\\LeaveJobEnums') }}</td> | ||
<td data-graph-name='{{ row.leaveJob|enum_label('App\\Enums\\LeaveJobEnums') }}' class="text-right">{{ row.nbResponse }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters