|
|
@ -85,10 +85,13 @@ export class PeriodeEssaiEditComponent implements OnInit { |
|
|
|
this.periodeEssai.comment = this.registerForm.value.comment |
|
|
|
this.periodeEssai.comment = this.registerForm.value.comment |
|
|
|
this.periodeEssai.collaborateurId = this.registerForm.value.collaborateurId |
|
|
|
this.periodeEssai.collaborateurId = this.registerForm.value.collaborateurId |
|
|
|
this.periodeEssai.issue = this.registerForm.value.issue |
|
|
|
this.periodeEssai.issue = this.registerForm.value.issue |
|
|
|
this.periodeEssai.plannedEndingDate = this.registerForm.value.plannedEndingDate |
|
|
|
|
|
|
|
this.periodeEssai.realEndingDate = this.registerForm.value.realEndingDate |
|
|
|
this.periodeEssai.realEndingDate = this.registerForm.value.realEndingDate |
|
|
|
this.periodeEssai.startingDate = this.registerForm.value.startingDate |
|
|
|
this.periodeEssai.startingDate = this.registerForm.value.startingDate |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.registerForm.value.plannedEndingDate == undefined) { |
|
|
|
|
|
|
|
this.periodeEssai.plannedEndingDate = new Date(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.periodeEssai){ |
|
|
|
if (this.periodeEssai){ |
|
|
|
this.periodeEssaiService.updatePeriodeEssai(this.periodeEssai) |
|
|
|
this.periodeEssaiService.updatePeriodeEssai(this.periodeEssai) |
|
|
|
.subscribe(() => { |
|
|
|
.subscribe(() => { |
|
|
|