Compare commits

..

No commits in common. '9f348c1b7f485b4ef45857c3a590b14b9f9f58fb' and '0a0966f398e87c913c8079f76c26c0fbfb7d5c2c' have entirely different histories.

  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. 2663
      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. 13
      src/app/shared/api-swagger/model/etatDemande.ts
  31. 14
      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; 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,36 +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"></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";
@ -25,17 +25,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,4 +1,4 @@
import { Component } from '@angular/core'; import { Component, OnInit } from '@angular/core';
/** /**
* Composant pour ajouter et voir les demandes de formation * Composant pour ajouter et voir les demandes de formation
@ -7,9 +7,10 @@ import { Component } from '@angular/core';
selector: 'app-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 {
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,22 +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";
/** /**
* 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
], ],
exports: [EpComponent, DetailsEPComponent exports: [EpComponent, DetailsEPComponent
], ],
@ -39,8 +30,6 @@ import { EpChoixDateComponent } from "./details-ep/ep-choix-date/ep-choix-date.c
RouterModule, RouterModule,
MatTablesModule, MatTablesModule,
CommonModule, CommonModule,
FormsModule,
ReactiveFormsModule
], ],
}) })
export class EpModule {} export class EpModule {}

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

@ -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, true, 1, 15, "", "", true, 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 {}

File diff suppressed because it is too large Load Diff

@ -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>;

@ -19,15 +19,4 @@ export const EtatDemande = {
EnAttente: 'EnAttente' as EtatDemande, EnAttente: 'EnAttente' as EtatDemande,
Validee: 'Validee' as EtatDemande, Validee: 'Validee' as 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";
}
}

@ -19,16 +19,4 @@ export const StatutObjectif = {
Atteint: 'Atteint' as StatutObjectif, Atteint: 'Atteint' as 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";
}
}

@ -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();

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

Loading…
Cancel
Save