2021-03-30 09:12:51 +01:00
< ion-header class = "ion-no-border" >
2021-02-24 11:10:51 +01:00
< div class = "header-content" >
2021-07-26 15:34:21 +01:00
< div class = "header-title d-flex align-center justify-between width-100" >
2021-10-18 15:44:22 +01:00
< div class = "flex-grow-1" > Eventos para Aprovação< / div >
2021-10-18 15:19:01 +01:00
< div ( click ) = " refreshing ( ) " >
2022-02-25 09:38:14 +01:00
< button title = "Atualizar" class = "btn-no-color" >
2023-08-30 18:43:48 +01:00
< ion-icon class = " font-45-em" src = "assets/images/theme/gov/icon-reload.svg" > < / ion-icon >
2021-07-26 15:28:06 +01:00
< / button >
< / div >
2021-02-24 11:10:51 +01:00
< / div >
2023-06-13 20:37:23 +01:00
< ion-toolbar >
2023-06-22 13:09:11 +01:00
< ion-segment [ ( ngModel ) ] = " segment " ( ionChange ) = " segmentChanged ( $ event ) " >
< ion-segment-button * ngFor = "let calendars of eventService.calendarNamesAryPR; let i index" [ value ] = " i = == ' Meu calendario ' ? ' Meu calendario ' : i . OwnerUserId " >
2023-07-26 13:06:42 +01:00
< div * ngIf = "calendars == 'Meu calendario'" >
<!-- <span *ngIf="SessionStore.user.Profile == 'PR' ">PR</span>
<span *ngIf="SessionStore.user.Profile == 'MDGPR' ">MDGPR</span>
<span *ngIf="SessionStore.user.Profile != 'MDGPR' && SessionStore.user.Profile != 'PR' ">Minha agenda</span> -->
Minha agenda
< / div >
2023-08-22 11:25:13 +01:00
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'" > {{ environment.agendaPR}} < / div >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'" > {{ environment.agendaVP}} < / div >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'" > Agenda do {{calendars.Fullname}} < / div >
< / ion-segment-button >
< ion-segment-button [ class . d-none ] = " ! eventService . HasMdGPR " * ngFor = "let calendars of eventService.calendarNamesAryOnlyMD; let i index" [ value ] = " i = == ' Meu calendario ' ? ' Meu calendario ' : i . OwnerUserId " >
< div * ngIf = "calendars == 'Meu calendario'" > Minha agenda < / div >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'" > {{ environment.agendaPR}} < / div >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'" > {{ environment.agendaVP}} < / div >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'" > Agenda do {{calendars.Fullname}} < / div >
2023-06-22 13:09:11 +01:00
< / ion-segment-button >
2023-08-22 11:25:13 +01:00
< ion-segment-button * ngFor = "let calendars of eventService.calendarNamesAryNoPrNMD; let i index" [ value ] = " i = == ' Meu calendario ' ? ' Meu calendario ' : i . OwnerUserId " >
2023-02-17 16:53:20 +01:00
< div * ngIf = "calendars == 'Meu calendario'" > Minha agenda < / div >
2023-03-22 15:31:01 +01:00
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'" > {{ environment.agendaPR}} < / div >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'" > {{ environment.agendaVP}} < / div >
2023-02-10 20:16:10 +01:00
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role != 'Ministro e Director do Gabinete do PR' && calendars.Role != 'Presidente da República'" > Agenda do {{calendars.Fullname}} < / div >
2021-02-24 11:10:51 +01:00
< / ion-segment-button >
< / ion-segment >
< / ion-toolbar >
< / div >
< / ion-header >
< ion-content >
< ion-refresher name = "refresher" slot = "fixed" ( ionRefresh ) = " doRefresh ( $ event ) " >
< ion-progress-bar type = "indeterminate" * ngIf = "showLoader" > < / ion-progress-bar >
< ion-refresher-content >
< / ion-refresher-content >
< / ion-refresher >
2023-02-22 13:06:31 +01:00
< div class = "main-content overflow-y-auto height-100" >
2021-03-30 09:12:51 +01:00
<!-- <div class="header - content width - 100"> -->
2021-07-15 16:38:09 +01:00
<!-- </div> -->
2023-02-22 13:06:31 +01:00
< ion-list class = "width-100" >
2023-02-23 11:10:33 +01:00
< div class = "width-100" >
2021-07-17 22:08:50 +01:00
< div
class = "item ion-no-padding width-100 cursor-pointer"
2023-02-22 13:06:31 +01:00
* ngFor = "let event of eventoaprovacaostore.get(segment)"
2021-07-17 22:08:50 +01:00
( click ) = " openApproveModal ( event . serialNumber , event ) "
>
2023-02-22 13:06:31 +01:00
< div class = "event-{{color}}-{{event.workflowInstanceDataFields.Agenda}} width-100" >
2021-07-17 22:08:50 +01:00
< div class = "approve-event-time" >
< p > {{event.workflowInstanceDataFields.StartDate | date: 'HH:mm'}}< / p >
< p > {{event.workflowInstanceDataFields.EndDate | date: 'HH:mm'}}< / p >
< / div >
< div class = "approve-event-detail" >
2023-08-24 18:39:31 +01:00
< h3 > {{event.workflowInstanceDataFields.Subject}}< / h3 >
2021-07-17 22:17:50 +01:00
< p * ngIf = "toDateString(event.workflowInstanceDataFields.StartDate) != toDateString(event.workflowInstanceDataFields.EndDate)" > {{event.workflowInstanceDataFields.StartDate | date: 'd/M/yy' }} - {{ event.workflowInstanceDataFields.EndDate | date: 'dd/M/yy'}} | {{event.workflowInstanceDataFields.Location}}< / p >
< p * ngIf = "toDateString(event.workflowInstanceDataFields.StartDate) == toDateString(event.workflowInstanceDataFields.EndDate)" > {{event.workflowInstanceDataFields.StartDate | date: 'd/M/yy' }} | {{event.workflowInstanceDataFields.Location}}< / p >
2023-08-24 18:39:31 +01:00
2022-06-03 16:53:50 +01:00
< div * ngIf = "event.activityInstanceName" >
2023-07-07 12:03:03 +01:00
< div class = "label-event-type font-13-rem" > {{ event.activityInstanceName }} < / div >
2022-06-03 16:53:50 +01:00
< / div >
2021-07-17 22:08:50 +01:00
< / div >
< / div >
< / div >
2021-03-30 09:12:51 +01:00
< / div >
2023-02-22 13:06:31 +01:00
2021-03-30 09:12:51 +01:00
< / ion-list >
< / div >
2023-02-22 13:06:31 +01:00
2021-02-24 11:10:51 +01:00
< / ion-content >