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:28:06 +01:00
|
|
|
<div class="header-title d-flex align-center justify-between">
|
2021-03-30 10:48:29 +01:00
|
|
|
<label>Eventos para Aprovação</label>
|
2021-07-26 15:28:06 +01:00
|
|
|
<div (click)="ngOnChanges()">
|
|
|
|
|
<button class="btn-no-color" >
|
|
|
|
|
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
|
|
|
|
</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">
|
2021-06-24 11:07:53 +01:00
|
|
|
Meu calendário
|
2021-02-24 11:10:51 +01:00
|
|
|
</ion-segment-button>
|
|
|
|
|
<ion-segment-button value="PR">
|
|
|
|
|
Presidente da República
|
|
|
|
|
</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-15 16:38:09 +01:00
|
|
|
<div class="main-content" [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
|
|
|
|
|
class="item ion-no-padding width-100 cursor-pointer"
|
|
|
|
|
*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>
|
|
|
|
|
</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>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-03-30 09:12:51 +01:00
|
|
|
</div>
|
|
|
|
|
</ion-list>
|
|
|
|
|
</div>
|
2021-02-24 11:10:51 +01:00
|
|
|
</ion-content>
|