Compare commits
3 Commits
de956f8bc3
...
d6192d422f
Author | SHA1 | Date |
---|---|---|
Yanaël GRETTE | d6192d422f | 4 years ago |
Yanaël GRETTE | 155f773b97 | 4 years ago |
Yanaël GRETTE | 0838e86509 | 4 years ago |
@ -0,0 +1,4 @@ |
|||||||
|
.saisie { |
||||||
|
overflow-y: scroll; |
||||||
|
height: 60%; |
||||||
|
} |
@ -0,0 +1,104 @@ |
|||||||
|
<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> |
||||||
|
|
||||||
|
<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="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> |
||||||
|
|
||||||
|
<mat-step label="Compétences générales" completed="true"> |
||||||
|
|
||||||
|
</mat-step> |
||||||
|
|
||||||
|
<mat-step label="Compétences techniques" completed="true"> |
||||||
|
|
||||||
|
</mat-step> |
||||||
|
|
||||||
|
<mat-step label="Apside" completed="true"> |
||||||
|
|
||||||
|
</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> |
||||||
|
|
||||||
|
<mat-step label="Formation effectuée" completed="true"> |
||||||
|
|
||||||
|
</mat-step> |
||||||
|
|
||||||
|
<mat-step label="Evolution du collaborateur" completed="true"> |
||||||
|
|
||||||
|
</mat-step> |
||||||
|
|
||||||
|
</mat-vertical-stepper> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="Commentaire assistant"> |
||||||
|
Ajout et consultation des commentaires (pour les assistants) |
||||||
|
</mat-tab> |
||||||
|
|
||||||
|
<mat-tab label="Choix de dates"> |
||||||
|
Le collaborateur choisi une date parmi la liste des dates proposés (collaborateur) |
||||||
|
</mat-tab> |
||||||
|
|
||||||
|
<mat-tab label="Proposition de date"> |
||||||
|
Le référent propose trois dates d'entretien (référent) |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="Demande délégation"> |
||||||
|
Effectuer une demande de délégation (Assistant et référent) |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="Les participants"> |
||||||
|
Ajouter et enlever des participants (Assistants et référent) |
||||||
|
</mat-tab> |
||||||
|
|
||||||
|
</mat-tab-group> |
||||||
|
</div> |
||||||
|
|
||||||
|
<!-- |
||||||
|
|
||||||
|
<ng-container *ngIf="ep == undefined" > |
||||||
|
<mat-spinner></mat-spinner> |
||||||
|
</ng-container> |
||||||
|
|
||||||
|
<ng-container *ngIf="ep != undefined"> |
||||||
|
<p> Collaborateur : {{ep.collaborateur.nom + " " + ep.collaborateur.prenom}}</p> |
||||||
|
<p *ngIf="ep.referent != undefined"> Référent : {{ep.referent.nom + " " + ep.referent.prenom}}</p> |
||||||
|
<p *ngIf="ep.referent == undefined"> Aucun référent pour </p> |
||||||
|
<p> Entretien le : {{ep.datePrevisionnelle }}</p> |
||||||
|
|
||||||
|
|
||||||
|
</ng-container> |
||||||
|
--> |
@ -0,0 +1,35 @@ |
|||||||
|
import { Component, OnInit } from "@angular/core"; |
||||||
|
import { ActivatedRoute } from "@angular/router"; |
||||||
|
import { EpDTO, EpService } from "@shared/api-swagger"; |
||||||
|
import { AuthService } from "@shared/auth/auth.service"; |
||||||
|
import { Role } from "@shared/utils/roles"; |
||||||
|
import { Subscription } from "rxjs"; |
||||||
|
|
||||||
|
@Component({ |
||||||
|
selector : "details-ep", |
||||||
|
templateUrl: "./details-ep.component.html", |
||||||
|
styleUrls: ["./details-ep.component.css"] |
||||||
|
}) |
||||||
|
export class DetailsEPComponent implements OnInit { |
||||||
|
|
||||||
|
epSubscription : Subscription; |
||||||
|
|
||||||
|
idEp: any; |
||||||
|
|
||||||
|
role : Role; |
||||||
|
roleUtilisateur: string; |
||||||
|
|
||||||
|
ep : EpDTO; |
||||||
|
constructor(private epService : EpService, private route : ActivatedRoute, private authService: AuthService) { |
||||||
|
this.roleUtilisateur = authService.firstRole; |
||||||
|
} |
||||||
|
|
||||||
|
ngOnInit() { |
||||||
|
/* |
||||||
|
this.idEp = this.route.snapshot.paramMap.get("id"); |
||||||
|
this.epSubscription = this.epService.getEPById(this.idEp).subscribe( |
||||||
|
ep => this.ep = ep, |
||||||
|
err => console.log(err)
|
||||||
|
);*/ |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
<app-nav-menu></app-nav-menu> |
||||||
|
<h1>Liste des EP collaborateurs signés</h1> |
||||||
|
<ep-table [typeRechercheEP]="typeRechercheEP" [displayedColumns]="displayedColumns" (eventEmitter)="eventEmitter($event)"></ep-table> |
@ -0,0 +1,35 @@ |
|||||||
|
import { Component } from '@angular/core'; |
||||||
|
import { Router } from '@angular/router'; |
||||||
|
import { epTypeRecherche } from '@shared/utils/cles'; |
||||||
|
|
||||||
|
/** |
||||||
|
* Composant qui permet la consultation de la liste des EP signés collaborateur |
||||||
|
*/ |
||||||
|
@Component({ |
||||||
|
selector: 'app-ep-signes', |
||||||
|
templateUrl: './ep-signes.component.html' |
||||||
|
}) |
||||||
|
export class EpSignesComponent { |
||||||
|
displayedColumns: string[] = ["agence", "collaborateur", "referent", "datearrivee", "statutep", "typeep", "dateentretien", "consultation"]; |
||||||
|
|
||||||
|
typeRechercheEP : string = epTypeRecherche.EPSignes; |
||||||
|
|
||||||
|
constructor(private router: Router){} |
||||||
|
|
||||||
|
|
||||||
|
eventEmitter(event: any) { |
||||||
|
switch(event.type) { |
||||||
|
case "collaborateur": |
||||||
|
if(event.ep.collaborateur != undefined) |
||||||
|
this.router.navigate(["/collaborateurs", event.ep.collaborateur.id]) |
||||||
|
break; |
||||||
|
case "referent": |
||||||
|
if(event.ep.referent != undefined) |
||||||
|
this.router.navigate(["/referents", event.ep.referent.id]) |
||||||
|
break; |
||||||
|
case "ep": |
||||||
|
this.router.navigate(["/ep", event.ep.id]); |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -1,3 +1,22 @@ |
|||||||
<app-nav-menu></app-nav-menu> |
<app-nav-menu></app-nav-menu> |
||||||
<h1>Liste des EP collaborateurs</h1> |
<h2>Vos EP</h2> |
||||||
<ep-table [typeRechercheEP]="typeRechercheEP" [displayedColumns]="displayedColumns" (eventEmitter)="eventEmitter($event)"></ep-table> |
|
||||||
|
<ng-container *ngIf="idCollaborateur == undefined"> |
||||||
|
|
||||||
|
<mat-spinner></mat-spinner> |
||||||
|
</ng-container> |
||||||
|
<ng-container *ngIf="idCollaborateur != undefined"> |
||||||
|
<mat-tab-group mat-align-tabs="start"> |
||||||
|
<mat-tab label="EP signés"> |
||||||
|
<ep-table [rechercherParBU]="false" [rechercherParDate]="true" [typeRechercheEP]="epTypeRecherche.RechercheEPCollaborateursSignes" [displayedColumns]="displayedColumnsEPSignes" [idCollaborateur]="idCollaborateur" (eventEmitter)="ouvrirEP($event)" ></ep-table> |
||||||
|
</mat-tab> |
||||||
|
|
||||||
|
<mat-tab label="EP référent"> |
||||||
|
<ep-table [rechercherParBU]="false" [rechercherParDate]="true" [typeRechercheEP]="epTypeRecherche.RechercheEPReferentSignes" [displayedColumns]="displayedColumnsEPReferent" [idCollaborateur]="idCollaborateur" (eventEmitter)="ouvrirEP($event)" ></ep-table> |
||||||
|
</mat-tab> |
||||||
|
|
||||||
|
<mat-tab label="EP Participant"> |
||||||
|
TODO |
||||||
|
</mat-tab> |
||||||
|
</mat-tab-group> |
||||||
|
</ng-container> |
@ -1,35 +1,54 @@ |
|||||||
import { Component } from '@angular/core'; |
import { Component, OnInit } from '@angular/core'; |
||||||
import { Router } from '@angular/router'; |
import { Router } from '@angular/router'; |
||||||
import { epTypeRecherche } from '@shared/utils/cles'; |
import { CollaborateurDTO } from '@shared/api-swagger'; |
||||||
|
import { AuthService } from '@shared/auth/auth.service'; |
||||||
|
import { cles, epTypeRecherche } from '@shared/utils/cles'; |
||||||
|
import { Role } from '@shared/utils/roles'; |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** |
|
||||||
* Composant qui permet la consultation d'un EP |
|
||||||
*/ |
|
||||||
@Component({ |
@Component({ |
||||||
selector: 'app-ep', |
selector: 'app-ep', |
||||||
templateUrl: './ep.component.html' |
templateUrl: './ep.component.html' |
||||||
}) |
}) |
||||||
export class EpComponent { |
export class EpComponent implements OnInit { |
||||||
displayedColumns: string[] = ["agence", "collaborateur", "referent", "datearrivee", "statutep", "typeep", "dateentretien", "consultation"]; |
|
||||||
|
|
||||||
typeRechercheEP : string = epTypeRecherche.EPSignes; |
|
||||||
|
role = Role; |
||||||
constructor(private router: Router){} |
/** |
||||||
|
* Le rôle de l'utilisateur. |
||||||
|
*/ |
||||||
eventEmitter(event: any) { |
userRole : string; |
||||||
switch(event.type) { |
|
||||||
case "collaborateur": |
displayedColumnsEPSignes : string[] = ["referent", "statutep","typeep", "dateentretien", "consultation"]; |
||||||
if(event.ep.collaborateur != undefined) |
displayedColumnsEPReferent : string[] = ["agence", "collaborateur", "datearrivee", "statutep","typeep", "dateentretien", "consultation"]; |
||||||
this.router.navigate(["/collaborateurs", event.ep.collaborateur.id]) |
displayedColumnsEPParticipant : string[] = ["referent", "statutep","typeep", "dateentretien", "consultation"]; |
||||||
break; |
epTypeRecherche : any = epTypeRecherche; |
||||||
case "referent": |
|
||||||
if(event.ep.referent != undefined) |
idCollaborateur: string; |
||||||
this.router.navigate(["/referents", event.ep.referent.id]) |
|
||||||
break; |
|
||||||
case "ep": |
constructor(private authService: AuthService, private router: Router){ |
||||||
this.router.navigate(["/ep", event.ep.id]); |
this.userRole = this.authService.firstRole; |
||||||
break; |
} |
||||||
|
|
||||||
|
ngOnInit() { |
||||||
|
this.setIdCollaborateur(); |
||||||
|
} |
||||||
|
|
||||||
|
setIdCollaborateur() { |
||||||
|
if(sessionStorage.getItem(cles.sessionKeyConnectee) == undefined) { |
||||||
|
setTimeout( () => this.setIdCollaborateur(), 1000); |
||||||
|
} |
||||||
|
else { |
||||||
|
const collaborateurConnecte : CollaborateurDTO = JSON.parse(sessionStorage.getItem(cles.sessionKeyConnectee)); |
||||||
|
this.idCollaborateur = collaborateurConnecte.id; |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
|
|
||||||
|
ouvrirEP(event) { |
||||||
|
if(event.type == "ep") |
||||||
|
this.router.navigate(["/ep", event.ep.id]); |
||||||
|
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue