Compare commits
No commits in common. 'd6192d422f0324be3f9fba9730a1da2a78504a8e' and 'de956f8bc35dd49685cbeff89e9654ada0b7648b' have entirely different histories.
d6192d422f
...
de956f8bc3
@ -1,4 +0,0 @@ |
|||||||
.saisie { |
|
||||||
overflow-y: scroll; |
|
||||||
height: 60%; |
|
||||||
} |
|
@ -1,104 +0,0 @@ |
|||||||
<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> |
|
||||||
--> |
|
@ -1,35 +0,0 @@ |
|||||||
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)
|
|
||||||
);*/ |
|
||||||
} |
|
||||||
} |
|
@ -1,3 +0,0 @@ |
|||||||
<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> |
|
@ -1,35 +0,0 @@ |
|||||||
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,22 +1,3 @@ |
|||||||
<app-nav-menu></app-nav-menu> |
<app-nav-menu></app-nav-menu> |
||||||
<h2>Vos EP</h2> |
<h1>Liste des EP collaborateurs</h1> |
||||||
|
<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,54 +1,35 @@ |
|||||||
import { Component, OnInit } from '@angular/core'; |
import { Component } from '@angular/core'; |
||||||
import { Router } from '@angular/router'; |
import { Router } from '@angular/router'; |
||||||
import { CollaborateurDTO } from '@shared/api-swagger'; |
import { epTypeRecherche } from '@shared/utils/cles'; |
||||||
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 implements OnInit { |
export class EpComponent { |
||||||
|
displayedColumns: string[] = ["agence", "collaborateur", "referent", "datearrivee", "statutep", "typeep", "dateentretien", "consultation"]; |
||||||
|
|
||||||
role = Role; |
|
||||||
/** |
|
||||||
* Le rôle de l'utilisateur. |
|
||||||
*/ |
|
||||||
userRole : string; |
|
||||||
|
|
||||||
displayedColumnsEPSignes : string[] = ["referent", "statutep","typeep", "dateentretien", "consultation"]; |
|
||||||
displayedColumnsEPReferent : string[] = ["agence", "collaborateur", "datearrivee", "statutep","typeep", "dateentretien", "consultation"]; |
|
||||||
displayedColumnsEPParticipant : string[] = ["referent", "statutep","typeep", "dateentretien", "consultation"]; |
|
||||||
epTypeRecherche : any = epTypeRecherche; |
|
||||||
|
|
||||||
idCollaborateur: string; |
|
||||||
|
|
||||||
|
|
||||||
constructor(private authService: AuthService, private router: Router){ |
|
||||||
this.userRole = this.authService.firstRole; |
|
||||||
} |
|
||||||
|
|
||||||
ngOnInit() { |
typeRechercheEP : string = epTypeRecherche.EPSignes; |
||||||
this.setIdCollaborateur(); |
|
||||||
} |
constructor(private router: Router){} |
||||||
|
|
||||||
setIdCollaborateur() { |
|
||||||
if(sessionStorage.getItem(cles.sessionKeyConnectee) == undefined) { |
eventEmitter(event: any) { |
||||||
setTimeout( () => this.setIdCollaborateur(), 1000); |
switch(event.type) { |
||||||
} |
case "collaborateur": |
||||||
else { |
if(event.ep.collaborateur != undefined) |
||||||
const collaborateurConnecte : CollaborateurDTO = JSON.parse(sessionStorage.getItem(cles.sessionKeyConnectee)); |
this.router.navigate(["/collaborateurs", event.ep.collaborateur.id]) |
||||||
this.idCollaborateur = collaborateurConnecte.id; |
break; |
||||||
} |
case "referent": |
||||||
} |
if(event.ep.referent != undefined) |
||||||
|
this.router.navigate(["/referents", event.ep.referent.id]) |
||||||
|
break; |
||||||
ouvrirEP(event) { |
case "ep": |
||||||
if(event.type == "ep") |
|
||||||
this.router.navigate(["/ep", event.ep.id]); |
this.router.navigate(["/ep", event.ep.id]); |
||||||
|
break; |
||||||
|
} |
||||||
} |
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue