|
|
|
@ -2,7 +2,6 @@ import {Component, OnInit} from '@angular/core'; |
|
|
|
|
import {HttpClient} from "@angular/common/http"; |
|
|
|
|
import {CollaborateurService} from "../../services/collaborateur.service"; |
|
|
|
|
import {Collaborateur} from "../../interfaces/collaborateur"; |
|
|
|
|
import {Businessunit} from "../../interfaces/businessunit"; |
|
|
|
|
import {BusinessunitService} from "../../services/businessunit.service"; |
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@ -12,15 +11,6 @@ import {BusinessunitService} from "../../services/businessunit.service"; |
|
|
|
|
}) |
|
|
|
|
export class CollaborateurComponent implements OnInit { |
|
|
|
|
collaborateurs: Collaborateur[] = []; |
|
|
|
|
collaborateur = {} as Collaborateur; |
|
|
|
|
businessUnits: Businessunit[] = []; |
|
|
|
|
businessUnit = {} as Businessunit; |
|
|
|
|
|
|
|
|
|
errorValue: number = 0; |
|
|
|
|
rDate: String = ""; |
|
|
|
|
bDate: String = ""; |
|
|
|
|
|
|
|
|
|
submitted = false; |
|
|
|
|
|
|
|
|
|
constructor( |
|
|
|
|
private http: HttpClient, |
|
|
|
@ -31,7 +21,6 @@ export class CollaborateurComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.getCollaborateurs(); |
|
|
|
|
this.getBusinessunits(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -40,10 +29,5 @@ export class CollaborateurComponent implements OnInit { |
|
|
|
|
.subscribe(collaborateurs => this.collaborateurs = collaborateurs); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getBusinessunits(): void { |
|
|
|
|
this.businessunitService.getBusinessunits() |
|
|
|
|
.subscribe(businessunits => this.businessUnits = businessunits); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|