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 { DespachosprStore } from 'src/app/store/despachospr-store.service';
import { DeplomasStore } from 'src/app/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.expedientePrStore.count + */  this.pedidosStore.countdeferimento
    + this.pedidosStore.countparecer + this.expedienteGbStore.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.expedientePrStore.count + */  this.pedidosStore.countdeferimento
    + this.pedidosStore.countparecer + this.expedienteGbStore.count + this.despachoPrStore.count + this.pendentesStore.count
    + this.eventoAprovacaoStore.count + this.deplomasStore.diplomasListCount + this.deplomasStore.countDiplomasAssinadoListCount + this.deplomasStore.deplomasReviewCount
  }
}
