mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add redirect message
This commit is contained in:
@@ -92,7 +92,7 @@ export class EventsPage implements OnInit {
|
||||
private changeProfileService: ChangeProfileService,
|
||||
public TaskService: TaskService
|
||||
) {
|
||||
|
||||
|
||||
window['zipPhoneCallback'] = function (zipphone) {
|
||||
var frame = document.getElementById('home-iframe');
|
||||
if(frame) {
|
||||
@@ -113,7 +113,7 @@ export class EventsPage implements OnInit {
|
||||
}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
|
||||
|
||||
|
||||
this.loadAllTask();
|
||||
|
||||
@@ -123,9 +123,9 @@ export class EventsPage implements OnInit {
|
||||
this.dynamicSearch()
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
this.dynamicSearch()
|
||||
|
||||
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
@@ -161,20 +161,20 @@ export class EventsPage implements OnInit {
|
||||
|
||||
const ordinance = this.ordinance
|
||||
if(this.showSearch && this.searchSubject) {
|
||||
|
||||
|
||||
const AllProcess = this.TaskService.AllProcess.filter((task) => {
|
||||
let subject = task.Folio || task.Subject || task.workflowInstanceDataFields.Subject
|
||||
subject = subject.toLowerCase();
|
||||
return subject.includes(this.searchSubject.toLowerCase())
|
||||
}).filter( task => this.TaskService.filter(task, this.filterName))
|
||||
|
||||
|
||||
|
||||
if(ordinance == this.ordinance) {
|
||||
this.AllProcess = this.TaskService.reorderList(this.ordinance, AllProcess)
|
||||
this.AllProcess = this.TaskService.reorderList(this.ordinance, AllProcess)
|
||||
}
|
||||
} else {
|
||||
const AllProcess = this.TaskService.AllProcess
|
||||
|
||||
|
||||
if(ordinance == this.ordinance) {
|
||||
this.AllProcess = this.TaskService.reorderList(this.ordinance, AllProcess)
|
||||
.filter( task => this.TaskService.filter(task, this.filterName))
|
||||
@@ -205,7 +205,7 @@ export class EventsPage implements OnInit {
|
||||
} catch(error) {}
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
|
||||
this.RefreshEvents();
|
||||
this.LoadList();
|
||||
this.loadAllTask();
|
||||
@@ -218,7 +218,7 @@ export class EventsPage implements OnInit {
|
||||
|
||||
|
||||
async RefreshEvents() {
|
||||
|
||||
|
||||
this.currentEvent = "";
|
||||
this.showLoader = true;
|
||||
this.showAgendaLoader = true;
|
||||
@@ -256,7 +256,7 @@ export class EventsPage implements OnInit {
|
||||
let dateToday = date.getFullYear() + "-" + month + "-" + date.getDate();
|
||||
|
||||
this.storage.get('events').then((events: any[] = []) => {
|
||||
//
|
||||
//
|
||||
|
||||
if(Array.isArray(events)) {
|
||||
this.listToPresent = events
|
||||
@@ -271,7 +271,7 @@ export class EventsPage implements OnInit {
|
||||
} catch (error) {}
|
||||
|
||||
}
|
||||
//
|
||||
//
|
||||
})
|
||||
|
||||
|
||||
@@ -299,19 +299,19 @@ export class EventsPage implements OnInit {
|
||||
|
||||
changeProfile() {
|
||||
if (this.profile == "mdgpr") {
|
||||
//
|
||||
//
|
||||
this.profile = "pr";
|
||||
this.RefreshEvents();
|
||||
}
|
||||
else {
|
||||
//
|
||||
//
|
||||
this.profile = "mdgpr";
|
||||
this.RefreshEvents();
|
||||
}
|
||||
}
|
||||
|
||||
async openEventDetail1(id: any) {
|
||||
//
|
||||
//
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: EventDetailPage,
|
||||
@@ -328,7 +328,7 @@ export class EventsPage implements OnInit {
|
||||
}
|
||||
|
||||
async openEventDetail(id: any) {
|
||||
//
|
||||
//
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: ViewEventPage,
|
||||
@@ -338,7 +338,7 @@ export class EventsPage implements OnInit {
|
||||
cssClass: 'view-event',
|
||||
backdropDismiss: false
|
||||
});
|
||||
|
||||
|
||||
modal.onDidDismiss();
|
||||
await modal.present();
|
||||
|
||||
@@ -358,7 +358,7 @@ export class EventsPage implements OnInit {
|
||||
window['all-process-gabinete']()
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
sortArrayISODate(myArray: any) {
|
||||
@@ -375,9 +375,9 @@ export class EventsPage implements OnInit {
|
||||
}
|
||||
|
||||
goToAllTaskFilter(event: any) {
|
||||
let navigationExtras: NavigationExtras = { queryParams: {
|
||||
let navigationExtras: NavigationExtras = { queryParams: {
|
||||
filter: event,
|
||||
processes: true
|
||||
processes: true
|
||||
} }
|
||||
|
||||
|
||||
@@ -407,4 +407,4 @@ export class EventsPage implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { NotFoundPage } from './not-found.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: NotFoundPage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class NotFoundPageRoutingModule {}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { NotFoundPageRoutingModule } from './not-found-routing.module';
|
||||
|
||||
import { NotFoundPage } from './not-found.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
NotFoundPageRoutingModule
|
||||
],
|
||||
declarations: [NotFoundPage]
|
||||
})
|
||||
export class NotFoundPageModule {}
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { NotFoundPage } from './not-found.page';
|
||||
|
||||
describe('NotFoundPage', () => {
|
||||
let component: NotFoundPage;
|
||||
let fixture: ComponentFixture<NotFoundPage>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ NotFoundPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(NotFoundPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { ToastService } from 'src/app/services/toast.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-not-found',
|
||||
templateUrl: './not-found.page.html',
|
||||
styleUrls: ['./not-found.page.scss'],
|
||||
})
|
||||
export class NotFoundPage implements OnInit {
|
||||
|
||||
constructor(
|
||||
private router: Router,
|
||||
private toastService: ToastService,
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.router.navigate(['/home/events']);
|
||||
this.toastService._badRequest("Página não encontrada")
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user