Compare commits

..

4 Commits

  1. 6
      src/app/ep/details-ep/details-ep.component.css
  2. 54
      src/app/ep/details-ep/details-ep.component.html
  3. 14
      src/app/ep/details-ep/details-ep.component.ts
  4. 5
      src/app/ep/details-ep/ep-choix-date/ep-choix-date.component.css
  5. 9
      src/app/ep/details-ep/ep-choix-date/ep-choix-date.component.html
  6. 16
      src/app/ep/details-ep/ep-choix-date/ep-choix-date.component.ts
  7. 1
      src/app/ep/details-ep/ep-commentaire-assistant/ep-commentaire-assistant.component.html
  8. 16
      src/app/ep/details-ep/ep-commentaire-assistant/ep-commentaire-assistant.component.ts
  9. 14
      src/app/ep/details-ep/ep-commentaires-assistant/ep-commentaires-assistant.component.html
  10. 17
      src/app/ep/details-ep/ep-commentaires-assistant/ep-commentaires-assistant.component.ts
  11. 16
      src/app/ep/details-ep/ep-demande-delegation/ep-demande-delegation.component.html
  12. 14
      src/app/ep/details-ep/ep-demande-delegation/ep-demande-delegation.component.ts
  13. 7
      src/app/ep/details-ep/ep-demandes-formation/ep-demandes-formation.component.ts
  14. 8
      src/app/ep/details-ep/ep-engagements/ep-engagements.component.html
  15. 15
      src/app/ep/details-ep/ep-engagements/ep-engagements.component.ts
  16. 14
      src/app/ep/details-ep/ep-objectifs/ep-objectifs.component.css
  17. 21
      src/app/ep/details-ep/ep-objectifs/ep-objectifs.component.html
  18. 19
      src/app/ep/details-ep/ep-objectifs/ep-objectifs.component.ts
  19. 12
      src/app/ep/details-ep/ep-participants/ep-participants.component.html
  20. 12
      src/app/ep/details-ep/ep-participants/ep-participants.component.ts
  21. 40
      src/app/ep/details-ep/ep-propositions-dates/ep-propositions-dates.component.html
  22. 36
      src/app/ep/details-ep/ep-propositions-dates/ep-propositions-dates.component.ts
  23. 15
      src/app/ep/ep.module.ts
  24. 2
      src/app/home/home-collaborateur/home-collaborateur.component.ts
  25. 2
      src/app/home/home-commercial/home-commercial.component.ts
  26. 7
      src/app/shared/angular-material/angular-material.module.ts
  27. 209
      src/app/shared/api-swagger/api/ep.service.ts
  28. 7
      src/app/shared/api-swagger/model/commentaireAssistantDTO.ts
  29. 4
      src/app/shared/api-swagger/model/epDTO.ts
  30. 11
      src/app/shared/api-swagger/model/etatDemande.ts
  31. 12
      src/app/shared/api-swagger/model/statutObjectif.ts
  32. 5
      src/app/shared/mat-tables/engagements-table/engagements-table.ts
  33. 8
      src/app/shared/mat-tables/ep-table/ep-table.ts

