Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
d28526fd
Commit
d28526fd
authored
Sep 27, 2021
by
Antony Le Courtes
Browse files
Ajout en config, des statuts OSE à exclure de l'export RH
parent
ed5c001e
Changes
5
Hide whitespace changes
Inline
Side-by-side
composer.lock
View file @
d28526fd
...
...
@@ -1952,22 +1952,22 @@
},
{
"name": "ramsey/uuid",
"version": "3.9.
4
",
"version": "3.9.
6
",
"source": {
"type": "git",
"url": "https://github.com/ramsey/uuid.git",
"reference": "
be2451bef8147b7352a28fb4cddb08adc497ad
a3"
"reference": "
ffa80ab953edd85d5b6c004f96181a538aad35
a3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/
be2451bef8147b7352a28fb4cddb08adc497ad
a3",
"reference": "
be2451bef8147b7352a28fb4cddb08adc497ad
a3",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/
ffa80ab953edd85d5b6c004f96181a538aad35
a3",
"reference": "
ffa80ab953edd85d5b6c004f96181a538aad35
a3",
"shasum": ""
},
"require": {
"ext-json": "*",
"paragonie/random_compat": "^1 | ^2 | ^9.99.99",
"php": "^5.4 | ^7 | ^8",
"php": "^5.4 | ^7
.0
| ^8
.0
",
"symfony/polyfill-ctype": "^1.8"
},
"replace": {
...
...
@@ -1976,14 +1976,16 @@
"require-dev": {
"codeception/aspect-mock": "^1 | ^2",
"doctrine/annotations": "^1.2",
"goaop/framework": "1.0.0-alpha.2 | ^1 | ^2.1",
"jakub-onderka/php-parallel-lint": "^1",
"goaop/framework": "1.0.0-alpha.2 | ^1 | >=2.1.0 <=2.3.2",
"mockery/mockery": "^0.9.11 | ^1",
"moontoast/math": "^1.1",
"nikic/php-parser": "<=4.5.0",
"paragonie/random-lib": "^2",
"php-mock/php-mock-phpunit": "^0.3 | ^1.1",
"phpunit/phpunit": "^4.8 | ^5.4 | ^6.5",
"squizlabs/php_codesniffer": "^3.5"
"php-mock/php-mock-phpunit": "^0.3 | ^1.1 | ^2.6",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpunit/phpunit": ">=4.8.36 <9.0.0 | >=9.3.0",
"squizlabs/php_codesniffer": "^3.5",
"yoast/phpunit-polyfills": "^1.0"
},
"suggest": {
"ext-ctype": "Provides support for PHP Ctype functions",
...
...
@@ -2045,7 +2047,7 @@
"type": "tidelift"
}
],
"time": "2021-0
8-06T20:32:15
+00:00"
"time": "2021-0
9-25T23:07:42
+00:00"
},
{
"name": "setasign/fpdi",
...
...
@@ -2896,7 +2898,7 @@
"source": {
"type": "git",
"url": "https://git.unicaen.fr/lib/unicaen/siham.git",
"reference": "
5eecac4aa6ecc069cc31dcecbd10731aad9d194a
"
"reference": "
9ae9dbd52629b1a01ccb647307b1aa7cf07086e4
"
},
"require": {
"zendframework/zend-mail": "^2.10",
...
...
@@ -2921,7 +2923,7 @@
}
],
"description": "PHP library for SIHAM webservices",
"time": "2021-09-2
4
T08:
30:23
+00:00"
"time": "2021-09-2
7
T08:
51:32
+00:00"
},
{
"name": "unicaen/tbl",
...
...
@@ -6965,16 +6967,16 @@
},
{
"name": "phpunit/phpunit",
"version": "8.5.2
0
",
"version": "8.5.2
1
",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "
9deefba183198398a09b927a6ac6bc1feb0b7b70
"
"reference": "
50a58a60b85947b0bee4c8ecfe0f4bbdcf20e984
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/
9deefba183198398a09b927a6ac6bc1feb0b7b70
",
"reference": "
9deefba183198398a09b927a6ac6bc1feb0b7b70
",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/
50a58a60b85947b0bee4c8ecfe0f4bbdcf20e984
",
"reference": "
50a58a60b85947b0bee4c8ecfe0f4bbdcf20e984
",
"shasum": ""
},
"require": {
...
...
@@ -7054,7 +7056,7 @@
"type": "github"
}
],
"time": "2021-0
8-31T06:44:38
+00:00"
"time": "2021-0
9-25T07:37:20
+00:00"
},
{
"name": "sabre/event",
...
...
module/ExportRh/src/Controller/ExportRhController.php
View file @
d28526fd
...
...
@@ -35,6 +35,7 @@ class ExportRhController extends AbstractController
public
function
__construct
(
ExportRhService
$exportRhService
)
{
$this
->
exportRhService
=
$exportRhService
;
}
...
...
@@ -122,8 +123,10 @@ class ExportRhController extends AbstractController
*/
try
{
$excludeStatut
=
$this
->
exportRhService
->
getExcludeStatutOse
();
if
(
$intervenant
->
getStatut
()
->
getCode
()
!=
'BIATSS'
&&
$typeIntervenant
!=
'P'
)
{
if
(
!
array_key_exists
(
$intervenant
->
getStatut
()
->
getCode
()
,
$this
->
exportRhService
->
getExcludeStatutOse
())
&&
$typeIntervenant
!=
'P'
)
{
$intervenantRh
=
$this
->
exportRhService
->
getIntervenantRh
(
$intervenant
);
}
...
...
@@ -167,7 +170,8 @@ class ExportRhController extends AbstractController
'priseEnCharge'
,
'nameConnecteur'
,
'affectationEnCours'
,
'contratEnCours'
));
'contratEnCours'
,
'excludeStatut'
));
return
$vm
;
}
...
...
module/ExportRh/src/Service/ExportRhService.php
View file @
d28526fd
...
...
@@ -9,6 +9,7 @@ use Application\Service\Traits\AnneeServiceAwareTrait;
use
Application\Service\Traits\IntervenantServiceAwareTrait
;
use
Application\Service\Traits\ParametresServiceAwareTrait
;
use
ExportRh\Entity\IntervenantRHExportParams
;
use
phpDocumentor\Reflection\Types\Array_
;
use
Zend\Form\Fieldset
;
/**
...
...
@@ -30,11 +31,14 @@ class ExportRhService extends AbstractService
protected
$connecteur
;
protected
$config
;
public
function
__construct
(
$connecteur
)
public
function
__construct
(
$connecteur
,
$config
)
{
$this
->
connecteur
=
$connecteur
;
$this
->
config
=
$config
;
}
...
...
@@ -194,4 +198,16 @@ class ExportRhService extends AbstractService
return
$this
->
getServiceAnnee
()
->
get
(
$annee
);
}
public
function
getExcludeStatutOse
():
array
{
$config
=
$this
->
config
;
if
(
array_key_exists
(
'exclude-statut-ose'
,
$config
))
{
return
$config
[
'exclude-statut-ose'
];
}
return
[];
}
}
\ No newline at end of file
module/ExportRh/src/Service/ExportRhServiceFactory.php
View file @
d28526fd
...
...
@@ -31,7 +31,7 @@ class ExportRhServiceFactory
break
;
}
$service
=
new
ExportRhService
(
$connecteur
);
$service
=
new
ExportRhService
(
$connecteur
,
$config
[
'unicaen-siham'
]
);
return
$service
;
}
...
...
module/ExportRh/view/export-rh/export-rh/exporter.phtml
View file @
d28526fd
...
...
@@ -23,9 +23,9 @@ if ($priseEnCharge) {
<?php
echo
$this
->
messenger
()
->
addCurrentMessagesFromFlashMessenger
();
?>
<?php
if
(
$typeIntervenant
==
'P'
||
$intervenant
->
getStatut
()
->
getCode
()
==
'BIATSS'
)
:
?>
<?php
if
(
$typeIntervenant
==
'P'
||
array_key_exists
(
$intervenant
->
getStatut
()
->
getCode
()
,
$excludeStatut
)
)
:
?>
<div
class=
"messenger alert alert-warning"
>
L'export des données intervenants vers
<?=
$nameConnecteur
;
?>
est disponible uniquement pour les vacataires (hors
BIATSS
)
L'export des données intervenants vers
<?=
$nameConnecteur
;
?>
est disponible uniquement pour les vacataires (hors
<?=
implode
(
', '
,
$excludeStatut
)
?>
)
</div>
<?php
elseif
(
$haveContratOse
===
false
)
:
?>
<div
class=
"messenger alert alert-warning"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment