diff --git a/codemagic.yaml b/codemagic.yaml index 5548710a0..3a221e315 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -1,28 +1,44 @@ -workflows: - ios-native-workflow: - name: iOS Native - instance_type: mac_mini_m1 + workflows: + ios-workflow: + name: iOS Workflow + max_build_duration: 120 integrations: - app_store_connect: GabineteDigital + app_store_connect: 433YAF3YWG environment: ios_signing: distribution_type: app_store bundle_identifier: com.gpr.gabinetedigital.teste vars: - BUNDLE_ID: "com.gpr.gabinetedigital.teste" - APP_STORE_APPLE_ID: DV5P2ZCAPJ - xcode: latest - cocoapods: default + APP_STORE_APPLE_ID: 1664747447 + XCODE_WORKSPACE: "platforms/ios/App.app.xcworkspace" + XCODE_SCHEME: "App.app" scripts: - - name: Install CocoaPods dependencies - script: | - pod install - - name: Set up provisioning profiles settings on Xcode project - script: xcode-project use-profiles + - name: Install npm dependencies for Ionic Capacitor project + script: | + npm install + - name: Cocoapods installation + script: | + cd ios/App && pod install + - name: Update dependencies and copy web assets to native project + script: | + # if you don't need to update native dependencies, use this: + # npx cap copyapp + # + # to update native dependencies, use this command: + npx cap sync + - name: Set up code signing settings on Xcode project + script: | + xcode-project use-profiles + - name: Increment build number + script: | + cd $CM_BUILD_DIR/ios/App + LATEST_BUILD_NUMBER=$(app-store-connect get-latest-app-store-build-number "$APP_STORE_APPLE_ID") + agvtool new-version -all $(($LATEST_BUILD_NUMBER + 1)) - name: Build ipa for distribution - script: | + script: | + cd $CM_BUILD_DIR/ios/App xcode-project build-ipa \ - --workspace "$CM_BUILD_DIR/$XCODE_WORKSPACE" \ + --workspace "$XCODE_WORKSPACE" \ --scheme "$XCODE_SCHEME" artifacts: - build/ios/ipa/*.ipa @@ -30,7 +46,22 @@ workflows: - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app - $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM publishing: + email: + recipients: + - romavicdosanjoskc@gmail.com + notify: + success: true + failure: false app_store_connect: auth: integration + + # Configuration related to TestFlight (optional) + # Note: This action is performed during post-processing. submit_to_testflight: true - submit_to_app_store: false \ No newline at end of file + beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review. + - group name 1 + - group name 2 + + # Configuration related to App Store (optional) + # Note: This action is performed during post-processing. + submit_to_app_store: false \ No newline at end of file diff --git a/src/app/modals/create-process/create-process.page.html b/src/app/modals/create-process/create-process.page.html index 607915051..a31f3fda1 100644 --- a/src/app/modals/create-process/create-process.page.html +++ b/src/app/modals/create-process/create-process.page.html @@ -191,6 +191,6 @@ - + diff --git a/src/app/modals/document-detail/document-detail.page.ts b/src/app/modals/document-detail/document-detail.page.ts index 629d48c91..c8a57b312 100644 --- a/src/app/modals/document-detail/document-detail.page.ts +++ b/src/app/modals/document-detail/document-detail.page.ts @@ -223,7 +223,7 @@ export class DocumentDetailPage implements OnInit { backdropDismiss: false }); - modal.onDidDismiss().then(res=>{ + modal.onDidDismiss().then(res => { //this.RouteService.goBack(); }, (error) => { console.log(error) diff --git a/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts b/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts index 1c215bc05..b3a1b1aee 100644 --- a/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts +++ b/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts @@ -117,14 +117,45 @@ export class DocumentSetUpMeetingPage implements OnInit { this.document = this.navParams.get('document') if(Array.isArray(this.document)) { - this.attachments = this.document + const E = this.document + this.document = [] + E.forEach((e)=> { + this.document.push({ + ApplicationId: e.ApplicationId || e.ApplicationType, + Source: 1, + SourceId: e.DocId || e.docID || e.docId || e.SourceId || e.Id, + SourceName: e.Assunto || e.attachments, + DocDate: e.CreateDate, + Data: e.Data, + Assunto: e.Description, + ...e + }) + }) + } else if (this.document) { + + const E = this.document + this.document = [] + this.document.push({ + ApplicationId: E.ApplicationId || E.ApplicationType, + Source: 1, + SourceId: E.DocId || E.docID || E.docId || E.SourceId || E.Id, + SourceName: E.Assunto || E.attachments, + DocDate: E.CreateDate, + Data: E.Data, + Assunto: E.Description, + ...E + }) } else { - this.attachments = [this.document] + this.document = [] } - this.document = [] + if(Array.isArray(this.document)) { + this.attachments = this.document + } else { + this.attachments = [this.document] + } this.subject = this.navParams.get('subject') @@ -277,25 +308,6 @@ export class DocumentSetUpMeetingPage implements OnInit { let Attendees = this.taskParticipants.concat(this.taskParticipantsCc); - if(this.document.Documents) { - this.document.Documents.forEach((e)=> { - this.docs.push({ - ApplicationId: e.ApplicationId || e.ApplicationType, - Source: 1, - SourceId: e.DocId || e.docID || e.docId || e.SourceId || e.Id, - SourceName: e.Assunto - }) - }) - } - else{ - this.docs.push({ - ApplicationId: this.document.ApplicationId || this.document.ApplicationType, - Source: 1, - SourceId: this.document.DocId || this.document.docID || this.document.docId || this.document.SourceId || this.document.Id, - SourceName: this.document.Assunto - }) - } - let postEvent = { EventId: '', Subject: this.postData.Subject, @@ -318,10 +330,11 @@ export class DocumentSetUpMeetingPage implements OnInit { Type: this.EventRecurrenceType, LastOccurrence: this.Occurrence, }, - // Attachments: this.docs, + Attachments: this.attachments, } - const laoder = this.toastService.loading() + const laoder = this.toastService.loading(); + this.eventService.create({ body: postEvent, calendar: this.postData.CalendarName }).subscribe(async (respose) => { laoder.remove(); diff --git a/src/app/modals/view-document/view-document.page.ts b/src/app/modals/view-document/view-document.page.ts index 3bb165703..9fdad3232 100644 --- a/src/app/modals/view-document/view-document.page.ts +++ b/src/app/modals/view-document/view-document.page.ts @@ -58,7 +58,7 @@ export class ViewDocumentPage implements OnInit { ngOnInit() { this.processes.GetViewer(this.docId, this.applicationId).subscribe(async(res)=> { - + const link: string = res.replace('//pdfjs/web/', '/pdfjs/web/') this.trustedUrl = this.sanitazer.bypassSecurityTrustResourceUrl(link); @@ -125,7 +125,7 @@ export class ViewDocumentPage implements OnInit { } async openBookMeetingModal() { - console.log('this.Document', this.Document) + console.log('this.Document----------', this.Document) let classs; if( window.innerWidth < 701) { classs = 'book-meeting-modal modal modal-desktop' @@ -164,6 +164,8 @@ export class ViewDocumentPage implements OnInit { classs = 'modal modal-desktop showAsideOptions' } // check passing + + console.log('this.Document----------openExpedientActionsModal', this.Document) const modal = await this.modalController.create({ component: ExpedientTaskModalPage, componentProps: { @@ -175,7 +177,7 @@ export class ViewDocumentPage implements OnInit { cssClass: classs, }); - modal.onDidDismiss().then( + modal.onDidDismiss().then( async(res)=>{} , (error) => { console.log(error) diff --git a/src/app/pages/agenda/agenda.page.ts b/src/app/pages/agenda/agenda.page.ts index 74d32527a..23aa44e11 100644 --- a/src/app/pages/agenda/agenda.page.ts +++ b/src/app/pages/agenda/agenda.page.ts @@ -220,7 +220,7 @@ export class AgendaPage implements OnInit { } else if (this.eventService.hasSharedCalendar) { this.profile = "pr"; } - + } this.calendarHeight = ["height-356"]; @@ -253,7 +253,7 @@ export class AgendaPage implements OnInit { }, 1000) } - + ngOnInit() { @@ -270,18 +270,26 @@ export class AgendaPage implements OnInit { this.segment = "Combinado"; } if (realoadCounter != 0) { - this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate); + + if(this.currentMoth.rangeStartDate != null) { + + this.loadRangeEvents(this.currentMoth.rangeStartDate, this.currentMoth.rangeEndDate) + } else { + this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate); + } + + this.updateEventListBox() } realoadCounter++; this.weekToShow() } }); - + this.backgroundservice.registerBackService('Online', () => { //this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate); }); - + window.onresize = (event) => { // if not table remove all component if (window.innerWidth <= 1024) { @@ -296,7 +304,7 @@ export class AgendaPage implements OnInit { setTimeout(() => { try { let weekNum = 0; - + function Week(a) { for(let b of a.querySelectorAll('td')) { if(!b.className.includes('text-muted')) { @@ -305,17 +313,17 @@ export class AgendaPage implements OnInit { } } } - + const dayBoxHeight = document.querySelector('.monthview-container .swiper-container .swiper-slide-active table tbody tr td').clientHeight const weeks = document.querySelectorAll('.monthview-container .swiper-container .swiper-slide-active table tbody tr'); - + for (let week of weeks as any ){ Week(week) - } - + } + this.showCalendar = true this.listBoxService.height = (weekNum * dayBoxHeight) +'px' - + if(dayBoxHeight == 0) { this.weekToShow() } @@ -424,10 +432,23 @@ export class AgendaPage implements OnInit { this.eventSelectedDate2 = ev.selectedTime; } + + currentMoth = { + rangeStartDate: null, + rangeEndDate: null + } + onRangeChanged(ev: { startTime: Date, endTime: Date }) { this.rangeStartDate = ev.startTime; this.rangeEndDate = ev.endTime; + if(this.currentMoth.rangeEndDate == null) { + this.currentMoth = { + rangeStartDate: ev.startTime, + rangeEndDate: ev.endTime + } + } + this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate); @@ -554,7 +575,7 @@ export class AgendaPage implements OnInit { loadRangeEvents(startTime: Date, endTime: Date) { this.weekToShow() - + if(!this.eventService.hasAnyCalendar) { return false } @@ -602,7 +623,7 @@ export class AgendaPage implements OnInit { } catch (error) { } - + let load = 0; @@ -622,7 +643,7 @@ export class AgendaPage implements OnInit { let eventsList = response; this.CalendarStore.removeRangeForCalendar(startTime, endTime, label, selectedCalendar.CalendarId) this.CalendarStore.pushEvent(eventsList, label); - + this.listToPresent = this.CalendarStore.getEventsByCalendarIds(selectedCalendarIds) this.updateEventListBox() @@ -635,7 +656,7 @@ export class AgendaPage implements OnInit { if(load == selectedCalendarIds.length) { this.showLoader = false; } - + this.myCal.update(); this.myCal.loadEvents(); this.updateEventListBox() @@ -657,19 +678,19 @@ export class AgendaPage implements OnInit { return result.concat(join) } else { - + const calendar = this.eventService.calendarNamesType[this.CalendarName]; let Oficial = calendar?.['OficialId'] let Pessoal = calendar?.['PessoalId'] if(Oficial && Pessoal) { - + return [ { CalendarId : Oficial, OwnerId: calendar.OwnerId, CalendarName: calendar.CalendarName - }, + }, { OwnerId: calendar.OwnerId, CalendarId : Pessoal, @@ -700,7 +721,7 @@ export class AgendaPage implements OnInit { } } - + } @@ -743,7 +764,7 @@ export class AgendaPage implements OnInit { this.updateEventListBox() } else { - + } @@ -751,7 +772,7 @@ export class AgendaPage implements OnInit { changeMonth = (month) => { const a = this.calendar.currentDate; - + const isInvalidDate = (dateString) => JSON.stringify(new Date(dateString)) === 'null'; @@ -768,7 +789,7 @@ export class AgendaPage implements OnInit { this.updateEventListBox() } else { - + } } @@ -796,7 +817,7 @@ export class AgendaPage implements OnInit { } changeProfile() { - + if (this.profile == "mdgpr") { this.profile = "pr"; this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate); @@ -839,7 +860,7 @@ export class AgendaPage implements OnInit { cssClass: 'modal modal-desktop', backdropDismiss: false }); - + modal.onDidDismiss().then((data) => { if (data) { @@ -870,7 +891,7 @@ export class AgendaPage implements OnInit { openAddEventDismiss(data) { try { - + let postEvent: Event = data; if (postEvent.Subject != null) { // this.eventSource.push({ @@ -900,7 +921,7 @@ export class AgendaPage implements OnInit { let navigationExtras: NavigationExtras = { queryParams: { CalendarId } } this.router.navigate(['/home/agenda/',eventId,'agenda'], navigationExtras); - + } // open component @@ -923,7 +944,7 @@ export class AgendaPage implements OnInit { setTimeout(()=>{ this.onCurrentChanged(this.eventSelectedDate) }, 500) - + } @@ -1083,7 +1104,7 @@ export class AgendaPage implements OnInit { } reloadCalendar() { - // + // this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate); } diff --git a/src/app/pages/chat/group-messages/group-messages.page.html b/src/app/pages/chat/group-messages/group-messages.page.html index 83fcbe6bf..5dd2879c2 100644 --- a/src/app/pages/chat/group-messages/group-messages.page.html +++ b/src/app/pages/chat/group-messages/group-messages.page.html @@ -40,7 +40,6 @@ {{roomCountDownDate}} - {{ RouteService.history }} @@ -341,4 +340,4 @@ - \ No newline at end of file + diff --git a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html index 9909359c0..8b7889fab 100644 --- a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html +++ b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html @@ -17,7 +17,7 @@
- +
O campo deve ter pelo menos 4 caracteres. @@ -34,12 +34,12 @@ - +
{{ environment.agendaPR}}
@@ -47,7 +47,7 @@
Agenda do {{calendars.Fullname}}
Minha agenda
- +
@@ -72,16 +72,16 @@
- + Agenda {{ calendars }} - + - +
@@ -195,7 +195,7 @@ [stepHour]="stepHour" [stepMinute]="stepMinute" [stepSecond]="stepSecond" [touchUi]="touchUi" - + > @@ -232,7 +232,7 @@
-
+
@@ -241,7 +241,7 @@
-
+
diff --git a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts index c755daca9..e838011ec 100644 --- a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts +++ b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts @@ -124,37 +124,30 @@ export class ExpedientTaskModalPage implements OnInit { this.SearchFolder = this.navParams.get('SearchFolder'); this.aplicationId = this.navParams.get('aplicationId') - // this.document = this.navParams.get('document') + this.document = this.navParams.get('document') this.taskType = this.navParams.get('taskAction'); - - // if(this.document) { - // const doc: any = this.document - - // this.documents.push({ - // ApplicationId: (doc.ApplicationType || doc.ApplicationId), - // ApplicationType: (doc.ApplicationType || doc.ApplicationId), - // SourceId: (doc.Id || doc.DocId || doc.SourceId), - // Id: (doc.Id || doc.DocId || doc.SourceId), - // EntidadeOrganicaNome: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome), - // Sender: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome), - // Data: (doc.DocDate || doc.Data), - // DocDate: (doc.DocDate || doc.Data), - // Assunto: doc.Assunto, - // } as any) + // try { + // if(this.document) { + // const doc: any = this.document + // this.documents.push({ + // ApplicationId: (doc.ApplicationType || doc.ApplicationId), + // ApplicationType: (doc.ApplicationType || doc.ApplicationId), + // SourceId: (doc.Id || doc.DocId || doc.SourceId), + // Id: (doc.Id || doc.DocId || doc.SourceId), + // EntidadeOrganicaNome: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome), + // Sender: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome), + // Data: (doc.DocDate || doc.Data), + // DocDate: (doc.DocDate || doc.Data), + // Assunto: doc.Assunto, + // } as any) + // } + // } catch (error) { + // console.log(error) // } - - const DocumentToSave = this.documents.map((e) => { - return { - ApplicationId: e.ApplicationType, - SourceId: e.Id - } - }); - - - console.log('this.document', this.document) + // console.log('this.document', this.document) /* this.selectedTypes = ['99999850']; */ diff --git a/src/app/services/chat/message.service.ts b/src/app/services/chat/message.service.ts index 5256bcca3..3a3cf1f4b 100644 --- a/src/app/services/chat/message.service.ts +++ b/src/app/services/chat/message.service.ts @@ -319,6 +319,8 @@ export class MessageService { if(params?.attachments) { if(params?.attachments[0]?.image_url) { delete params?.attachments[0]?.image_url + delete params?.file?.image_url + // delete } } diff --git a/src/app/store/notification-holder.service.ts b/src/app/store/notification-holder.service.ts index c37aa9906..4748c0d5a 100644 --- a/src/app/store/notification-holder.service.ts +++ b/src/app/store/notification-holder.service.ts @@ -43,11 +43,15 @@ export class NotificationHolderService { notificationObject(notification) { const element = notification + const i = this._notificationList.length + 1 + let notificationObject; + if (element.notification) { notificationObject = { - id: notification?.id, + id: notification?.id || uuidv4(), + index: i, title: element.notification.title, Service: element.data.Service, Object: element.data.Object, @@ -65,7 +69,8 @@ export class NotificationHolderService { } else if (element.data) { notificationObject = { - id: notification?.id, + id: notification?.id || uuidv4(), + index: i, title: element.title, Service: element.data.Service, Object: element.data.Object, @@ -84,19 +89,20 @@ export class NotificationHolderService { } else { { notificationObject = { - id: notification?.id, - title: element.title, - Service: element.Service, - Object: element.Object, - IdObject: element.IdObject, + id: notification?.id || uuidv4(), FolderId: element.FolderId, - body: element.body, - dateInit: element.dateInit, - dateEnd: element.dateEnd, + IdObject: element.IdObject, Location: element.Location, - TypeAgenda: element.TypeAgenda, + Object: element.Object, Role: element.Role, + Service: element.Service, Status: element.Status, + TypeAgenda: element.TypeAgenda, + body: element.body, + dateEnd: element.dateEnd, + dateInit: element.dateInit, + index: element.index, + title: element.title, read: false, } } diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index a9256d5a8..726ebb13e 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -4,4 +4,4 @@ import { doneITProd } from './suport/doneIt' import { DevDev } from './suport/dev' -export const environment: Environment = DevDev; +export const environment: Environment = oaprProd; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 16a865ce9..9d04edfcb 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,4 +4,4 @@ import { doneITDev } from './suport/doneIt' import { DevDev } from './suport/dev' -export const environment: Environment = DevDev \ No newline at end of file +export const environment: Environment = oaprDev diff --git a/version/git-version.ts b/version/git-version.ts index 6d15431db..1dd6a716e 100644 --- a/version/git-version.ts +++ b/version/git-version.ts @@ -5,7 +5,7 @@ export let versionData = { "lastCommitAuthor": "'Peter Maquiran'", "lastCommitTime": "'Thu Aug 31 12:00:52 2023 +0100'", "lastCommitMessage": "add attachments", - "lastCommitNumber": "52536", + "lastCommitNumber": "5691", "change": "diff --git a/src/app/modals/create-process/create-process.page.ts b/src/app/modals/create-process/create-process.page.ts\nindex 6b58016d7..a27c5e424 100644\n--- a/src/app/modals/create-process/create-process.page.ts\n+++ b/src/app/modals/create-process/create-process.page.ts\n@@ -282,7 +282,8 @@ export class CreateProcessPage implements OnInit {\n const DocumentToSave = this.documents.map((e: any) => {\n return {\n ApplicationId: e.ApplicationType || e.ApplicationId,\n- SourceId: e.Id || e.DocId || e.SourceId\n+ SourceId: e.Id || e.DocId || e.SourceId,\n+ SourceName: e.Assunto || e.SourceName || e.Description,\n }\n });\n \ndiff --git a/src/app/modals/document-detail/document-detail.page.ts b/src/app/modals/document-detail/document-detail.page.ts\nindex 629d48c91..1bfcca6e3 100644\n--- a/src/app/modals/document-detail/document-detail.page.ts\n+++ b/src/app/modals/document-detail/document-detail.page.ts\n@@ -129,7 +129,7 @@ export class DocumentDetailPage implements OnInit {\n \n async viewDocumentModal() {\n \n- const selectedDoc = this.LoadedDocument.Documents[ this.dicIndex]\n+ const selectedDoc = this.LoadedDocument\n \n let task = {\n serialNumber: '',\n@@ -154,7 +154,7 @@ export class DocumentDetailPage implements OnInit {\n url: '',\n title_link: '',\n },\n- Document: this.LoadedDocument.Documents[ this.dicIndex],\n+ Document: this.LoadedDocument,\n applicationId: task.workflowInstanceDataFields.SourceSecFsID,\n docId: task.workflowInstanceDataFields.SourceID ,\n folderId: '',\n@@ -192,7 +192,8 @@ export class DocumentDetailPage implements OnInit {\n componentProps: {\n taskAction: taskAction,\n task: this.DocumentTask,\n- aplicationId: this.LoadedDocument.ApplicationId || this.LoadedDocument.ApplicationID\n+ aplicationId: this.LoadedDocument.ApplicationId || this.LoadedDocument.ApplicationID,\n+ document: this.LoadedDocument\n },\n cssClass: classs,\n });\n@@ -213,6 +214,7 @@ export class DocumentDetailPage implements OnInit {\n } else {\n classs = 'modal modal-desktop showAsideOptions'\n }\n+\n const modal = await this.modalController.create({\n component: DocumentSetUpMeetingPage,\n componentProps: {\n@@ -238,7 +240,8 @@ export class DocumentDetailPage implements OnInit {\n cssClass: 'exp-options',\n componentProps: {\n task: this.task,\n- LoadedDocument: this.LoadedDocument\n+ LoadedDocument: this.LoadedDocument,\n+ document: this.LoadedDocument,\n },\n translucent: true\n });\ndiff --git a/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts b/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts\nindex 8c68182d4..f7bb03bb0 100644\n--- a/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts\n+++ b/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts\n@@ -22,7 +22,7 @@ import { SessionStore } from 'src/app/store/session.service';\n import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';\n import { environment } from 'src/environments/environment';\n import { TaskService } from 'src/app/services/task.service'\n-\n+import { AttachmentsService } from 'src/app/services/attachments.service';\n \n const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {\n parse: {\n@@ -111,15 +111,47 @@ export class DocumentSetUpMeetingPage implements OnInit {\n public ThemeService: ThemeService,\n public _eventService: EventsService,\n private httpErroHandle: HttpErrorHandle,\n- public TaskService: TaskService\n+ public TaskService: TaskService,\n+ private attachmentsService: AttachmentsService,\n ) {\n this.loggeduser = SessionStore.user;\n this.document = this.navParams.get('document')\n \n- if(Array.isArray(this.document)) {\n- this.attachments = this.document\n- } else {\n- this.attachments = [this.document]\n+\n+ if(this.document) {\n+ console.log('this.document', this.document)\n+ if(Array.isArray(this.document)) {\n+ const docs: any = this.document\n+ for(let doc of docs ) {\n+ this.attachments.push({\n+ ApplicationId: (doc.ApplicationType || doc.ApplicationId), \n+ ApplicationType: (doc.ApplicationType || doc.ApplicationId),\n+ SourceId: (doc.Id || doc.DocId || doc.SourceId), \n+ Id: (doc.Id || doc.DocId || doc.SourceId), \n+ EntidadeOrganicaNome: (doc.Stakeholders || doc.sender || doc.EntidadeOrganicaNome ),\n+ Sender: (doc.Stakeholders || doc.sender || doc. EntidadeOrganicaNome ),\n+ Data: (doc.DocDate || doc.Data),\n+ DocDate: (doc.DocDate || doc.Data),\n+ Assunto: doc.Assunto || doc.SourceName || doc.Description,\n+ SourceName: doc.Assunto || doc.SourceName || doc.Description,\n+ } as any)\n+ }\n+ } else {\n+ const doc: any = this.document\n+ this.attachments.push({\n+ ApplicationId: (doc.ApplicationType || doc.ApplicationId), \n+ ApplicationType: (doc.ApplicationType || doc.ApplicationId),\n+ SourceId: (doc.Id || doc.DocId || doc.SourceId), \n+ Id: (doc.Id || doc.DocId || doc.SourceId), \n+ EntidadeOrganicaNome: (doc.Stakeholders || doc.sender || doc.EntidadeOrganicaNome ),\n+ Sender: (doc.Stakeholders || doc.sender || doc. EntidadeOrganicaNome ),\n+ Data: (doc.DocDate || doc.Data),\n+ DocDate: (doc.DocDate || doc.Data),\n+ Assunto: doc.Assunto || doc.SourceName || doc.Description,\n+ SourceName: doc.Assunto || doc.SourceName || doc.Description,\n+ } as any)\n+ }\n+\n }\n \n \n@@ -278,7 +310,7 @@ export class DocumentSetUpMeetingPage implements OnInit {\n let Attendees = this.taskParticipants.concat(this.taskParticipantsCc);\n \n if(this.document.Documents) {\n- this.document.Documents.forEach((e)=> {\n+ this.attachments.forEach((e: any)=> {\n this.docs.push({\n ApplicationId: e.ApplicationId || e.ApplicationType,\n Source: 1,\n@@ -287,14 +319,6 @@ export class DocumentSetUpMeetingPage implements OnInit {\n })\n })\n }\n- else{\n- this.docs.push({\n- ApplicationId: this.document.ApplicationId || this.document.ApplicationType,\n- Source: 1,\n- SourceId: this.document.DocId || this.document.docID || this.document.docId || this.document.SourceId || this.document.Id,\n- SourceName: this.document.Assunto\n- })\n- }\n \n let postEvent = {\n EventId: '',\n@@ -318,13 +342,14 @@ export class DocumentSetUpMeetingPage implements OnInit {\n Type: this.EventRecurrenceType,\n LastOccurrence: this.Occurrence,\n },\n- // Attachments: this.docs,\n+ Attachments: this.attachments,\n }\n \n const laoder = this.toastService.loading()\n \n this.eventService.create({ body: postEvent, calendar: this.postData.CalendarName }).subscribe(async (respose) => {\n laoder.remove();\n+ // this.saveAttachment()\n this.httpErroHandle.httpsSucessMessagge('new event');\n this.modalController.dismiss()\n }, (error) => {\n@@ -336,6 +361,17 @@ export class DocumentSetUpMeetingPage implements OnInit {\n \n }\n \n+ async saveAttachment() {\n+ this.attachments.forEach( async (attachments, i) => {\n+ try {\n+ await this.attachmentsService.setEventAttachmentById(attachments).toPromise();\n+ } catch(error) {\n+ \n+ }\n+\n+ });\n+ }\n+\n async addParticipants() {\n \n this.adding = \"intervenient\";\ndiff --git a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts\nindex 66826fc22..b9f20c744 100644\n--- a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts\n+++ b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts\n@@ -130,19 +130,37 @@ export class ExpedientTaskModalPage implements OnInit {\n \n \n if(this.document) {\n- const doc: any = this.document\n-\n- this.documents.push({\n- ApplicationId: (doc.ApplicationType || doc.ApplicationId), \n- ApplicationType: (doc.ApplicationType || doc.ApplicationId),\n- SourceId: (doc.Id || doc.DocId || doc.SourceId), \n- Id: (doc.Id || doc.DocId || doc.SourceId), \n- EntidadeOrganicaNome: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome),\n- Sender: (doc.sender || doc.SourceName || doc. EntidadeOrganicaNome),\n- Data: (doc.DocDate || doc.Data),\n- DocDate: (doc.DocDate || doc.Data),\n- Assunto: doc.Assunto,\n- } as any)\n+ \n+ if(Array.isArray(this.document)) {\n+ const docs: any = this.document\n+ for(let doc of docs ) {\n+ this.documents.push({\n+ ApplicationId: (doc.ApplicationType || doc.ApplicationId), \n+ ApplicationType: (doc.ApplicationType || doc.ApplicationId),\n+ SourceId: (doc.Id || doc.DocId || doc.SourceId), \n+ Id: (doc.Id || doc.DocId || doc.SourceId), \n+ EntidadeOrganicaNome: (doc.Stakeholders || doc.sender || doc.EntidadeOrganicaNome ),\n+ Sender: (doc.Stakeholders || doc.sender || doc. EntidadeOrganicaNome ),\n+ Data: (doc.DocDate || doc.Data),\n+ DocDate: (doc.DocDate || doc.Data),\n+ Assunto: doc.Assunto || doc.SourceName || doc.Description,\n+ } as any)\n+ }\n+ } else {\n+ const doc: any = this.document\n+ this.documents.push({\n+ ApplicationId: (doc.ApplicationType || doc.ApplicationId), \n+ ApplicationType: (doc.ApplicationType || doc.ApplicationId),\n+ SourceId: (doc.Id || doc.DocId || doc.SourceId), \n+ Id: (doc.Id || doc.DocId || doc.SourceId), \n+ EntidadeOrganicaNome: (doc.Stakeholders || doc.sender || doc.EntidadeOrganicaNome ),\n+ Sender: (doc.Stakeholders || doc.sender || doc. EntidadeOrganicaNome ),\n+ Data: (doc.DocDate || doc.Data),\n+ DocDate: (doc.DocDate || doc.Data),\n+ Assunto: doc.Assunto || doc.SourceName || doc.Description,\n+ } as any)\n+ }\n+\n }\n \n \ndiff --git a/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.html b/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.html\nindex 38fc8af46..b5a0f5b4e 100644\n--- a/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.html\n+++ b/src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.html\n@@ -283,7 +283,7 @@\n \n \n Adicionar Intervenientes*\n- {{participant.Name}}\n+ {{participant.EmailAddress }}\n \n \n
\n@@ -306,7 +306,7 @@\n \n \n Adicionar Intervenientes\n- {{participant.Name}}\n+ {{participant.EmailAddress }}\n \n \n
\ndiff --git a/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.html b/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.html\nindex c306e743e..fe896ef2a 100644\n--- a/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.html\n+++ b/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.html\n@@ -225,7 +225,7 @@\n \n \n Adicionar Intervenientes*\n- {{participant.Name}}\n+ {{participant.EmailAddress}}\n \n \n
\n@@ -248,7 +248,7 @@\n \n \n Adicionar Intervenientes\n- {{participant.Name}}\n+ {{participant.EmailAddress }}\n \n \n
", "changeStatus": "On branch notification-header/feature\nChanges to be committed:\n (use \"git restore --staged ...\" to unstage)\n\tmodified: src/app/modals/profile/profile.page.html\n\tmodified: src/app/modals/profile/profile.page.ts\n\tmodified: src/app/services/notifications.service.ts\n\tmodified: src/app/shared/header/header.page.html\n\tmodified: src/app/shared/header/header.page.ts\n\tnew file: src/app/store/notification-holder.service.spec.ts\n\tnew file: src/app/store/notification-holder.service.ts\n\nChanges not staged for commit:\n (use \"git add ...\" to update what will be committed)\n (use \"git restore ...\" to discard changes in working directory)\n\tmodified: src/app/modals/create-process/create-process.page.ts\n\tmodified: src/app/modals/document-detail/document-detail.page.ts\n\tmodified: src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.ts\n\tmodified: src/app/shared/agenda/edit-event-to-approve/edit-event-to-approve.page.html\n\tmodified: src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.html", "changeAuthor": "peter.maquiran"