mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
improve
This commit is contained in:
@@ -205,7 +205,7 @@ export class EditEventPage implements OnInit {
|
|||||||
IsRecurring: new FormControl(this.postEvent.IsRecurring, [
|
IsRecurring: new FormControl(this.postEvent.IsRecurring, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
Date: new FormControl(new Date(this.postEvent.StartDate).getTime() < new Date(this.postEvent.EndDate).getTime()? 'ok': null,[
|
Date: new FormControl(new Date(this.postEvent.StartDate).getTime() <= new Date(this.postEvent.EndDate).getTime()? 'ok': null,[
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
|
|
||||||
@@ -390,21 +390,21 @@ export class EditEventPage implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setIntervenient(data){
|
setIntervenient(data) {
|
||||||
this.taskParticipants = data;
|
this.taskParticipants = data;
|
||||||
this.postEvent.Attendees = data;
|
this.postEvent.Attendees = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
setIntervenientCC(data){
|
setIntervenientCC(data) {
|
||||||
this.taskParticipantsCc = data;
|
this.taskParticipantsCc = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
addParticipants(){
|
addParticipants() {
|
||||||
this.adding = 'intervenient'
|
this.adding = 'intervenient'
|
||||||
this.openAttendees();
|
this.openAttendees();
|
||||||
}
|
}
|
||||||
|
|
||||||
addParticipantsCC(){
|
addParticipantsCC() {
|
||||||
this.adding = 'CC';
|
this.adding = 'CC';
|
||||||
this.openAttendees();
|
this.openAttendees();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,14 +39,13 @@
|
|||||||
|
|
||||||
<div class="content-location">
|
<div class="content-location">
|
||||||
<span class="date">{{loadedEvent.Location}}</span>
|
<span class="date">{{loadedEvent.Location}}</span>
|
||||||
|
|
||||||
<div *ngIf="loadedEvent.Organizer">
|
<div *ngIf="loadedEvent.Organizer">
|
||||||
<div *ngIf="loadedEvent.Organizer.Name == 'Agenda do Presidente da República' ">
|
<div *ngIf="eventsService.isMyEvent(loadedEvent) == false">
|
||||||
<span class="label" *ngIf="loadedEvent.CalendarName == 'Oficial' " style="background-color: #99e47b;">{{loadedEvent.CalendarName}}</span>
|
<span class="label" *ngIf="loadedEvent.CalendarName == 'Oficial' " style="background-color: #99e47b;">{{loadedEvent.CalendarName}}</span>
|
||||||
<span class="label" *ngIf="loadedEvent.CalendarName == 'Pessoal' " style="background-color: #958bfc;">{{loadedEvent.CalendarName}}</span>
|
<span class="label" *ngIf="loadedEvent.CalendarName == 'Pessoal' " style="background-color: #958bfc;">{{loadedEvent.CalendarName}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="loadedEvent.Organizer.Name == 'Agenda do Ministro e Director do Gabinete do PR' ">
|
<div *ngIf="eventsService.isMyEvent(loadedEvent) == true">
|
||||||
<span class="label" *ngIf="loadedEvent.CalendarName == 'Oficial' " style="background-color: #ffb703;">{{loadedEvent.CalendarName}}</span>
|
<span class="label" *ngIf="loadedEvent.CalendarName == 'Oficial' " style="background-color: #ffb703;">{{loadedEvent.CalendarName}}</span>
|
||||||
<span class="label" *ngIf="loadedEvent.CalendarName == 'Pessoal' " style="background-color: #f05d5e;">{{loadedEvent.CalendarName}}</span>
|
<span class="label" *ngIf="loadedEvent.CalendarName == 'Pessoal' " style="background-color: #f05d5e;">{{loadedEvent.CalendarName}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export class ViewEventPage implements OnInit {
|
|||||||
constructor(
|
constructor(
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
/* private navParams: NavParams, */
|
/* private navParams: NavParams, */
|
||||||
private eventsService: EventsService,
|
public eventsService: EventsService,
|
||||||
private attachmentsService: AttachmentsService,
|
private attachmentsService: AttachmentsService,
|
||||||
public alertController: AlertController,
|
public alertController: AlertController,
|
||||||
private iab: InAppBrowser,
|
private iab: InAppBrowser,
|
||||||
|
|||||||
@@ -190,6 +190,26 @@ export class EventsService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
isMyEvent(event: any) {
|
||||||
|
|
||||||
|
for (let calendar of this.loggeduser.OwnerCalendars) {
|
||||||
|
if(event.CalendarId == calendar.CalendarId) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let sharedCalendar of this.loggeduser.SharedCalendars) {
|
||||||
|
if(event.CalendarId == sharedCalendar.CalendarId) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
getAllPrOficialEvents(startdate: string, enddate: string): Observable<EventList[]> {
|
getAllPrOficialEvents(startdate: string, enddate: string): Observable<EventList[]> {
|
||||||
let geturl = environment.apiURL + 'calendar/pr';
|
let geturl = environment.apiURL + 'calendar/pr';
|
||||||
geturl = geturl.replace('/V4/', '/V5/')
|
geturl = geturl.replace('/V4/', '/V5/')
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ export class EditEventPage implements OnInit {
|
|||||||
participantes: new FormControl(this.taskParticipants, [
|
participantes: new FormControl(this.taskParticipants, [
|
||||||
// Validators.required
|
// Validators.required
|
||||||
]),
|
]),
|
||||||
Date: new FormControl( new Date(this.postEvent.StartDate).toLocaleString('pt') < new Date(this.postEvent.EndDate).toLocaleString('pt')? 'ok': null,[
|
Date: new FormControl( new Date(this.postEvent.StartDate).toLocaleString('pt') <= new Date(this.postEvent.EndDate).toLocaleString('pt')? 'ok': null,[
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
|||||||
@@ -36,12 +36,12 @@
|
|||||||
<span class="date">{{loadedEvent.Location}}</span>
|
<span class="date">{{loadedEvent.Location}}</span>
|
||||||
|
|
||||||
<div *ngIf="loadedEvent.Organizer">
|
<div *ngIf="loadedEvent.Organizer">
|
||||||
<div *ngIf="loadedEvent.Organizer.Name == 'Agenda do Presidente da República' ">
|
<div *ngIf="eventsService.isMyEvent(loadedEvent) == false">
|
||||||
<span class="label" *ngIf="loadedEvent.CalendarName == 'Oficial' " style="background-color: #99e47b;">{{loadedEvent.CalendarName}}</span>
|
<span class="label" *ngIf="loadedEvent.CalendarName == 'Oficial' " style="background-color: #99e47b;">{{loadedEvent.CalendarName}}</span>
|
||||||
<span class="label" *ngIf="loadedEvent.CalendarName == 'Pessoal' " style="background-color: #958bfc;">{{loadedEvent.CalendarName}}</span>
|
<span class="label" *ngIf="loadedEvent.CalendarName == 'Pessoal' " style="background-color: #958bfc;">{{loadedEvent.CalendarName}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="loadedEvent.Organizer.Name == 'Agenda do Ministro e Director do Gabinete do PR' ">
|
<div *ngIf="eventsService.isMyEvent(loadedEvent) == true">
|
||||||
<span class="label" *ngIf="loadedEvent.CalendarName == 'Oficial' " style="background-color: #ffb703;">{{loadedEvent.CalendarName}}</span>
|
<span class="label" *ngIf="loadedEvent.CalendarName == 'Oficial' " style="background-color: #ffb703;">{{loadedEvent.CalendarName}}</span>
|
||||||
<span class="label" *ngIf="loadedEvent.CalendarName == 'Pessoal' " style="background-color: #f05d5e;">{{loadedEvent.CalendarName}}</span>
|
<span class="label" *ngIf="loadedEvent.CalendarName == 'Pessoal' " style="background-color: #f05d5e;">{{loadedEvent.CalendarName}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export class ViewEventPage implements OnInit {
|
|||||||
sesseionStora = SessionStore
|
sesseionStora = SessionStore
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private eventsService: EventsService,
|
public eventsService: EventsService,
|
||||||
public alertController: AlertController,
|
public alertController: AlertController,
|
||||||
private iab: InAppBrowser,
|
private iab: InAppBrowser,
|
||||||
private processes: ProcessesService,
|
private processes: ProcessesService,
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
(click)="viewExpedientDetail(task.SerialNumber)" -->
|
(click)="viewExpedientDetail(task.SerialNumber)" -->
|
||||||
<div
|
<div
|
||||||
class="expediente item-hover ion-no-padding ion-no-margin cursor-pointer"
|
class="expediente item-hover ion-no-padding ion-no-margin cursor-pointer"
|
||||||
*ngFor = "let task of diplomasList"
|
*ngFor = "let task of deplomasStore.diplomasAssinadoList"
|
||||||
(click)="goToDiploma(task.SerialNumber)"
|
(click)="goToDiploma(task.SerialNumber)"
|
||||||
>
|
>
|
||||||
<!-- (click)="viewExpedientDetail(task.SerialNumber)" -->
|
<!-- (click)="viewExpedientDetail(task.SerialNumber)" -->
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<ion-refresher-content>
|
<ion-refresher-content>
|
||||||
</ion-refresher-content>
|
</ion-refresher-content>
|
||||||
</ion-refresher>
|
</ion-refresher>
|
||||||
<div class="main-content overflow-y-auto height-100" [ngSwitch]="segment">
|
<div class="main-content overflow-y-auto height-100" [ngSwitch]="segment" *ngIf="eventsPRList">
|
||||||
|
|
||||||
<div *ngSwitchCase="'MDGPR'" class="height-100">
|
<div *ngSwitchCase="'MDGPR'" class="height-100">
|
||||||
|
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
<div class="content width-100 overflow-y-auto height-100" >
|
<div class="content width-100 overflow-y-auto height-100" >
|
||||||
<div >
|
<div >
|
||||||
|
|
||||||
<ion-list *ngIf="taskslist.length >=0">
|
<ion-list *ngIf="expedientegbstore.list.length >=0">
|
||||||
<div
|
<div
|
||||||
class="expediente item-hover ion-no-padding ion-no-margin cursor-pointer"
|
class="expediente item-hover ion-no-padding ion-no-margin cursor-pointer"
|
||||||
*ngFor = "let task of taskslist"
|
*ngFor = "let task of expedientegbstore.list"
|
||||||
(click)="goToExpediente(task.SerialNumber)"
|
(click)="goToExpediente(task.SerialNumber)"
|
||||||
>
|
>
|
||||||
<div class="item width-100">
|
<div class="item width-100">
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export class PedidosPage implements OnInit {
|
|||||||
|
|
||||||
this.parecerList = new Array();
|
this.parecerList = new Array();
|
||||||
|
|
||||||
allParecer.filter(data => data.workflowInstanceDataFields.Status == "Active").forEach(element => {
|
allParecer.filter(data => data.workflowInstanceDataFields.Status == "Active").forEach(element => {
|
||||||
|
|
||||||
let task: customTask = this.customTaskPipe.transform(element);
|
let task: customTask = this.customTaskPipe.transform(element);
|
||||||
this.parecerList.push(task);
|
this.parecerList.push(task);
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</ion-refresher>
|
</ion-refresher>
|
||||||
|
|
||||||
<app-task-list
|
<app-task-list
|
||||||
[taskList] = listToPresent
|
[taskList] = pendentesstore.list
|
||||||
[skeletonLoader] = skeletonLoader
|
[skeletonLoader] = skeletonLoader
|
||||||
(viewTaskDetail)="viewTaskDetails($event)"
|
(viewTaskDetail)="viewTaskDetails($event)"
|
||||||
> </app-task-list>
|
> </app-task-list>
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ getFromDb() {
|
|||||||
|
|
||||||
async viewTaskDetails({ SerialNumber, WorkflowName, activityInstanceName }:customTask) {
|
async viewTaskDetails({ SerialNumber, WorkflowName, activityInstanceName }:customTask) {
|
||||||
|
|
||||||
console.log(SerialNumber, WorkflowName, activityInstanceName)
|
// console.log(SerialNumber, WorkflowName, activityInstanceName)
|
||||||
|
|
||||||
if(WorkflowName == 'Despacho') {
|
if(WorkflowName == 'Despacho') {
|
||||||
this.router.navigate(['/home/gabinete-digital/despachos',SerialNumber,'gabinete-digital']);
|
this.router.navigate(['/home/gabinete-digital/despachos',SerialNumber,'gabinete-digital']);
|
||||||
|
|||||||
@@ -21,12 +21,12 @@
|
|||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
production: false,
|
production: false,
|
||||||
//apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
|
apiURL: 'https://equilibrium.dyndns.info/GabineteDigital.Services/V5/api/',
|
||||||
apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
|
//apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
|
||||||
/* apiChatUrl: 'https://gabinetedigitalchat.dyndns.info/api/v1/',
|
apiChatUrl: 'https://gabinetedigitalchat.dyndns.info/api/v1/',
|
||||||
apiWsChatUrl: 'wss://gabinetedigitalchat.dyndns.info/websocket', */
|
apiWsChatUrl: 'wss://gabinetedigitalchat.dyndns.info/websocket',
|
||||||
apiChatUrl: 'https://www.tabularium.pt/api/v1/',
|
//apiChatUrl: 'https://www.tabularium.pt/api/v1/',
|
||||||
apiWsChatUrl: 'wss://www.tabularium.pt/websocket',
|
//apiWsChatUrl: 'wss://www.tabularium.pt/websocket',
|
||||||
/* apiChatUrl: 'http://chat.gabinetedigital.local:3000/api/v1/', */
|
/* apiChatUrl: 'http://chat.gabinetedigital.local:3000/api/v1/', */
|
||||||
domain: 'gabinetedigital.local', //gabinetedigital.local
|
domain: 'gabinetedigital.local', //gabinetedigital.local
|
||||||
defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local
|
defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local
|
||||||
|
|||||||
Reference in New Issue
Block a user