Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
madis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Soluris
madis
Commits
bfd7a633
Commit
bfd7a633
authored
1 year ago
by
Jonathan Foucher
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/seb/issue_825' into dev-datakode
parents
3d50d1d6
446c3e28
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Domain/Reporting/Generator/Word/MaturityGenerator.php
+14
-2
14 additions, 2 deletions
src/Domain/Reporting/Generator/Word/MaturityGenerator.php
src/Domain/Reporting/Generator/Word/OverviewGenerator.php
+3
-0
3 additions, 0 deletions
src/Domain/Reporting/Generator/Word/OverviewGenerator.php
with
17 additions
and
2 deletions
src/Domain/Reporting/Generator/Word/MaturityGenerator.php
+
14
−
2
View file @
bfd7a633
...
...
@@ -35,7 +35,12 @@ class MaturityGenerator extends AbstractGenerator implements ImpressionGenerator
{
public
function
addContextView
(
Section
$section
,
array
$data
):
void
{
$section
->
addTitle
(
'Contexte'
,
1
);
if
(
isset
(
$data
[
'bilanReport'
])
&&
$data
[
'bilanReport'
])
{
$section
->
addTitle
(
'Évaluation de la mise en conformité'
,
2
);
$section
->
addTitle
(
'Contexte'
,
3
);
}
else
{
$section
->
addTitle
(
'Contexte'
,
1
);
}
$table
=
$section
->
addTable
([
'borderColor'
=>
'006699'
,
...
...
@@ -69,6 +74,10 @@ class MaturityGenerator extends AbstractGenerator implements ImpressionGenerator
public
function
addSyntheticView
(
Section
$section
,
array
$data
):
void
{
if
(
isset
(
$data
[
'bilanReport'
])
&&
$data
[
'bilanReport'
])
{
$section
->
addTitle
(
"Résultat de l'évaluation"
,
3
);
}
$maturityList
=
[];
$domainsName
=
[];
if
(
isset
(
$data
[
'old'
]))
{
...
...
@@ -116,7 +125,10 @@ class MaturityGenerator extends AbstractGenerator implements ImpressionGenerator
}
}
// Display
$section
->
addTitle
(
'Vue d\'ensemble'
,
1
);
if
(
!
(
isset
(
$data
[
'bilanReport'
])
&&
$data
[
'bilanReport'
]))
{
$section
->
addTitle
(
'Vue d\'ensemble'
,
1
);
}
$this
->
addTable
(
$section
,
$tableData
,
true
,
self
::
TABLE_ORIENTATION_HORIZONTAL
);
$section
->
addTextBreak
(
2
);
...
...
This diff is collapsed.
Click to expand it.
src/Domain/Reporting/Generator/Word/OverviewGenerator.php
+
3
−
0
View file @
bfd7a633
...
...
@@ -200,7 +200,10 @@ class OverviewGenerator extends AbstractGenerator
):
void
{
$section
->
addTitle
(
'Système de management des données à caractère personnel et conformité'
,
1
);
$maturity
[
'bilanReport'
]
=
true
;
$this
->
maturityGenerator
->
addContextView
(
$section
,
$maturity
);
$this
->
maturityGenerator
->
addSyntheticView
(
$section
,
$maturity
);
$collectivity
=
$this
->
userProvider
->
getAuthenticatedUser
()
->
getCollectivity
();
if
(
$collectivity
->
isHasModuleConformiteTraitement
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment