diff --git a/src/app/modals/create-process/create-process.page.html b/src/app/modals/create-process/create-process.page.html index 6679aae08..83e518769 100644 --- a/src/app/modals/create-process/create-process.page.html +++ b/src/app/modals/create-process/create-process.page.html @@ -18,6 +18,7 @@ +
diff --git a/src/app/models/despacho.model.ts b/src/app/models/despacho.model.ts index c54241959..2318cb945 100644 --- a/src/app/models/despacho.model.ts +++ b/src/app/models/despacho.model.ts @@ -11,8 +11,9 @@ export class Despacho{ DispatchFolder: Folder; AttachmentList?: { ProcessInstanceID: string, - "Source": string, - "UserId": string, - "Attachment": string - }[] + Attachments: { + ApplicationId: string, + SourceId: string + }[], + } } \ No newline at end of file diff --git a/src/app/pages/agenda/agenda.page.ts b/src/app/pages/agenda/agenda.page.ts index 89644c8ec..c636daa28 100644 --- a/src/app/pages/agenda/agenda.page.ts +++ b/src/app/pages/agenda/agenda.page.ts @@ -339,22 +339,32 @@ export class AgendaPage implements OnInit { // for timeline centralizeTimeline(timeout: number) { // auto scroll timeline - setTimeout(() => { - const timelineMarker = document.querySelector('.cal-current-time-marker'); - const scrollContainer = document.querySelector('.timeline-wrapper'); - try { - scrollContainer.scroll({ - top: timelineMarker['offsetTop'] - ((scrollContainer['offsetHeight']/2) - 60), - left: 0, - behavior: 'smooth' - }) - } catch (error) { - // - this.selectFirstEventOfTheDay(); - } - - }, timeout); + if(!this.showLoader) { + setTimeout(() => { + const timelineMarker = document.querySelector('.cal-current-time-marker'); + const scrollContainer = document.querySelector('.timeline-wrapper'); + + + try { + scrollContainer.scroll({ + top: timelineMarker['offsetTop'] - ((scrollContainer['offsetHeight']/2) - 60), + left: 0, + behavior: 'smooth' + }) + } catch (error) { + // + if(!this.showLoader) { + this.selectFirstEventOfTheDay(); + } + + } + + + + }, timeout); + } + } // for timeline diff --git a/src/app/pages/gabinete-digital/event-list/event-list.page.ts b/src/app/pages/gabinete-digital/event-list/event-list.page.ts index 466f0e495..63ddac301 100644 --- a/src/app/pages/gabinete-digital/event-list/event-list.page.ts +++ b/src/app/pages/gabinete-digital/event-list/event-list.page.ts @@ -39,10 +39,8 @@ export class EventListPage implements OnInit { } else { this.profile = 'PR' } - this.LoadToApproveEvents(); - this.router.events.forEach((event) => { if(event instanceof NavigationEnd && event.url == this.router.url) { diff --git a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts index a28187c4d..5a5133afa 100644 --- a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts +++ b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts @@ -209,7 +209,7 @@ export class BookMeetingModalPage implements OnInit { } } - async distartExpedientModal(){ + async distartExpedientModal() { const modal = await this.modalController.create({ component: DiscartExpedientModalPage, componentProps: { diff --git a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.html b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.html index 074782045..c18ea8c21 100644 --- a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.html +++ b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.html @@ -8,117 +8,124 @@
-
-
-
- -
-
- -
-
-
- -
-
-
- -
-
- - Normal (4 dias para a execução da tarefa) - Urgente (2 dias para a execução da tarefa) - Muito Urgente (1 dia para a execução da tarefa) - Urgentíssimo (8 horas para a execução da tarefa) - -
-
-
-
-
-
- -
-
- - Tipos de assunto - - {{type.Description}} - - -
-
-
- -
-
-
- -
-
-
- - - Adicionar intervenientes - {{participant.Name}} - - + +
+ +
+
+
+
-
- +
+
-
- -
-
-
- -
-
-
- - - Com conhecimento - {{participant.Name}} - - + +
+
+
+
-
- +
+ + Normal (4 dias para a execução da tarefa) + Urgente (2 dias para a execução da tarefa) + Muito Urgente (1 dia para a execução da tarefa) + Urgentíssimo (8 horas para a execução da tarefa) +
-
- -
- -
- +
+
+
+ +
+
+ + Tipos de assunto + + {{type.Description}} + + +
-
- Anexar Documentos -
- -
- -
- - - -

- {{document.Assunto}} - {{document.appName}} - - - -

-

{{document.EntidadeOrganicaNome}} {{document.Data | date: 'dd-MM-yy'}}

+
+ +
+
+
+ +
+
+
+ + + Adicionar intervenientes + {{participant.Name}} + + +
+
+ +
+
+
+
+ +
+
+
+ +
+
+
+ + + Com conhecimento + {{participant.Name}} + + +
+
+ +
+
+
+
+ +
+ +
+ +
+
+ Anexar Documentos +
- - +
+ +
+ + + +

+ {{document.Assunto}} + {{document.appName}} + + + +

+

{{document.EntidadeOrganicaNome}} {{document.Data | date: 'dd-MM-yy'}}

+
+
+
+
+
+ +
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 925f9663f..8cd69c7ec 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 @@ -143,8 +143,6 @@ export class ExpedientTaskModalPage implements OnInit { } async saveTask(){ - console.log(this.selectedTypes); - if(this.postData.Priority=='99999861'){ this.dispatchFolder.DeadlineType = 'Normal'; @@ -167,17 +165,24 @@ export class ExpedientTaskModalPage implements OnInit { UserType: val.IsRequired?"I": "CC" }; }) + + let docs = { + ProcessInstanceID: "", + Attachments: [ + + ] + } const DocumentToSave = this.documents.map((e) => { return { - ProcessInstanceID: '', - "Source": "webTRIX", - "UserId": this.loggeduser.UserId.toString(), - "Attachment": `${e.ApplicationType}@DOC@${e.Id}` - }; + ApplicationId: e.ApplicationType, + SourceId: e.Id + } }); + docs.Attachments = DocumentToSave + if(this.taskParticipants.length > 0) { switch (this.taskType) { case '0': @@ -189,7 +194,7 @@ export class ExpedientTaskModalPage implements OnInit { SubjectTypeId: this.postData.SubjectTypeId, UsersSelected: attendees, DispatchFolder: this.dispatchFolder, - AttachmentList: DocumentToSave + AttachmentList: docs } console.log('this.postData', this.postData, this.taskType); this.taskResult = await this.processes.postDespatcho(this.postData); @@ -203,7 +208,7 @@ export class ExpedientTaskModalPage implements OnInit { SubjectTypeId: this.postData.SubjectTypeId, UsersSelected: attendees, DispatchFolder: this.dispatchFolder, - AttachmentList: DocumentToSave + AttachmentList: docs } console.log(this.postData); this.taskResult = await this.processes.postParecer(this.postData); @@ -217,12 +222,14 @@ export class ExpedientTaskModalPage implements OnInit { SubjectTypeId: this.postData.SubjectTypeId, //this.selectedTypes UsersSelected: attendees, DispatchFolder: this.dispatchFolder, - AttachmentList: DocumentToSave + AttachmentList: docs } console.log(this.postData); this.taskResult = await this.processes.postDeferimento(this.postData); break; } + + console.log('this.taskResult', this.taskResult) this.modalController.dismiss('openDiscart'); } else { @@ -399,7 +406,8 @@ export class ExpedientTaskModalPage implements OnInit { cssClass: 'modal-width-100-width-background modal', componentProps: { type: 'AccoesPresidenciais & ArquivoDespachoElect', - showSearchInput: true + showSearchInput: true, + select: true } }); await modal.present(); diff --git a/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts b/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts index e605d2cc6..870e78b28 100644 --- a/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts +++ b/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts @@ -170,6 +170,7 @@ export class ExpedienteDetailPage implements OnInit { await modal.present(); modal.onDidDismiss().then(res=>{ console.log(res['data']); + // alert('close '+ res['data']) if(res['data']=='openDiscart'){ console.log('open discart'); diff --git a/src/app/pages/gabinete-digital/gabinete-digital.page.html b/src/app/pages/gabinete-digital/gabinete-digital.page.html index 9e37edc82..a8657e2c2 100644 --- a/src/app/pages/gabinete-digital/gabinete-digital.page.html +++ b/src/app/pages/gabinete-digital/gabinete-digital.page.html @@ -11,7 +11,7 @@
-
+
Gabinete Digital