From 6e3f6287a20aaf9bb823212bfc318d1cbf6b3b1b Mon Sep 17 00:00:00 2001 From: jboinembalome Date: Wed, 3 Mar 2021 17:10:27 +0100 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20de=20l'interface=20ITransformDT?= =?UTF-8?q?O?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EPAServeur/IServices/ITransformDTO.cs | 59 +++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 EPAServeur/IServices/ITransformDTO.cs diff --git a/EPAServeur/IServices/ITransformDTO.cs b/EPAServeur/IServices/ITransformDTO.cs new file mode 100644 index 0000000..2565734 --- /dev/null +++ b/EPAServeur/IServices/ITransformDTO.cs @@ -0,0 +1,59 @@ +using EPAServeur.Models.EP; +using EPAServeur.Models.Formation; +using EPAServeur.Models.Notes; +using EPAServeur.Models.SaisieChamp; +using IO.Swagger.DTO; +using IO.Swagger.ModelCollaborateur; +using System.Collections.Generic; + + +namespace EPAServeur.IServices +{ + public interface ITransformDTO + { + // Collaborateur + AgenceDTO GetAgenceDTO(Agence agence); + BusinessUnitDTO GetBusinessUnitDTO(BU businessUnit); + CollaborateurDTO GetCollaborateurDTO(ParticipationFormation participationFormation, IEnumerable collaborateurDTOs); + + // DemandeDelegation + DemandeDelegationDTO GetDemandeDelegationDTO(DemandeDelegation demande, CollaborateurDTO referent, IEnumerable collaborateurs); + + // Engagement + EngagementDTO GetEngagementDTO(Engagement engagement, IEnumerable collaborateurDTOs); + Engagement SetReponseEngagement(Engagement engagement, EngagementDTO engagementDTO); + + // EpInformation + EpInformationDTO GetEpInformationDTO(Ep ep, IEnumerable collaborateurs); + EpInformationDTO EpToEpDTO(Ep ep, IEnumerable collaborateurDTOs); + + // Formation + FormationDTO GetFormationDTOWhitoutParticipationFormation(Formation formation); + FormationDTO GetFormationDTO(Formation formation, IEnumerable collaborateurDTOs); + FormationDetailsDTO GetFormationDetailsDTO(Formation formation); + OrigineFormationDTO GetOrigineFormationDTO(OrigineFormation origineFormation); + StatutFormationDTO GetStatutFormationDTO(StatutFormation statutFormation); + ModeFormationDTO GetModeFormationDTO(ModeFormation modeFormation); + TypeFormationDTO GetTypeFormationDTO(TypeFormation typeFormation); + Formation SetFormation(Formation formation, FormationDTO formationDTO); + OrigineFormation GetOrigineFormation(OrigineFormationDTO origineFormationDTO); + StatutFormation GetStatutFormation(StatutFormationDTO statutFormationDTO); + ModeFormation GetModeFormation(ModeFormationDTO modeFormationDTO); + TypeFormation GetTypeFormation(TypeFormationDTO typeFormationDTO); + + // Note + AffichageNoteDTO NoteToAffichageDTO(Note note, IEnumerable collaborateurs); + DetailsNoteDTO NoteToDetailSDTO(Note note, CollaborateurDTO collaborateur); + Note DetailsNoteDTOToNouvelleNote(DetailsNoteDTO detailsNoteDTO); + + // ParticipationFormation + List GetParticipationsFormationDTO(List participationsFormation, IEnumerable collaborateurDTOs); + ParticipationFormationDTO GetParticipationFormationDTO(ParticipationFormation participationFormation, IEnumerable collaborateurDTOs); + EvaluationDTO GetEvaluationDTO(ParticipationFormation participationFormation); + SaisieDTO GetSaisieDTO(Saisie saisie); + ChampDTO GetChampDTO(Champ champ); + Saisie GetSaisie(SaisieDTO saisieDTO); + Champ GetChamp(ChampDTO champDTO); + + } +}