diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index fec8549..69a29c0 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -41,11 +41,11 @@ const routes: Routes = [
{
path: paths_saisie_ep.path,
loadChildren: () => import('./ep-saisie/ep-saisie.module').then(m=> m.EpSaisieModule)
- }/*,
+ },
{
path: paths_formation.path,
loadChildren: () => import('./formations/formations.module').then(m=> m.FormationsModule)
- }*/,
+ },
{
path: paths_referents.path,
loadChildren: () => import('./referents/referents.module').then(m=> m.ReferentsModule)
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 7c9625d..7be2bed 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -19,7 +19,7 @@ import { HomeModule } from './home';
import { CollaborateursModule } from './collaborateurs';
import { ReferentsModule } from './referents';
-//import { FormationsModule } from './formations';
+import { FormationsModule } from './formations';
import { DemandesFormationModule } from './demandes-formation';
import { DemandesDelegationModule } from './demandes-delegation';
import { EpSaisieModule } from "./ep-saisie";
@@ -43,7 +43,7 @@ let keycloakService: KeycloakService = new KeycloakService();
KeycloakAngularModule, AppRoutingModule,
HttpClientModule, ApiModule,
HomeModule, CollaborateursModule,
- //ReferentsModule, FormationsModule,
+ ReferentsModule, FormationsModule,
DemandesFormationModule, DemandesDelegationModule,
EpSaisieModule, EpModule
],
diff --git a/src/app/formations/details-formation/formation.component.html b/src/app/formations/details-formation/formation.component.html
index bc66bd3..1e7c365 100644
--- a/src/app/formations/details-formation/formation.component.html
+++ b/src/app/formations/details-formation/formation.component.html
@@ -4,13 +4,14 @@
{{formation.intitule}}
Informations générales
-
- Etat : {{formation.statut}}
- {{dateTexte}} {{formation.dateDebut | date:'dd/MM/yyyy à hh:mm'}}
- Origine : {{formation.origine}}
+
+
+ Etat : {{formation.statut.libelle}}
+ Date formation : {{formation.dateDebut | date:'dd/MM/yyyy à hh:mm'}}
+ Origine : {{formation.origine.libelle}}
Organisme : {{ formation.organisme}}
- Mode formation : {{ formation.mode}}
- Type formation : {{ formation.type}}
+ Mode formation : {{ formation.mode.libelle}}
+ Type formation : {{ formation.type.libelle}}
@@ -21,10 +22,10 @@
Liste des participants
-
+
Collaborateur
@@ -36,6 +37,7 @@
{{row.dateCreation | date :'dd/MM/yy à HH:mm'}}
+
Evaluations
diff --git a/src/app/formations/details-formation/formation.component.ts b/src/app/formations/details-formation/formation.component.ts
index b2b4b37..39cb621 100644
--- a/src/app/formations/details-formation/formation.component.ts
+++ b/src/app/formations/details-formation/formation.component.ts
@@ -8,8 +8,7 @@ import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
import { FormationsService } from '@shared/api-swagger/api/api';
-import { FormationModel } from "@shared/api-swagger/model/models";
-import { DisplayParticipation } from "@shared/displayInfo/displays";
+import { FormationDTO, ParticipationFormationDTO } from "@shared/api-swagger/model/models";
/**
*/
@@ -18,17 +17,15 @@ import { DisplayParticipation } from "@shared/displayInfo/displays";
templateUrl: './formation.component.html'
})
export class FormationComponent implements OnInit {
- statutEnum = FormationModel.StatutEnum;
- formation:FormationModel;
- dateTexte:string = "Prévue le";
+ //statutEnum = FormationModel.StatutEnum;
+ formation:FormationDTO;
formationSubscription: Subscription;
- participationsDisplay: DisplayParticipation[];
-
- dataSource : MatTableDataSource;
+ dataSource : MatTableDataSource;
displayedColumns: string[]= ["agence", "collaborateur", "dateinscription", "ep"];
id:any
+
constructor(private service:FormationsService,private route:ActivatedRoute) {}
ngOnInit() {
@@ -38,39 +35,11 @@ export class FormationComponent implements OnInit {
);
}
- initFormation(formation:FormationModel) {
+ initFormation(formation:FormationDTO) {
this.formation = formation;
- if(this.formation.statut == FormationModel.StatutEnum.Realise) {
- this.dateTexte = "Effecutée le";
- this.displayedColumns.push("evaluation");
- }
- if(this.formation.statut == FormationModel.StatutEnum.Annule) {
- this.dateTexte = "Initialement prévue le";
- }
if(formation.participantsFormation != undefined && formation.participantsFormation.length != 0 ) {
- this.initParticpationFormation();
- }
- }
-
-
- initParticpationFormation() {
- let participationDisplay : DisplayParticipation;
- this.participationsDisplay = [];
- for(let participation of this.formation.participantsFormation ) {
- participationDisplay = new DisplayParticipation();
- participationDisplay.id =participation.id;
- participationDisplay.dateCreation = participation.dateCreation;
-
- participationDisplay.estEvaluee = participation.estEvaluee;
- participationDisplay.idEP = participation.demandeformation.ep.id;
- participationDisplay.statutEP = participation.demandeformation.ep.etat;
- participationDisplay.idCollaborateur = participation.demandeformation.ep.collaborateur.id;
- participationDisplay.collaborateur = participation.demandeformation.ep.collaborateur.prenom + " " + participation.demandeformation.ep.collaborateur.nom;
- participationDisplay.agence = participation.demandeformation.ep.collaborateur.businessUnit.nom;
-
- this.participationsDisplay.push(participationDisplay);
+ this.dataSource = new MatTableDataSource(formation.participantsFormation);
}
- this.dataSource = new MatTableDataSource(this.participationsDisplay);
}
ngOnDestroy() {
diff --git a/src/app/formations/edit-formation/edit-formation.component.html b/src/app/formations/edit-formation/edit-formation.component.html
index a2a5331..a82a62a 100644
--- a/src/app/formations/edit-formation/edit-formation.component.html
+++ b/src/app/formations/edit-formation/edit-formation.component.html
@@ -12,16 +12,17 @@
-
-
+
+ Statut formation
+
+ {{s.libelle}}
+
-
-
-
- Statut
-
- {{statuts[key]}}
+
+ Origine formation
+
+ {{o.libelle}}
@@ -61,15 +62,15 @@
Type formation
-
- {{types[key]}}
+
+ {{t.libelle}}
Mode formation
- {{modes[key]}}
+ {{m.libelle}}
diff --git a/src/app/formations/edit-formation/edit-formation.component.ts b/src/app/formations/edit-formation/edit-formation.component.ts
index 369744c..c820b0c 100644
--- a/src/app/formations/edit-formation/edit-formation.component.ts
+++ b/src/app/formations/edit-formation/edit-formation.component.ts
@@ -10,7 +10,7 @@ import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
-import { FormationModel } from '@shared/api-swagger/model/models';
+import { FormationDTO, ModeFormationDTO, TypeFormationDTO, StatutFormationDTO, OrigineFormationDTO } from '@shared/api-swagger/model/models';
import { FormationsService } from '@shared/api-swagger/api/api';
/**
@@ -21,53 +21,94 @@ import { FormationsService } from '@shared/api-swagger/api/api';
styleUrls: ["edit-formation.component.css"]
})
export class EditFormationComponent implements OnInit {
- formation:FormationModel;
+
formationSubscription: Subscription;
+ origineSubscription: Subscription;
+ typeSubscription: Subscription;
+ modeSubscription: Subscription;
+ statutSubscription: Subscription;
+
+ modes: ModeFormationDTO[];
+ types: TypeFormationDTO[];
+ origines: OrigineFormationDTO[];
+ statuts: StatutFormationDTO[];
+
+ //formation: FormationDTO;
formationForm: FormGroup;
id :any;
- statuts = FormationModel.StatutEnum;
- modes = FormationModel.ModeEnum;
- types = FormationModel.TypeEnum;
- keysStatuts: any[];
- keysModes: any[];
- keysTypes: any[];
constructor(private service: FormationsService, private fb: FormBuilder,
- private activatedRoute:ActivatedRoute, private router: Router) {}
+ private activatedRoute:ActivatedRoute, private router: Router) {
+ this.formationForm= this.fb.group(
+ {
+ id: [""],
+ intitule: [""],
+ origine: [""],
+ statut : [""],
+ dateDebut: [""],
+ dateFin: [""],
+ heure: [""],
+ jour: [""],
+ organisme: [""],
+ mode: [""],
+ type: [""],
+ estCertifie: [""]
+ }
+ );
+ }
ngOnInit() {
+
+ this.modeSubscription = this.service.getModesFormation().subscribe(
+ modes => this.modes = modes,
+ err => console.log(err)
+ );
+
+ this.origineSubscription = this.service.getOriginesFormation().subscribe(
+ origines => this.origines = origines,
+ err => console.log(err)
+ );
+
+ this.statutSubscription = this.service.getStatutsFormation().subscribe(
+ statuts => this.statuts = statuts,
+ err => console.log(err)
+ );
+
+ this.typeSubscription = this.service.getTypesFormation().subscribe(
+ types => this.types = types,
+ err => console.log(err)
+ );
this.id = this.activatedRoute.snapshot.paramMap.get('id');
this.formationSubscription = this.service.getFormationById(this.id).subscribe(
formation => this.initFormation(formation)
);
- this.keysStatuts = Object.keys(this.statuts).filter(String);
- this.keysModes = Object.keys(this.modes).filter(String);
- this.keysTypes = Object.keys(this.types).filter(String);
}
- initFormation(formation:FormationModel) {
- this.formation = formation;
+ initFormation(formation:FormationDTO) {
+
+ //this.formation = formation;
this.formationForm= this.fb.group(
{
+ id: [formation.id],
+ intitule: [formation.intitule],
+ origine: [formation.origine],
+ statut : [formation.statut],
+ dateDebut: [new Date(formation.dateDebut)],
+ dateFin: [new Date(formation.dateFin)],
+ heure: [formation.heure],
+ jour: [formation.jour],
+ organisme: [formation.organisme],
+ mode: [formation.mode],
+ type: [formation.type],
+ estCertifie: [formation.estCertifie]
+ }
+ );
- intitule: [this.formation.intitule],
- origine: [this.formation.origine],
- statut : [this.formation.statut],
- dateDebut: [new Date(this.formation.dateDebut)],
- dateFin: [new Date(this.formation.dateFin)],
- heure: [this.formation.heure],
- jour: [this.formation.jour],
- organisme: [this.formation.organisme],
- mode: [this.formation.mode],
- type: [this.formation.type],
- estCertifie: [this.formation.estCertifie]
- });
}
updateFormation() {
- this.formation = this.formationForm.value;
- this.formation.id = this.id;
- this.formationSubscription = this.service.updateFormation(this.formation).subscribe(
+ //this.formation = this.formationForm.value;
+ this.formationSubscription = this.service.updateFormation(this.formationForm.value, this.formationForm.value.id).subscribe(
response => {
this.router.navigate(['/formations',this.id]);
}
@@ -75,7 +116,7 @@ export class EditFormationComponent implements OnInit {
}
supprimerFormation() {
- this.formationSubscription = this.service.deleteFormation(this.formation.id).subscribe(
+ this.formationSubscription = this.service.deleteFormation(this.id).subscribe(
response => this.router.navigate([""])
);
}
@@ -86,3 +127,39 @@ export class EditFormationComponent implements OnInit {
}
}
}
+/*
+this.formationForm= this.fb.group(
+ {
+ id: [formation.id],
+ intitule: [formation.intitule],
+ origine: [formation.origine],
+ statut : [formation.statut],
+ dateDebut: [new Date(formation.dateDebut)],
+ dateFin: [new Date(formation.dateFin)],
+ heure: [formation.heure],
+ jour: [formation.jour],
+ organisme: [formation.organisme],
+ mode: [formation.mode],
+ type: [formation.type],
+ estCertifie: [formation.estCertifie]
+ }
+);
+*/
+/*
+this.formationForm.setValue(
+ {
+ id: formation.id,
+ intitule: formation.intitule,
+ origine: formation.origine,
+ statut : formation.statut,
+ dateDebut: new Date(formation.dateDebut),
+ dateFin: new Date(formation.dateFin),
+ heure: formation.heure,
+ jour: formation.jour,
+ organisme: formation.organisme,
+ mode: formation.mode,
+ type: formation.type,
+ estCertifie: formation.estCertifie
+ }
+);
+*/
diff --git a/src/app/formations/formations.component.html b/src/app/formations/formations.component.html
index d4a3af7..d934fac 100644
--- a/src/app/formations/formations.component.html
+++ b/src/app/formations/formations.component.html
@@ -14,17 +14,17 @@
Date prévisionnelle
- {{ row.datePrevu | date:'dd/MM/yy à hh:mm' }}
+ {{ row.dateDebut | date:'dd/MM/yy à hh:mm' }}
Origine
- {{ row.origine}}
+ {{ row.origine.libelle}}
Statut
- {{row.statut}}
+ {{row.statut.libelle}}
diff --git a/src/app/formations/formations.component.ts b/src/app/formations/formations.component.ts
index a2cf154..7c38753 100644
--- a/src/app/formations/formations.component.ts
+++ b/src/app/formations/formations.component.ts
@@ -6,8 +6,7 @@ import {MatTableDataSource} from '@angular/material/table';
import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
-import { FormationModel } from "@shared/api-swagger/model/models";
-import { DisplayFormation } from "@shared/displayInfo/displays";
+import { FormationDetailsDTO } from "@shared/api-swagger/model/models";
import { FormationsService } from "@shared/api-swagger/api/api";
/**
@@ -17,8 +16,12 @@ import { FormationsService } from "@shared/api-swagger/api/api";
templateUrl: './formations.component.html'
})
export class FormationsComponent implements OnInit {
- formationsDisponibles : DisplayFormation[];
- formationsFiltres : DisplayFormation[];
+
+
+ asc = true;
+ numPage = 1;
+ parPage = 5;
+
private formationsDisponiblesSubscription : Subscription;
//displayedColumns: string[] = ["intitule", "participants", "date", "origine", "statut"]
@@ -27,13 +30,13 @@ export class FormationsComponent implements OnInit {
/**
* source pour l'affichage des formations dans le tableau qui est affichée.
*/
- dataSource : MatTableDataSource;
+ dataSource : MatTableDataSource;
/**
* contenu de la recherche.
*/
search = "";
-
+ tri = "";
/**
* Pagination du tableau.
*/
@@ -52,31 +55,36 @@ export class FormationsComponent implements OnInit {
}
ngOnInit() {
- this.formationsDisponiblesSubscription = this.service.getFormations(undefined, 1).subscribe(
- formations => this.initFormations(formations)
- );
+ this.updateDataSource(0);
}
- initFormations(formations:FormationModel[]) {
- this.formationsDisponibles = [];
- let formationDisplay : DisplayFormation;
- for(let formation of formations) {
- formationDisplay = new DisplayFormation();
- formationDisplay.id = formation.id;
- formationDisplay.intitule = formation.intitule;
- formationDisplay.nbParticipants = 0;
- if(formation.participantsFormation != undefined) {
- formationDisplay.nbParticipants = formation.participantsFormation.length;
- }
- formationDisplay.datePrevu = formation.dateDebut;
- formationDisplay.origine = formation.origine;
- formationDisplay.statut = formation.statut;
- this.formationsDisponibles.push(formationDisplay);
+ updateDataSource(val:number) {
+ switch ((val)) {
+ case 0:
+ this.formationsDisponiblesSubscription = this.service.getFormations(this.asc,this.numPage, this.parPage, 1, undefined, this.search, this.tri).subscribe(
+ formations => this.dataSource = new MatTableDataSource(formations),
+ err => console.log(err)
+ );
+ break;
+
+ case 1:
+ this.formationsDisponiblesSubscription = this.service.getFormationRealisee(this.asc,this.numPage, this.parPage, 1, this.search, this.tri).subscribe(
+ formations => this.dataSource = new MatTableDataSource(formations),
+ err => console.log(err)
+ );
+ break;
+ case 2:
+ this.formationsDisponiblesSubscription = this.service.getFormationAnnulees(this.asc,this.numPage, this.parPage, 1, this.search, this.tri).subscribe(
+ formations => this.dataSource = new MatTableDataSource(formations),
+ err => console.log(err)
+ );
+ break;
+ default:
+ break;
}
- this.formationsFiltres = this.formationsDisponibles;
- this.dataSource = new MatTableDataSource(this.formationsFiltres);
- this.dataSource.paginator = this.paginator;
- this.dataSource.sort = this.sort;
+
+ //this.dataSource.paginator = this.paginator;
+ //this.dataSource.sort = this.sort;
}
ngOnDestroy() {
diff --git a/src/app/formations/formations.module.ts b/src/app/formations/formations.module.ts
index 4df5d4b..6fe9688 100644
--- a/src/app/formations/formations.module.ts
+++ b/src/app/formations/formations.module.ts
@@ -16,8 +16,8 @@ import { EditFormationComponent } from './edit-formation/edit-formation.componen
import { FormationsRoutingModule } from './formations.routing.module';
@NgModule({
- declarations: [ FormationsComponent, NewFormationComponent,
- FormationComponent, EditFormationComponent
+ declarations: [ FormationsComponent, FormationComponent,
+ NewFormationComponent, EditFormationComponent
],
exports: [
FormationsComponent
diff --git a/src/app/formations/formations.routing.module.ts b/src/app/formations/formations.routing.module.ts
index d74f439..e0047e0 100644
--- a/src/app/formations/formations.routing.module.ts
+++ b/src/app/formations/formations.routing.module.ts
@@ -4,8 +4,8 @@ import { Routes, RouterModule } from '@angular/router';
import { FormationsComponent } from "./formations.component";
import { FormationComponent } from "./details-formation/formation.component";
-import { EditFormationComponent } from "./edit-formation/edit-formation.component";
import { NewFormationComponent } from "./new-formation/new-formation.component";
+import { EditFormationComponent } from "./edit-formation/edit-formation.component";
import { KeycloakGuard } from '@shared/guards/keycloakguard';
diff --git a/src/app/formations/new-formation/new-formation.component.html b/src/app/formations/new-formation/new-formation.component.html
index 55d8f07..ada9d28 100644
--- a/src/app/formations/new-formation/new-formation.component.html
+++ b/src/app/formations/new-formation/new-formation.component.html
@@ -7,9 +7,20 @@
+
-
-
+
+ Statut formationn
+
+ {{s.libelle}}
+
+
+
+
+ Origine formation
+
+ {{o.libelle}}
+
@@ -48,15 +59,15 @@
Type formation
-
- {{types[key]}}
+
+ {{t.libelle}}
Mode formation
- {{modes[key]}}
+ {{m.libelle}}
diff --git a/src/app/formations/new-formation/new-formation.component.ts b/src/app/formations/new-formation/new-formation.component.ts
index a4e0eab..b314697 100644
--- a/src/app/formations/new-formation/new-formation.component.ts
+++ b/src/app/formations/new-formation/new-formation.component.ts
@@ -3,7 +3,7 @@ import { Observable, Subscription } from 'rxjs';
import { Router } from '@angular/router';
import { FormBuilder, FormGroup, FormControl, Validators } from '@angular/forms';
-import { FormationModel } from "@shared/api-swagger/model/models";
+import { FormationDTO, ModeFormationDTO, TypeFormationDTO, StatutFormationDTO, OrigineFormationDTO } from "@shared/api-swagger/model/models";
import { FormationsService } from "@shared/api-swagger/api/api";
@@ -16,12 +16,21 @@ import { FormationsService } from "@shared/api-swagger/api/api";
})
export class NewFormationComponent implements OnInit {
formationSubscription: Subscription;
- nouvelleformation: FormationModel;
+ origineSubscription: Subscription;
+ typeSubscription: Subscription;
+ modeSubscription: Subscription;
+ statutSubscription: Subscription;
+
+ modes: ModeFormationDTO[];
+ types: TypeFormationDTO[];
+ origines: OrigineFormationDTO[];
+ statuts: StatutFormationDTO[];
+ //nouvelleformation: FormationDTO;
formationForm = this.fb.group(
{
intitule: [""],
origine: [""],
- statut : [FormationModel.StatutEnum.Planifie],
+ statut : [""],
dateDebut: [""],
dateFin: [""],
heure: [""],
@@ -32,21 +41,35 @@ export class NewFormationComponent implements OnInit {
estCertifie: [""]
}
);
- modes = FormationModel.ModeEnum;
- types = FormationModel.TypeEnum;
- keysModes: any[];
- keysTypes: any[];
constructor(private fb: FormBuilder, private service:FormationsService, private router: Router) { }
ngOnInit() {
- this.keysModes = Object.keys(this.modes).filter(String);
- this.keysTypes = Object.keys(this.types).filter(String);
+ this.modeSubscription = this.service.getModesFormation().subscribe(
+ modes => this.modes = modes,
+ err => console.log(err)
+ );
+
+ this.origineSubscription = this.service.getOriginesFormation().subscribe(
+ origines => this.origines = origines,
+ err => console.log(err)
+ );
+
+ this.statutSubscription = this.service.getStatutsFormation().subscribe(
+ statuts => this.statuts = statuts,
+ err => console.log(err)
+ );
+
+ this.typeSubscription = this.service.getTypesFormation().subscribe(
+ types => this.types = types,
+ err => console.log(err)
+ );
+
}
ajouterFormation() {
- this.nouvelleformation = this.formationForm.value;
- this.formationSubscription = this.service.ajouterFormation(this.nouvelleformation).subscribe(
+ //this.nouvelleformation = this.formationForm.value;
+ this.formationSubscription = this.service.ajouterFormation(this.formationForm.value).subscribe(
response => {
this.router.navigate(['/formations',response["id"]]);
}
diff --git a/src/app/home/home-rh/home-rh.component.html b/src/app/home/home-rh/home-rh.component.html
index 464ad1f..cfa6a5e 100644
--- a/src/app/home/home-rh/home-rh.component.html
+++ b/src/app/home/home-rh/home-rh.component.html
@@ -15,12 +15,12 @@
Date prévisionnelle
{{ row.dateDebut | date:'dd/MM/yyyy à hh:mm' }}
-
+
Statut
{{row.statut.libelle}}
diff --git a/src/app/home/home-rh/home-rh.component.ts b/src/app/home/home-rh/home-rh.component.ts
index cd5c1bc..6fb5627 100644
--- a/src/app/home/home-rh/home-rh.component.ts
+++ b/src/app/home/home-rh/home-rh.component.ts
@@ -31,8 +31,8 @@ export class HomeRHComponent implements OnInit {
private formationsDisponiblesSubscription : Subscription;
//displayedColumns: string[] = ["intitule", "participants", "date", "origine", "statut"]
- //displayedColumns: string[] = ["intitule", "origine", "participants", "date", "statut","certification"];
- displayedColumns: string[] = ["intitule", "participants", "date", "statut","certification"];
+ displayedColumns: string[] = ["intitule", "origine", "participants", "date", "statut","certification"];
+// displayedColumns: string[] = ["intitule", "participants", "date", "statut","certification"];
/**
* source pour l'affichage des formations dans le tableau qui est affichée.
diff --git a/src/app/shared/api-swagger/model/formationDTO.ts b/src/app/shared/api-swagger/model/formationDTO.ts
index 16fc8c3..60ab643 100644
--- a/src/app/shared/api-swagger/model/formationDTO.ts
+++ b/src/app/shared/api-swagger/model/formationDTO.ts
@@ -3,13 +3,13 @@
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
*
* OpenAPI spec version: 1.3.5
- *
+ *
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
-import { FormationDTOParticipantsFormation } from './formationDTOParticipantsFormation';
+import { ParticipationFormationDTO } from './participationFormationDTO';
import { ModeFormationDTO } from './modeFormationDTO';
import { OrigineFormationDTO } from './origineFormationDTO';
import { StatutFormationDTO } from './statutFormationDTO';
@@ -18,7 +18,7 @@ import { TypeFormationDTO } from './typeFormationDTO';
/**
* Toutes les informations d'une formation
*/
-export interface FormationDTO {
+export interface FormationDTO {
id: number;
intitule: string;
origine: OrigineFormationDTO;
@@ -32,5 +32,5 @@ export interface FormationDTO {
mode: ModeFormationDTO;
type: TypeFormationDTO;
estCertifie: boolean;
- participantsFormation?: Array;
-}
\ No newline at end of file
+ participantsFormation?: Array;
+}
diff --git a/src/app/shared/api-swagger/model/formationDTOParticipantsFormation.ts b/src/app/shared/api-swagger/model/formationDTOParticipantsFormation.ts
deleted file mode 100644
index 5102e91..0000000
--- a/src/app/shared/api-swagger/model/formationDTOParticipantsFormation.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * API du serveur de l'application de digitalisation des EP
- * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
- *
- * OpenAPI spec version: 1.3.5
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-export interface FormationDTOParticipantsFormation {
- id: number;
- dateCreation: Date;
- formation: string;
- date?: Date;
- statut?: string;
- idCollaborateur?: string;
- collaborateur?: string;
- estEvaluee: boolean;
-}
\ No newline at end of file
diff --git a/src/app/shared/api-swagger/model/models.ts b/src/app/shared/api-swagger/model/models.ts
index 3a443db..786e74b 100644
--- a/src/app/shared/api-swagger/model/models.ts
+++ b/src/app/shared/api-swagger/model/models.ts
@@ -18,7 +18,6 @@ export * from './epSaisieDTO';
export * from './erreurDTO';
export * from './evaluationDTO';
export * from './formationDTO';
-export * from './formationDTOParticipantsFormation';
export * from './formationDetailsDTO';
export * from './modeFormationDTO';
export * from './objectifDTO';