-
+ Normal (4 dias para a execução da tarefa)Urgente (2 dias para a execução da tarefa)Muito Urgente (1 dia para a execução da tarefa)Urgentíssimo (8 horas para a execução da tarefa)
-
-
+
@@ -63,15 +62,14 @@
-
- Tipo de assunto
-
- {{type.Description}}
-
-
+
+
+ Toppings
+
+ {{topping}}
+
+
+
-
+ Não se repeteRepete
+
+
+
+
+
+ Não se repete
+
+
+ Repete
+
+
+
+
diff --git a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts
index 63c551f92..773bce4c0 100644
--- a/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts
+++ b/src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts
@@ -1,8 +1,6 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
import { AnimationController, ModalController, NavParams } from '@ionic/angular';
-import { AddParticipantsCcModalPage } from '../add-participants-cc-modal/add-participants-cc-modal.page';
-import { AddParticipantsModalPage } from '../add-participants-modal/add-participants-modal.page';
import { Event } from 'src/app/models/event.model'
import { EventBody } from 'src/app/models/eventbody.model';
import { ProcessesService } from 'src/app/services/processes.service';
@@ -12,21 +10,74 @@ import { DiscartExpedientModalPage } from '../../discart-expedient-modal/discart
import { AttachmentsService } from 'src/app/services/attachments.service';
import { SearchPage } from 'src/app/pages/search/search.page';
import { SearchDocument } from 'src/app/models/search-document';
-import { BadRequestPage } from 'src/app/shared/popover/bad-request/bad-request.page';
-import { SuccessMessagePage } from 'src/app/shared/popover/success-message/success-message.page';
import { User } from 'src/app/models/user.model';
import { AuthService } from 'src/app/services/auth.service';
import { AttendeesPageModal } from 'src/app/pages/events/attendees/attendees.page';
import { ToastService } from 'src/app/services/toast.service';
+import { FormControl } from '@angular/forms';
+import * as _moment from 'moment';
+import * as _rollupMoment from 'moment';
+import { NgxMatDateFormats } from '@angular-material-components/datetime-picker';
+import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';
+import { MAT_DATE_LOCALE } from '@angular/material/core';
+
+const moment = _rollupMoment || _moment;
+
+const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
+ parse: {
+ dateInput: "YYYY-MMMM-DD HH:mm"
+ },
+ display: {
+ dateInput: "DD MMM YYYY H:mm",
+ monthYearLabel: "MMM YYYY",
+ dateA11yLabel: "LL",
+ monthYearA11yLabel: "MMMM YYYY"
+ }
+}
+
@Component({
selector: 'app-book-meeting-modal',
templateUrl: './book-meeting-modal.page.html',
styleUrls: ['./book-meeting-modal.page.scss'],
+ providers: [
+ // { provide: MAT_DATE_LOCALE, useValue: 'pt' },
+ { provide: NGX_MAT_DATE_FORMATS, useValue: CUSTOM_DATE_FORMATS },
+ ]
})
export class BookMeetingModalPage implements OnInit {
+ public date: any;
+ public disabled = false;
+ public showSpinners = true;
+ public showSeconds = false;
+ public touchUi = false;
+ public enableMeridian = false;
+ public minDate: any;
+ public maxDate: any;
+ public stepHour = 1;
+ public stepMinute = 5;
+ public stepSecond = 5;
+
+ public dateControlStart = new FormControl(moment("DD MM YYYY hh"));
+ public dateControlEnd = new FormControl(moment("DD MM YYYY hh"));
+
+ showLoader = false
+
+ get dateStart () {
+ return this.dateControlStart.value
+ }
+
+ get dateEnd () {
+ return this.dateControlEnd.value
+ }
+
+ @ViewChild('picker') picker: any;
+ @ViewChild('fim') fim: any;
+ @ViewChild('inicio') inicio: any;
+ @ViewChild('picker1') picker1: any;
+
task: any;
taskParticipants: EventPerson[];
@@ -73,9 +124,6 @@ export class BookMeetingModalPage implements OnInit {
/* Set + 30minutes to seleted datetime */
let selectedEndDate = new Date();
/* this.postData.EndDate = new Date(selectedEndDate.setMinutes(new Date().getMinutes() + 30)); */
-
-
-
}
ngOnInit() {
diff --git a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.module.ts b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.module.ts
index 66a6e0db4..abf872d74 100644
--- a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.module.ts
+++ b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.module.ts
@@ -15,9 +15,11 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
import { MatNativeDateModule } from '@angular/material/core';
import {
+ NgxMatDateFormats,
NgxMatDatetimePickerModule,
NgxMatNativeDateModule,
- NgxMatTimepickerModule
+ NgxMatTimepickerModule,
+ NGX_MAT_DATE_FORMATS
} from '@angular-material-components/datetime-picker';
import { ReactiveFormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
@@ -28,6 +30,17 @@ import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatInputModule } from '@angular/material/input';
+const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
+ parse: {
+ dateInput: "YYYY-MMMM-DD HH:mm"
+ },
+ display: {
+ dateInput: "DD MMM YYYY H:mm",
+ monthYearLabel: "MMM YYYY",
+ dateA11yLabel: "LL",
+ monthYearA11yLabel: "MMMM YYYY"
+ }
+}
@NgModule({
imports: [
CommonModule,
@@ -51,6 +64,7 @@ import { MatInputModule } from '@angular/material/input';
ReactiveFormsModule
],
providers: [
+ { provide: NGX_MAT_DATE_FORMATS, useValue: CUSTOM_DATE_FORMATS },
{ provide: MAT_DATE_LOCALE, useValue: 'pt' },
],
declarations: [
diff --git a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.html b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.html
index ba0ac9f1f..91cc3111e 100644
--- a/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.html
+++ b/src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page.html
@@ -28,14 +28,21 @@
-
+ Normal (4 dias para a execução da tarefa)Urgente (2 dias para a execução da tarefa)Muito Urgente (1 dia para a execução da tarefa)Urgentíssimo (8 horas para a execução da tarefa)
-
+
@@ -62,15 +69,25 @@
-
- Tipo de assunto
-
- {{type.Description}}
-
-
+
+ Tipo de assunto
+
+ {{type.Description}}
+
+
+
+
+ Toppings
+
+ {{type.Description}}
+
+