2021-07-30 14:01:50 +01:00
|
|
|
import { Injectable } from '@angular/core';
|
|
|
|
|
import { DespachoStore } from 'src/app/store/despacho-store.service';
|
|
|
|
|
import { EventoAprovacaoStore } from 'src/app/store/eventoaprovacao-store.service';
|
|
|
|
|
import { ExpedienteGdStore } from 'src/app/store/expedientegd-store.service';
|
|
|
|
|
import { PendentesStore } from 'src/app/store/pendestes-store.service';
|
|
|
|
|
import { PedidosStore } from 'src/app/store/pedidos-store.service';
|
|
|
|
|
import { ExpedienteprStore } from 'src/app/store/expedientepr-store.service';
|
|
|
|
|
import { DespachosprStore } from 'src/app/store/despachospr-store.service';
|
2021-08-18 12:05:27 +01:00
|
|
|
import { DeplomasStore } from '../store/deplomas.service';
|
2021-07-30 14:01:50 +01:00
|
|
|
|
|
|
|
|
@Injectable({
|
|
|
|
|
providedIn: 'root'
|
|
|
|
|
})
|
|
|
|
|
export class DocumentCounterService {
|
|
|
|
|
|
2021-07-30 17:45:17 +01:00
|
|
|
expedienteGbStore = ExpedienteGdStore;
|
|
|
|
|
pendentesStore = PendentesStore;
|
2021-07-30 14:01:50 +01:00
|
|
|
despachoStore = DespachoStore;
|
2021-07-30 17:45:17 +01:00
|
|
|
eventoAprovacaoStore = EventoAprovacaoStore;
|
|
|
|
|
pedidosStore = PedidosStore;
|
|
|
|
|
expedientePrStore = ExpedienteprStore;
|
|
|
|
|
despachoPrStore = DespachosprStore;
|
2021-08-18 12:05:27 +01:00
|
|
|
deplomasStore = DeplomasStore
|
2021-07-30 14:01:50 +01:00
|
|
|
|
|
|
|
|
constructor() { }
|
|
|
|
|
|
2021-07-30 16:55:13 +01:00
|
|
|
// falta a contagem dos deplomas
|
2021-07-30 14:01:50 +01:00
|
|
|
get mdTotalDocument() {
|
2021-07-30 17:45:17 +01:00
|
|
|
return this.despachoStore.count + this.expedienteGbStore.count + this.pedidosStore.countdeferimento
|
|
|
|
|
+ this.pedidosStore.countparecer + this.expedientePrStore.count + this.despachoPrStore.count + this.pendentesStore.count
|
2021-08-18 12:05:27 +01:00
|
|
|
+ this.eventoAprovacaoStore.count + this.deplomasStore.diplomasListCount + this.deplomasStore.countDiplomasListCount
|
2021-07-30 14:01:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
get prTotalDocument() {
|
2021-08-18 12:58:01 +01:00
|
|
|
return this.despachoStore.count + this.expedienteGbStore.count + this.pedidosStore.countdeferimento
|
|
|
|
|
+ this.pedidosStore.countparecer + this.expedientePrStore.count + this.despachoPrStore.count + this.pendentesStore.count
|
|
|
|
|
+ this.eventoAprovacaoStore.count + this.deplomasStore.diplomasListCount + this.deplomasStore.countDiplomasListCount
|
2021-07-30 14:01:50 +01:00
|
|
|
}
|
|
|
|
|
}
|