mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
40 lines
1.9 KiB
TypeScript
40 lines
1.9 KiB
TypeScript
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';
|
|
import { DeplomasStore } from '../store/deplomas.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class DocumentCounterService {
|
|
|
|
expedienteGbStore = ExpedienteGdStore;
|
|
pendentesStore = PendentesStore;
|
|
despachoStore = DespachoStore;
|
|
eventoAprovacaoStore = EventoAprovacaoStore;
|
|
pedidosStore = PedidosStore;
|
|
expedientePrStore = ExpedienteprStore;
|
|
despachoPrStore = DespachosprStore;
|
|
deplomasStore = DeplomasStore
|
|
|
|
constructor() { }
|
|
|
|
// falta a contagem dos deplomas
|
|
get mdTotalDocument(): number {
|
|
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.countDiplomasAssinadoListCount + this.deplomasStore.deplomasReviewCount
|
|
}
|
|
|
|
get prTotalDocument(): number {
|
|
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.countDiplomasAssinadoListCount + this.deplomasStore.deplomasReviewCount
|
|
}
|
|
}
|