|
|
@ -88,9 +88,6 @@ export class CollaborateurEditComponent implements OnInit { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(this.registerForm.value.resignationDate) |
|
|
|
|
|
|
|
console.log(this.registerForm.value.birthDate) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.collaborateur.name = this.registerForm.value.name |
|
|
|
this.collaborateur.name = this.registerForm.value.name |
|
|
|
this.collaborateur.firstName = this.registerForm.value.firstName |
|
|
|
this.collaborateur.firstName = this.registerForm.value.firstName |
|
|
|
this.collaborateur.birthDate = this.registerForm.value.birthDate |
|
|
|
this.collaborateur.birthDate = this.registerForm.value.birthDate |
|
|
@ -107,8 +104,6 @@ export class CollaborateurEditComponent implements OnInit { |
|
|
|
this.collaborateur.resignationDate = new Date(); |
|
|
|
this.collaborateur.resignationDate = new Date(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(this.collaborateur) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.collaborateur) { |
|
|
|
if (this.collaborateur) { |
|
|
|
this.collaborateurService.updateCollaborateur(this.collaborateur).subscribe(() => { |
|
|
|
this.collaborateurService.updateCollaborateur(this.collaborateur).subscribe(() => { |
|
|
|
this.showSuccess(); |
|
|
|
this.showSuccess(); |
|
|
|