Event to approval bug solved

This commit is contained in:
Eudes Inácio
2024-06-18 11:39:17 +01:00
parent f827e8b0c2
commit 4cf2b5254d
10 changed files with 57 additions and 27 deletions
@@ -80,13 +80,13 @@
<mat-form-field appearance="none" class="width-100" placeholder="Sample Type" required>
<!-- <input matInput type="text" > -->
<mat-select [(ngModel)]="eventProcess.workflowInstanceDataFields.Category" >
<mat-option value="Reunião">
<mat-option value="Meeting">
Reunião
</mat-option>
<mat-option value="Viagem">
<mat-option value="Travel">
Viagem
</mat-option>
<mat-option value="Conferência">
<mat-option value="Conference">
Conferência
</mat-option>
<mat-option value="Encontro">
@@ -159,7 +159,6 @@ export class EditEventToApproveComponent implements OnInit {
console.log('Loaded Event', res.value)
this.eventProcess = res.value as any
this.eventProcess.workflowInstanceDataFields.Category = res.value.workflowInstanceDataFields.EventType
this.eventProcess.workflowInstanceDataFields.LastOccurrence = new Date(this.eventProcess.workflowInstanceDataFields.LastOccurrence)
this.startDate = new Date(this.eventProcess.workflowInstanceDataFields.StartDate);
@@ -171,6 +170,7 @@ export class EditEventToApproveComponent implements OnInit {
this.Location = this.eventProcess.workflowInstanceDataFields.Location
this.InstanceId = this.eventProcess.workflowInstanceDataFields.InstanceId
this.eventProcess.workflowInstanceDataFields.Category = this.setEventType(this.eventProcess.workflowInstanceDataFields.EventType)
this.loadedAttachments = res.value.Attachments
/* this.getAttachments()
@@ -529,7 +529,14 @@ export class EditEventToApproveComponent implements OnInit {
await modal.present();
}
setEventType(eventType) {
var selectedEventType = {
1: 'Meeting',
2: 'Travel',
3: 'Conference',
4: 'Encontro'
}
return selectedEventType[eventType];
}
}