Files
doneit-web/src/app/pages/events/events.page.html
T

302 lines
13 KiB
HTML
Raw Normal View History

2022-07-06 17:06:27 +01:00
<!-- <ion-header class="ion-no-border init-event-header"> -->
<ion-header class="ion-no-border">
2023-04-14 17:10:16 +01:00
<!-- <ion-label>
2021-04-23 10:35:53 +01:00
<p class="time ion-text-center">{{customDate}}</p>
</ion-label>
<ion-label>
<p *ngIf="totalEvent==1" class="event-number p-small ion-text-center"> <strong>{{totalEvent}}</strong> evento agendado para hoje</p>
<p *ngIf="totalEvent!=1"class="event-number p-small ion-text-center"> <strong>{{totalEvent}}</strong> eventos agendados para hoje</p>
</ion-label>
<div class="next-meeting">
<div class="meeting-time" *ngIf="currentHoursMinutes">{{currentHoursMinutes | date: 'HH:mm'}}</div>
<div class="meeting-description" *ngIf="currentEvent"> "{{currentEvent}}"</div>
2023-04-14 17:10:16 +01:00
</div> -->
2021-04-23 10:35:53 +01:00
2021-02-10 16:02:38 +01:00
</ion-header>
2020-09-01 11:06:23 +01:00
2022-07-06 17:06:27 +01:00
<!-- <ion-content class="main " ng-controller="AppController"> -->
<ion-content ng-controller="AppController">
2023-02-02 10:37:17 +01:00
<ion-refresher slot="fixed" (ionRefresh)="doRefresh($event)">
2021-01-19 16:44:39 +01:00
<ion-refresher-content>
</ion-refresher-content>
</ion-refresher>
2021-07-28 16:27:10 +01:00
2023-05-18 17:40:52 +01:00
<div class="conteiner-box pt-20 height-100">
2023-05-25 16:24:18 +01:00
2023-05-29 11:51:08 +01:00
<div class="main-content justify-center d-flex height-100">
2023-05-25 16:24:18 +01:00
<div class="box-container d-flex mx-20" style="padding: 0px;overflow: hidden;">
<ion-progress-bar type="indeterminate" *ngIf="loadingAllTask"></ion-progress-bar>
2023-05-26 10:08:35 +01:00
<div class="px-20 pb-20">
2023-04-14 17:10:16 +01:00
<p class="time ion-text-left ">{{customDate}}</p>
2023-04-17 11:50:41 +01:00
<div class="wrap d-flex float-left">
2023-04-18 09:02:51 +01:00
<div class="event-box pointer" (click)="goToAllTaskFilter('ForToDay')">
2023-04-14 17:10:16 +01:00
<!-- <p>correspondencia com prazo para hoje</p> -->
<p>Tarefas que terminam hoje</p>
2023-04-17 14:11:30 +01:00
<span>{{ TaskService.deadline }}</span>
2023-04-14 17:10:16 +01:00
</div>
2023-04-18 09:02:51 +01:00
<div class="event-box pointer" (click)="goToAllTaskFilter('OverdueTasks')">
2023-04-14 17:10:16 +01:00
<!-- <p>correspondencia em atraso</p> -->
<p>Tarefas em atraso</p>
2023-04-17 14:11:30 +01:00
<span>{{ TaskService.overdueTasks }}</span>
2023-04-14 17:10:16 +01:00
</div>
2023-04-18 09:02:51 +01:00
<div class="event-box pointer" (click)="goToAllTaskFilter('New')">
2023-04-14 17:10:16 +01:00
<!-- <p>Novas correspondencia</p> -->
<p>Novas tarefas</p>
2023-04-17 14:11:30 +01:00
<span>{{ TaskService.new }}</span>
2023-04-14 17:10:16 +01:00
</div>
2023-04-18 09:02:51 +01:00
<div class="event-box pointer" (click)="goToAllTaskFilter('unread')">
2023-04-14 17:10:16 +01:00
<!-- <p>correspondencia não lidas</p> -->
<p>Tarefas não lidas</p>
2023-04-17 14:11:30 +01:00
<span>{{ TaskService.unread }}</span>
2023-04-14 17:10:16 +01:00
</div>
</div>
2020-12-30 11:44:19 +01:00
</div>
2023-04-14 17:10:16 +01:00
2023-04-17 11:50:41 +01:00
<div class="d-flex width-100 schedule-container">
2023-04-14 17:10:16 +01:00
<div class="flex-1">
<div *ngIf="p.userPermission([p.permissionList.Agenda.access])" class="schedule height-100 schedule-1">
<ion-progress-bar type="indeterminate" *ngIf="showAgendaLoader"></ion-progress-bar>
<div class="schedule-header">
<div class="title">
<ion-icon class="icon" slot="end" src="assets/images/icons-default-agenda.svg" ></ion-icon>
<div class="text">A sua Agenda</div>
</div>
<button title="Ir para a sua Agenda" class="btn-no-color" [routerLink]="['/home/agenda']">
<ion-icon
*ngIf="ThemeService.currentTheme == 'default' "
class="icon-next"
slot="end"
src="assets/images/icons-arrow-circle-arrow-right.svg"
></ion-icon>
<ion-icon
*ngIf="ThemeService.currentTheme == 'gov' "
class="icon-next"
slot="end"
src="assets/images/theme/gov/icons-arrow-circle-arrow-right.svg"
></ion-icon>
<ion-icon
*ngIf="ThemeService.currentTheme == 'doneIt' "
class="icon-next"
slot="end"
src="assets/images/theme/doneIt/icons-arrow-circle-arrow-right.svg"
></ion-icon>
</button>
</div>
<div class="content overflow-y-auto flex-grow-1 height-100">
<ion-list>
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
(click)="goToEvent(event)"
>
<div class="d-flex content-{{sessoStore.user.Profile}}-{{event.CalendarName}}">
<div class="schedule-time">
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
<div *ngIf="!event.IsAllDayEvent" class="time-end">{{event.EndDate | date: 'HH:mm'}}</div>
<div *ngIf="event.IsAllDayEvent" class="time-start"> Todo </div>
<div *ngIf="event.IsAllDayEvent" class="time-end text-center"> o dia </div>
<div></div>
</div>
<div class="schedule-details">
2023-05-19 12:00:51 +01:00
<div class="description">{{event.Subject}}</div>
<div class="location">
<p>{{event.Location}}</p>
2023-04-14 17:10:16 +01:00
</div>
</div>
</div>
</ion-item>
</ion-list>
</div>
2022-07-06 17:06:27 +01:00
</div>
2023-04-14 17:10:16 +01:00
</div>
<div class="flex-1">
<div *ngIf="p.userPermission([p.permissionList.Gabinete.access])" class="schedule schedule-1 height-100">
<ion-progress-bar type="indeterminate" *ngIf="showCorrespondenciasLoader"></ion-progress-bar>
<div class="schedule-header">
<div class="title">
<ion-icon class="icon" slot="end" src="assets/images/icons-correspondencias.svg"></ion-icon>
<div class="text">Correspondência por ler</div>
</div>
<button title="Ir para o Gabinete Digital" (click)="viewExpedientListPage()" class="btn-no-color cursor-pointer">
<ion-icon
*ngIf="ThemeService.currentTheme == 'default' "
class="icon-next"
slot="end"
src="assets/images/icons-arrow-circle-arrow-right.svg"
></ion-icon>
<ion-icon
*ngIf="ThemeService.currentTheme == 'gov' "
class="icon-next"
slot="end"
src="assets/images/theme/gov/icons-arrow-circle-arrow-right.svg"
></ion-icon>
<ion-icon
*ngIf="ThemeService.currentTheme == 'doneIt' "
class="icon-next"
slot="end"
src="assets/images/theme/doneIt/icons-arrow-circle-arrow-right.svg"
></ion-icon>
</button>
</div>
<div class="content overflow-y-auto flex-grow-1 height-100">
<ion-list>
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor = "let task of listToPresentexpediente"
(click)="goToExpediente(task.SerialNumber)">
<div class="item-exp d-flex">
<div class="schedule-date">
<div class="time-end">{{task.TaskStartDate | date: 'dd-MM-yy'}}</div>
<div class="time-start">{{task.TaskStartDate | date: 'HH:mm'}}</div>
</div>
<div class="schedule-details pointer">
<div class="description">{{ task.Subject }}</div>
<div class="location">{{ task.Senders }}</div>
</div>
</div>
</ion-item>
</ion-list>
2021-01-19 16:44:39 +01:00
</div>
2020-12-30 11:44:19 +01:00
</div>
2022-07-06 17:06:27 +01:00
</div>
2023-04-14 17:10:16 +01:00
</div>
2020-12-30 11:44:19 +01:00
</div>
2023-04-14 17:10:16 +01:00
2022-07-06 17:06:27 +01:00
</div>
2021-07-28 16:27:10 +01:00
2022-07-06 17:06:27 +01:00
2023-04-17 11:50:41 +01:00
<div class="conteiner-box conteiner-box-mobile pt-20 px-20 height-100" ng-swipe-up="swipe($event)">
2023-04-14 17:10:16 +01:00
<div *ngIf="p.userPermission([p.permissionList.Agenda.access])" class="schedule height-100">
<ion-progress-bar type="indeterminate" *ngIf="showAgendaLoader"></ion-progress-bar>
<div class="schedule-header">
<div class="title">
<ion-icon class="icon" slot="end" src="assets/images/icons-default-agenda.svg" ></ion-icon>
<div class="text">A sua Agenda</div>
</div>
<button title="Ir para a sua Agenda" class="btn-no-color" [routerLink]="['/home/agenda']">
<ion-icon
*ngIf="ThemeService.currentTheme == 'default' "
class="icon-next"
slot="end"
src="assets/images/icons-arrow-circle-arrow-right.svg"
></ion-icon>
<ion-icon
*ngIf="ThemeService.currentTheme == 'gov' "
class="icon-next"
slot="end"
src="assets/images/theme/gov/icons-arrow-circle-arrow-right.svg"
></ion-icon>
<ion-icon
*ngIf="ThemeService.currentTheme == 'doneIt' "
class="icon-next"
slot="end"
src="assets/images/theme/doneIt/icons-arrow-circle-arrow-right.svg"
></ion-icon>
</button>
</div>
<div class="content overflow-y-auto flex-grow-1 height-100">
<ion-list>
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
(click)="goToEvent(event)"
>
<div class="d-flex content-{{sessoStore.user.Profile}}-{{event.CalendarName}}">
<div class="schedule-time">
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
<div *ngIf="!event.IsAllDayEvent" class="time-end">{{event.EndDate | date: 'HH:mm'}}</div>
<div *ngIf="event.IsAllDayEvent" class="time-start"> Todo </div>
<div *ngIf="event.IsAllDayEvent" class="time-end text-center"> o dia </div>
<div></div>
</div>
<div class="schedule-details">
2023-05-19 12:00:51 +01:00
<div class="location">{{event.Subject}}</div>
2023-04-14 17:10:16 +01:00
<div class="description">
2023-05-19 12:00:51 +01:00
<p>{{event.Location}}</p>
2023-04-14 17:10:16 +01:00
</div>
</div>
2022-07-06 17:06:27 +01:00
</div>
2023-04-14 17:10:16 +01:00
</ion-item>
</ion-list>
</div>
</div>
<div *ngIf="p.userPermission([p.permissionList.Gabinete.access])" class="schedule schedule-1 height-100">
<ion-progress-bar type="indeterminate" *ngIf="showCorrespondenciasLoader"></ion-progress-bar>
<div class="schedule-header">
<div class="title">
<ion-icon class="icon" slot="end" src="assets/images/icons-correspondencias.svg"></ion-icon>
<div class="text">Correspondência por ler</div>
2022-07-06 17:06:27 +01:00
</div>
2023-04-14 17:10:16 +01:00
<button title="Ir para o Gabinete Digital" (click)="viewExpedientListPage()" class="btn-no-color cursor-pointer">
<ion-icon
*ngIf="ThemeService.currentTheme == 'default' "
class="icon-next"
slot="end"
src="assets/images/icons-arrow-circle-arrow-right.svg"
></ion-icon>
<ion-icon
*ngIf="ThemeService.currentTheme == 'gov' "
class="icon-next"
slot="end"
src="assets/images/theme/gov/icons-arrow-circle-arrow-right.svg"
></ion-icon>
<ion-icon
*ngIf="ThemeService.currentTheme == 'doneIt' "
class="icon-next"
slot="end"
src="assets/images/theme/doneIt/icons-arrow-circle-arrow-right.svg"
></ion-icon>
</button>
</div>
<div class="content overflow-y-auto flex-grow-1 height-100">
<ion-list>
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor = "let task of listToPresentexpediente"
(click)="goToExpediente(task.SerialNumber)">
<div class="item-exp d-flex">
<div class="schedule-date">
<div class="time-end">{{task.TaskStartDate | date: 'dd-MM-yy'}}</div>
<div class="time-start">{{task.TaskStartDate | date: 'HH:mm'}}</div>
</div>
<div class="schedule-details pointer">
<div class="description">{{ task.Subject }}</div>
<div class="location">{{ task.Senders }}</div>
</div>
</div>
</ion-item>
</ion-list>
</div>
2020-12-30 11:44:19 +01:00
</div>
</div>
2022-07-06 17:06:27 +01:00
</div>
2021-10-27 14:42:10 +01:00
2023-04-14 17:10:16 +01:00
2022-07-06 17:06:27 +01:00
<!-- <iframe id="home-iframe" style="width: 100%;" src="/assets/www/pdfjs/web/viewer.html?file=/assets/www/pdfjs/web/compressed.tracemonkey-pldi-09.pdf.pdf"></iframe> -->
2021-07-28 16:27:10 +01:00
</ion-content>
2022-12-22 11:04:25 +01:00