@ -1,4 +1,4 @@
.saisie {
/*.saisie {
overflow-y: scroll;
height: 60%;
}
height: 100%;
}*/

@ -1,22 +1,22 @@
<app-nav-menu></app-nav-menu>
<div class="detailsep">
<p> Collaborateur : NOM PRENOM (AGENCE) <button mat-stroked-button>Accéder au détails</button></p>
<p> Référent : NOM PRENOM </p>
<p> Entretien le : dd/MM/yyyy</p>
<p> EPA</p>
<div *ngIf="ep!=undefined" class="detailsep">
<p> Collaborateur : {{ep.collaborateur.nom}} {{ep.collaborateur.prenom}} ({{ep.collaborateur.businessUnit.nom}}) <button mat-stroked-button [routerLink]="['/collaborateurs',ep.collaborateur.id]">Accéder au détails collaborateur</button></p>
<p> Référent : {{ep.referent.nom}} {{ep.referent.prenom}} </p>
<p> Entretien le : {{ep.datePrevisionnelle | date: 'dd/MM/yyyy'}}</p>
<p> Statut : {{afficherTypeEP(ep.statut)}}</p>
<button mat-raised-button color="primary" title="Valider le déroulement de l'entretien">Valider entretien</button>
<button mat-raised-button color="primary" title="Signer l'EP">Signer</button>
<mat-tab-group mat-align-tabs="start">
<mat-tab label="Les objectifs">
<ep-objectifs [ep]="ep"></ep-objectifs>
</mat-tab>
<mat-tab label="La saisie">
<mat-vertical-stepper class="saisie" linear #stepper>
<mat-step label="Les objectifs précédents" completed="true">
</mat-step>
<mat-step label="Mission/Projet" completed="true">
</mat-step>
@ -33,19 +33,7 @@
</mat-step>
<mat-step label="Objectifs" completed="true">
</mat-step>
<mat-step label="Engagements" completed="true">
</mat-step>
<mat-step label="Demandes de formation" completed="true">
</mat-step>
<mat-step label="Demande d'augmentation salaire" completed="true">
</mat-step>
@ -59,34 +47,36 @@
</mat-step>
</mat-vertical-stepper>
</mat-tab>
<mat-tab label="Les engagements">
<ep-engagements [engagements]="ep.engagements"></ep-engagements>
</mat-tab>
<mat-tab label="Les demandes de formation"></mat-tab>
<mat-tab label="Commentaire assistant">
Ajout et consultation des commentaires (pour les assistants)
<ep-commentaires-assistant [ep]="ep"></ep-commentaires-assistant>
</mat-tab>
<mat-tab label="Choix de dates">
Le collaborateur choisi une date parmi la liste des dates proposés (collaborateur)
<ep-choix-date [rdvsEntretien]="ep.propositionsEntretien"></ep-choix-date>
</mat-tab>
<mat-tab label="Proposition de date">
Le référent propose trois dates d'entretien (référent)
<ep-propositions-dates [choixTypeEntretien]="ep.choixTypeEntretien"></ep-propositions-dates>
</mat-tab>
<mat-tab label="Demande délégation">
Effectuer une demande de délégation (Assistant et référent)
<ep-demande-delegation [demande]="ep.demandesDelegation"></ep-demande-delegation>
</mat-tab>
<mat-tab label="Les participants">
Ajouter et enlever des participants (Assistants et référent)
<ep-participants [ep]="ep"></ep-participants>
</mat-tab>
</mat-tab-group>
</div>
<ng-container *ngIf="ep==undefined">
<mat-spinner></mat-spinner>
</ng-container>
<!--
<ng-container *ngIf="ep == undefined" >

@ -1,6 +1,6 @@
import { Component, OnInit } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { EpDTO, EpService } from "@shared/api-swagger";
import { affichageStatut, EpDTO, EpService, StatutEp } from "@shared/api-swagger";
import { AuthService } from "@shared/auth/auth.service";
import { Role } from "@shared/utils/roles";
import { Subscription } from "rxjs";
@ -25,11 +25,17 @@ export class DetailsEPComponent implements OnInit {
}
ngOnInit() {
/*
this.idEp = this.route.snapshot.paramMap.get("id");
this.epSubscription = this.epService.getEPById(this.idEp).subscribe(
ep => this.ep = ep,
ep => {
this.ep = ep;
console.log(this.ep);
},
err => console.log(err)
);*/
);
}
afficherTypeEP(statutEP: StatutEp) {
return affichageStatut(statutEP);
}
}

@ -0,0 +1,5 @@
.radio-rdv {
display: flex;
flex-direction: column;
margin-bottom: 15px;
}

@ -1 +1,8 @@
<h1>Consultation choix date</h1>
<h3>Choisir une date</h3>
<mat-radio-group class="radio-rdv" [(ngModel)]="choixRdv">
<mat-radio-button *ngFor="let rdv of rdvsEntretien" [value]="rdv">
{{rdv.typeEntretien.libelle}} le {{rdv.dateEntretien | date : 'dd/MM/yyyy à hh:mm'}}
</mat-radio-button>
</mat-radio-group>
<button mat-raised-button color="primary">Valider le choix</button>

