|
|
@ -1,6 +1,6 @@ |
|
|
|
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core"; |
|
|
|
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core"; |
|
|
|
import { MatTableDataSource } from "@angular/material/table"; |
|
|
|
import { MatTableDataSource } from "@angular/material/table"; |
|
|
|
import { BusinessUnitDTO, CollaborateurDTO, EpInformationDTO, EpService, StatutEp, TypeEp } from "@shared/api-swagger"; |
|
|
|
import { affichageStatut, BusinessUnitDTO, CollaborateurDTO, EpInformationDTO, EpService, estEnAttente, StatutEp, TypeEp } from "@shared/api-swagger"; |
|
|
|
import { cles, epTypeRecherche } from "@shared/utils/cles"; |
|
|
|
import { cles, epTypeRecherche } from "@shared/utils/cles"; |
|
|
|
import { Subscription } from "rxjs"; |
|
|
|
import { Subscription } from "rxjs"; |
|
|
|
|
|
|
|
|
|
|
@ -120,6 +120,14 @@ export class EpTableComponent implements OnInit{ |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
afficherStatutEP(statut: StatutEp) { |
|
|
|
|
|
|
|
return affichageStatut(statut); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EstEPEnAttente(statut: StatutEp) { |
|
|
|
|
|
|
|
return estEnAttente(statut); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
getEPEnSignes() { |
|
|
|
getEPEnSignes() { |
|
|
|
this.epSubscription = this.epService.getEPSignes(this.busIds, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin).subscribe( |
|
|
|
this.epSubscription = this.epService.getEPSignes(this.busIds, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin).subscribe( |
|
|
|
eps => { |
|
|
|
eps => { |
|
|
@ -190,15 +198,6 @@ export class EpTableComponent implements OnInit{ |
|
|
|
this.setSearch(); |
|
|
|
this.setSearch(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
afficherStatutEP(statut: StatutEp) { |
|
|
|
|
|
|
|
return "statut"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
afficherTypeEP(type: TypeEp) { |
|
|
|
|
|
|
|
return "typeEP" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Mettre à jour toutes les checkox |
|
|
|
* Mettre à jour toutes les checkox |
|
|
|
* @param event case cochée ou décochée |
|
|
|
* @param event case cochée ou décochée |
|
|
|