-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1861 from MTES-MCT/feature/946-categories-refus
[BO - Signalement] Ajout d'une liste de motifs de refus d'affectation ou signalement
- Loading branch information
Showing
15 changed files
with
217 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DoctrineMigrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
final class Version20231031132907 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'add field motif_refus to affectation and signalement tables'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
$this->addSql('ALTER TABLE affectation ADD motif_refus VARCHAR(255) DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE signalement ADD motif_refus VARCHAR(255) DEFAULT NULL'); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
$this->addSql('ALTER TABLE affectation DROP motif_refus'); | ||
$this->addSql('ALTER TABLE signalement DROP motif_refus'); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -150,6 +150,7 @@ affectations: | |
answered_by: "[email protected]" | ||
affected_by: "[email protected]" | ||
motif_cloture: "" | ||
motif_refus: "DOUBLON" | ||
territory: "Isère" | ||
- | ||
signalement: 2023-23 | ||
|
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
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,28 @@ | ||
<?php | ||
|
||
namespace App\Entity\Enum; | ||
|
||
enum MotifRefus: string | ||
{ | ||
case HORS_PDLHI = 'HORS_PDLHI'; | ||
case HORS_ZONE_GEOGRAPHIQUE = 'HORS_ZONE_GEOGRAPHIQUE'; | ||
case HORS_COMPETENCE = 'HORS_COMPETENCE'; | ||
case DOUBLON = 'DOUBLON'; | ||
case AUTRE = 'AUTRE'; | ||
|
||
public function label(): string | ||
{ | ||
return self::getLabelList()[$this->name]; | ||
} | ||
|
||
public static function getLabelList(): array | ||
{ | ||
return [ | ||
'HORS_PDLHI' => 'Hors PDLHI', | ||
'HORS_ZONE_GEOGRAPHIQUE' => 'Hors zone géographique', | ||
'HORS_COMPETENCE' => 'Hors compétence', | ||
'DOUBLON' => 'Doublon', | ||
'AUTRE' => 'Autre', | ||
]; | ||
} | ||
} |
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
Oops, something went wrong.