Compare commits

..

No commits in common. '1c41609db7bc3745608665e33cf2cdf015aa4aa6' and '1fc5aa7752269a59953f829c5eb8e3bac515e3c6' have entirely different histories.

  1. 6
      src/app/ep/details-ep/details-ep.component.css
  2. 56
      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. 3
      src/app/ep/details-ep/ep-demandes-formation/ep-demandes-formation.component.html
  14. 13
      src/app/ep/details-ep/ep-demandes-formation/ep-demandes-formation.component.ts
  15. 8
      src/app/ep/details-ep/ep-engagements/ep-engagements.component.html
  16. 15
      src/app/ep/details-ep/ep-engagements/ep-engagements.component.ts
  17. 14
      src/app/ep/details-ep/ep-objectifs/ep-objectifs.component.css
  18. 21
      src/app/ep/details-ep/ep-objectifs/ep-objectifs.component.html
  19. 19
      src/app/ep/details-ep/ep-objectifs/ep-objectifs.component.ts
  20. 12
      src/app/ep/details-ep/ep-participants/ep-participants.component.html
  21. 12
      src/app/ep/details-ep/ep-participants/ep-participants.component.ts
  22. 40
      src/app/ep/details-ep/ep-propositions-dates/ep-propositions-dates.component.html
  23. 36
      src/app/ep/details-ep/ep-propositions-dates/ep-propositions-dates.component.ts
  24. 17
      src/app/ep/ep.module.ts
  25. 2
      src/app/home/home-commercial/home-commercial.component.ts
  26. 7
      src/app/shared/angular-material/angular-material.module.ts
  27. 73
      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. 11
      src/app/shared/mat-tables/demandes-formation-table/demandes-formation.table.html
  33. 2
      src/app/shared/mat-tables/demandes-formation-table/demandes-formation.table.ts
  34. 5
      src/app/shared/mat-tables/engagements-table/engagements-table.ts

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

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

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

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

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

@ -0,0 +1,16 @@
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() {
}
}

@ -1,14 +0,0 @@
<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>

@ -1,17 +0,0 @@
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,15 +1 @@
<ng-container *ngIf="demande == undefined"> <h1>Consultation demande delegation</h1>
<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,22 +1,16 @@
import { Component, Input} from '@angular/core'; import { Component, OnInit } 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 * Composant pour faire une demande de délégation et voir la dernière en cours
*/ */
@Component({ @Component({
selector: 'ep-demande-delegation', selector: 'app-ep-demande-delegation',
templateUrl: './ep-demande-delegation.component.html' templateUrl: './ep-demande-delegation.component.html'
}) })
export class EpDemandeDelegationComponent{ export class EpDemandeDelegationComponent implements OnInit {
etatDemande : any = EtatDemande;
@Input() demande: DemandeDelegationDTO;
constructor() {} constructor() {}
afficherEtatDemande(etat: EtatDemande) { ngOnInit() {
return AfficherEtatDemandeDelegation(etat);
} }
} }

@ -1,2 +1 @@
<h3 *ngIf="demandesFormation == undefined || demandesFormation == []">Aucune demande de formation</h3> <h1>Consultation demandes formation</h1>
<demandes-formation-table *ngIf="demandesFormation != undefined && demandesFormation != []" [displayedColumns]="displayedColumns" [estAffichageEP]="estAffichageEP" [demandesFormation]="demandesFormation" ></demandes-formation-table>

@ -1,19 +1,16 @@
import { Component, Input } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { DemandeFormationDTO } from '@shared/api-swagger';
/** /**
* Composant pour ajouter et voir les demandes de formation * Composant pour ajouter et voir les demandes de formation
*/ */
@Component({ @Component({
selector: 'ep-demandes-formation', selector: 'app-ep-demandes-formation',
templateUrl: './ep-demandes-formation.component.html' templateUrl: './ep-demandes-formation.component.html'
}) })
export class EpDemandesFormationComponent { export class EpDemandesFormationComponent implements OnInit {
@Input() demandesFormation : Array<DemandeFormationDTO>;
estAffichageEP : boolean = true;
displayedColumns : Array<string> = ["libelle", "description", "etat", "demanderh"];
constructor() {} constructor() {}
ngOnInit() {
}
} }

@ -1,8 +0,0 @@
<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>

@ -1,15 +0,0 @@
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(){}
}

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

@ -1,21 +0,0 @@
<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>

