2021-02-26 15:29:05 +01:00
|
|
|
<ion-content id="main-content">
|
2021-09-03 15:50:13 +01:00
|
|
|
|
2022-02-24 13:35:54 +01:00
|
|
|
<div class="main-content d-flex flex-column height-100" *ngIf="loadedEvent">
|
|
|
|
|
|
|
|
|
|
<div class="pl-20 pr-20 text-center d-flex justify-center align-center" style="width:100%; height: 30px; background-color: var(--Event-approve-header-color); border-top-right-radius: 25px;">
|
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="right-icons font-28" src="assets/images/icons-received-event.svg"></ion-icon>
|
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov'" class="right-icons font-28" src="assets/images/theme/gov/icons-received-event.svg"></ion-icon>
|
|
|
|
|
<!-- <ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="right-icons" src="assets/images/theme/gov/icons-received-event-selected.svg"></ion-icon> -->
|
|
|
|
|
<div style="color: white;">
|
|
|
|
|
Evento Pendente de Aprovação
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
2022-03-03 22:57:33 +01:00
|
|
|
<div class="main-content d-flex height-100 width-100">
|
|
|
|
|
<div class="content d-flex flex-column">
|
2021-10-25 15:31:43 +01:00
|
|
|
|
2022-03-03 22:57:33 +01:00
|
|
|
<div class="header-content width-100 d-flex justify-space-between">
|
|
|
|
|
<div (click)="close()" class="header-icon-left cursor-pointer">
|
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-arrow-arrow-left.svg"></ion-icon>
|
2022-10-18 14:51:24 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " src="assets/images/theme/doneIt/icons-calendar-arrow-left.svg"></ion-icon>
|
2022-03-03 22:57:33 +01:00
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/images/theme/gov/icons-calendar-arrow-left.svg"></ion-icon>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="header-title flex-grow-1 cursor-pointer">
|
|
|
|
|
<label>{{loadedEvent.workflowInstanceDataFields.Subject}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div (click)="editar(loadedEvent.serialNumber)" class="header-icon-right display-none-{{showAside}}">
|
|
|
|
|
<button class="btn-no-color">
|
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-edit.svg"></ion-icon>
|
|
|
|
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/images/theme/gov/icons-edit.svg"></ion-icon>
|
|
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div (click)="rejectTask(loadedEvent.serialNumber)" class="header-icon-right display-none-{{showAside}}">
|
|
|
|
|
<button class="btn-no-color" >
|
|
|
|
|
<ion-icon class="delete" name="trash-sharp"></ion-icon>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-07-27 10:57:50 +01:00
|
|
|
</div>
|
2022-03-03 22:57:33 +01:00
|
|
|
<div class="upper-content d-flex flex-column">
|
|
|
|
|
<div class="content-location">
|
|
|
|
|
<p>
|
|
|
|
|
<span class="location">{{loadedEvent.workflowInstanceDataFields.Location}}</span>
|
|
|
|
|
|
|
|
|
|
<span class="event-type-{{loadedEvent.workflowInstanceDataFields.Agenda}}" *ngIf="loadedEvent.workflowDisplayName == 'Agenda Oficial MDGPR' " style="background-color: #ffb703;">
|
2021-07-26 22:46:33 +01:00
|
|
|
{{loadedEvent.workflowInstanceDataFields.Agenda}}
|
2022-03-03 22:57:33 +01:00
|
|
|
</span>
|
|
|
|
|
<span class="event-type-{{loadedEvent.workflowInstanceDataFields.Agenda}}" *ngIf="loadedEvent.workflowDisplayName == 'Agenda Pessoal MDGPR' " style="background-color: #f05d5e;">
|
|
|
|
|
{{loadedEvent.workflowInstanceDataFields.Agenda}}
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="event-type-{{loadedEvent.workflowInstanceDataFields.Agenda}}" *ngIf="loadedEvent.workflowDisplayName == 'Agenda Oficial PR' " style="background-color: #99e47b;">
|
|
|
|
|
{{loadedEvent.workflowInstanceDataFields.Agenda}}
|
|
|
|
|
</span>
|
|
|
|
|
<span class="event-type-{{loadedEvent.workflowInstanceDataFields.Agenda}}" *ngIf="loadedEvent.workflowDisplayName == 'Agenda Pessoal PR' " style="background-color: #958bfc;">
|
|
|
|
|
{{loadedEvent.workflowInstanceDataFields.Agenda}}
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="content-details">
|
|
|
|
|
<ion-label>
|
|
|
|
|
<p>{{customDate}}</p>
|
|
|
|
|
<p *ngIf="toDateString(loadedEvent.workflowInstanceDataFields.StartDate) == toDateString(loadedEvent.workflowInstanceDataFields.EndDate)">das {{loadedEvent.workflowInstanceDataFields.StartDate | date: 'HH:mm'}} às {{loadedEvent.workflowInstanceDataFields.EndDate | date: 'HH:mm'}}</p>
|
2022-06-16 10:49:59 +01:00
|
|
|
<p *ngIf="toDateString(loadedEvent.workflowInstanceDataFields.StartDate) != toDateString(loadedEvent.workflowInstanceDataFields.EndDate)">{{loadedEvent.workflowInstanceDataFields.StartDate | date: 'd/M/yy' }} - {{ loadedEvent.workflowInstanceDataFields.EndDate | date: 'dd/M/yy'}} </p>
|
|
|
|
|
<p>
|
|
|
|
|
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == 0">Diário</span>
|
|
|
|
|
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == 1">Semanal</span>
|
|
|
|
|
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == 2">Mensal</span>
|
|
|
|
|
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == 3">Anual</span>
|
|
|
|
|
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == -1">(Não se repete)</span>
|
|
|
|
|
</p>
|
2022-03-03 22:57:33 +01:00
|
|
|
|
|
|
|
|
</ion-label>
|
|
|
|
|
</div>
|
2021-03-25 15:46:43 +01:00
|
|
|
</div>
|
2022-03-03 22:57:33 +01:00
|
|
|
<div class="line"></div>
|
|
|
|
|
|
|
|
|
|
<div class="overflow-y-auto">
|
|
|
|
|
<div class="middle-content">
|
|
|
|
|
<div *ngIf="loadedEvent.workflowInstanceDataFields.ParticipantsList">
|
2023-07-07 12:03:03 +01:00
|
|
|
<h5 class="font-17-rem">Intervenientes</h5>
|
2022-03-03 22:57:33 +01:00
|
|
|
<div *ngFor="let att of loadedEvent.workflowInstanceDataFields.ParticipantsList">
|
|
|
|
|
<ion-label>{{att.Name}}</ion-label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="line"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="loadedEvent.workflowInstanceDataFields.Body">
|
2023-07-07 12:03:03 +01:00
|
|
|
<h5 class="font-17-rem">Detalhes</h5>
|
2022-03-03 22:57:33 +01:00
|
|
|
<ion-item lines="none" class="ion-no-margin ion-no-padding">
|
2023-02-13 17:51:36 +01:00
|
|
|
<pre class="width-100 text">{{ loadedEvent.workflowInstanceDataFields.Body }} </pre>
|
2022-03-03 22:57:33 +01:00
|
|
|
</ion-item>
|
|
|
|
|
<div class="line"></div>
|
2021-05-03 13:19:18 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-03-03 22:57:33 +01:00
|
|
|
|
|
|
|
|
<div *ngIf="loadedEvent.Documents" class="bottom-content width-100">
|
|
|
|
|
<ion-list>
|
2023-07-07 12:03:03 +01:00
|
|
|
<h5 class="font-17-rem">Documentos Anexados </h5>
|
2022-03-03 22:57:33 +01:00
|
|
|
<ion-item class="ion-no-margin ion-no-padding cursor-pointer"
|
|
|
|
|
*ngFor="let attachment of loadedEvent.Documents"
|
|
|
|
|
(click)="viewDocument(attachment.DocId, attachment)">
|
|
|
|
|
<ion-label>
|
|
|
|
|
<p class="attach-title-item d-block">{{attachment.Assunto}}</p>
|
|
|
|
|
<p><span class="span-left">{{attachment.Sender}}</span><span class="span-right">{{ attachment.DocDate | date: 'dd-MM-yyyy HH:mm' }}</span></p>
|
|
|
|
|
</ion-label>
|
2021-05-03 13:19:18 +01:00
|
|
|
</ion-item>
|
2022-03-03 22:57:33 +01:00
|
|
|
</ion-list>
|
2021-04-08 15:24:21 +01:00
|
|
|
</div>
|
2021-04-09 11:34:07 +01:00
|
|
|
</div>
|
2022-03-03 22:57:33 +01:00
|
|
|
</div>
|
2022-06-03 16:53:50 +01:00
|
|
|
|
2022-03-03 22:57:33 +01:00
|
|
|
<div *ngIf="showAside" class="aside-right flex-column height-100 cursor-pointer">
|
|
|
|
|
<div class="aside-buttons">
|
2022-06-03 16:53:50 +01:00
|
|
|
<button full class="btn-ok" shape="round" >Editar evento</button>
|
|
|
|
|
<button (click)="approveTask(loadedEvent.serialNumber)" full class="btn-ok" shape="round" >Aprovar</button>
|
|
|
|
|
<button (click)="emendTask(loadedEvent.serialNumber)" class="btn-cancel" shape="round" >Rever</button>
|
2022-03-03 22:57:33 +01:00
|
|
|
<div class="solid"></div>
|
2022-06-03 16:53:50 +01:00
|
|
|
<button full class="btn-cancel" shape="round" (click)="editar(loadedEvent.serialNumber)" >Editar</button>
|
|
|
|
|
<button (click)="rejectTask(loadedEvent.serialNumber)" full class="btn-delete" shape="round" >Rejeitar</button>
|
2021-04-07 09:32:17 +01:00
|
|
|
</div>
|
2021-02-26 15:29:05 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-04-29 15:25:14 +01:00
|
|
|
|
2021-02-26 15:29:05 +01:00
|
|
|
</div>
|
|
|
|
|
</ion-content>
|
2021-04-29 15:25:14 +01:00
|
|
|
|
2023-02-17 12:37:10 +01:00
|
|
|
<ion-footer *ngIf="loadedEvent" class="display-none-{{showAside}} ion-no-border">
|
2021-07-27 10:57:50 +01:00
|
|
|
<div class="buttons">
|
2022-06-03 16:53:50 +01:00
|
|
|
<button *ngIf="loadedEvent.activityInstanceName != 'Editar Evento'" class="btn-cancel" shape="round" (click)="emendTask(loadedEvent.serialNumber)">Rever</button>
|
|
|
|
|
<button *ngIf="loadedEvent.activityInstanceName != 'Editar Evento'" class="btn-ok" shape="round" (click)="approveTask(loadedEvent.serialNumber)">Aprovar</button>
|
|
|
|
|
<button *ngIf="loadedEvent.activityInstanceName == 'Editar Evento'" full class="btn-cancel" shape="round" (click)="editar(loadedEvent.serialNumber)" >Editar</button>
|
|
|
|
|
<button *ngIf="loadedEvent.activityInstanceName == 'Editar Evento'" full class="btn-delete" shape="round" (click)="rejectTask(loadedEvent.serialNumber)" >Rejeitar</button>
|
2021-07-27 10:57:50 +01:00
|
|
|
</div>
|
2021-02-26 15:29:05 +01:00
|
|
|
</ion-footer>
|