mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Pull made
This commit is contained in:
@@ -270,7 +270,7 @@
|
||||
</ion-row>
|
||||
|
||||
<div style="padding-right: 50px" class=" text-black align-center cursor-pointer" (click)="changeSegment('Combinado')" [class.active]="segment == 'Combinado' ">
|
||||
Todos
|
||||
Todas
|
||||
</div>
|
||||
<div style="padding-right: 50px" class=" text-black align-center cursor-pointer" (click)="changeSegment('Pessoal')" [class.active]="segment == 'Pessoal' ">
|
||||
Pessoais
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
</ion-refresher-content>
|
||||
</ion-refresher>
|
||||
|
||||
{{ loadedEvent.HasAttachments | json}}
|
||||
|
||||
<div class="main-content d-flex height-100" [className]="isModal ? '_main-content d-flex height-100 ma-0 px-20 pt-30 pb-20 background-white' : 'main-content d-flex height-100'">
|
||||
<div class="content d-flex flex-column width-100">
|
||||
<div class="main-header d-flex">
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<div class="schedule-header">
|
||||
<div class="title">
|
||||
<ion-icon class="icon" slot="end" src="assets/images/icons-default-agenda.svg" ></ion-icon>
|
||||
<div class="text">A sua Agenda</div>
|
||||
<div class="text">A sua agenda do dia</div>
|
||||
</div>
|
||||
<button title="Ir para a sua Agenda" class="btn-no-color" [routerLink]="['/home/agenda']">
|
||||
<ion-icon
|
||||
@@ -96,7 +96,7 @@
|
||||
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor="let event of listToPresent"
|
||||
(click)="goToEvent(event)"
|
||||
>
|
||||
<div class="d-flex content-{{sessoStore.user.Profile}}-{{event.CalendarName}}">
|
||||
<div class="d-flex event-box-content content-{{sessoStore.user.Profile}}-{{event.CalendarName}}">
|
||||
|
||||
<div class="schedule-time">
|
||||
<div *ngIf="!event.IsAllDayEvent" class="time-start">{{event.StartDate | date: 'HH:mm'}}</div>
|
||||
@@ -109,7 +109,7 @@
|
||||
<div class="schedule-details">
|
||||
<div class="description">{{event.Subject}}</div>
|
||||
<div class="location">
|
||||
<p>{{event.Location}}</p>
|
||||
{{event.Location}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -155,16 +155,18 @@
|
||||
</div>
|
||||
<div class="content overflow-y-auto flex-grow-1 height-100">
|
||||
<ion-list>
|
||||
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor = "let task of listToPresentexpediente"
|
||||
(click)="goToExpediente(task.SerialNumber)">
|
||||
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor = "let task of AllProcess"
|
||||
(click)="TaskService.goToProcess(task.SerialNumber || task.serialNumber, task.WorkflowName || task.workflowName || task.workflowDisplayName || task.workflowName, task.activityInstanceName)">
|
||||
<div class="item-exp d-flex">
|
||||
<div class="schedule-date">
|
||||
<div class="time-end">{{task.TaskStartDate | date: 'dd-MM-yy'}}</div>
|
||||
<div class="time-start">{{task.TaskStartDate | date: 'HH:mm'}}</div>
|
||||
</div>
|
||||
<div class="schedule-details pointer">
|
||||
<div class="description">{{ task.Subject }}</div>
|
||||
<div class="location">{{ task.Senders }}</div>
|
||||
<div class="description">{{task.Folio || task.Subject || task.workflowInstanceDataFields.Subject }}</div>
|
||||
<div class="location" *ngIf="task.Senders">{{ task.Senders }}</div>
|
||||
<div class="location" *ngIf="task.workflowInstanceDataFields">{{task.workflowInstanceDataFields.Sender }}</div>
|
||||
<!-- <div class="location" *ngIf="!task.Senders && !task.workflowInstanceDataFields">{{task.workflowInstanceDataFields.Sender }}</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</ion-item>
|
||||
@@ -275,7 +277,7 @@
|
||||
</div>
|
||||
<div class="content overflow-y-auto flex-grow-1 height-100">
|
||||
<ion-list>
|
||||
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor = "let task of listToPresentexpediente"
|
||||
<ion-item class="item-hover cursor-pointer" lines="none" *ngFor = "let task of AllProcess"
|
||||
(click)="goToExpediente(task.SerialNumber)">
|
||||
<div class="item-exp d-flex">
|
||||
<div class="schedule-date">
|
||||
|
||||
@@ -201,6 +201,7 @@ ion-toolbar{
|
||||
color: var(--subtitle-text-color);
|
||||
font-size: 16px;
|
||||
margin: 0 auto;
|
||||
min-height: 19px;
|
||||
}
|
||||
.div-botton-middle{
|
||||
width: 75%;
|
||||
@@ -437,7 +438,6 @@ ion-toolbar{
|
||||
}
|
||||
.schedule-date{
|
||||
margin-right: 10px;
|
||||
width: 22%;
|
||||
color: #797979 !important;
|
||||
font-size: 13px;
|
||||
}
|
||||
@@ -446,11 +446,13 @@ ion-toolbar{
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
width: 78%;
|
||||
min-height: 39px;
|
||||
align-items: baseline;
|
||||
.location{
|
||||
font-family: Roboto;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
min-height: 19px;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
@@ -458,6 +460,7 @@ ion-toolbar{
|
||||
width: 100%;
|
||||
font-family: Roboto;
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
//color: #0d89d1;
|
||||
color: var(--title-text-color)
|
||||
}
|
||||
@@ -641,4 +644,14 @@ ion-title{
|
||||
margin-left: 0px !important;
|
||||
margin-right: 0px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.item-exp {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
|
||||
.event-box-content {
|
||||
justify-content: flex-start !important;
|
||||
}
|
||||
|
||||
@@ -68,6 +68,13 @@ export class EventsPage implements OnInit {
|
||||
showCorrespondenciasLoader = false
|
||||
loadingAllTask = false
|
||||
|
||||
|
||||
filterName: 'Para hoje' | 'Novos'| 'Lidos'| 'Não lidos'| 'OverdueTasks' | 'Todos' = 'Não lidos'
|
||||
showSearch = true;
|
||||
searchSubject: string = '';
|
||||
AllProcess = []
|
||||
ordinance: string = 'old'
|
||||
|
||||
constructor(
|
||||
private eventService: EventsService,
|
||||
private router: Router,
|
||||
@@ -102,6 +109,13 @@ export class EventsPage implements OnInit {
|
||||
this.listToPresentexpediente = []
|
||||
})
|
||||
|
||||
this.TaskService.registerCallback({
|
||||
id: import.meta.url,
|
||||
funx:() => {
|
||||
this.dynamicSearch()
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -128,6 +142,34 @@ export class EventsPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
|
||||
async dynamicSearch() {
|
||||
|
||||
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)
|
||||
}
|
||||
} 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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
async loadAllTask() {
|
||||
this.loadingAllTask = true
|
||||
await this.TaskService.LoadTask()
|
||||
|
||||
@@ -22,6 +22,7 @@ import { SessionStore } from 'src/app/store/session.service';
|
||||
import { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { TaskService } from 'src/app/services/task.service'
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-despachos-pr',
|
||||
@@ -75,7 +76,8 @@ export class DespachosPrPage implements OnInit {
|
||||
private backgroundservice: BackgroundService,
|
||||
private sortService: SortService,
|
||||
public ThemeService: ThemeService,
|
||||
public TaskService: TaskService
|
||||
public TaskService: TaskService,
|
||||
private RouteService: RouteService,
|
||||
) {
|
||||
|
||||
this.profile = 'mdgpr';
|
||||
@@ -289,7 +291,7 @@ export class DespachosPrPage implements OnInit {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
this.RouteService.goBack();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ export class DespachoPage implements OnInit {
|
||||
await this.despachoService.executado(note, documents, this.serialnumber).toPromise();
|
||||
this.httpErrorHandle.httpsSucessMessagge('Executado')
|
||||
this.TaskService.loadDespachos();
|
||||
this.close();
|
||||
// this.close();
|
||||
} catch (error) {
|
||||
this.httpErrorHandle.httpStatusHandle(error)
|
||||
}
|
||||
@@ -237,7 +237,7 @@ export class DespachoPage implements OnInit {
|
||||
await this.despachoService.arquivar(note, documents, this.serialnumber).toPromise()
|
||||
this.httpErrorHandle.httpsSucessMessagge('Arquivar')
|
||||
this.TaskService.loadDespachos();
|
||||
this.close();
|
||||
// this.close();
|
||||
} catch (error) {
|
||||
this.httpErrorHandle.httpStatusHandle(error)
|
||||
}
|
||||
@@ -264,7 +264,7 @@ export class DespachoPage implements OnInit {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.httpErrorHandle.httpsSucessMessagge('Reexecução')
|
||||
this.TaskService.loadDespachos();
|
||||
this.close();
|
||||
//this.close();
|
||||
|
||||
} catch (error) {
|
||||
this.httpErrorHandle.httpStatusHandle(error)
|
||||
@@ -292,7 +292,7 @@ export class DespachoPage implements OnInit {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.httpErrorHandle.httpsSucessMessagge('Gerar Diploma')
|
||||
this.TaskService.loadDespachos();
|
||||
this.close();
|
||||
// this.close();
|
||||
} catch (error) {
|
||||
this.httpErrorHandle.httpStatusHandle(error);
|
||||
} finally {
|
||||
@@ -496,9 +496,16 @@ export class DespachoPage implements OnInit {
|
||||
},
|
||||
translucent: true
|
||||
});
|
||||
return await popover.present().then(()=> {
|
||||
this.TaskService.loadDespachos();
|
||||
await popover.present();
|
||||
|
||||
popover.onDidDismiss().then((res)=> {
|
||||
console.log('res', res.data)
|
||||
if(res.data == 'back') {
|
||||
this.goBack();
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -29,15 +29,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="OverdueTasks">
|
||||
@@ -45,7 +45,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
</mat-select>
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
|
||||
import { NavigationStart, Router } from '@angular/router';
|
||||
import { DespachoService } from 'src/app/Rules/despacho.service';
|
||||
import { DespachoStore } from 'src/app/store/despacho-store.service';
|
||||
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
import { SqliteService } from 'src/app/services/sqlite.service';
|
||||
import { Platform } from '@ionic/angular';
|
||||
import { BackgroundService } from 'src/app/services/background.service';
|
||||
@@ -32,7 +32,8 @@ export class DespachosPage implements OnInit {
|
||||
private platform: Platform,
|
||||
private backgroundservice: BackgroundService,
|
||||
public ThemeService: ThemeService,
|
||||
public TaskService: TaskService
|
||||
public TaskService: TaskService,
|
||||
private RouteService: RouteService,
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -139,11 +140,7 @@ export class DespachosPage implements OnInit {
|
||||
|
||||
|
||||
goBack() {
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
}
|
||||
|
||||
goToList() {
|
||||
this.router.navigate(['/home/gabinete-digital/despachos']);
|
||||
this.RouteService.goBack();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -23,15 +23,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="OverdueTasks">
|
||||
@@ -39,7 +39,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
</mat-select>
|
||||
|
||||
@@ -9,6 +9,7 @@ import { SortService } from 'src/app/services/functions/sort.service';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { DeplomasStore } from 'src/app/store/deplomas.service';
|
||||
import { TaskService } from 'src/app/services/task.service'
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-diplomas-assinar',
|
||||
@@ -41,7 +42,8 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
private router: Router,
|
||||
private sortService: SortService,
|
||||
public ThemeService: ThemeService,
|
||||
public TaskService: TaskService) {
|
||||
public TaskService: TaskService,
|
||||
private RouteService: RouteService,) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -126,8 +128,9 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
// this.router.navigate(['/home/gabinete-digital']);
|
||||
// window.history.back()
|
||||
this.RouteService.goBack();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import { SortService } from 'src/app/services/functions/sort.service';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { DeplomasStore } from 'src/app/store/deplomas.service';
|
||||
import { TaskService } from 'src/app/services/task.service'
|
||||
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
@Component({
|
||||
selector: 'app-diplomas-gerars',
|
||||
templateUrl: './diplomas-gerar.page.html',
|
||||
@@ -42,7 +42,8 @@ export class DiplomasGerarPage implements OnInit {
|
||||
private router: Router,
|
||||
private sortService: SortService,
|
||||
public ThemeService: ThemeService,
|
||||
public TaskService: TaskService) {
|
||||
public TaskService: TaskService,
|
||||
private RouteService: RouteService,) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -139,7 +140,7 @@ export class DiplomasGerarPage implements OnInit {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
this.RouteService.goBack();
|
||||
// window.history.back()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,31 +85,7 @@ export class DiplomaPage implements OnInit {
|
||||
|
||||
goBack() {
|
||||
this.RouteService.goBack();
|
||||
/* if(this.task.Status == "Pending" && this.caller == 'gabinete-digital'){
|
||||
if (window.innerWidth < 801) {
|
||||
this.router.navigate(['/home/gabinete-digital/pendentes']);
|
||||
}
|
||||
else {
|
||||
let navigationExtras: NavigationExtras = {
|
||||
queryParams: {
|
||||
"pendentes": true,
|
||||
}
|
||||
}
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
}
|
||||
else{
|
||||
if (window.innerWidth < 801) {
|
||||
this.router.navigate(['/home/gabinete-digital/diplomas']);
|
||||
} else {
|
||||
let navigationExtras: NavigationExtras = {
|
||||
queryParams: {
|
||||
'diplomas': true
|
||||
}
|
||||
}
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
} */
|
||||
|
||||
}
|
||||
|
||||
async openOptions(taskAction?: any) {
|
||||
|
||||
@@ -11,6 +11,7 @@ import { PermissionService } from 'src/app/services/permission.service';
|
||||
import { DeplomasStore } from 'src/app/store/deplomas.service';
|
||||
import { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe';
|
||||
import { TaskService } from 'src/app/services/task.service'
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-diplomas',
|
||||
@@ -46,7 +47,8 @@ export class DiplomasPage implements OnInit, OnDestroy {
|
||||
private sortService: SortService,
|
||||
public ThemeService: ThemeService,
|
||||
public p: PermissionService,
|
||||
public TaskService: TaskService
|
||||
public TaskService: TaskService,
|
||||
private RouteService: RouteService,
|
||||
) {
|
||||
//Inicializar segment
|
||||
|
||||
@@ -223,8 +225,7 @@ export class DiplomasPage implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
// window.history.back()
|
||||
this.RouteService.goBack();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-1
@@ -71,7 +71,6 @@ export class ApproveEventModalPage implements OnInit {
|
||||
}
|
||||
|
||||
close(){
|
||||
/* this.router.navigate(['/home/gabinete-digital/event-list']); */
|
||||
this.modalController.dismiss(null);
|
||||
}
|
||||
|
||||
|
||||
@@ -95,16 +95,6 @@ export class ApproveEventPage implements OnInit {
|
||||
|
||||
goBack() {
|
||||
this.RouteService.goBack();
|
||||
/* let navigationExtras: NavigationExtras = {
|
||||
queryParams: {
|
||||
"eventos": true,
|
||||
}
|
||||
};
|
||||
if( window.innerWidth < 801) {
|
||||
this.router.navigate(['/home',this.caller, 'event-list']);
|
||||
} else {
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
} */
|
||||
|
||||
}
|
||||
|
||||
@@ -121,7 +111,6 @@ export class ApproveEventPage implements OnInit {
|
||||
this.processes.GetTask(this.serialNumber).subscribe(async res => {
|
||||
|
||||
this.loadedEvent = res
|
||||
console.log('1111=1=1=1=')
|
||||
this.addProcessToDB(this.loadedEvent)
|
||||
|
||||
try {
|
||||
|
||||
@@ -31,15 +31,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não Lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
</mat-select>
|
||||
|
||||
+4
-1
@@ -25,6 +25,8 @@ import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { SessionStore } from 'src/app/store/session.service';
|
||||
import { PermissionService } from 'src/app/services/permission.service';
|
||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
|
||||
|
||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||
parse: {
|
||||
@@ -113,6 +115,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
public ThemeService: ThemeService,
|
||||
public p: PermissionService,
|
||||
private httpErroHandle: HttpErrorHandle,
|
||||
private RouteService: RouteService,
|
||||
) {
|
||||
|
||||
this.loggeduser = SessionStore.user;
|
||||
@@ -178,7 +181,7 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
}
|
||||
|
||||
close() {
|
||||
this.router.navigate(['/home/gabinete-digital/expediente']);
|
||||
this.RouteService.goBack();
|
||||
this.modalController.dismiss(null);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,15 +32,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import { Storage } from '@ionic/storage';
|
||||
import { EventTrigger } from 'src/app/services/eventTrigger.service';
|
||||
import { TaskDeadlineService } from 'src/app/services/task-deadline.service'
|
||||
import { TaskService } from 'src/app/services/task.service'
|
||||
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
@Component({
|
||||
selector: 'app-expediente',
|
||||
templateUrl: './expediente.page.html',
|
||||
@@ -51,7 +51,8 @@ export class ExpedientePage implements OnInit {
|
||||
private storage: Storage,
|
||||
private eventTriger: EventTrigger,
|
||||
public TaskDeadlineService: TaskDeadlineService,
|
||||
public TaskService: TaskService
|
||||
public TaskService: TaskService,
|
||||
private RouteService: RouteService,
|
||||
) {
|
||||
|
||||
this.eventTriger.getObservable().subscribe((event) => {
|
||||
@@ -158,7 +159,7 @@ export class ExpedientePage implements OnInit {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
this.RouteService.goBack();
|
||||
}
|
||||
|
||||
goToExpediente(serialNumber: any) {
|
||||
|
||||
@@ -101,41 +101,6 @@ export class ExpedientePrPage implements OnInit {
|
||||
goBack() {
|
||||
this.TaskService.loadExpedientes()
|
||||
this.RouteService.goBack();
|
||||
/* if(this.task.Status == "Pending" && this.caller != 'events'){
|
||||
if (window.innerWidth <= 800) {
|
||||
this.router.navigate(['/home/gabinete-digital/pendentes']);
|
||||
}
|
||||
else {
|
||||
let navigationExtras: NavigationExtras = {
|
||||
queryParams: {
|
||||
"pendentes": true,
|
||||
}
|
||||
}
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
}
|
||||
else{
|
||||
this.activatedRoute.paramMap.subscribe(params => {
|
||||
switch (params["params"].caller) {
|
||||
case 'events':
|
||||
this.router.navigate(['/home',params["params"].caller]);
|
||||
break;
|
||||
|
||||
case 'gabinete-digital':
|
||||
let navigationExtras: NavigationExtras = {
|
||||
queryParams: {
|
||||
"expedientes-pr": true,
|
||||
}
|
||||
}
|
||||
if( window.innerWidth < 801) {
|
||||
this.router.navigate(['/home/gabinete-digital/expedientes-pr']);
|
||||
} else {
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
break;
|
||||
}
|
||||
});
|
||||
} */
|
||||
}
|
||||
|
||||
sendExpedienteToPending() {
|
||||
|
||||
@@ -143,7 +143,6 @@ export class ExpedientesPrPage implements OnInit {
|
||||
}
|
||||
|
||||
goToExpediente({SerialNumber}){
|
||||
//this.router.navigate(['/home/gabinete-digital/expedientes-pr',serialNumber,'gabinete-digital']);
|
||||
this.router.navigate(['/home/gabinete-digital/expediente', SerialNumber, 'gabinete-digital']);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,15 +22,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="OverdueTasks">
|
||||
@@ -38,7 +38,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
</mat-select>
|
||||
@@ -114,22 +114,22 @@
|
||||
|
||||
<div *ngIf="hideSearchBtn">
|
||||
<mat-form-field class="task-filter-input" appearance="none" color="ion-color-secondary" placeholder="Selecione agenda">
|
||||
<mat-select [(value)]="filterName">
|
||||
<mat-select [(value)]="filterName" (change)="dynamicSearch()">
|
||||
|
||||
<mat-option value="Para hoje" >
|
||||
Para hoje
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="OverdueTasks">
|
||||
@@ -137,7 +137,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
</mat-select>
|
||||
@@ -159,7 +159,7 @@
|
||||
class=" box-hover ion-no-padding cursor-pointer"
|
||||
*ngFor = "let task of AllProcess"
|
||||
(click)="goToProcess(task.SerialNumber || task.serialNumber, task.WorkflowName || task.workflowName || task.workflowDisplayName || task.workflowName, task.activityInstanceName)">
|
||||
<div class="item-wrapper" *ngIf="TaskService.filter(task, filterName)">
|
||||
<div class="item-wrapper">
|
||||
<div class="item width-100">
|
||||
<div class="item-top-detail">
|
||||
<div class="item-subject">
|
||||
|
||||
@@ -217,12 +217,14 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
if(ordinance == this.ordinance) {
|
||||
this.AllProcess = this.TaskService.reorderList(this.ordinance, AllProcess)
|
||||
.filter( task => this.TaskService.filter(task, this.filterName))
|
||||
}
|
||||
} else {
|
||||
const AllProcess = this.TaskService.AllProcess
|
||||
const AllProcess = this.TaskService.AllProcess.filter( task => this.TaskService.filter(task, this.filterName))
|
||||
|
||||
if(ordinance == this.ordinance) {
|
||||
this.AllProcess = this.TaskService.reorderList(this.ordinance, AllProcess)
|
||||
.filter( task => this.TaskService.filter(task, this.filterName))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -260,6 +262,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
}
|
||||
});
|
||||
|
||||
this.checkRoutes()
|
||||
this.hideRefreshButton();
|
||||
|
||||
// console.log(' this.scroll', this.scroll)
|
||||
@@ -388,9 +391,12 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
checkRoutes() {
|
||||
this.closeAllDesktopComponents();
|
||||
if (this.router.url == 'processes=true') {
|
||||
|
||||
// console.log(this.router.url, this.router.url.includes('processes=true'))
|
||||
// alert('hello')
|
||||
if (this.router.url.includes('processes=true')) {
|
||||
this.openAllProcessesPage();
|
||||
this.selectedElement = 'allProcessesTag';
|
||||
this.checkUser()
|
||||
}
|
||||
if (this.router.url == '/home/gabinete-digital?eventos=true') {
|
||||
this.openEventsToApprovePage();
|
||||
@@ -512,7 +518,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
}
|
||||
else {
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
// this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
this.showAllProcesses = true;
|
||||
this.selectedElement = "allProcessesTag";
|
||||
}
|
||||
|
||||
@@ -608,40 +608,6 @@ export class PedidoPage implements OnInit {
|
||||
|
||||
goBack() {
|
||||
this.RouteService.goBack();
|
||||
// if(this.task.Status == "Pending" && this.caller == 'gabinete-digital'){
|
||||
// if (window.innerWidth <= 700) {
|
||||
// this.router.navigate(['/home/gabinete-digital/pendentes']);
|
||||
// }
|
||||
// else {
|
||||
|
||||
// let navigationExtras: NavigationExtras;
|
||||
|
||||
// if (this.task.activityInstanceName == 'Concluir Deferimento') {
|
||||
// navigationExtras= { queryParams: {"deferimento": true,}};
|
||||
// } else if (this.task.activityInstanceName == 'Tarefa de Parecer' ) {
|
||||
// navigationExtras = { queryParams: {"parecer": true,}};
|
||||
// }
|
||||
|
||||
// this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
// }
|
||||
// }
|
||||
// else {
|
||||
// if (window.innerWidth <= 700) {
|
||||
// this.router.navigate(['/home/gabinete-digital/pedidos']);
|
||||
// }
|
||||
// else {
|
||||
|
||||
// let navigationExtras: NavigationExtras;
|
||||
|
||||
// if (this.task.activityInstanceName == 'Concluir Deferimento') {
|
||||
// navigationExtras= { queryParams: {"deferimento": true,}};
|
||||
// } else if (this.task.activityInstanceName == 'Tarefa de Parecer' ) {
|
||||
|
||||
// navigationExtras = { queryParams: {"parecer": true,}};
|
||||
// }
|
||||
// this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -34,15 +34,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="OverdueTasks">
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
@@ -14,6 +14,9 @@ import { SortService } from 'src/app/services/functions/sort.service';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { TaskService } from 'src/app/services/task.service'
|
||||
import { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe';
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-pedidos',
|
||||
templateUrl: './pedidos.page.html',
|
||||
@@ -62,7 +65,8 @@ export class PedidosPage implements OnInit {
|
||||
private backgroundservice: BackgroundService,
|
||||
private platform: Platform,
|
||||
public ThemeService: ThemeService,
|
||||
public TaskService: TaskService
|
||||
public TaskService: TaskService,
|
||||
private RouteService: RouteService,
|
||||
) {
|
||||
this.segment = 'parecer';
|
||||
|
||||
@@ -138,23 +142,9 @@ export class PedidosPage implements OnInit {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
this.RouteService.goBack();
|
||||
}
|
||||
|
||||
/* segmentChanged(ev: any) {
|
||||
|
||||
let navigationExtras: NavigationExtras;
|
||||
|
||||
if (this.segment == 'deferimento') {
|
||||
navigationExtras= { queryParams: {"deferimento": true,}};
|
||||
} else if (this.segment == 'parecer') {
|
||||
navigationExtras = { queryParams: {"parecer": true,}};
|
||||
}
|
||||
|
||||
this.router.navigate(['/home/gabinete-digital/pedidos'], navigationExtras);
|
||||
|
||||
// this.LoadList();
|
||||
} */
|
||||
|
||||
goToPedido(serialNumber: any) {
|
||||
this.router.navigate(['/home/gabinete-digital/pedidos', serialNumber, 'gabinete-digital']);
|
||||
|
||||
@@ -19,7 +19,7 @@ import { SessionStore } from 'src/app/store/session.service';
|
||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||
import { TaskService } from 'src/app/services/task.service'
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
@Component({
|
||||
selector: 'app-pendentes',
|
||||
templateUrl: './pendentes.page.html',
|
||||
@@ -62,6 +62,7 @@ export class PendentesPage implements OnInit {
|
||||
private httpErroHandle: HttpErrorHandle,
|
||||
public TaskService: TaskService,
|
||||
public ThemeService: ThemeService,
|
||||
private RouteService: RouteService,
|
||||
) {
|
||||
this.loggeduser = SessionStore.user;
|
||||
this.profile = 'mdgpr';
|
||||
@@ -128,7 +129,7 @@ export class PendentesPage implements OnInit {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
this.RouteService.goBack();
|
||||
}
|
||||
|
||||
notImplemented() {
|
||||
|
||||
Reference in New Issue
Block a user