parent
de956f8bc3
commit
0838e86509
@ -0,0 +1,3 @@ |
|||||||
|
<app-nav-menu></app-nav-menu> |
||||||
|
<h1>Liste des EP collaborateurs signés</h1> |
||||||
|
<ep-table [typeRechercheEP]="typeRechercheEP" [displayedColumns]="displayedColumns" (eventEmitter)="eventEmitter($event)"></ep-table> |
@ -0,0 +1,35 @@ |
|||||||
|
import { Component } from '@angular/core'; |
||||||
|
import { Router } from '@angular/router'; |
||||||
|
import { epTypeRecherche } from '@shared/utils/cles'; |
||||||
|
|
||||||
|
/** |
||||||
|
* Composant qui permet la consultation de la liste des EP signés collaborateur |
||||||
|
*/ |
||||||
|
@Component({ |
||||||
|
selector: 'app-ep-signes', |
||||||
|
templateUrl: './ep-signes.component.html' |
||||||
|
}) |
||||||
|
export class EpSignesComponent { |
||||||
|
displayedColumns: string[] = ["agence", "collaborateur", "referent", "datearrivee", "statutep", "typeep", "dateentretien", "consultation"]; |
||||||
|
|
||||||
|
typeRechercheEP : string = epTypeRecherche.EPSignes; |
||||||
|
|
||||||
|
constructor(private router: Router){} |
||||||
|
|
||||||
|
|
||||||
|
eventEmitter(event: any) { |
||||||
|
switch(event.type) { |
||||||
|
case "collaborateur": |
||||||
|
if(event.ep.collaborateur != undefined) |
||||||
|
this.router.navigate(["/collaborateurs", event.ep.collaborateur.id]) |
||||||
|
break; |
||||||
|
case "referent": |
||||||
|
if(event.ep.referent != undefined) |
||||||
|
this.router.navigate(["/referents", event.ep.referent.id]) |
||||||
|
break; |
||||||
|
case "ep": |
||||||
|
this.router.navigate(["/ep", event.ep.id]); |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -1,3 +1 @@ |
|||||||
<app-nav-menu></app-nav-menu> |
<app-nav-menu></app-nav-menu> |
||||||
<h1>Liste des EP collaborateurs</h1> |
|
||||||
<ep-table [typeRechercheEP]="typeRechercheEP" [displayedColumns]="displayedColumns" (eventEmitter)="eventEmitter($event)"></ep-table> |
|
@ -1,35 +1,11 @@ |
|||||||
import { Component } from '@angular/core'; |
import { Component } from '@angular/core'; |
||||||
import { Router } from '@angular/router'; |
|
||||||
import { epTypeRecherche } from '@shared/utils/cles'; |
|
||||||
|
|
||||||
/** |
|
||||||
* Composant qui permet la consultation d'un EP |
|
||||||
*/ |
|
||||||
@Component({ |
@Component({ |
||||||
selector: 'app-ep', |
selector: 'app-ep', |
||||||
templateUrl: './ep.component.html' |
templateUrl: './ep.component.html' |
||||||
}) |
}) |
||||||
export class EpComponent { |
export class EpComponent { |
||||||
displayedColumns: string[] = ["agence", "collaborateur", "referent", "datearrivee", "statutep", "typeep", "dateentretien", "consultation"]; |
|
||||||
|
|
||||||
typeRechercheEP : string = epTypeRecherche.EPSignes; |
|
||||||
|
|
||||||
constructor(private router: Router){} |
|
||||||
|
|
||||||
|
constructor(){} |
||||||
eventEmitter(event: any) { |
|
||||||
switch(event.type) { |
|
||||||
case "collaborateur": |
|
||||||
if(event.ep.collaborateur != undefined) |
|
||||||
this.router.navigate(["/collaborateurs", event.ep.collaborateur.id]) |
|
||||||
break; |
|
||||||
case "referent": |
|
||||||
if(event.ep.referent != undefined) |
|
||||||
this.router.navigate(["/referents", event.ep.referent.id]) |
|
||||||
break; |
|
||||||
case "ep": |
|
||||||
this.router.navigate(["/ep", event.ep.id]); |
|
||||||
break; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue