|
|
@ -4,6 +4,7 @@ import { Subscription } from "rxjs"; |
|
|
|
import { collaborateurTypeRecherche } from "@shared/utils/cles"; |
|
|
|
import { collaborateurTypeRecherche } from "@shared/utils/cles"; |
|
|
|
import { MatDialog } from "@angular/material/dialog"; |
|
|
|
import { MatDialog } from "@angular/material/dialog"; |
|
|
|
import { DialogAssignationRapideReferentComponent, DialogAssignationRapideCollaborateursComponent } from "./dialog-assignation-rapide/dialog-assignation-rapide.component"; |
|
|
|
import { DialogAssignationRapideReferentComponent, DialogAssignationRapideCollaborateursComponent } from "./dialog-assignation-rapide/dialog-assignation-rapide.component"; |
|
|
|
|
|
|
|
import { Router } from "@angular/router"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
@ -19,13 +20,13 @@ export class AffichageDetailsCollaborateurComponent implements OnInit{ |
|
|
|
|
|
|
|
|
|
|
|
displayedColumns : string[] = ["businessunit", "collaborateur", "datearrivee"]; |
|
|
|
displayedColumns : string[] = ["businessunit", "collaborateur", "datearrivee"]; |
|
|
|
|
|
|
|
|
|
|
|
rechercherParBU: boolean = true; |
|
|
|
rechercherParBU: boolean = false; |
|
|
|
|
|
|
|
rechercherParDate: boolean= false; |
|
|
|
|
|
|
|
|
|
|
|
collaborateur: CollaborateurDTO = undefined; |
|
|
|
collaborateur: CollaborateurDTO = undefined; |
|
|
|
private collaborateurSubscription: Subscription; |
|
|
|
private collaborateurSubscription: Subscription; |
|
|
|
|
|
|
|
|
|
|
|
constructor(private collaborateurService: CollaborateursService, private dialog: MatDialog) {} |
|
|
|
constructor(private collaborateurService: CollaborateursService, private dialog: MatDialog, private router: Router) {} |
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
ngOnInit() { |
|
|
|
this.collaborateurSubscription = this.collaborateurService.getCollaborateurById(this.idCollaborateur).subscribe( |
|
|
|
this.collaborateurSubscription = this.collaborateurService.getCollaborateurById(this.idCollaborateur).subscribe( |
|
|
@ -40,6 +41,11 @@ export class AffichageDetailsCollaborateurComponent implements OnInit{ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ouvrirDetailsCollaborateur(event) { |
|
|
|
|
|
|
|
this.router.navigate(["/collaborateurs",event.collaborateur.id]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
openDialog() { |
|
|
|
openDialog() { |
|
|
|
const datas = { data: this.collaborateur, width: "80%", height: '80%'}; |
|
|
|
const datas = { data: this.collaborateur, width: "80%", height: '80%'}; |
|
|
|
let dialog;
|
|
|
|
let dialog;
|
|
|
|