@ -1,16 +1,16 @@
import { Component, OnInit } from '@angular/core';
import { Component, Input } from '@angular/core';
import { RDVEntretienDTO } from '@shared/api-swagger';
/**
* Composant qui permet au collaborateur de faire un choix parmi les date proposées
*/
@Component({
selector: 'app-ep-choix-date',
templateUrl: './ep-choix-date.component.html'
selector: 'ep-choix-date',
templateUrl: './ep-choix-date.component.html',
styleUrls: ["ep-choix-date.component.css"]
})
export class EpChoixDateComponent implements OnInit {
export class EpChoixDateComponent {
@Input() rdvsEntretien : Array<RDVEntretienDTO>;
choixRdv : RDVEntretienDTO;
constructor() {}
ngOnInit() {
}
}

@ -1,16 +0,0 @@
import { Component, OnInit } from '@angular/core';
/**
* Composant pour permettre au référent d'ajouter son commentaire et à tous les participants de le consulter
*/
@Component({
selector: 'app-ep-commentaire-assistant',
templateUrl: './ep-commentaire-assistant.component.html'
})
export class EpCommentaireAssistantComponent implements OnInit {
constructor() {}
ngOnInit() {
}
}

@ -0,0 +1,14 @@
<ng-container *ngIf="ep.commentairesAssistant == undefined || ep.commentairesAssistant == []">
Aucun commentaire assistant
</ng-container>
<ng-container *ngIf="ep.commentairesAssistant != undefined && ep.commentairesAssistant != []">
Liste des commentaires assistants :
<ul>
<li *ngFor="let commentaire of ep.commentairesAssistant">
<p>Assistant : {{commentaire.assistant}}</p>
<p>{{commentaire.commentaire}}</p>
</li>
</ul>
</ng-container>

@ -0,0 +1,17 @@
import { Component, Input } from '@angular/core';
import { EpDTO } from '@shared/api-swagger';
/**
* Composant pour permettre au référent d'ajouter son commentaire et à tous les participants de le consulter
*/
@Component({
selector: 'ep-commentaires-assistant',
templateUrl: './ep-commentaires-assistant.component.html'
})
export class EpCommentairesAssistantComponent {
@Input() ep : EpDTO;
constructor() {}
}

@ -1 +1,15 @@
<h1>Consultation demande delegation</h1>
<ng-container *ngIf="demande == undefined">
<h3>Aucune demande de délégation en cours</h3>
</ng-container>
<ng-container *ngIf="demande != undefined">
<h3>Demande de délégation en cours :</h3>
<p> Receveur : {{demande.referent.nom}} {{demande.referent.prenom}}</p>
<p> Date de la demande : {{demande.dateDemande | date: 'dd/MM/yyyy'}}</p>
<p> Raison de la demande : {{demande.raisonDemande }}</p>
<p> {{afficherEtatDemande(demande.etatDemande)}}</p>
<ng-container *ngIf="demande.etatDemande == etatDemande.Rejetee" >
<p> Date réponse : {{demande.dateReponse | date: 'dd/MM/yyyy'}}</p>
<p> Raison refus : {{demande.raisonRefus}} </p>
</ng-container>
</ng-container>

@ -1,16 +1,22 @@
import { Component, OnInit } from '@angular/core';
import { Component, Input} from '@angular/core';
import { AfficherEtatDemandeDelegation, DemandeDelegationDTO, EpDTO, EtatDemande } from '@shared/api-swagger';
/**
* Composant pour faire une demande de délégation et voir la dernière en cours
*/
@Component({
selector: 'app-ep-demande-delegation',
selector: 'ep-demande-delegation',
templateUrl: './ep-demande-delegation.component.html'
})
export class EpDemandeDelegationComponent implements OnInit {
export class EpDemandeDelegationComponent{
etatDemande : any = EtatDemande;
@Input() demande: DemandeDelegationDTO;
constructor() {}
ngOnInit() {
afficherEtatDemande(etat: EtatDemande) {
return AfficherEtatDemandeDelegation(etat);
}
}

@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
/**
* Composant pour ajouter et voir les demandes de formation
@ -7,10 +7,9 @@ import { Component, OnInit } from '@angular/core';
selector: 'app-ep-demandes-formation',
templateUrl: './ep-demandes-formation.component.html'
})
export class EpDemandesFormationComponent implements OnInit {
export class EpDemandesFormationComponent {
constructor() {}
ngOnInit() {
}
}

@ -0,0 +1,8 @@
<ng-container *ngIf="engagements == undefined || engagements == []">
<h3>Aucun engagements pris</h3>
</ng-container>
<ng-container *ngIf="engagements != undefined && engagements != []">
<engagements-table [displayedColumns]="displayedColumns" [estAffichageEP]="estAffichageEP" [engagementsSaisis]="engagements"></engagements-table>
</ng-container>

@ -0,0 +1,15 @@
import { Component, Input } from "@angular/core";
import { EngagementDTO } from "@shared/api-swagger";
@Component({
selector: "ep-engagements",
templateUrl: "./ep-engagements.component.html"
})
export class EpEngagementsCompenent {
@Input()engagements : EngagementDTO[];
displayedColumns : string[] = ["action", "dispositif", "modalite", "datelimite", "etat"];
estAffichageEP : boolean = true;
constructor(){}
}

@ -0,0 +1,14 @@
li {
margin-bottom: 1%;
}
.Atteint {
color: green
}
.NonAtteint{
color: red
}
.Partiel {
color: orange
}

@ -0,0 +1,21 @@
<ng-container *ngIf="ep.objectifs != undefined && ep.objectifs != []">
<h3>Nouveaux objectifs</h3>
<ul>
<li *ngFor= "let objectif of ep.objectifs; let index = index" >
Objectif {{index +1}} : {{objectif.libelle}}
</li>
</ul>
</ng-container>
<ng-container *ngIf="ep.objectifsPrecedent != undefined && ep.objectifsPrecedent != []">
<h3>Objectifs précédents</h3>
<ul>
<li *ngFor= "let objectif of ep.objectifsPrecedent; let index = index">
<p [ngClass]="objectif.statutObjectif"> Objectif {{index +1}} : {{objectif.libelle}} ({{afficherStatutObjectif(objectif.statutObjectif)}})</p>
<p *ngIf="objectif.commentaire != undefined && objectif.commentaire != ''"> Commentaire : {{objectif.commentaire}}</p>
</li>
</ul>
</ng-container>

@ -0,0 +1,19 @@
import { Component, Input } from "@angular/core";
import { afficherStatutObjectif, EpDTO, StatutObjectif } from "@shared/api-swagger";
@Component({
selector : "ep-objectifs",
templateUrl: "ep-objectifs.component.html",
styleUrls: ["ep-objectifs.component.css"]
})
export class EpObjectifsComponent {
@Input() ep : EpDTO;
constructor(){}
afficherStatutObjectif(statut: StatutObjectif) {
return afficherStatutObjectif(statut);
}
}

@ -1 +1,11 @@
<h1>Consultation participants </h1>
<ng-container *ngIf="ep.participants == undefined || ep.participants == []">
<h3> Aucun participant</h3>
</ng-container>
<ng-container *ngIf="ep.participants != undefined && ep.participants != []">
<ul>
<li *ngFor=" let participant of ep.participants">
{{participant.participant}}
</li>
</ul>
</ng-container>

@ -1,16 +1,16 @@
import { Component, OnInit } from '@angular/core';
import { Component, Input, OnInit } from '@angular/core';
import { EpDTO } from '@shared/api-swagger';
/**
* Composant pour afficher la liste des participants de l'EP
*/
@Component({
selector: 'app-ep-participants',
selector: 'ep-participants',
templateUrl: './ep-participants.component.html'
})
export class EpParticipantsComponent implements OnInit {
export class EpParticipantsComponent {
constructor() {}
@Input() ep : EpDTO;
ngOnInit() {
}
constructor() {}
}

@ -1 +1,39 @@
<h1>Saisie propositions dates</h1>
<h3>Proposer au moins une date</h3>
<mat-chip-list>
Préférences du collaborateur :
<mat-chip *ngFor="let choix of choixTypeEntretien; let index = index">
N°{{index+1}} {{choix.libelle}}
</mat-chip>
</mat-chip-list>
<ng-container *ngIf="propositionsRdvEntretien.length != nbPropositionMax ">
<div>
<mat-form-field>
<input matInput [(ngModel)]="dateProposee" [ngxMatDatetimePicker]="dateProposeePicker" placeholder="Proposer une date" [min]="dateMin">
<mat-datepicker-toggle matSuffix [for]="dateProposeePicker"> </mat-datepicker-toggle>
<ngx-mat-datetime-picker #dateProposeePicker></ngx-mat-datetime-picker>
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Choisir le type d'entretien</mat-label>
<mat-select [(value)]="choixEntretien">
<mat-option></mat-option>
<mat-option *ngFor="let choix of choixTypeEntretien; let index = index" [value]="choix">N°{{index+1}} {{choix.libelle}}</mat-option>
</mat-select>
</mat-form-field>
<p *ngIf="choixEntretien != undefined">Choix : {{choixEntretien.libelle}}</p>
</div>
<div>
<button mat-raised-button (click)="enregistrerChoix()">Ajouter proposition</button>
</div>
</ng-container>
<ul>
<li *ngFor="let proposition of propositionsRdvEntretien; let index = index">
Proposition {{index+1}} : {{proposition.typeEntretien.libelle.toLowerCase()}} le {{proposition.dateEntretien | date : "dd/MM/yyyy à hh:mm"}}
<mat-icon (click)="annulerProposition(proposition)">delete</mat-icon>
</li>
</ul>
<button mat-raised-button color="primary">Valider les dates proposés</button>

@ -1,16 +1,42 @@
import { Component, OnInit } from '@angular/core';
import { Component, Input } from '@angular/core';
import { RDVEntretienDTO, TypeEntretienDTO } from '@shared/api-swagger';
/**
* Composant permettant au référent de proposer ses dates d'EP à partir des préférences de lieu d'entretien du collaborateur
*/
@Component({
selector: 'app-ep-propositions-dates',
selector: 'ep-propositions-dates',
templateUrl: './ep-propositions-dates.component.html'
})
export class EpPropositionsDatesComponent implements OnInit {
export class EpPropositionsDatesComponent {
nbPropositionMax = 3;
dateMin: Date;
dateProposee: Date;
choixEntretien : TypeEntretienDTO;
constructor() {}
@Input() choixTypeEntretien : Array<TypeEntretienDTO>;
ngOnInit() {
propositionsRdvEntretien : Array<RDVEntretienDTO> = [];
constructor() {
this.dateMin = new Date();
this.dateMin.setDate( this.dateMin.getDate() +1);
}
enregistrerChoix() {
if(this.dateProposee != undefined && this.choixEntretien != undefined) {
let rdv : RDVEntretienDTO = {
dateEntretien : this.dateProposee,
typeEntretien : this.choixEntretien
};
this.propositionsRdvEntretien.push(rdv);
this.dateProposee = undefined;
this.choixEntretien = undefined;
}
}
annulerProposition(proposition:RDVEntretienDTO) {
this.propositionsRdvEntretien = this.propositionsRdvEntretien.filter( p => p!= proposition);
}
}

@ -1,6 +1,6 @@
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FormsModule } from '@angular/forms';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { MaterialModule } from "@shared/angular-material/angular-material.module";
@ -13,13 +13,22 @@ import { EpRoutingModule } from './ep.routing.module';
import { MatTablesModule } from "@shared/mat-tables/mat-tables.module";
import { EpSignesComponent } from "./ep-signes/ep-signes.component";
import { DetailsEPComponent } from "./details-ep/details-ep.component";
import { EpObjectifsComponent } from "./details-ep/ep-objectifs/ep-objectifs.component";
import { EpParticipantsComponent } from "./details-ep/ep-participants/ep-participants.component";
import { EpDemandeDelegationComponent } from "./details-ep/ep-demande-delegation/ep-demande-delegation.component";
import { EpCommentairesAssistantComponent } from "./details-ep/ep-commentaires-assistant/ep-commentaires-assistant.component";
import { EpEngagementsCompenent } from "./details-ep/ep-engagements/ep-engagements.component";
import { EpPropositionsDatesComponent } from "./details-ep/ep-propositions-dates/ep-propositions-dates.component";
import { EpChoixDateComponent } from "./details-ep/ep-choix-date/ep-choix-date.component";
/**
* Module de l'ep
*/
@NgModule({
declarations: [
EpComponent, EpSignesComponent, DetailsEPComponent
EpComponent, EpSignesComponent, DetailsEPComponent, EpObjectifsComponent,
EpParticipantsComponent, EpDemandeDelegationComponent, EpCommentairesAssistantComponent,
EpEngagementsCompenent, EpPropositionsDatesComponent, EpChoixDateComponent
],
exports: [EpComponent, DetailsEPComponent
],
@ -30,6 +39,8 @@ import { DetailsEPComponent } from "./details-ep/details-ep.component";
RouterModule,
MatTablesModule,
CommonModule,
FormsModule,
ReactiveFormsModule
],
})
export class EpModule {}

@ -63,7 +63,7 @@ export class HomeCollaborateurComponent implements OnInit {
}
checkEPReferent() {
this.countEPReferent = this.epService.getEPEnCoursReferentCount(this.collaborateurConnecte.id, true, 1, 15, "", "", true, undefined, undefined).subscribe(
this.countEPReferent = this.epService.getEPEnCoursReferentCount(this.collaborateurConnecte.id, "", undefined, undefined).subscribe(
count => this.estReferentEPEnCours = count > 0,
err => console.log(err)
);

@ -45,7 +45,7 @@ export class HomeCommercialComponent implements OnInit {
}
checkEPReferent() {
this.countEPReferent = this.epService.getEPEnCoursReferentCount(this.collaborateurConnecte.id, true, 1, 15, "", "", true, undefined, undefined).subscribe(
this.countEPReferent = this.epService.getEPEnCoursReferentCount(this.collaborateurConnecte.id, "",undefined, undefined).subscribe(
count => this.estReferentEPEnCours = count > 0,
err => console.log(err)
);

@ -12,6 +12,7 @@ import {MatSortModule} from '@angular/material/sort';
import {MatListModule} from '@angular/material/list';
import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
import {MatTabsModule} from '@angular/material/tabs';
import {MatRadioModule} from '@angular/material/radio';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatDatepickerModule} from '@angular/material/datepicker';
import {MatNativeDateModule} from '@angular/material/core';
@ -39,7 +40,8 @@ import { NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateMod
NgxMatDatetimePickerModule, MatDatepickerModule,
NgxMatNativeDateModule, MatNativeDateModule, MatListModule,
MatCheckboxModule, MatSelectModule, MatStepperModule,
MatChipsModule, MatSnackBarModule, MatSlideToggleModule
MatChipsModule, MatSnackBarModule, MatSlideToggleModule,
MatRadioModule
],
exports : [MatCardModule,
MatButtonModule, MatMenuModule,
@ -50,7 +52,8 @@ import { NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateMod
NgxMatDatetimePickerModule, MatDatepickerModule,
NgxMatNativeDateModule, MatNativeDateModule, MatListModule,
MatCheckboxModule, MatSelectModule, MatStepperModule,
MatChipsModule, MatSnackBarModule, MatSlideToggleModule
MatChipsModule, MatSnackBarModule, MatSlideToggleModule,
MatRadioModule
]
})
export class MaterialModule {}

@ -2,7 +2,7 @@
* API du serveur de l'application de digitalisation des EP
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
*
* OpenAPI spec version: 1.3.6
* OpenAPI spec version: 1.3.7
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -10,24 +10,25 @@
* Do not edit the class manually.
*//* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent } from '@angular/common/http';
import { CustomHttpUrlEncodingCodec } from '../encoder';
import { CustomHttpUrlEncodingCodec } from '../encoder';
import { Observable } from 'rxjs';
import { Observable } from 'rxjs';
import { EpDTO } from '../model/epDTO';
import { EpInformationDTO } from '../model/epInformationDTO';
import { EpSaisieDTO } from '../model/epSaisieDTO';
import { ErreurDTO } from '../model/erreurDTO';
import { EpDTO } from '../model/epDTO';
import { EpInformationDTO } from '../model/epInformationDTO';
import { EpSaisieDTO } from '../model/epSaisieDTO';
import { ErreurDTO } from '../model/erreurDTO';
import { TypeEntretienDTO } from '../model/typeEntretienDTO';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@Injectable()
export class EpService {
@Injectable()
export class EpService {
protected basePath = 'https://localhost:44393/api';
public defaultHeaders = new HttpHeaders();
@ -470,19 +471,18 @@ export class EpService {
* @param idReferent Id d&#x27;un référent
* @param asc Indique si les données sont récupérées dans l&#x27;ordre croissant ou non
* @param numPage Numéro de la page du tableau à afficher
* @param parPAge Nombre délément maximum à afficher dans le tableau
* @param parPage Nombre délément maximum à afficher dans le tableau
* @param texte Texte permettant de filtrer les données
* @param tri Colonne du tableau sur lequel le tri devra être effectué
* @param epObligatoire Récupérer la liste des EP obligatoires
* @param dateDebut Date à partir de laquelle les données son récupérées
* @param dateFin Date jusqu&#x27;à laquelle les données sont récupérées
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<Array<EpInformationDTO>>;
public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpInformationDTO>>>;
public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpInformationDTO>>>;
public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<Array<EpInformationDTO>>;
public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpInformationDTO>>>;
public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpInformationDTO>>>;
public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
if (idReferent === null || idReferent === undefined) {
throw new Error('Required parameter idReferent was null or undefined when calling getEPEnCoursReferent.');
@ -495,7 +495,6 @@ export class EpService {
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
if (asc !== undefined && asc !== null) {
queryParameters = queryParameters.set('asc', <any>asc);
@ -503,8 +502,8 @@ export class EpService {
if (numPage !== undefined && numPage !== null) {
queryParameters = queryParameters.set('numPage', <any>numPage);
}
if (parPAge !== undefined && parPAge !== null) {
queryParameters = queryParameters.set('parPAge', <any>parPAge);
if (parPage !== undefined && parPage !== null) {
queryParameters = queryParameters.set('parPage', <any>parPage);
}
if (texte !== undefined && texte !== null) {
queryParameters = queryParameters.set('texte', <any>texte);
@ -512,9 +511,6 @@ export class EpService {
if (tri !== undefined && tri !== null) {
queryParameters = queryParameters.set('tri', <any>tri);
}
if (epObligatoire !== undefined && epObligatoire !== null) {
queryParameters = queryParameters.set('epObligatoire', <any>epObligatoire);
}
if (dateDebut !== undefined && dateDebut !== null) {
queryParameters = queryParameters.set('dateDebut', <any>dateDebut.toISOString());
}
@ -559,21 +555,16 @@ export class EpService {
*
* Récupérer le nombre total de prochains EP dun référent.
* @param idReferent Id d&#x27;un référent
* @param asc Indique si les données sont récupérées dans l&#x27;ordre croissant ou non
* @param numPage Numéro de la page du tableau à afficher
* @param parPAge Nombre délément maximum à afficher dans le tableau
* @param texte Texte permettant de filtrer les données
* @param tri Colonne du tableau sur lequel le tri devra être effectué
* @param epObligatoire Récupérer la liste des EP obligatoires
* @param dateDebut Date à partir de laquelle les données son récupérées
* @param dateFin Date jusqu&#x27;à laquelle les données sont récupérées
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getEPEnCoursReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<number>;
public getEPEnCoursReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<number>>;
public getEPEnCoursReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<number>>;
public getEPEnCoursReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
public getEPEnCoursReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<number>;
public getEPEnCoursReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<number>>;
public getEPEnCoursReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<number>>;
public getEPEnCoursReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
if (idReferent === null || idReferent === undefined) {
throw new Error('Required parameter idReferent was null or undefined when calling getEPEnCoursReferentCount.');
@ -582,30 +573,10 @@ export class EpService {
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
if (asc !== undefined && asc !== null) {
queryParameters = queryParameters.set('asc', <any>asc);
}
if (numPage !== undefined && numPage !== null) {
queryParameters = queryParameters.set('numPage', <any>numPage);
}
if (parPAge !== undefined && parPAge !== null) {
queryParameters = queryParameters.set('parPAge', <any>parPAge);
}
if (texte !== undefined && texte !== null) {
queryParameters = queryParameters.set('texte', <any>texte);
}
if (tri !== undefined && tri !== null) {
queryParameters = queryParameters.set('tri', <any>tri);
}
if (epObligatoire !== undefined && epObligatoire !== null) {
queryParameters = queryParameters.set('epObligatoire', <any>epObligatoire);
}
if (dateDebut !== undefined && dateDebut !== null) {
queryParameters = queryParameters.set('dateDebut', <any>dateDebut.toISOString());
}
@ -748,7 +719,7 @@ export class EpService {
* @param idBUs liste des ids des BU auxquelles les données sont rattachées
* @param asc Indique si les données sont récupérées dans l&#x27;ordre croissant ou non
* @param numPage Numéro de la page du tableau à afficher
* @param parPAge Nombre délément maximum à afficher dans le tableau
* @param parPage Nombre délément maximum à afficher dans le tableau
* @param texte Texte permettant de filtrer les données
* @param tri Colonne du tableau sur lequel le tri devra être effectué
* @param dateDebut Date à partir de laquelle les données son récupérées
@ -756,10 +727,10 @@ export class EpService {
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getEPSignes(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<Array<EpInformationDTO>>;
public getEPSignes(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpInformationDTO>>>;
public getEPSignes(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpInformationDTO>>>;
public getEPSignes(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
public getEPSignes(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<Array<EpInformationDTO>>;
public getEPSignes(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpInformationDTO>>>;
public getEPSignes(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpInformationDTO>>>;
public getEPSignes(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
@ -781,8 +752,8 @@ export class EpService {
if (numPage !== undefined && numPage !== null) {
queryParameters = queryParameters.set('numPage', <any>numPage);
}
if (parPAge !== undefined && parPAge !== null) {
queryParameters = queryParameters.set('parPAge', <any>parPAge);
if (parPage !== undefined && parPage !== null) {
queryParameters = queryParameters.set('parPage', <any>parPage);
}
if (texte !== undefined && texte !== null) {
queryParameters = queryParameters.set('texte', <any>texte);
@ -882,24 +853,16 @@ export class EpService {
*
* Récupérer le nombre total dEP signés.
* @param idBUs liste des ids des BU auxquelles les données sont rattachées
* @param asc Indique si les données sont récupérées dans l&#x27;ordre croissant ou non
* @param numPage Numéro de la page du tableau à afficher
* @param parPAge Nombre délément maximum à afficher dans le tableau
* @param texte Texte permettant de filtrer les données
* @param tri Colonne du tableau sur lequel le tri devra être effectué
* @param dateDebut Date à partir de laquelle les données son récupérées
* @param dateFin Date jusqu&#x27;à laquelle les données sont récupérées
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getEPSignesCount(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<number>;
public getEPSignesCount(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<number>>;
public getEPSignesCount(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<number>>;
public getEPSignesCount(idBUs?: Array<number>, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
public getEPSignesCount(idBUs?: Array<number>, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<number>;
public getEPSignesCount(idBUs?: Array<number>, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<number>>;
public getEPSignesCount(idBUs?: Array<number>, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<number>>;
public getEPSignesCount(idBUs?: Array<number>, texte?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
@ -911,21 +874,9 @@ export class EpService {
queryParameters = queryParameters.append('idBUs', <any>element);
})
}
if (asc !== undefined && asc !== null) {
queryParameters = queryParameters.set('asc', <any>asc);
}
if (numPage !== undefined && numPage !== null) {
queryParameters = queryParameters.set('numPage', <any>numPage);
}
if (parPAge !== undefined && parPAge !== null) {
queryParameters = queryParameters.set('parPAge', <any>parPAge);
}
if (texte !== undefined && texte !== null) {
queryParameters = queryParameters.set('texte', <any>texte);
}
if (tri !== undefined && tri !== null) {
queryParameters = queryParameters.set('tri', <any>tri);
}
if (dateDebut !== undefined && dateDebut !== null) {
queryParameters = queryParameters.set('dateDebut', <any>dateDebut.toISOString());
}
@ -972,7 +923,7 @@ export class EpService {
* @param idReferent Id d&#x27;un référent
* @param asc Indique si les données sont récupérées dans l&#x27;ordre croissant ou non
* @param numPage Numéro de la page du tableau à afficher
* @param parPAge Nombre délément maximum à afficher dans le tableau
* @param parPage Nombre délément maximum à afficher dans le tableau
* @param texte Texte permettant de filtrer les données
* @param tri Colonne du tableau sur lequel le tri devra être effectué
* @param dateDebut Date à partir de laquelle les données son récupérées
@ -980,10 +931,10 @@ export class EpService {
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<Array<EpInformationDTO>>;
public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpInformationDTO>>>;
public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpInformationDTO>>>;
public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<Array<EpInformationDTO>>;
public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpInformationDTO>>>;
public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpInformationDTO>>>;
public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
if (idReferent === null || idReferent === undefined) {
throw new Error('Required parameter idReferent was null or undefined when calling getEPSignesReferent.');
@ -1003,8 +954,8 @@ export class EpService {
if (numPage !== undefined && numPage !== null) {
queryParameters = queryParameters.set('numPage', <any>numPage);
}
if (parPAge !== undefined && parPAge !== null) {
queryParameters = queryParameters.set('parPAge', <any>parPAge);
if (parPage !== undefined && parPage !== null) {
queryParameters = queryParameters.set('parPage', <any>parPage);
}
if (texte !== undefined && texte !== null) {
queryParameters = queryParameters.set('texte', <any>texte);
@ -1056,20 +1007,16 @@ export class EpService {
*
* Récupérer le nombre total dEP signés quun référent à fait passer.
* @param idReferent Id d&#x27;un référent
* @param asc Indique si les données sont récupérées dans l&#x27;ordre croissant ou non
* @param numPage Numéro de la page du tableau à afficher
* @param parPAge Nombre délément maximum à afficher dans le tableau
* @param texte Texte permettant de filtrer les données
* @param tri Colonne du tableau sur lequel le tri devra être effectué
* @param dateDebut Date à partir de laquelle les données son récupérées
* @param dateFin Date jusqu&#x27;à laquelle les données sont récupérées
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getEPSignesReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<number>;
public getEPSignesReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<number>>;
public getEPSignesReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<number>>;
public getEPSignesReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
public getEPSignesReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable<number>;
public getEPSignesReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<number>>;
public getEPSignesReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<number>>;
public getEPSignesReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
if (idReferent === null || idReferent === undefined) {
throw new Error('Required parameter idReferent was null or undefined when calling getEPSignesReferentCount.');
@ -1078,26 +1025,10 @@ export class EpService {
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
if (asc !== undefined && asc !== null) {
queryParameters = queryParameters.set('asc', <any>asc);
}
if (numPage !== undefined && numPage !== null) {
queryParameters = queryParameters.set('numPage', <any>numPage);
}
if (parPAge !== undefined && parPAge !== null) {
queryParameters = queryParameters.set('parPAge', <any>parPAge);
}
if (texte !== undefined && texte !== null) {
queryParameters = queryParameters.set('texte', <any>texte);
}
if (tri !== undefined && tri !== null) {
queryParameters = queryParameters.set('tri', <any>tri);
}
if (dateDebut !== undefined && dateDebut !== null) {
queryParameters = queryParameters.set('dateDebut', <any>dateDebut.toISOString());
}
@ -1186,6 +1117,49 @@ export class EpService {
);
}
/**
*
* Récupérer la liste des types d&#x27;entretiens EP possible
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getTypesEntretien(observe?: 'body', reportProgress?: boolean): Observable<Array<TypeEntretienDTO>>;
public getTypesEntretien(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<TypeEntretienDTO>>>;
public getTypesEntretien(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<TypeEntretienDTO>>>;
public getTypesEntretien(observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
let headers = this.defaultHeaders;
// authentication (bearerAuth) required
if (this.configuration.accessToken) {
const accessToken = typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
let httpHeaderAccepts: string[] = [
'application/json'
];
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [
];
return this.httpClient.request<Array<TypeEntretienDTO>>('get',`${this.basePath}/typesentretien`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Effectuer un rappel de signature.
@ -1352,4 +1326,5 @@ export class EpService {
);
}
}
}

@ -2,7 +2,7 @@
* API du serveur de l'application de digitalisation des EP
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
*
* OpenAPI spec version: 1.3.6
* OpenAPI spec version: 1.3.7
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -13,7 +13,7 @@
/**
* DTO contenant le commentaire d'un assistant sur l'EP.
*/
export interface CommentaireAssistantDTO {
export interface CommentaireAssistantDTO {
/**
* Id du commentaire assistant
*/
@ -21,7 +21,8 @@ export interface CommentaireAssistantDTO {
/**
* Id de l'assistant qui a écrit le commentaire
*/
idAssistante?: string;
idAssistant: string;
assistant?: string;
/**
* Le commentaire de lassistant
*/

@ -61,7 +61,7 @@ export interface EpDTO {
cv: string;
propositionsEntretien?: Array<RDVEntretienDTO>;
rdvEntretien?: RDVEntretienDTO;
choixTypeEntretien?: TypeEntretienDTO;
choixTypeEntretien?: Array<TypeEntretienDTO>;
/**
* Indique si oui ou non l'EP doit obligatoirement être effectué
*/
@ -74,7 +74,7 @@ export interface EpDTO {
participants?: Array<ParticipationEPDTO>;
engagements?: Array<EngagementDTO>;
augmentationSalaire?: AugmentationSalaireDTO;
demandesDelegation?: Array<DemandeDelegationDTO>;
demandesDelegation?: DemandeDelegationDTO;
demandeEPI?: DemandeEPIDTO;
documents: Array<DocumentDTO>;
commentairesAssistant?: Array<CommentaireAssistantDTO>;

@ -20,3 +20,14 @@ export const EtatDemande = {
Validee: 'Validee' as EtatDemande,
Rejetee: 'Rejetee' as EtatDemande
};
export function AfficherEtatDemandeDelegation(etat: EtatDemande) {
switch(etat) {
case EtatDemande.Rejetee :
return "Demande rejetée";
case EtatDemande.Validee:
return "Demande acceptée";
case EtatDemande.EnAttente:
return "Demande en attente";
}
}

@ -20,3 +20,15 @@ export const StatutObjectif = {
Partiel: 'Partiel' as StatutObjectif,
NonAtteint: 'NonAtteint' as StatutObjectif
};
export function afficherStatutObjectif(statut : StatutObjectif) {
switch(statut) {
case StatutObjectif.Atteint:
return "Objectif atteint";
case StatutObjectif.NonAtteint:
return "Objectif non atteint";
case StatutObjectif.Partiel:
return "Objectif partiellement atteint";
}
}

@ -77,6 +77,9 @@ export class EngagementTableComponent implements OnInit {
* Liste des colonnes du tableau à afficher.
*/
@Input() displayedColumns : string[] = [];
/**
* True si il s'agit d'une liste d'engagement affichés lors de la saisie EP référent ou de l'affichage des détails EP
*/
@Input() estAffichageEP: boolean = false;
@Input() engagementsSaisis: EngagementDTO[] = [];
@ -92,7 +95,9 @@ export class EngagementTableComponent implements OnInit {
ngOnInit() {
if(this.estAffichageEP) {
this.taille = this.engagementsSaisis.length;
this.parPage = this.taille;
this.dataSource = new MatTableDataSource(this.engagementsSaisis);
this.chargement = false;
}
else
this.setBUsId();

@ -133,7 +133,7 @@ export class EpTableComponent implements OnInit{
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(
this.epCountSubscription = this.epService.getEPSignesReferentCount(this.idCollaborateur, this.search, this.dateDebut, this.dateFin).subscribe(
count => this.taille = count,
err => console.log(err)
);
@ -143,10 +143,10 @@ export class EpTableComponent implements OnInit{
}
getEPEnCoursReferent() {
this.epSubscription = this.epService.getEPEnCoursReferent(this.idCollaborateur, this.asc, this.numPage, this.parPage, this.search, this.tri, true, this.dateDebut, this.dateFin ).subscribe(
this.epSubscription = this.epService.getEPEnCoursReferent(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(
this.epCountSubscription = this.epService.getEPSignesReferentCount(this.idCollaborateur, this.search, this.dateDebut, this.dateFin ).subscribe(
count => this.taille = count,
err => console.log(err)
);
@ -185,7 +185,7 @@ export class EpTableComponent implements OnInit{
eps => {
console.log(eps);
this.dataSource = new MatTableDataSource(eps);
this.epCountSubscription = this.epService.getEPSignesCount(this.busIds, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin).subscribe(
this.epCountSubscription = this.epService.getEPSignesCount(this.busIds, this.search, this.dateDebut, this.dateFin).subscribe(
count => this.taille = count,
err => console.log(err)
);

Loading…
Cancel
Save