mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Merge branch 'feature/viewer-attachment' of https://bitbucket.org/equilibriumito/gabinete-digital-fo into feature/viewer-attachment
This commit is contained in:
@@ -126,11 +126,11 @@ export class ViewEventPage implements OnInit {
|
|||||||
this.eventsService.getEvent(this.eventId).subscribe(res => {
|
this.eventsService.getEvent(this.eventId).subscribe(res => {
|
||||||
this.loadedEvent = res;
|
this.loadedEvent = res;
|
||||||
// this.addEventToDb(res);
|
// this.addEventToDb(res);
|
||||||
|
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
|
|
||||||
|
|
||||||
if (error.status === 0) {
|
if (error.status === 0) {
|
||||||
// this.getFromDb();
|
// this.getFromDb();
|
||||||
} else {
|
} else {
|
||||||
@@ -148,10 +148,10 @@ export class ViewEventPage implements OnInit {
|
|||||||
this.eventsService.genericGetEvent(this.eventId, this.CalendarId).subscribe(res => {
|
this.eventsService.genericGetEvent(this.eventId, this.CalendarId).subscribe(res => {
|
||||||
this.loadedEvent = res;
|
this.loadedEvent = res;
|
||||||
// this.addEventToDb(res);
|
// this.addEventToDb(res);
|
||||||
|
|
||||||
loader.remove()
|
loader.remove()
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
|
|
||||||
if (error.status === 0) {
|
if (error.status === 0) {
|
||||||
// this.getFromDb();
|
// this.getFromDb();
|
||||||
} else {
|
} else {
|
||||||
@@ -238,7 +238,7 @@ export class ViewEventPage implements OnInit {
|
|||||||
cssClass: 'modal modal-desktop',
|
cssClass: 'modal modal-desktop',
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
modal.onDidDismiss().then((res) => {
|
modal.onDidDismiss().then((res) => {
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
@@ -382,7 +382,7 @@ export class ViewEventPage implements OnInit {
|
|||||||
});
|
});
|
||||||
|
|
||||||
modal.onDidDismiss().then(
|
modal.onDidDismiss().then(
|
||||||
async (res) => { },
|
async (res) => { },
|
||||||
(error) => {
|
(error) => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -279,13 +279,13 @@
|
|||||||
<div class="container-div width-100">
|
<div class="container-div width-100">
|
||||||
<div (click)="addParticipantsCC()" class="ion-item-class-2 cursor-pointer">
|
<div (click)="addParticipantsCC()" class="ion-item-class-2 cursor-pointer">
|
||||||
<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-people-cc.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="ion-input-class-no-height d-flex">
|
<div 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>
|
||||||
<ion-label *ngIf="taskParticipantsCc?.length < 1" class="list-people-title">Com Conhecimento*</ion-label>
|
<ion-label *ngIf="taskParticipantsCc?.length < 1" class="list-people-title">Com Conhecimento</ion-label>
|
||||||
<ion-label *ngFor="let participant of taskParticipantsCc">{{participant.Name}}</ion-label>
|
<ion-label *ngFor="let participant of taskParticipantsCc">{{participant.Name}}</ion-label>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
@@ -377,7 +377,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-buttons slot="end">
|
<ion-buttons slot="end">
|
||||||
<button class="btn-cancel" fill="clear" color="#061b52" (click)="close()">
|
<button class="btn-cancel" fill="clear" color="#061b52" (click)="cancel()">
|
||||||
<ion-label>Cancelar</ion-label>
|
<ion-label>Cancelar</ion-label>
|
||||||
</button>
|
</button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
|
|||||||
@@ -203,6 +203,10 @@ export class EditEventPage implements OnInit {
|
|||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cancel() {
|
||||||
|
this.modalController.dismiss({action:'cancel'});
|
||||||
|
}
|
||||||
|
|
||||||
goBack() {
|
goBack() {
|
||||||
|
|
||||||
this.router.navigate(['/home', this.caller]);
|
this.router.navigate(['/home', this.caller]);
|
||||||
@@ -645,7 +649,7 @@ export class EditEventPage implements OnInit {
|
|||||||
if (horaMinuto[1] === '59') {
|
if (horaMinuto[1] === '59') {
|
||||||
horaMinuto[1] = '00';
|
horaMinuto[1] = '00';
|
||||||
var novaString = partes[0] + ' ' + horaMinuto.join(':');
|
var novaString = partes[0] + ' ' + horaMinuto.join(':');
|
||||||
|
|
||||||
return novaString;
|
return novaString;
|
||||||
}
|
}
|
||||||
return string;
|
return string;
|
||||||
|
|||||||
@@ -155,7 +155,6 @@
|
|||||||
[stepHour]="1"
|
[stepHour]="1"
|
||||||
[stepMinute]="15"
|
[stepMinute]="15"
|
||||||
[hideTime]="!allDayCheck"
|
[hideTime]="!allDayCheck"
|
||||||
[disabled]="true"
|
|
||||||
|
|
||||||
>
|
>
|
||||||
</ngx-mat-datetime-picker>
|
</ngx-mat-datetime-picker>
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import { ToastService } from 'src/app/services/toast.service';
|
|||||||
import { Event } from '../../../models/event.model';
|
import { Event } from '../../../models/event.model';
|
||||||
import { AttendeesPageModal } from '../../events/attendees/attendees.page';
|
import { AttendeesPageModal } from '../../events/attendees/attendees.page';
|
||||||
import { SearchPage } from '../../search/search.page';
|
import { SearchPage } from '../../search/search.page';
|
||||||
import { ThemePalette } from '@angular/material/core';
|
|
||||||
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||||
import { ThemeService } from 'src/app/services/theme.service';
|
import { ThemeService } from 'src/app/services/theme.service';
|
||||||
import { NgxMatDateFormats } from '@angular-material-components/datetime-picker';
|
import { NgxMatDateFormats } from '@angular-material-components/datetime-picker';
|
||||||
@@ -25,6 +24,9 @@ import { TaskService } from 'src/app/services/task.service'
|
|||||||
import { ContactsService } from 'src/app/services/contacts.service';
|
import { ContactsService } from 'src/app/services/contacts.service';
|
||||||
import { DomSanitizerService } from 'src/app/services/DomSanitizer.service';
|
import { DomSanitizerService } from 'src/app/services/DomSanitizer.service';
|
||||||
import { momentG } from 'src/plugin/momentG';
|
import { momentG } from 'src/plugin/momentG';
|
||||||
|
import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, ThemePalette } from '@angular/material/core';
|
||||||
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
||||||
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
||||||
|
|
||||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||||
parse: {
|
parse: {
|
||||||
@@ -37,12 +39,25 @@ const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
|||||||
monthYearA11yLabel: "MMMM YYYY"
|
monthYearA11yLabel: "MMMM YYYY"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const MY_DATE_FORMAT = {
|
||||||
|
parse: {
|
||||||
|
dateInput: 'DD-MM-YYYY',
|
||||||
|
},
|
||||||
|
display: {
|
||||||
|
dateInput: 'DD/MM/YYYY',
|
||||||
|
monthYearLabel: 'MMMM YYYY',
|
||||||
|
dateA11yLabel: 'LL',
|
||||||
|
monthYearA11yLabel: 'MMMM YYYY'
|
||||||
|
}
|
||||||
|
};
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-new-event',
|
selector: 'app-new-event',
|
||||||
templateUrl: './new-event.page.html',
|
templateUrl: './new-event.page.html',
|
||||||
styleUrls: ['./new-event.page.scss'],
|
styleUrls: ['./new-event.page.scss'],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: NGX_MAT_DATE_FORMATS, useValue: CUSTOM_DATE_FORMATS },
|
{ provide: NGX_MAT_DATE_FORMATS, useValue: CUSTOM_DATE_FORMATS },
|
||||||
|
{ provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE] },
|
||||||
|
{ provide: MAT_DATE_FORMATS, useValue: MY_DATE_FORMAT }
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -114,7 +129,8 @@ export class NewEventPage implements OnInit {
|
|||||||
private processeService: ProcessesService,
|
private processeService: ProcessesService,
|
||||||
public TaskService: TaskService,
|
public TaskService: TaskService,
|
||||||
private contactsService: ContactsService,
|
private contactsService: ContactsService,
|
||||||
private domSanitazerService: DomSanitizerService
|
private domSanitazerService: DomSanitizerService,
|
||||||
|
private dateAdapter: DateAdapter<Date>
|
||||||
) {
|
) {
|
||||||
this.loggeduser = SessionStore.user;
|
this.loggeduser = SessionStore.user;
|
||||||
this.postEvent = new Event();
|
this.postEvent = new Event();
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="middle d-flex align-center">
|
<div class="middle d-flex align-center">
|
||||||
<p class="title" style="font-size: 21.1px"><span>{{loadedEvent.Subject}}</span></p>
|
<p class="title" style="font-size: 21.1px"><span>{{loadedEvent.Subject}}</span></p>
|
||||||
|
<!-- Event details page -->
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-options d-flex">
|
<div class="menu-options d-flex">
|
||||||
<button class="btn-no-color" (click)="editEvent()">
|
<button class="btn-no-color" (click)="editEvent()">
|
||||||
|
|||||||
@@ -247,6 +247,37 @@ export class ViewEventPage implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
loadEvent1() {
|
||||||
|
|
||||||
|
|
||||||
|
if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
|
||||||
|
this.eventsService.getEvent(this.eventId).subscribe(res => {
|
||||||
|
|
||||||
|
res = this.dateService.fixDate(res as any)
|
||||||
|
this.loadedEvent = res;
|
||||||
|
this.setTimeZone()
|
||||||
|
// this.addEventToDb(res);
|
||||||
|
}, (error) => {
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
|
||||||
|
|
||||||
|
if(this.CalendarId) {
|
||||||
|
this.eventsService.genericGetEvent(this.eventId, this.CalendarId).subscribe(res => {
|
||||||
|
|
||||||
|
res = this.dateService.fixDate(res as any)
|
||||||
|
this.loadedEvent = res;
|
||||||
|
this.setTimeZone()
|
||||||
|
|
||||||
|
}, (error) => {
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
deleteYesOrNo() {
|
deleteYesOrNo() {
|
||||||
this.alertController.create({
|
this.alertController.create({
|
||||||
header: 'Eliminar evento?',
|
header: 'Eliminar evento?',
|
||||||
@@ -364,14 +395,13 @@ export class ViewEventPage implements OnInit {
|
|||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then((res) => {
|
modal.onDidDismiss().then((res) => {
|
||||||
|
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
/* this.loadEvent(); */
|
/* this.loadEvent(); */
|
||||||
this.loadEvent()
|
this.loadEvent1()
|
||||||
}, 250);
|
}, 250);
|
||||||
this.isEventEdited = true;
|
this.isEventEdited = true;
|
||||||
console.log('res', res)
|
console.log('res', res, res.data?.action, 'cancel')
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -399,7 +429,20 @@ export class ViewEventPage implements OnInit {
|
|||||||
modal.onDidDismiss().then((res) => {
|
modal.onDidDismiss().then((res) => {
|
||||||
|
|
||||||
|
|
||||||
if (res) {
|
if (res.data?.action == 'cancel') {
|
||||||
|
setTimeout(() => {
|
||||||
|
/* this.loadEvent(); */
|
||||||
|
this.loadEvent1()
|
||||||
|
|
||||||
|
}, 250);
|
||||||
|
this.isEventEdited = true;
|
||||||
|
|
||||||
|
if(res.data.Attendees?.length >= 1) {
|
||||||
|
this.loadedEvent.HasAttachments = true
|
||||||
|
this.getAttachments()
|
||||||
|
}
|
||||||
|
console.log('res', res)
|
||||||
|
} else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
/* this.loadEvent(); */
|
/* this.loadEvent(); */
|
||||||
this.loadEvent()
|
this.loadEvent()
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<div style="color: black;">
|
<div style="color: black;">
|
||||||
Evento Pendente de Aprovação
|
Evento Pendente de Aprovação
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Events to approve details mobile -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -64,7 +65,7 @@
|
|||||||
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == 1">Semanal</span>
|
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == 1">Semanal</span>
|
||||||
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == 2">Mensal</span>
|
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == 2">Mensal</span>
|
||||||
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == 3">Anual</span>
|
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == 3">Anual</span>
|
||||||
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == -1">(Não se repete)</span>
|
<span *ngIf="loadedEvent.workflowInstanceDataFields.OccurrenceType == -1">(Não se repete)</span>
|
||||||
</p>
|
</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
private attachmentsService: AttachmentsService,
|
private attachmentsService: AttachmentsService,
|
||||||
) {
|
) {
|
||||||
this.activatedRoute.paramMap.subscribe(params => {
|
this.activatedRoute.paramMap.subscribe(params => {
|
||||||
//
|
//
|
||||||
|
|
||||||
if (params["params"].serialNumber) {
|
if (params["params"].serialNumber) {
|
||||||
this.serialNumber = params["params"].serialNumber;
|
this.serialNumber = params["params"].serialNumber;
|
||||||
@@ -72,7 +72,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
});
|
});
|
||||||
|
|
||||||
window['approve-event-getTask'] = () => {
|
window['approve-event-getTask'] = () => {
|
||||||
this.getTask1()
|
this.getTask()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
this.getTask();
|
this.getTask();
|
||||||
this.backgroundservice.registerBackService('Online', () => {
|
this.backgroundservice.registerBackService('Online', () => {
|
||||||
this.getTask();
|
this.getTask();
|
||||||
@@ -95,12 +95,12 @@ export class ApproveEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addProcessToDB(data) {
|
addProcessToDB(data) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getProcessFromDB() {
|
getProcessFromDB() {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getTask1 = () => {
|
getTask1 = () => {
|
||||||
@@ -108,11 +108,11 @@ export class ApproveEventPage implements OnInit {
|
|||||||
|
|
||||||
this.loadedEvent = res
|
this.loadedEvent = res
|
||||||
this.addProcessToDB(this.loadedEvent)
|
this.addProcessToDB(this.loadedEvent)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.today = new Date(this.loadedEvent.workflowInstanceDataFields.StartDate);
|
this.today = new Date(this.loadedEvent.workflowInstanceDataFields.StartDate);
|
||||||
this.customDate = this.days[this.today.getDay()] + ", " + this.today.getDate() + " de " + (this.months[this.today.getMonth()]);
|
this.customDate = this.days[this.today.getDay()] + ", " + this.today.getDate() + " de " + (this.months[this.today.getMonth()]);
|
||||||
|
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
// console.log(this.loadedEvent)
|
// console.log(this.loadedEvent)
|
||||||
throw(error)
|
throw(error)
|
||||||
@@ -133,11 +133,11 @@ export class ApproveEventPage implements OnInit {
|
|||||||
this.loadedEvent = res
|
this.loadedEvent = res
|
||||||
this.getAttachments();
|
this.getAttachments();
|
||||||
this.addProcessToDB(this.loadedEvent)
|
this.addProcessToDB(this.loadedEvent)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.today = new Date(this.loadedEvent.workflowInstanceDataFields.StartDate);
|
this.today = new Date(this.loadedEvent.workflowInstanceDataFields.StartDate);
|
||||||
this.customDate = this.days[this.today.getDay()] + ", " + this.today.getDate() + " de " + (this.months[this.today.getMonth()]);
|
this.customDate = this.days[this.today.getDay()] + ", " + this.today.getDate() + " de " + (this.months[this.today.getMonth()]);
|
||||||
|
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
// console.log(this.loadedEvent)
|
// console.log(this.loadedEvent)
|
||||||
throw(error)
|
throw(error)
|
||||||
@@ -154,7 +154,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
|
|
||||||
async approveTask(serialNumber: string) {
|
async approveTask(serialNumber: string) {
|
||||||
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
let body = { "serialNumber": serialNumber, "action": "Aprovar" }
|
||||||
|
|
||||||
|
|
||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
|
|
||||||
@@ -174,7 +174,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async emendTask(serialNumber: string) {
|
async emendTask(serialNumber: string) {
|
||||||
|
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: EmendMessageModalPage,
|
component: EmendMessageModalPage,
|
||||||
@@ -188,9 +188,9 @@ export class ApproveEventPage implements OnInit {
|
|||||||
|
|
||||||
modal.onDidDismiss()
|
modal.onDidDismiss()
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
|
||||||
if(res.data.option == 'save') {
|
if(res.data.option == 'save') {
|
||||||
|
|
||||||
let body = {
|
let body = {
|
||||||
"serialNumber": serialNumber,
|
"serialNumber": serialNumber,
|
||||||
"action": "Emendar",
|
"action": "Emendar",
|
||||||
@@ -198,14 +198,14 @@ export class ApproveEventPage implements OnInit {
|
|||||||
"ReviewUserComment": res.data,
|
"ReviewUserComment": res.data,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.PostTaskAction(body).toPromise()
|
await this.processes.PostTaskAction(body).toPromise()
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|
||||||
this.offlineManager.storeRequestData('event-listRever', body);
|
this.offlineManager.storeRequestData('event-listRever', body);
|
||||||
});
|
});
|
||||||
this.httpErrorHandle.httpsSucessMessagge('Rever')
|
this.httpErrorHandle.httpsSucessMessagge('Rever')
|
||||||
@@ -217,7 +217,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@@ -229,7 +229,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
|
|
||||||
async rejeitar(serialNumber: string) {
|
async rejeitar(serialNumber: string) {
|
||||||
let body = { "serialNumber": serialNumber, "action": "Descartar" }
|
let body = { "serialNumber": serialNumber, "action": "Descartar" }
|
||||||
|
|
||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
try {
|
try {
|
||||||
await this.processes.PostTaskAction(body).toPromise();
|
await this.processes.PostTaskAction(body).toPromise();
|
||||||
@@ -281,6 +281,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
});
|
});
|
||||||
return await popover.present().then(() => {
|
return await popover.present().then(() => {
|
||||||
this.TaskService.loadEventosParaAprovacao()
|
this.TaskService.loadEventosParaAprovacao()
|
||||||
|
this.getTask();
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
@@ -302,9 +303,9 @@ export class ApproveEventPage implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
modal.onDidDismiss().then(async (res) => {
|
modal.onDidDismiss().then(async (res) => {
|
||||||
|
|
||||||
if(res.data.option == 'save') {
|
if(res.data.option == 'save') {
|
||||||
|
|
||||||
let body = {
|
let body = {
|
||||||
"serialNumber": serialNumber,
|
"serialNumber": serialNumber,
|
||||||
"action": "Emendar",
|
"action": "Emendar",
|
||||||
@@ -312,7 +313,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
"ReviewUserComment": res.data,
|
"ReviewUserComment": res.data,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const loader = this.toastService.loading()
|
const loader = this.toastService.loading()
|
||||||
|
|
||||||
@@ -327,7 +328,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
loader.remove()
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -380,7 +381,7 @@ export class ApproveEventPage implements OnInit {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('getAttchaments',error)
|
console.error('getAttchaments',error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { DeviceService } from "src/app/services/device.service"
|
|||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
import { ProcessesService } from 'src/app/services/processes.service';
|
import { ProcessesService } from 'src/app/services/processes.service';
|
||||||
import { PermissionService } from 'src/app/services/permission.service';
|
import { PermissionService } from 'src/app/services/permission.service';
|
||||||
|
import { HeaderSettingsService } from "src/app/services/header-settings.service"
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-viewer-attachment',
|
selector: 'app-viewer-attachment',
|
||||||
@@ -33,6 +34,7 @@ export class ViewerAttachmentPage implements OnInit {
|
|||||||
private erroHandler: HttpErrorHandle,
|
private erroHandler: HttpErrorHandle,
|
||||||
public p: PermissionService,
|
public p: PermissionService,
|
||||||
private processService: ProcessesService,
|
private processService: ProcessesService,
|
||||||
|
private HeaderSettingsService: HeaderSettingsService
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ export class NewPublicationPage implements OnInit {
|
|||||||
if (this.platform.is('ios')) {
|
if (this.platform.is('ios')) {
|
||||||
this.recordevideoIos(element.fullPath)
|
this.recordevideoIos(element.fullPath)
|
||||||
} else {
|
} else {
|
||||||
|
this.recordVideoAndroid(element.fullPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { HeaderSettingsService } from './header-settings.service';
|
||||||
|
|
||||||
|
describe('HeaderSettingsService', () => {
|
||||||
|
let service: HeaderSettingsService;
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
TestBed.configureTestingModule({});
|
||||||
|
service = TestBed.inject(HeaderSettingsService);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should be created', () => {
|
||||||
|
expect(service).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class HeaderSettingsService {
|
||||||
|
|
||||||
|
hideHeader = false
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
}
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
<div style="color: black;">
|
<div style="color: black;">
|
||||||
Evento Pendente de Aprovação
|
Evento Pendente de Aprovação
|
||||||
</div>
|
</div>
|
||||||
|
<!-- List events to approve desktop -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -299,7 +299,7 @@
|
|||||||
<div class="container-div width-100">
|
<div class="container-div width-100">
|
||||||
<div class="ion-item-class-2">
|
<div class="ion-item-class-2">
|
||||||
<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-people-cc.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="ion-input-class-no-height d-flex cursor-pointer" (click)="addParticipantsCC()">
|
<div class="ion-input-class-no-height d-flex cursor-pointer" (click)="addParticipantsCC()">
|
||||||
<div class="list-people flex-grow-1">
|
<div class="list-people flex-grow-1">
|
||||||
@@ -309,7 +309,7 @@
|
|||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
">
|
">
|
||||||
<ion-label *ngIf="taskParticipantsCc?.length < 1" class="list-people-title">Adicionar Intervenientes</ion-label>
|
<ion-label *ngIf="taskParticipantsCc?.length < 1" class="list-people-title">Com Conhecimento</ion-label>
|
||||||
<ion-label *ngFor="let participant of taskParticipantsCc">{{participant.Name}}</ion-label>
|
<ion-label *ngFor="let participant of taskParticipantsCc">{{participant.Name}}</ion-label>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
.main-header{
|
.main-header{
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
min-height: 86px;
|
||||||
|
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
transform: translate3d(0, 1px, 0);
|
transform: translate3d(0, 1px, 0);
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ export class ViewEventPage implements OnInit {
|
|||||||
div.innerHTML = res.Body.Text
|
div.innerHTML = res.Body.Text
|
||||||
res.Body.Text = div.innerText */
|
res.Body.Text = div.innerText */
|
||||||
this.loadedEvent = res;
|
this.loadedEvent = res;
|
||||||
console.log('Event details',res)
|
// console.log('Event details',res)
|
||||||
this.setTimeZone()
|
this.setTimeZone()
|
||||||
|
|
||||||
this.today = new Date(res.StartDate);
|
this.today = new Date(res.StartDate);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<div class="title-content">
|
<div class="title-content">
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
<ion-label class="title">Editar evento por aprovar ccxcxcxc</ion-label> <br>
|
<ion-label class="title">Editar evento por aprovar</ion-label> <br>
|
||||||
<i style="margin-top: -5px; font-size: 15px;" > Campos marcados com * são obrigatórios</i>
|
<i style="margin-top: -5px; font-size: 15px;" > Campos marcados com * são obrigatórios</i>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -241,13 +241,13 @@
|
|||||||
<div class="container-div width-100" >
|
<div class="container-div width-100" >
|
||||||
<div class="ion-item-class-2">
|
<div class="ion-item-class-2">
|
||||||
<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-people-cc.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="ion-input-class-no-height d-flex" (click)="addParticipantsCC()">
|
<div class="ion-input-class-no-height d-flex" (click)="addParticipantsCC()">
|
||||||
<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>
|
||||||
<ion-label *ngIf="taskParticipantsCc?.length < 1" class="list-people-title">Adicionar Intervenientes</ion-label>
|
<ion-label *ngIf="taskParticipantsCc?.length < 1" class="list-people-title">Com Conhecimento</ion-label>
|
||||||
<ion-label *ngFor="let participant of taskParticipantsCc">{{participant.Name}}</ion-label>
|
<ion-label *ngFor="let participant of taskParticipantsCc">{{participant.Name}}</ion-label>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
min-height: 79px;
|
min-height: 86px;
|
||||||
|
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
transform: translate3d(0, 1px, 0);
|
transform: translate3d(0, 1px, 0);
|
||||||
|
|||||||
@@ -148,8 +148,8 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
async getTask() {
|
async getTask() {
|
||||||
|
|
||||||
const result = await this.processes.GetTask(this.serialNumber).toPromise();
|
const result = await this.processes.GetTask(this.serialNumber).toPromise();
|
||||||
|
|
||||||
|
|
||||||
this.eventProcess = result
|
this.eventProcess = result
|
||||||
this.eventProcess.workflowInstanceDataFields.Category = result.workflowInstanceDataFields.EventType
|
this.eventProcess.workflowInstanceDataFields.Category = result.workflowInstanceDataFields.EventType
|
||||||
this.eventProcess.workflowInstanceDataFields.LastOccurrence = new Date(this.eventProcess.workflowInstanceDataFields.LastOccurrence)
|
this.eventProcess.workflowInstanceDataFields.LastOccurrence = new Date(this.eventProcess.workflowInstanceDataFields.LastOccurrence)
|
||||||
@@ -190,17 +190,17 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
|
|
||||||
getRecurrenceTypes() {
|
getRecurrenceTypes() {
|
||||||
this.eventsService.getRecurrenceTypes().subscribe(res=>{
|
this.eventsService.getRecurrenceTypes().subscribe(res=>{
|
||||||
|
|
||||||
this.recurringTypes = res;
|
this.recurringTypes = res;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onSelectedRecurringChanged(ev:any){
|
onSelectedRecurringChanged(ev:any){
|
||||||
|
|
||||||
this.calculetedLastOccurrence(ev);
|
this.calculetedLastOccurrence(ev);
|
||||||
|
|
||||||
if(ev.length > 1){
|
if(ev.length > 1){
|
||||||
|
|
||||||
this.postEvent.EventRecurrence.Type = ev.filter(data => data != '-1');
|
this.postEvent.EventRecurrence.Type = ev.filter(data => data != '-1');
|
||||||
}
|
}
|
||||||
if(ev.length == 0){
|
if(ev.length == 0){
|
||||||
@@ -209,7 +209,7 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
calculetedLastOccurrence(type:number){
|
calculetedLastOccurrence(type:number){
|
||||||
var valor;
|
var valor;
|
||||||
var opcao: boolean;
|
var opcao: boolean;
|
||||||
if (type == 0) {
|
if (type == 0) {
|
||||||
valor = 7;
|
valor = 7;
|
||||||
@@ -235,15 +235,15 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
this.eventProcess.workflowInstanceDataFields.LastOccurrence = time;
|
this.eventProcess.workflowInstanceDataFields.LastOccurrence = time;
|
||||||
} else {
|
} else {
|
||||||
time = new Date(
|
time = new Date(
|
||||||
time.getFullYear() + valor,
|
time.getFullYear() + valor,
|
||||||
time.getMonth(),
|
time.getMonth(),
|
||||||
time.getDate(),
|
time.getDate(),
|
||||||
time.getHours(),
|
time.getHours(),
|
||||||
time.getMinutes()
|
time.getMinutes()
|
||||||
);
|
);
|
||||||
this.eventProcess.workflowInstanceDataFields.LastOccurrence = time;
|
this.eventProcess.workflowInstanceDataFields.LastOccurrence = time;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
openLastOccurrence() {
|
openLastOccurrence() {
|
||||||
@@ -318,24 +318,26 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
if(document['action'] == 'add') {
|
if(document['action'] == 'add') {
|
||||||
delete document.action
|
delete document.action
|
||||||
this.attachmentsService.setEventAttachmentById(document).subscribe(()=>{
|
this.attachmentsService.setEventAttachmentById(document).subscribe(()=>{
|
||||||
this.toastService._successMessage();
|
window['approve-event-getTask'] ()
|
||||||
|
// this.toastService._successMessage();
|
||||||
}, error =>{
|
}, error =>{
|
||||||
if(error.status == 0) {
|
if(error.status == 0) {
|
||||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
this.toastService._badRequest();
|
this.toastService._badRequest();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if(document['action'] == 'delete') {
|
} else if(document['action'] == 'delete') {
|
||||||
delete document.action
|
delete document.action
|
||||||
this.attachmentsService.deleteEventAttachmentById(document.Id).subscribe( res=>{
|
this.attachmentsService.deleteEventAttachmentById(document.Id).subscribe( res=>{
|
||||||
this.toastService._successMessage()
|
window['approve-event-getTask'] ()
|
||||||
|
// this.toastService._successMessage()
|
||||||
}, error =>{
|
}, error =>{
|
||||||
if(error.status == 0) {
|
if(error.status == 0) {
|
||||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
this.toastService._badRequest()
|
this.toastService._badRequest()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -360,7 +362,7 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
backdropDismiss: false
|
backdropDismiss: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
modal.onDidDismiss().then((data) => {
|
modal.onDidDismiss().then((data) => {
|
||||||
|
|
||||||
@@ -372,7 +374,7 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
|
|
||||||
this.setIntervenient(newAttendees);
|
this.setIntervenient(newAttendees);
|
||||||
this.setIntervenientCC(newAttendeesCC);
|
this.setIntervenientCC(newAttendeesCC);
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
@@ -420,7 +422,7 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
|
|
||||||
this.loadedAttachments = result
|
this.loadedAttachments = result
|
||||||
|
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteAttachment(attachment: Attachment, index) {
|
deleteAttachment(attachment: Attachment, index) {
|
||||||
@@ -463,7 +465,7 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
this.loadedAttachments.push(DocumentToSave)
|
this.loadedAttachments.push(DocumentToSave)
|
||||||
|
|
||||||
|
|
||||||
// await this.attachmentsService.setEventAttachmentById(DocumentToSave).subscribe(()=>{
|
// await this.attachmentsService.setEventAttachmentById(DocumentToSave).subscribe(()=>{
|
||||||
// this.getAttachments();
|
// this.getAttachments();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<ion-header *ngIf="task" class="ion-no-border ">
|
<ion-header *ngIf="task" class="ion-no-border ">
|
||||||
<div *ngIf="dropButton" class="main-header mt-30 px-20">
|
<div [ngClass]="{'d-item': !dropButton}" class="main-header mt-30 px-20">
|
||||||
<div class="title-content width-100 d-flex justify-space-between align-center">
|
<div class="title-content width-100 d-flex justify-space-between align-center">
|
||||||
<div class=" btn-dismiss font-30-rem cursor-pointer" (click)="goBack.emit()" defaultHref="#">
|
<div class=" btn-dismiss font-30-rem cursor-pointer" (click)="goBack.emit()" defaultHref="#">
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=" flex-1 d-flex flex-column height-100 d-flex overflow-y-auto-desktop" >
|
<div class=" flex-1 d-flex flex-column height-100 d-flex overflow-y-auto-desktop" >
|
||||||
<div *ngIf="dropButton" class="upper-content" >
|
<div [ngClass]="{'d-item': !dropButton}" class="upper-content" >
|
||||||
<div class="content-details">
|
<div class="content-details">
|
||||||
<div class="mobile-header">
|
<div class="mobile-header">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
</ion-label>
|
</ion-label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="dropButton" class="line mx-20"></div>
|
<div [ngClass]="{'d-item': !dropButton}" class="line mx-20"></div>
|
||||||
|
|
||||||
<div style="
|
<div style="
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
" class="overflow-y-auto-desktop">
|
" class="overflow-y-auto-desktop">
|
||||||
<div class="middle-content" *ngIf="dropButton">
|
<div class="middle-content" [ngClass]="{'d-item': !dropButton}">
|
||||||
<h5 class="font-17-rem" *ngIf="intervenientes">Intervenientes</h5>
|
<h5 class="font-17-rem" *ngIf="intervenientes">Intervenientes</h5>
|
||||||
<ion-item class="ion-no-margin ion-no-padding">
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
@@ -123,12 +123,12 @@
|
|||||||
<div style="border-radius: 50px;position: relative;top: 3px;left: 25px;">
|
<div style="border-radius: 50px;position: relative;top: 3px;left: 25px;">
|
||||||
|
|
||||||
<ion-row class="timeline-date align-center pr-10 visionMobile-flex" >
|
<ion-row class="timeline-date align-center pr-10 visionMobile-flex" >
|
||||||
<button class="no-color" *ngIf="dropButton" (click)="dropButton=!dropButton" >
|
<button class="no-color" [ngClass]="{'d-item': !dropButton}" (click)="changeDropButton()" >
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="collaps font-25" src="assets/images/icons-collaps-up.svg" ></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="collaps font-25" src="assets/images/icons-collaps-up.svg" ></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="collaps font-25" src="assets/images/theme/gov/icons-collaps-up.svg" ></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="collaps font-25" src="assets/images/theme/gov/icons-collaps-up.svg" ></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " class="collaps font-25" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-collaps-up.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " class="collaps font-25" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-collaps-up.svg"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
<button class="no-color visionMobile-flex" *ngIf="!dropButton" (click)="dropButton=!dropButton">
|
<button class="no-color visionMobile-flex" *ngIf="!dropButton" (click)="changeDropButton()">
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="collaps font-25" src="assets/images/icons-collaps-down.svg" ></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="collaps font-25" src="assets/images/icons-collaps-down.svg" ></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="collaps font-25" src="assets/images/theme/gov/icons-collaps-down.svg" ></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="collaps font-25" src="assets/images/theme/gov/icons-collaps-down.svg" ></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " class="collaps font-25" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-collaps-down.svg" ></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " class="collaps font-25" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-collaps-down.svg" ></ion-icon>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { PermissionService } from 'src/app/services/permission.service';
|
|||||||
import { ExpedientTaskModalPage } from 'src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';
|
import { ExpedientTaskModalPage } from 'src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';
|
||||||
import { ModalController } from '@ionic/angular';
|
import { ModalController } from '@ionic/angular';
|
||||||
import { DocumentSetUpMeetingPage } from 'src/app/modals/document-set-up-meeting/document-set-up-meeting.page';
|
import { DocumentSetUpMeetingPage } from 'src/app/modals/document-set-up-meeting/document-set-up-meeting.page';
|
||||||
|
import { HeaderSettingsService } from "src/app/services/header-settings.service"
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-task-details',
|
selector: 'app-task-details',
|
||||||
@@ -33,7 +34,8 @@ export class TaskDetailsPage implements OnInit {
|
|||||||
public DeviceService: DeviceService,
|
public DeviceService: DeviceService,
|
||||||
private DocumentViewerOptionService: DocumentViewerOptionService,
|
private DocumentViewerOptionService: DocumentViewerOptionService,
|
||||||
public p: PermissionService,
|
public p: PermissionService,
|
||||||
private modalController: ModalController
|
private modalController: ModalController,
|
||||||
|
private HeaderSettingsService: HeaderSettingsService
|
||||||
) {
|
) {
|
||||||
this.DeviceService.isDesktop();
|
this.DeviceService.isDesktop();
|
||||||
}
|
}
|
||||||
@@ -120,7 +122,7 @@ export class TaskDetailsPage implements OnInit {
|
|||||||
backdropDismiss: false
|
backdropDismiss: false
|
||||||
});
|
});
|
||||||
|
|
||||||
modal.onDidDismiss().then(res=>{
|
modal.onDidDismiss().then(res => {
|
||||||
//this.RouteService.goBack();
|
//this.RouteService.goBack();
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@@ -129,4 +131,8 @@ export class TaskDetailsPage implements OnInit {
|
|||||||
await modal.present();
|
await modal.present();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
changeDropButton() {
|
||||||
|
this.dropButton = !this.dropButton;
|
||||||
|
this.HeaderSettingsService.hideHeader = !this.dropButton
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="header-container header-fix">
|
<div class="header-container header-fix" [ngClass]="{'d-none-header':HeaderSettingsService.hideHeader}" >
|
||||||
<div class="main-tab pb-10 ion-toolbar header-color">
|
<div class="main-tab pb-10 ion-toolbar header-color">
|
||||||
|
|
||||||
<div class="mobile pt-20 d-flex div-top-header justify-space-between">
|
<div class="mobile pt-20 d-flex div-top-header justify-space-between">
|
||||||
|
|||||||
@@ -177,3 +177,5 @@
|
|||||||
.tab {
|
.tab {
|
||||||
color: var(--header-tab-text-white);
|
color: var(--header-tab-text-white);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import { ActiveTabService } from 'src/app/services/active-tab.service';
|
|||||||
import { NotificationsService } from 'src/app/services/notifications.service';
|
import { NotificationsService } from 'src/app/services/notifications.service';
|
||||||
import { AttachmentsService } from 'src/app/services/attachments.service';
|
import { AttachmentsService } from 'src/app/services/attachments.service';
|
||||||
import { NotificationHolderService } from 'src/app/store/notification-holder.service';
|
import { NotificationHolderService } from 'src/app/store/notification-holder.service';
|
||||||
|
import { HeaderSettingsService } from "src/app/services/header-settings.service"
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-header',
|
selector: 'app-header',
|
||||||
@@ -59,7 +60,8 @@ export class HeaderPage implements OnInit {
|
|||||||
private storageService: StorageService,
|
private storageService: StorageService,
|
||||||
private zone: NgZone,
|
private zone: NgZone,
|
||||||
private attachmentService: AttachmentsService,
|
private attachmentService: AttachmentsService,
|
||||||
public NotificationHolderService: NotificationHolderService
|
public NotificationHolderService: NotificationHolderService,
|
||||||
|
public HeaderSettingsService: HeaderSettingsService
|
||||||
) {
|
) {
|
||||||
this.loggeduser = SessionStore.user;
|
this.loggeduser = SessionStore.user;
|
||||||
router.events.subscribe((val) => {
|
router.events.subscribe((val) => {
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export const DevDev: Environment = {
|
|||||||
despachoLabel2: 'Despachos Presidênciais',
|
despachoLabel2: 'Despachos Presidênciais',
|
||||||
production: false,
|
production: false,
|
||||||
domain: 'gabinetedigital.local',
|
domain: 'gabinetedigital.local',
|
||||||
defaultuser: 'paulo.pinto@gabinetedigital.local',
|
defaultuser: 'dlima@gabinetedigital.local',
|
||||||
defaultuserpwd: 'tabteste@006',
|
defaultuserpwd: 'tabteste@006',
|
||||||
chatOffline: true,
|
chatOffline: true,
|
||||||
presidential: true,
|
presidential: true,
|
||||||
|
|||||||
@@ -1716,3 +1716,10 @@ h5, .buttons{
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 1209px){
|
||||||
|
.d-none-header, .d-item {
|
||||||
|
display: none !important;
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user