diff --git a/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.html b/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.html
index 726fd6f..b60c1d1 100644
--- a/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.html
+++ b/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.html
@@ -9,12 +9,21 @@
Date départ : {{ collaborateur.dateDepart | date: 'dd MMMM yyyy'}}
- Liste des EP
- Liste des futurs formations
- Liste des formations effectuées
- Liste des collaborateurs
- Liste des EP effectués
- Liste des EP en cours
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.module.ts b/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.module.ts
index 78d0690..e6f49ac 100644
--- a/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.module.ts
+++ b/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.module.ts
@@ -4,7 +4,7 @@ import { FormsModule } from '@angular/forms';
import { MaterialModule } from "../angular-material/angular-material.module";
import { AffichageDetailsCollaborateurComponent } from "@shared/affichage-details-collaboarteur/affichage-details-collaborateur";
-
+import { MatTablesModule } from '@shared/mat-tables/mat-tables.module';
@NgModule({
declarations: [
@@ -13,7 +13,8 @@ import { AffichageDetailsCollaborateurComponent } from "@shared/affichage-detail
imports: [
MaterialModule,
CommonModule,
- FormsModule
+ FormsModule,
+ MatTablesModule
],
exports: [AffichageDetailsCollaborateurComponent]
})
diff --git a/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.ts b/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.ts
index 74d00cd..137bca8 100644
--- a/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.ts
+++ b/src/app/shared/affichage-details-collaboarteur/affichage-details-collaborateur.ts
@@ -1,6 +1,7 @@
import { Component, Input, OnInit } from "@angular/core";
import { CollaborateurDTO, CollaborateursService } from "@shared/api-swagger";
import { Subscription } from "rxjs";
+import { collaborateurTypeRecherche } from "@shared/utils/cles";
@Component({
selector: "affichage-details-collaborateur",
@@ -10,6 +11,14 @@ export class AffichageDetailsCollaborateurComponent implements OnInit{
@Input() idCollaborateur: string;
@Input() estReferent: boolean=false;
+
+ typeRecherche : string = collaborateurTypeRecherche.collaborateursEP;
+
+ displayedColumns : string[] = ["businessunit", "collaborateur", "datearrivee"];
+
+ rechercherParBU: boolean = true;
+
+
collaborateur: CollaborateurDTO = undefined;
private collaborateurSubscription: Subscription;
diff --git a/src/app/shared/mat-tables/collaborateurs-table/collaborateurs.table.html b/src/app/shared/mat-tables/collaborateurs-table/collaborateurs.table.html
index 4073e78..85f2e08 100644
--- a/src/app/shared/mat-tables/collaborateurs-table/collaborateurs.table.html
+++ b/src/app/shared/mat-tables/collaborateurs-table/collaborateurs.table.html
@@ -3,20 +3,19 @@
-
-
-
-
- Rechercher un collaborateur
-
-
- close
-
-
-
+
+
+
+ Rechercher un collaborateur
+
+
+ close
+
+
+
- {{bu.nom}}
+ {{bu.nom}}
@@ -30,7 +29,7 @@
-
+
Date de fin
clear
@@ -38,46 +37,49 @@
+
+
+ Aucun collaborateur à afficher
+
+
+
+
-
-
-
-
-
- Agence
- {{ row.businessUnit.nom }}
-
+
+
+ Agence
+ {{ row.businessUnit.nom }}
+
-
- Collabotareur
- {{row.nom}} {{row.prenom}}
-
+
+ Collabotareur
+ {{row.nom}} {{row.prenom}}
+
-
- Date embauche
- {{row.dateArrivee | date:'dd/MM/yyyy'}}
-
+
+ Date embauche
+ {{row.dateArrivee | date:'dd/MM/yyyy'}}
+
-
- Référent
-
- {{ row.referent.prenom }} {{ row.referent.nom }}
- Aucun référent
-
-
+
+ Référent
+
+ {{ row.referent.prenom }} {{ row.referent.nom }}
+ Aucun référent
+
+
-
-
-
+
+
+
-
+
-
+
\ No newline at end of file
diff --git a/src/app/shared/mat-tables/collaborateurs-table/collaborateurs.table.ts b/src/app/shared/mat-tables/collaborateurs-table/collaborateurs.table.ts
index 63dedcd..ee38876 100644
--- a/src/app/shared/mat-tables/collaborateurs-table/collaborateurs.table.ts
+++ b/src/app/shared/mat-tables/collaborateurs-table/collaborateurs.table.ts
@@ -70,7 +70,7 @@ export class CollaborateursTableComponent implements OnInit {
/**
* Nombre total d'élément du tableau
*/
- taille: number;
+ taille: number = 0;
/**
@@ -93,6 +93,9 @@ export class CollaborateursTableComponent implements OnInit {
*/
dateFin: Date = undefined;
+
+ @Input() idReferent: string;
+
/**
* Indiquer si il s'agit d'une recherche collaborateur, d'un recherche référentEP ou d'une recherche collaborateurEP d'un référent
*/
@@ -193,11 +196,11 @@ export class CollaborateursTableComponent implements OnInit {
* Afficher les informations des collaborateursEP d'un référent
*/
updateCollaborateursEP() {
- this.collaborateursDisponiblesSubscription = this.service.getCollaborateursByReferent(this.collaborateurConnecte.id, this.asc, this.numPage, this.parPage, this.search, this.tri).subscribe(
+ this.collaborateursDisponiblesSubscription = this.service.getCollaborateursByReferent(this.idReferent, this.asc, this.numPage, this.parPage, this.search, this.tri).subscribe(
collaborateurs => { console.log(collaborateurs); this.dataSource = new MatTableDataSource(collaborateurs);},
err => console.log(err)
);
- this.collaborateursDisponiblesCountSubscription = this.service.getCollaborateursByReferentCount(this.collaborateurConnecte.id, this.asc, this.numPage, this.parPage, this.search, this.tri).subscribe(
+ this.collaborateursDisponiblesCountSubscription = this.service.getCollaborateursByReferentCount(this.idReferent, this.asc, this.numPage, this.parPage, this.search, this.tri).subscribe(
count => { console.log(count); this.taille=count;},
err => console.log(err)
);