mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Merge branch 'developer' of bitbucket.org:equilibriumito/gabinete-digital into developer
This commit is contained in:
@@ -19,7 +19,7 @@ export class Event{
|
|||||||
AppointmentState: number;
|
AppointmentState: number;
|
||||||
TimeZone: string;
|
TimeZone: string;
|
||||||
Organizer: string;
|
Organizer: string;
|
||||||
Categories: string[];
|
Categories: string;
|
||||||
HasAttachments: boolean;
|
HasAttachments: boolean;
|
||||||
EventRecurrence?: EventRecurrence;
|
EventRecurrence?: EventRecurrence;
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
|
|
||||||
<div *ngIf="Form && validateFrom" >
|
<div *ngIf="Form && validateFrom" >
|
||||||
<div *ngIf="Form.get('CalendarName').invalid " class="input-errror-message">
|
<div *ngIf="Form.get('CalendarName').invalid " class="input-errror-message">
|
||||||
{{ postEvent.Categories[0] }}
|
{{ postEvent.Categories }}
|
||||||
<div *ngIf="Form.get('CalendarName').errors?.required">
|
<div *ngIf="Form.get('CalendarName').errors?.required">
|
||||||
Campo obrigatório.
|
Campo obrigatório.
|
||||||
</div>
|
</div>
|
||||||
@@ -88,8 +88,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="ion-input-class" [class.input-error]="Form?.get('Categories')?.invalid && validateFrom ">
|
<div class="ion-input-class" [class.input-error]="Form?.get('Categories')?.invalid && validateFrom ">
|
||||||
<ion-select placeholder="Selecione tipo de evento*"
|
<ion-select placeholder="Selecione tipo de evento*"
|
||||||
[(ngModel)]="postEvent.Categories[0]"
|
[(ngModel)]="postEvent.Categories"
|
||||||
selectedText="{{postEvent.Categories[0]}}"
|
selectedText="{{postEvent.Categories}}"
|
||||||
interface="action-sheet"
|
interface="action-sheet"
|
||||||
Cancel-text="Cancelar" required>
|
Cancel-text="Cancelar" required>
|
||||||
<ion-select-option value="Reunião">Reunião</ion-select-option>
|
<ion-select-option value="Reunião">Reunião</ion-select-option>
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
|
|
||||||
<div *ngIf="Form && validateFrom" >
|
<div *ngIf="Form && validateFrom" >
|
||||||
<div *ngIf="Form.get('Categories').invalid " class="input-errror-message">
|
<div *ngIf="Form.get('Categories').invalid " class="input-errror-message">
|
||||||
{{ postEvent.Categories[0] }}
|
{{ postEvent.Categories}}
|
||||||
<div *ngIf="Form.get('Categories').errors?.required">
|
<div *ngIf="Form.get('Categories').errors?.required">
|
||||||
Campo obrigatório.
|
Campo obrigatório.
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ export class EditEventPage implements OnInit {
|
|||||||
CalendarName: new FormControl(this.postEvent.CalendarName, [
|
CalendarName: new FormControl(this.postEvent.CalendarName, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
Categories: new FormControl(this.postEvent.Categories[0], [
|
Categories: new FormControl(this.postEvent.Categories, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
IsRecurring: new FormControl(this.postEvent.IsRecurring, [
|
IsRecurring: new FormControl(this.postEvent.IsRecurring, [
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="ion-input-class" [class.input-error]="Form?.get('Categories')?.invalid && validateFrom ">
|
<div class="ion-input-class" [class.input-error]="Form?.get('Categories')?.invalid && validateFrom ">
|
||||||
<ion-select placeholder="Selecione tipo de evento*"
|
<ion-select placeholder="Selecione tipo de evento*"
|
||||||
[(ngModel)]="postEvent.Categories[0]"
|
[(ngModel)]="postEvent.Categories"
|
||||||
interface="action-sheet"
|
interface="action-sheet"
|
||||||
Cancel-text="Cancelar" required>
|
Cancel-text="Cancelar" required>
|
||||||
<ion-select-option value="Reunião">Reunião</ion-select-option>
|
<ion-select-option value="Reunião">Reunião</ion-select-option>
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
|
|
||||||
<!-- <div *ngIf="Form && validateFrom" >
|
<!-- <div *ngIf="Form && validateFrom" >
|
||||||
<div *ngIf="Form.get('Categories').invalid " class="input-errror-message">
|
<div *ngIf="Form.get('Categories').invalid " class="input-errror-message">
|
||||||
{{ postEvent.Categories[0] }}
|
{{ postEvent.Categories }}
|
||||||
<div *ngIf="Form.get('Categories').errors?.required">
|
<div *ngIf="Form.get('Categories').errors?.required">
|
||||||
Campo obrigatório.
|
Campo obrigatório.
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ export class NewEventPage implements OnInit {
|
|||||||
AppointmentState: 0,
|
AppointmentState: 0,
|
||||||
TimeZone: '',
|
TimeZone: '',
|
||||||
Organizer: '',
|
Organizer: '',
|
||||||
Categories: ['Reunião'],
|
Categories: 'Reunião',
|
||||||
HasAttachments: false,
|
HasAttachments: false,
|
||||||
EventRecurrence: {Type:'-1'},
|
EventRecurrence: {Type:'-1'},
|
||||||
};
|
};
|
||||||
@@ -136,7 +136,7 @@ export class NewEventPage implements OnInit {
|
|||||||
AppointmentState: 0,
|
AppointmentState: 0,
|
||||||
TimeZone: '',
|
TimeZone: '',
|
||||||
Organizer: '',
|
Organizer: '',
|
||||||
Categories: ['Reunião'],
|
Categories: 'Reunião',
|
||||||
HasAttachments: false,
|
HasAttachments: false,
|
||||||
EventRecurrence: {Type:'-1'},
|
EventRecurrence: {Type:'-1'},
|
||||||
};
|
};
|
||||||
@@ -207,7 +207,7 @@ export class NewEventPage implements OnInit {
|
|||||||
Date: new FormControl(this.dateValid, [
|
Date: new FormControl(this.dateValid, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
Categories: new FormControl(this.postEvent.Categories[0], [
|
Categories: new FormControl(this.postEvent.Categories, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
participantes: new FormControl(this.taskParticipants, [
|
participantes: new FormControl(this.taskParticipants, [
|
||||||
|
|||||||
@@ -293,7 +293,6 @@ export class ApproveEventPage implements OnInit {
|
|||||||
|
|
||||||
modal.onDidDismiss().then(res => {
|
modal.onDidDismiss().then(res => {
|
||||||
this.getTask();
|
this.getTask();
|
||||||
this.goBack();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -88,7 +88,7 @@
|
|||||||
|
|
||||||
<ion-select placeholder="Selecione tipo de evento*"
|
<ion-select placeholder="Selecione tipo de evento*"
|
||||||
class="d-block d-md-none"
|
class="d-block d-md-none"
|
||||||
[(ngModel)]="postData.Categories[0]"
|
[(ngModel)]="postData.Categories"
|
||||||
interface="action-sheet"
|
interface="action-sheet"
|
||||||
Cancel-text="Cancelar" required>
|
Cancel-text="Cancelar" required>
|
||||||
<ion-select-option value="Reunião">Reunião</ion-select-option>
|
<ion-select-option value="Reunião">Reunião</ion-select-option>
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
<mat-form-field class="d-none d-md-block" appearance="none" class="width-100" placeholder="Sample Type" required>
|
<mat-form-field class="d-none d-md-block" appearance="none" class="width-100" placeholder="Sample Type" required>
|
||||||
<!-- <input matInput type="text" > -->
|
<!-- <input matInput type="text" > -->
|
||||||
<mat-select [(ngModel)]="postData.Categories[0]" >
|
<mat-select [(ngModel)]="postData.Categories" >
|
||||||
<mat-option value="Reunião">
|
<mat-option value="Reunião">
|
||||||
Reunião
|
Reunião
|
||||||
</mat-option>
|
</mat-option>
|
||||||
|
|||||||
+3
-3
@@ -146,7 +146,7 @@ export class BookMeetingModalPage implements OnInit {
|
|||||||
this.dateControlEnd = new FormControl(moment(new Date(new Date().getTime() + 15 * 60000)));
|
this.dateControlEnd = new FormControl(moment(new Date(new Date().getTime() + 15 * 60000)));
|
||||||
|
|
||||||
|
|
||||||
this.postData.Categories = ['Reunião']
|
this.postData.Categories = 'Reunião'
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@@ -208,7 +208,7 @@ export class BookMeetingModalPage implements OnInit {
|
|||||||
participantes: new FormControl(this.taskParticipants, [
|
participantes: new FormControl(this.taskParticipants, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
Categories: new FormControl(this.postData.Categories[0], [
|
Categories: new FormControl(this.postData.Categories, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
|
|
||||||
@@ -249,7 +249,7 @@ export class BookMeetingModalPage implements OnInit {
|
|||||||
AppointmentState: 0,
|
AppointmentState: 0,
|
||||||
TimeZone: 'UTC',
|
TimeZone: 'UTC',
|
||||||
Organizer: null,
|
Organizer: null,
|
||||||
Categories: ['Reunião'],
|
Categories: 'Reunião',
|
||||||
HasAttachments: true,
|
HasAttachments: true,
|
||||||
EventRecurrence: null,
|
EventRecurrence: null,
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -197,7 +197,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
|||||||
// CalendarName: new FormControl(this.postEvent.CalendarName, [
|
// CalendarName: new FormControl(this.postEvent.CalendarName, [
|
||||||
// Validators.required
|
// Validators.required
|
||||||
// ]),
|
// ]),
|
||||||
// Categories: new FormControl(this.postEvent.Categories[0], [
|
// Categories: new FormControl(this.postEvent.Categories, [
|
||||||
// Validators.required
|
// Validators.required
|
||||||
// ]),
|
// ]),
|
||||||
// IsRecurring: new FormControl(this.postEvent.IsRecurring, [
|
// IsRecurring: new FormControl(this.postEvent.IsRecurring, [
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ export class EditEventToApprovePage implements OnInit {
|
|||||||
Validators.required,
|
Validators.required,
|
||||||
]),
|
]),
|
||||||
//CalendarName: new FormControl(this.postEvent.CalendarName),
|
//CalendarName: new FormControl(this.postEvent.CalendarName),
|
||||||
// Categories: new FormControl(this.postEvent.Categories[0], [
|
// Categories: new FormControl(this.postEvent.Categories, [
|
||||||
// Validators.required
|
// Validators.required
|
||||||
// ]),
|
// ]),
|
||||||
dateStart: new FormControl(this.dateStart, [
|
dateStart: new FormControl(this.dateStart, [
|
||||||
@@ -253,26 +253,25 @@ export class EditEventToApprovePage implements OnInit {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const event: any = {
|
const event: any = {
|
||||||
Agenda: this.eventProcess.workflowInstanceDataFields.Agenda,
|
SerialNumber: this.eventProcess.serialNumber,
|
||||||
Body: this.eventProcess.workflowInstanceDataFields.Body,
|
Body: this.eventProcess.workflowInstanceDataFields.Body,
|
||||||
EndDate: this.eventProcess.workflowInstanceDataFields.EndDate,
|
|
||||||
EventType: this.eventProcess.workflowInstanceDataFields.EventType,
|
|
||||||
IsAllDayEvent: this.eventProcess.workflowInstanceDataFields.IsAllDayEvent,
|
|
||||||
IsRecurring: this.eventProcess.workflowInstanceDataFields.IsRecurring,
|
|
||||||
Location: this.eventProcess.workflowInstanceDataFields.Location,
|
Location: this.eventProcess.workflowInstanceDataFields.Location,
|
||||||
Subject: this.eventProcess.workflowInstanceDataFields.Subject,
|
Subject: this.eventProcess.workflowInstanceDataFields.Subject,
|
||||||
serialNumber: this.eventProcess.serialNumber,
|
|
||||||
StartDate: this.eventProcess.workflowInstanceDataFields.StartDate,
|
StartDate: this.eventProcess.workflowInstanceDataFields.StartDate,
|
||||||
MDEmail: this.eventProcess.workflowInstanceDataFields.MDEmail,
|
EndDate: this.eventProcess.workflowInstanceDataFields.EndDate,
|
||||||
|
ReviewUserComment: '',
|
||||||
MDName: this.eventProcess.workflowInstanceDataFields.MDName,
|
MDName: this.eventProcess.workflowInstanceDataFields.MDName,
|
||||||
|
MDEmail: this.eventProcess.workflowInstanceDataFields.MDEmail,
|
||||||
|
IsAllDayEvent: this.eventProcess.workflowInstanceDataFields.IsAllDayEvent,
|
||||||
|
Status: null,
|
||||||
|
EventType: this.eventProcess.workflowInstanceDataFields.EventType,
|
||||||
|
IsRecurring: this.eventProcess.workflowInstanceDataFields.IsRecurring,
|
||||||
Message: this.eventProcess.workflowInstanceDataFields.Message,
|
Message: this.eventProcess.workflowInstanceDataFields.Message,
|
||||||
EventRecurrence: {
|
EventRecurrence: {
|
||||||
Type: this.eventProcess.workflowInstanceDataFields.OccurrenceType,
|
Type: this.eventProcess.workflowInstanceDataFields.OccurrenceType,
|
||||||
LastOccurrence: this.eventProcess.workflowInstanceDataFields.LastOccurrence,
|
LastOccurrence: this.eventProcess.workflowInstanceDataFields.LastOccurrence,
|
||||||
},
|
},
|
||||||
ParticipantsList: this.eventProcess.workflowInstanceDataFields.ParticipantsList,
|
ParticipantsList: this.eventProcess.workflowInstanceDataFields.ParticipantsList,
|
||||||
Private: false,
|
|
||||||
ReviewUserComment: ''
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
|
|
||||||
<mat-form-field appearance="none" floatLabel="never" class="width-100" required>
|
<mat-form-field appearance="none" floatLabel="never" class="width-100" required>
|
||||||
<!-- <input matInput type="text" > -->
|
<!-- <input matInput type="text" > -->
|
||||||
<mat-select placeholder="Selecione o tipo de evento*" matInput [(ngModel)]="postEvent.Categories[0]" >
|
<mat-select placeholder="Selecione o tipo de evento*" matInput [(ngModel)]="postEvent.Categories" >
|
||||||
<mat-option value="Reunião">
|
<mat-option value="Reunião">
|
||||||
Reunião
|
Reunião
|
||||||
</mat-option>
|
</mat-option>
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ export class EditEventPage implements OnInit {
|
|||||||
Validators.required,
|
Validators.required,
|
||||||
]),
|
]),
|
||||||
CalendarName: new FormControl(this.postEvent.CalendarName),
|
CalendarName: new FormControl(this.postEvent.CalendarName),
|
||||||
Categories: new FormControl(this.postEvent.Categories[0], [
|
Categories: new FormControl(this.postEvent.Categories, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
dateStart: new FormControl(this.dateStart, [
|
dateStart: new FormControl(this.dateStart, [
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
|
|
||||||
<mat-form-field appearance="none" class="width-100" placeholder="Sample Type" required>
|
<mat-form-field appearance="none" class="width-100" placeholder="Sample Type" required>
|
||||||
<!-- <input matInput type="text" > -->
|
<!-- <input matInput type="text" > -->
|
||||||
<mat-select [(value)]="postEvent.Categories[0]" >
|
<mat-select [(value)]="postEvent.Categories" >
|
||||||
<mat-option value="Reunião">
|
<mat-option value="Reunião">
|
||||||
Reunião
|
Reunião
|
||||||
</mat-option>
|
</mat-option>
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ export class NewEventPage implements OnInit {
|
|||||||
AppointmentState: 0,
|
AppointmentState: 0,
|
||||||
TimeZone: '',
|
TimeZone: '',
|
||||||
Organizer: '',
|
Organizer: '',
|
||||||
Categories: ['Reunião'],
|
Categories: 'Reunião',
|
||||||
HasAttachments: false,
|
HasAttachments: false,
|
||||||
EventRecurrence: {Type:'-1'},
|
EventRecurrence: {Type:'-1'},
|
||||||
};
|
};
|
||||||
@@ -191,7 +191,7 @@ export class NewEventPage implements OnInit {
|
|||||||
AppointmentState: 0,
|
AppointmentState: 0,
|
||||||
TimeZone: '',
|
TimeZone: '',
|
||||||
Organizer: '',
|
Organizer: '',
|
||||||
Categories: ['Reunião'],
|
Categories: 'Reunião',
|
||||||
HasAttachments: false,
|
HasAttachments: false,
|
||||||
EventRecurrence: {Type:'-1'},
|
EventRecurrence: {Type:'-1'},
|
||||||
};
|
};
|
||||||
@@ -238,7 +238,7 @@ export class NewEventPage implements OnInit {
|
|||||||
Validators.required,
|
Validators.required,
|
||||||
]),
|
]),
|
||||||
CalendarName: new FormControl(this.postEvent.CalendarName),
|
CalendarName: new FormControl(this.postEvent.CalendarName),
|
||||||
Categories: new FormControl(this.postEvent.Categories[0], [
|
Categories: new FormControl(this.postEvent.Categories, [
|
||||||
Validators.required
|
Validators.required
|
||||||
]),
|
]),
|
||||||
dateStart: new FormControl(this.postEvent.StartDate, [
|
dateStart: new FormControl(this.postEvent.StartDate, [
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
<ion-datetime
|
<ion-datetime
|
||||||
class="d-block d-md-none"
|
class="d-block d-md-none"
|
||||||
placeholder="Início"
|
placeholder="Início"
|
||||||
[(ngModel)]="eventProcess.workflowInstanceDataFields.StartDate"
|
[(ngModel)]="startDate"
|
||||||
displayFormat="D MMM YYYY H:mm"
|
displayFormat="D MMM YYYY H:mm"
|
||||||
minuteValues="0,15,30,45"
|
minuteValues="0,15,30,45"
|
||||||
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
class="width-100 date-hour-picker d-none d-md-block">
|
class="width-100 date-hour-picker d-none d-md-block">
|
||||||
<input matInput [ngxMatDatetimePicker]="picker1"
|
<input matInput [ngxMatDatetimePicker]="picker1"
|
||||||
placeholder="Choose a date"
|
placeholder="Choose a date"
|
||||||
[(ngModel)]="eventProcess.workflowInstanceDataFields.StartDate"
|
[(ngModel)]="startDate"
|
||||||
[min]="minDate" [max]="maxDate"
|
[min]="minDate" [max]="maxDate"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
>
|
>
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
<ion-datetime
|
<ion-datetime
|
||||||
class="d-block d-md-none"
|
class="d-block d-md-none"
|
||||||
placeholder="Fim"
|
placeholder="Fim"
|
||||||
[(ngModel)]="eventProcess.workflowInstanceDataFields.EndDate"
|
[(ngModel)]="endDate"
|
||||||
displayFormat="D MMM YYYY H:mm"
|
displayFormat="D MMM YYYY H:mm"
|
||||||
minuteValues="0,15,30,45"
|
minuteValues="0,15,30,45"
|
||||||
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
class="width-100 date-hour-picker d-none d-md-block">
|
class="width-100 date-hour-picker d-none d-md-block">
|
||||||
<input matInput [ngxMatDatetimePicker]="fim"
|
<input matInput [ngxMatDatetimePicker]="fim"
|
||||||
placeholder="Choose a date"
|
placeholder="Choose a date"
|
||||||
[(ngModel)]="eventProcess.workflowInstanceDataFields.EndDate"
|
[(ngModel)]="endDate"
|
||||||
[min]="minDate" [max]="maxDate"
|
[min]="minDate" [max]="maxDate"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
>
|
>
|
||||||
@@ -232,7 +232,7 @@
|
|||||||
<div class="ion-icon-class">
|
<div class="ion-icon-class">
|
||||||
<ion-icon slot="start" src="assets/images/icons-person.svg"></ion-icon>
|
<ion-icon slot="start" src="assets/images/icons-person.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="ion-input-class-no-height d-flex">
|
<div (click)="addParticipants()" class="ion-input-class-no-height d-flex">
|
||||||
<div class="list-people flex-grow-1">
|
<div class="list-people flex-grow-1">
|
||||||
<ion-item lines="none">
|
<ion-item lines="none">
|
||||||
<ion-list>
|
<ion-list>
|
||||||
@@ -241,7 +241,7 @@
|
|||||||
</ion-list>
|
</ion-list>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="add-people cursor-pointer" (click)="addParticipants()">
|
<div class="add-people cursor-pointer">
|
||||||
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
|
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import { ProcessesService } from 'src/app/services/processes.service';
|
|||||||
import { ToastService } from 'src/app/services/toast.service';
|
import { ToastService } from 'src/app/services/toast.service';
|
||||||
import { Event } from '../../../models/event.model';
|
import { Event } from '../../../models/event.model';
|
||||||
import { NgxMatDateFormats, NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';
|
import { NgxMatDateFormats, NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';
|
||||||
|
import { NavigationExtras, Router } from '@angular/router';
|
||||||
|
|
||||||
|
|
||||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||||
@@ -94,7 +95,8 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
segment:string = "true";
|
segment:string = "true";
|
||||||
profile:string;
|
profile:string;
|
||||||
eventAttendees: EventPerson[];
|
eventAttendees: EventPerson[];
|
||||||
|
startDate: Date;
|
||||||
|
endDate: Date;
|
||||||
loadedEventAttachments: Attachment[];
|
loadedEventAttachments: Attachment[];
|
||||||
taskParticipants: any = [];
|
taskParticipants: any = [];
|
||||||
taskParticipantsCc: any = [];
|
taskParticipantsCc: any = [];
|
||||||
@@ -115,31 +117,18 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
private processes:ProcessesService,
|
private processes:ProcessesService,
|
||||||
private animationController: AnimationController,
|
private animationController: AnimationController,
|
||||||
private toastService: ToastService,
|
private toastService: ToastService,
|
||||||
|
private router:Router,
|
||||||
) {
|
) {
|
||||||
// Edit event to approve
|
// Edit event to approve
|
||||||
this.serialNumber = this.navParams.get('serialNumber');
|
this.serialNumber = this.navParams.get('serialNumber');
|
||||||
|
|
||||||
this.isEventEdited = false;
|
this.isEventEdited = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getTask()
|
this.getTask()
|
||||||
console.log('HERE');
|
|
||||||
this.getRecurrenceTypes();
|
this.getRecurrenceTypes();
|
||||||
|
|
||||||
this.selectedRecurringType = this.eventProcess.workflowInstanceDataFields.OccurrenceType;
|
|
||||||
|
|
||||||
setTimeout(() => {
|
|
||||||
this.selectedRecurringType = this.eventProcess.workflowInstanceDataFields.OccurrenceType;
|
|
||||||
console.log(this.selectedRecurringType);
|
|
||||||
}, 1000);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async getTask() {
|
async getTask() {
|
||||||
@@ -149,6 +138,9 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
|
|
||||||
this.eventProcess = result
|
this.eventProcess = result
|
||||||
|
|
||||||
|
this.startDate = new Date(this.eventProcess.workflowInstanceDataFields.StartDate);
|
||||||
|
this.endDate = new Date(this.eventProcess.workflowInstanceDataFields.EndDate);
|
||||||
|
|
||||||
// description
|
// description
|
||||||
let body : any =this.eventProcess.workflowInstanceDataFields.Body.replace(/<[^>]+>/g, '')
|
let body : any =this.eventProcess.workflowInstanceDataFields.Body.replace(/<[^>]+>/g, '')
|
||||||
this.eventProcess.workflowInstanceDataFields.Body = body
|
this.eventProcess.workflowInstanceDataFields.Body = body
|
||||||
@@ -205,10 +197,26 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
goBack() {
|
||||||
|
let navigationExtras: NavigationExtras = {
|
||||||
|
queryParams: {
|
||||||
|
"eventos": true,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
if( window.innerWidth < 801) {
|
||||||
|
this.router.navigate(['/home/gabinete-digital/event-list']);
|
||||||
|
} else {
|
||||||
|
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
|
console.log('CLOSE');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
save() {
|
save() {
|
||||||
@@ -232,8 +240,8 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
Body: this.eventProcess.workflowInstanceDataFields.Body,
|
Body: this.eventProcess.workflowInstanceDataFields.Body,
|
||||||
Location: this.eventProcess.workflowInstanceDataFields.Location,
|
Location: this.eventProcess.workflowInstanceDataFields.Location,
|
||||||
Subject: this.eventProcess.workflowInstanceDataFields.Subject,
|
Subject: this.eventProcess.workflowInstanceDataFields.Subject,
|
||||||
StartDate: this.eventProcess.workflowInstanceDataFields.StartDate,
|
StartDate: this.startDate,
|
||||||
EndDate: this.eventProcess.workflowInstanceDataFields.EndDate,
|
EndDate: this.endDate,
|
||||||
ReviewUserComment: '',
|
ReviewUserComment: '',
|
||||||
MDName: this.eventProcess.workflowInstanceDataFields.MDName,
|
MDName: this.eventProcess.workflowInstanceDataFields.MDName,
|
||||||
MDEmail: this.eventProcess.workflowInstanceDataFields.MDEmail,
|
MDEmail: this.eventProcess.workflowInstanceDataFields.MDEmail,
|
||||||
@@ -277,8 +285,8 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
this.modalController.dismiss();
|
||||||
//this.modalController.dismiss();
|
this.goBack();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,8 +334,9 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
|
|
||||||
addParticipants(){
|
addParticipants(){
|
||||||
this.adding = 'intervenient'
|
this.adding = 'intervenient'
|
||||||
|
|
||||||
this.openAttendees();
|
this.openAttendees();
|
||||||
|
console.log('LOGS');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
addParticipantsCC(){
|
addParticipantsCC(){
|
||||||
|
|||||||
Reference in New Issue
Block a user