@ -1,19 +0,0 @@
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,11 +1 @@
<ng-container *ngIf="ep.participants == undefined || ep.participants == []"> <h1>Consultation participants </h1>
<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, Input, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { EpDTO } from '@shared/api-swagger';
/** /**
* Composant pour afficher la liste des participants de l'EP * Composant pour afficher la liste des participants de l'EP
*/ */
@Component({ @Component({
selector: 'ep-participants', selector: 'app-ep-participants',
templateUrl: './ep-participants.component.html' templateUrl: './ep-participants.component.html'
}) })
export class EpParticipantsComponent { export class EpParticipantsComponent implements OnInit {
@Input() ep : EpDTO;
constructor() {} constructor() {}
ngOnInit() {
}
} }

@ -1,39 +1 @@
<h3>Proposer au moins une date</h3> <h1>Saisie propositions dates</h1>
<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,42 +1,16 @@
import { Component, Input } from '@angular/core'; import { Component, OnInit } 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 * Composant permettant au référent de proposer ses dates d'EP à partir des préférences de lieu d'entretien du collaborateur
*/ */
@Component({ @Component({
selector: 'ep-propositions-dates', selector: 'app-ep-propositions-dates',
templateUrl: './ep-propositions-dates.component.html' templateUrl: './ep-propositions-dates.component.html'
}) })
export class EpPropositionsDatesComponent { export class EpPropositionsDatesComponent implements OnInit {
nbPropositionMax = 3;
dateMin: Date;
dateProposee: Date;
choixEntretien : TypeEntretienDTO;
@Input() choixTypeEntretien : Array<TypeEntretienDTO>; constructor() {}
propositionsRdvEntretien : Array<RDVEntretienDTO> = []; ngOnInit() {
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 { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common"; import { CommonModule } from "@angular/common";
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { MaterialModule } from "@shared/angular-material/angular-material.module"; import { MaterialModule } from "@shared/angular-material/angular-material.module";
@ -13,24 +13,13 @@ import { EpRoutingModule } from './ep.routing.module';
import { MatTablesModule } from "@shared/mat-tables/mat-tables.module"; import { MatTablesModule } from "@shared/mat-tables/mat-tables.module";
import { EpSignesComponent } from "./ep-signes/ep-signes.component"; import { EpSignesComponent } from "./ep-signes/ep-signes.component";
import { DetailsEPComponent } from "./details-ep/details-ep.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";
import { EpDemandesFormationComponent } from "./details-ep/ep-demandes-formation/ep-demandes-formation.component";
/** /**
* Module de l'ep * Module de l'ep
*/ */
@NgModule({ @NgModule({
declarations: [ declarations: [
EpComponent, EpSignesComponent, DetailsEPComponent, EpObjectifsComponent, EpComponent, EpSignesComponent, DetailsEPComponent
EpParticipantsComponent, EpDemandeDelegationComponent, EpCommentairesAssistantComponent,
EpEngagementsCompenent, EpPropositionsDatesComponent, EpChoixDateComponent,
EpDemandesFormationComponent
], ],
exports: [EpComponent, DetailsEPComponent exports: [EpComponent, DetailsEPComponent
], ],
@ -41,8 +30,6 @@ import { EpDemandesFormationComponent } from "./details-ep/ep-demandes-formation
RouterModule, RouterModule,
MatTablesModule, MatTablesModule,
CommonModule, CommonModule,
FormsModule,
ReactiveFormsModule
], ],
}) })
export class EpModule {} export class EpModule {}

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

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

@ -2,7 +2,7 @@
* API du serveur de l'application de digitalisation des EP * 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. * 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.7 * OpenAPI spec version: 1.3.6
* *
* *
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
@ -10,25 +10,24 @@
* Do not edit the class manually. * Do not edit the class manually.
*//* tslint:disable:no-unused-variable member-ordering */ *//* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams, import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent } from '@angular/common/http'; 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 { EpDTO } from '../model/epDTO';
import { EpInformationDTO } from '../model/epInformationDTO'; import { EpInformationDTO } from '../model/epInformationDTO';
import { EpSaisieDTO } from '../model/epSaisieDTO'; import { EpSaisieDTO } from '../model/epSaisieDTO';
import { ErreurDTO } from '../model/erreurDTO'; import { ErreurDTO } from '../model/erreurDTO';
import { TypeEntretienDTO } from '../model/typeEntretienDTO';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration'; import { Configuration } from '../configuration';
@Injectable() @Injectable()
export class EpService { export class EpService {
protected basePath = 'https://localhost:44393/api'; protected basePath = 'https://localhost:44393/api';
public defaultHeaders = new HttpHeaders(); public defaultHeaders = new HttpHeaders();
@ -1117,49 +1116,6 @@
); );
} }
/**
*
* 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. * Effectuer un rappel de signature.
@ -1326,5 +1282,4 @@
); );
} }
} }

@ -2,7 +2,7 @@
* API du serveur de l'application de digitalisation des EP * 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. * 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.7 * OpenAPI spec version: 1.3.6
* *
* *
* NOTE: This class is auto generated by the swagger code generator program. * 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. * DTO contenant le commentaire d'un assistant sur l'EP.
*/ */
export interface CommentaireAssistantDTO { export interface CommentaireAssistantDTO {
/** /**
* Id du commentaire assistant * Id du commentaire assistant
*/ */
@ -21,8 +21,7 @@
/** /**
* Id de l'assistant qui a écrit le commentaire * Id de l'assistant qui a écrit le commentaire
*/ */
idAssistant: string; idAssistante?: string;
assistant?: string;
/** /**
* Le commentaire de lassistant * Le commentaire de lassistant
*/ */

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

@ -21,17 +21,6 @@ export const EtatDemande = {
Rejetee: 'Rejetee' 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";
}
}
export function afficherEtatDemande(etatDemande: EtatDemande) { export function afficherEtatDemande(etatDemande: EtatDemande) {
switch(etatDemande) { switch(etatDemande) {
case EtatDemande.Validee: case EtatDemande.Validee:

@ -20,15 +20,3 @@ export const StatutObjectif = {
Partiel: 'Partiel' as StatutObjectif, Partiel: 'Partiel' as StatutObjectif,
NonAtteint: 'NonAtteint' 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";
}
}

@ -105,17 +105,6 @@
</ng-container> </ng-container>
</ng-container> </ng-container>
<ng-container matColumnDef="libelle">
<mat-header-cell *matHeaderCellDef mat-sort-header>Libellé</mat-header-cell>
<mat-cell *matCellDef="let row">{{row.libelle}}</mat-cell>
</ng-container>
<ng-container matColumnDef="description">
<mat-header-cell *matHeaderCellDef mat-sort-header>Description</mat-header-cell>
<mat-cell *matCellDef="let row">{{row.description}}</mat-cell>
</ng-container>
<ng-container matColumnDef="etat"> <ng-container matColumnDef="etat">
<mat-header-cell *matHeaderCellDef mat-sort-header>Réponse</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header>Réponse</mat-header-cell>
<mat-cell *matCellDef="let row">{{afficherEtat(row.etatDemande)}}</mat-cell> <mat-cell *matCellDef="let row">{{afficherEtat(row.etatDemande)}}</mat-cell>

@ -126,9 +126,7 @@ export class DemandesFormationTableComponent implements OnInit {
ngOnInit() { ngOnInit() {
if(this.estAffichageEP) { if(this.estAffichageEP) {
this.taille = this.demandesFormation.length; this.taille = this.demandesFormation.length;
this.parPage = this.taille;
this.dataSource = new MatTableDataSource(this.demandesFormation); this.dataSource = new MatTableDataSource(this.demandesFormation);
this.chargement = false;
} }
else else
this.setBUsId(); this.setBUsId();

@ -77,9 +77,6 @@ export class EngagementTableComponent implements OnInit {
* Liste des colonnes du tableau à afficher. * Liste des colonnes du tableau à afficher.
*/ */
@Input() displayedColumns : string[] = []; @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() estAffichageEP: boolean = false;
@Input() engagementsSaisis: EngagementDTO[] = []; @Input() engagementsSaisis: EngagementDTO[] = [];
@ -95,9 +92,7 @@ export class EngagementTableComponent implements OnInit {
ngOnInit() { ngOnInit() {
if(this.estAffichageEP) { if(this.estAffichageEP) {
this.taille = this.engagementsSaisis.length; this.taille = this.engagementsSaisis.length;
this.parPage = this.taille;
this.dataSource = new MatTableDataSource(this.engagementsSaisis); this.dataSource = new MatTableDataSource(this.engagementsSaisis);
this.chargement = false;
} }
else else
this.setBUsId(); this.setBUsId();

Loading…
Cancel
Save