edit and delete

This commit is contained in:
Eudes Inácio
2024-05-31 11:21:32 +01:00
parent 44b2fa7307
commit 2e6f4fd642
8 changed files with 233 additions and 144 deletions
+6 -23
View File
@@ -26,24 +26,6 @@ export class Utils {
}
}
editeEventCalendarUserId(CalendarName,postEvent) {
let CalendarNameOwnerName = this.eventService.detectCalendarNameByCalendarId(postEvent.CalendarId)
if(this.eventService.calendarNamesType[CalendarNameOwnerName]?.['Oficial'] && this.eventService.calendarNamesType[CalendarNameOwnerName]?.['Pessoal']) {
return this.eventService.calendarNamesType[CalendarName]['OwnerId']
} else if (this.eventService.calendarNamesType[CalendarNameOwnerName]?.['Oficial']) {
return this.eventService.calendarNamesType[CalendarName]['OwnerId']
} else if (this.eventService.calendarNamesType[CalendarNameOwnerName]?.['Pessoal']) {
return this.eventService.calendarNamesType[CalendarName]['OwnerId']
} else {
return this.eventService.calendarNamesType[CalendarName]['OwnerId']
}
}
selectedCalendarOwner(CalendarName) {
let selectedCalendar = this.eventService.calendarNamesType[CalendarName]?.['RoleId'];
@@ -79,12 +61,13 @@ export class Utils {
}
documentAdded(documents:any[]) {
console.log('added doc create event',documents)
return documents.map((e) => {
return {
sourceId: e.Id,
docId: parseInt(e.Id),
sourceName: e.Assunto,
description: "",
applicationId: parseInt(e.ApplicationType.toString())
applicationId: parseInt(JSON.stringify(e.ApplicationType))
};
});
@@ -93,9 +76,9 @@ export class Utils {
atendeesSeletedType(type) {
var selectedType = {
'true': 1,
'false':2,
'other':3,
'true': 0,
'false':1,
'other':2,
}
return selectedType[type];
}