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" >
2021-10-23 09:53:21 +01:00
< ion-icon slot = "end" class = "title-icon font-awesome" name = "reload-circle" > < / ion-icon >
2021-07-26 15:28:06 +01:00
< / button >
< / div >
2021-02-24 11:10:51 +01:00
< / div >
< ion-toolbar >
2021-07-15 16:38:09 +01:00
< ion-segment [ ( ngModel ) ] = " segment " ( ionChange ) = " segmentChanged ( $ event ) " >
2021-02-24 11:10:51 +01:00
< ion-segment-button value = "MDGPR" >
2023-02-09 17:03:26 +01:00
Minha agenda
2021-02-24 11:10:51 +01:00
< / ion-segment-button >
2023-02-09 17:03:26 +01:00
< ion-segment-button * ngFor = "let calendars of eventService.calendarNamesAry" value = "PR" >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Presidente da República'" > Agenda do PR < / div >
< div * ngIf = "calendars != 'Meu calendario' && calendars.Role == 'Ministro e Director do Gabinete do PR'" > Agenda do MD < / 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 >
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 >
2021-07-30 17:49:54 +01:00
< div class = "main-content overflow-y-auto height-100" [ ngSwitch ] = " segment " * ngIf = "eventsMDGPRList" >
2021-03-30 09:12:51 +01:00
<!-- <div class="header - content width - 100"> -->
2021-07-15 16:38:09 +01:00
<!-- </div> -->
2021-03-30 09:12:51 +01:00
< ion-list class = "width-100" * ngSwitchCase = "'MDGPR'" >
2021-07-17 22:08:50 +01:00
< div
2021-09-01 17:14:57 +01:00
class = "item item-hover ion-no-padding width-100 cursor-pointer"
2021-07-17 22:08:50 +01:00
* ngFor = "let event of eventsMDGPRList"
( click ) = " openApproveModal ( event . serialNumber , event ) "
>
< div class = "event-mdgpr-{{event.workflowInstanceDataFields.Agenda}} width-100" >
< 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" >
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 >
2021-07-17 22:08:50 +01:00
< h3 > {{event.workflowInstanceDataFields.Subject}}< / h3 >
2022-06-03 16:53:50 +01:00
< div * ngIf = "event.activityInstanceName" >
< div class = "label-event-type" > {{ event.activityInstanceName }} < / div >
< / div >
2021-07-17 22:08:50 +01:00
< / div >
< / div >
< / div >
2021-03-30 09:12:51 +01:00
< / ion-list >
< ion-list class = "width-100" * ngSwitchCase = "'PR'" >
< div class = "width-100" * ngIf = "eventsPRList" >
2021-07-17 22:08:50 +01:00
< div
class = "item ion-no-padding width-100 cursor-pointer"
* ngFor = "let event of eventsPRList"
( click ) = " openApproveModal ( event . serialNumber , event ) "
>
< div class = "event-pr-{{event.workflowInstanceDataFields.Agenda}} width-100" >
< 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" >
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 >
2021-07-17 22:08:50 +01:00
< h3 > {{event.workflowInstanceDataFields.Subject}}< / h3 >
2022-06-03 16:53:50 +01:00
< div * ngIf = "event.activityInstanceName" >
< div class = "label-event-type" > {{ event.activityInstanceName }} < / div >
< / div >
2021-07-17 22:08:50 +01:00
< / div >
< / div >
< / div >
2021-03-30 09:12:51 +01:00
< / div >
< / ion-list >
2022-12-17 13:32:52 +01:00
< ion-list class = "width-100" * ngSwitchCase = "'Unknown'" >
< div class = "width-100" * ngIf = "eventsGenericList" >
< div
class = "item ion-no-padding width-100 cursor-pointer"
* ngFor = "let event of eventsGenericList"
( click ) = " openApproveModal ( event . serialNumber , event ) "
>
< div class = "event-pr-{{event.workflowInstanceDataFields.Agenda}} width-100" >
< 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" >
< 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 >
< h3 > {{event.workflowInstanceDataFields.Subject}}< / h3 >
< div * ngIf = "event.activityInstanceName" >
< div class = "label-event-type" > {{ event.activityInstanceName }} < / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / ion-list >
2021-03-30 09:12:51 +01:00
< / div >
2021-02-24 11:10:51 +01:00
< / ion-content >