|
|
|
@ -63,6 +63,8 @@ export class EpTableComponent implements OnInit{ |
|
|
|
|
|
|
|
|
|
dataSource : MatTableDataSource<EpInformationDTO>; |
|
|
|
|
|
|
|
|
|
@Input() idCollaborateur : string; |
|
|
|
|
|
|
|
|
|
@Input() typeRechercheEP : string; |
|
|
|
|
|
|
|
|
|
@Input() displayedColumns: string[]; |
|
|
|
@ -98,10 +100,52 @@ export class EpTableComponent implements OnInit{ |
|
|
|
|
this.getEPEnCours(); |
|
|
|
|
break; |
|
|
|
|
case epTypeRecherche.EPSignes: |
|
|
|
|
this.getEPEnSignes(); |
|
|
|
|
this.getEPSignes(); |
|
|
|
|
break; |
|
|
|
|
case epTypeRecherche.RechercheEPReferentEnCours: |
|
|
|
|
this.getEPEnCoursReferent(); |
|
|
|
|
break; |
|
|
|
|
case epTypeRecherche.RechercheEPReferentSignes: |
|
|
|
|
this.getEPSignesReferent(); |
|
|
|
|
break; |
|
|
|
|
case epTypeRecherche.RechercheEPCollaborateursSignes: |
|
|
|
|
this.getEpsignesCollaborateur(); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getEpsignesCollaborateur() { |
|
|
|
|
this.epSubscription = this.epService.getEPSignesCollaborateur(this.idCollaborateur).subscribe( |
|
|
|
|
eps => this.dataSource = new MatTableDataSource(eps), |
|
|
|
|
err => console.log(err), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getEPSignesReferent() { |
|
|
|
|
this.epSubscription = this.epService.getEPSignesReferent(this.idCollaborateur, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin).subscribe( |
|
|
|
|
eps => { |
|
|
|
|
this.dataSource = new MatTableDataSource(eps); |
|
|
|
|
this.epCountSubscription = this.epService.getEPSignesReferentCount(this.idCollaborateur, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin).subscribe( |
|
|
|
|
count => this.taille = count, |
|
|
|
|
err => console.log(err) |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
err => console.log(err) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getEPEnCoursReferent() { |
|
|
|
|
this.epSubscription = this.epService.getEPEnCoursReferent(this.idCollaborateur, this.asc, this.numPage, this.parPage, this.search, this.tri, true, this.dateDebut, this.dateFin ).subscribe( |
|
|
|
|
eps => { |
|
|
|
|
this.dataSource = new MatTableDataSource(eps); |
|
|
|
|
this.epCountSubscription = this.epService.getEPSignesReferentCount(this.idCollaborateur, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin ).subscribe( |
|
|
|
|
count => this.taille = count, |
|
|
|
|
err => console.log(err) |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
err => console.log(err) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getEPEnCours() { |
|
|
|
@ -128,7 +172,7 @@ export class EpTableComponent implements OnInit{ |
|
|
|
|
return estEnAttente(statut); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getEPEnSignes() { |
|
|
|
|
getEPSignes() { |
|
|
|
|
this.epSubscription = this.epService.getEPSignes(this.busIds, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin).subscribe( |
|
|
|
|
eps => { |
|
|
|
|
console.log(eps); |
|
|
|
|