diff --git a/EPAServeur/IServices/ITransformDTO.cs b/EPAServeur/IServices/ITransformDTO.cs index 2565734..5a6b7c6 100644 --- a/EPAServeur/IServices/ITransformDTO.cs +++ b/EPAServeur/IServices/ITransformDTO.cs @@ -11,22 +11,27 @@ namespace EPAServeur.IServices { public interface ITransformDTO { + + #region Collaborateur // Collaborateur AgenceDTO GetAgenceDTO(Agence agence); BusinessUnitDTO GetBusinessUnitDTO(BU businessUnit); CollaborateurDTO GetCollaborateurDTO(ParticipationFormation participationFormation, IEnumerable collaborateurDTOs); + #endregion + #region Demande de délégation // DemandeDelegation DemandeDelegationDTO GetDemandeDelegationDTO(DemandeDelegation demande, CollaborateurDTO referent, IEnumerable collaborateurs); + #endregion + #region Engagement // 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); + #endregion + #region Formation // Formation FormationDTO GetFormationDTOWhitoutParticipationFormation(Formation formation); FormationDTO GetFormationDTO(Formation formation, IEnumerable collaborateurDTOs); @@ -40,12 +45,16 @@ namespace EPAServeur.IServices StatutFormation GetStatutFormation(StatutFormationDTO statutFormationDTO); ModeFormation GetModeFormation(ModeFormationDTO modeFormationDTO); TypeFormation GetTypeFormation(TypeFormationDTO typeFormationDTO); + #endregion + #region Note // Note AffichageNoteDTO NoteToAffichageDTO(Note note, IEnumerable collaborateurs); DetailsNoteDTO NoteToDetailSDTO(Note note, CollaborateurDTO collaborateur); Note DetailsNoteDTOToNouvelleNote(DetailsNoteDTO detailsNoteDTO); + #endregion + #region Participation Formation // ParticipationFormation List GetParticipationsFormationDTO(List participationsFormation, IEnumerable collaborateurDTOs); ParticipationFormationDTO GetParticipationFormationDTO(ParticipationFormation participationFormation, IEnumerable collaborateurDTOs); @@ -54,6 +63,29 @@ namespace EPAServeur.IServices ChampDTO GetChampDTO(Champ champ); Saisie GetSaisie(SaisieDTO saisieDTO); Champ GetChamp(ChampDTO champDTO); + #endregion + + #region EP + // EpInformation + EpInformationDTO GetEpInformationDTO(Ep ep, IEnumerable collaborateurs); + EpInformationDTO EpToEpDTO(Ep ep, IEnumerable collaborateurDTOs); + + // Récupération DetailsEP + EpDTO EpToEpDetails(Ep ep, IEnumerable collaborateurDTOs); + DemandeEPIDTO GetDemandeEPIDTO(DemandeEPI demande, IEnumerable collaborateurDTOs); + AugmentationSalaireDTO GetAugmentationSalaireDTO(AugmentationSalaire augmentation); + DemandeDelegationDTO GetDemandeDelegationDTO(DemandeDelegation demandeDelegation, IEnumerable collaborateurDTOs); + RDVEntretienDTO GetRDVEntretienDTO(RdvEntretien rdvEntretien); + TypeEntretienDTO GetEntretienDTO(ChoixTypeEntretien choixTypeEntretien); + DemandeFormationDTO GetDemandeFormationDTOEP(DemandeFormation demandeFormation); + DocumentDTO GetDocumentDTO(Document document); + ObjectifDTO GetObjectifDTO(Objectif objectif); + ObjectifPrecedentDTO GetObjectifPrecedentDTO(ObjectifPrecedent objectifPrecedent); + CommentaireAssistant GetCommentaireAssistant(CommentaireAssistant commentaireAssistant); + + + + #endregion } } diff --git a/EPAServeur/Services/TransformDTO.cs b/EPAServeur/Services/TransformDTO.cs index 75a5bf8..0385d70 100644 --- a/EPAServeur/Services/TransformDTO.cs +++ b/EPAServeur/Services/TransformDTO.cs @@ -40,13 +40,24 @@ namespace EPAServeur.Services } /// - /// Transformer un objet Ep en objet EpInformationDTO. - /// La liste des collaborateurs est utilisé pour alimenter le collaborateur et le référent de l'objet EpInformationDTO. + /// Récupérer les détails d'un EP /// - /// - /// - /// - public EpInformationDTO EpToEpDTO(Ep ep, IEnumerable collaborateurDTOs) + /// L'EP a transformé en DTO + /// Liste des collaborateurs dont l'id apparaît dans l'EP + /// L'EP transformé en DTO + public EpDTO EpToEpDetails(Ep ep, IEnumerable collaborateurDTOs) + { + throw new NotImplementedException(); + } + + /// + /// Transformer un objet Ep en objet EpInformationDTO. + /// La liste des collaborateurs est utilisé pour alimenter le collaborateur et le référent de l'objet EpInformationDTO. + /// + /// + /// + /// + public EpInformationDTO EpToEpDTO(Ep ep, IEnumerable collaborateurDTOs) { return new EpInformationDTO() { @@ -85,11 +96,21 @@ namespace EPAServeur.Services } /// - /// Transformer une objet BU en objet BusinessUnitDTO. + /// Transformer un objet augmentation de salaire en DTO /// - /// - /// - public BusinessUnitDTO GetBusinessUnitDTO(BU businessUnit) + /// L'objet augmentation de salaire a transformé + /// L'augmentation de salaire transformé en DTO + public AugmentationSalaireDTO GetAugmentationSalaireDTO(AugmentationSalaire augmentation) + { + throw new NotImplementedException(); + } + + /// + /// Transformer une objet BU en objet BusinessUnitDTO. + /// + /// + /// + public BusinessUnitDTO GetBusinessUnitDTO(BU businessUnit) { if (businessUnit == null) return null; @@ -165,17 +186,27 @@ namespace EPAServeur.Services return collaborateurDTOs.FirstOrDefault(collaborateurDTO => collaborateurDTO.Id == participationFormation.DemandeFormation.Ep.IdCollaborateur); } - /// - /// Transformer un objet DemandeDelegation en objet DemandeDelegationDTO. - /// L'objet CollaborateurDTO est utilisé pour alimenter la propriété Referent de l'objet DemandeDelegationDTO. - /// La liste de collaborateurs est utilisé pour alimenter la propriété Ep de l'objet DemandeDelegationDTO. + /// Transformer un commentaire assistante en objet DTO /// - /// - /// - /// - /// - public DemandeDelegationDTO GetDemandeDelegationDTO(DemandeDelegation demande, CollaborateurDTO referent, IEnumerable collaborateurs) + /// Le commentaire a transformé en DTO + /// Le commentaire assistant transformé en DTO + public CommentaireAssistant GetCommentaireAssistant(CommentaireAssistant commentaireAssistant) + { + throw new NotImplementedException(); + } + + + /// + /// Transformer un objet DemandeDelegation en objet DemandeDelegationDTO. + /// L'objet CollaborateurDTO est utilisé pour alimenter la propriété Referent de l'objet DemandeDelegationDTO. + /// La liste de collaborateurs est utilisé pour alimenter la propriété Ep de l'objet DemandeDelegationDTO. + /// + /// + /// + /// + /// + public DemandeDelegationDTO GetDemandeDelegationDTO(DemandeDelegation demande, CollaborateurDTO referent, IEnumerable collaborateurs) { return new DemandeDelegationDTO() { @@ -189,13 +220,47 @@ namespace EPAServeur.Services } /// - /// Transformer un objet Engagement en objet EngagementDTO. - /// La liste de collaborateurs est utilisé pour alimenter la propriété Ep de l'objet EngagementDTO. + /// Transformer une demande de délégation en une demande de délégation DTO /// - /// - /// + /// La demande de délégation à transformer en DTO + /// Liste des collaborateurs dont l'id apparaît dans la demande + /// La demande de délégation transformé en DTO + public DemandeDelegationDTO GetDemandeDelegationDTO(DemandeDelegation demandeDelegation, IEnumerable collaborateurDTOs) + { + throw new NotImplementedException(); + } + + /// + /// + /// + /// + /// Liste des collaborateurs dont l'id apparaît dans la demande /// - public EngagementDTO GetEngagementDTO(Engagement engagement, IEnumerable collaborateurDTOs) + public DemandeEPIDTO GetDemandeEPIDTO(DemandeEPI demande, IEnumerable collaborateurDTOs) + { + throw new NotImplementedException(); + } + + + public DemandeFormationDTO GetDemandeFormationDTOEP(DemandeFormation demandeFormation) + { + throw new NotImplementedException(); + } + + + public DocumentDTO GetDocumentDTO(Document document) + { + throw new NotImplementedException(); + } + + /// + /// Transformer un objet Engagement en objet EngagementDTO. + /// La liste de collaborateurs est utilisé pour alimenter la propriété Ep de l'objet EngagementDTO. + /// + /// + /// + /// + public EngagementDTO GetEngagementDTO(Engagement engagement, IEnumerable collaborateurDTOs) { if (engagement == null || collaborateurDTOs == null || !collaborateurDTOs.Any()) return null; @@ -215,14 +280,19 @@ namespace EPAServeur.Services return engagementDTO; } - /// - /// Transformer un objet Ep en objet EpInformationDTO. - /// La liste de collaborateurs est utilisé pour alimenter la propriété Collaborateur et la propriété Referent de l'objet EpInformationDTO. - /// - /// - /// - /// - public EpInformationDTO GetEpInformationDTO(Ep ep, IEnumerable collaborateurs) + public TypeEntretienDTO GetEntretienDTO(ChoixTypeEntretien choixTypeEntretien) + { + throw new NotImplementedException(); + } + + /// + /// Transformer un objet Ep en objet EpInformationDTO. + /// La liste de collaborateurs est utilisé pour alimenter la propriété Collaborateur et la propriété Referent de l'objet EpInformationDTO. + /// + /// + /// + /// + public EpInformationDTO GetEpInformationDTO(Ep ep, IEnumerable collaborateurs) { CollaborateurDTO collaborateur; CollaborateurDTO referent; @@ -399,12 +469,22 @@ namespace EPAServeur.Services return modeFormationDTO; } - /// - /// Transformer un objet OrigineFormationDTO en objet OrigineFormation. - /// - /// - /// - public OrigineFormation GetOrigineFormation(OrigineFormationDTO origineFormationDTO) + public ObjectifDTO GetObjectifDTO(Objectif objectif) + { + throw new NotImplementedException(); + } + + public ObjectifPrecedentDTO GetObjectifPrecedentDTO(ObjectifPrecedent objectifPrecedent) + { + throw new NotImplementedException(); + } + + /// + /// Transformer un objet OrigineFormationDTO en objet OrigineFormation. + /// + /// + /// + public OrigineFormation GetOrigineFormation(OrigineFormationDTO origineFormationDTO) { if (origineFormationDTO == null) return null; @@ -485,13 +565,19 @@ namespace EPAServeur.Services return participationFormationDTOs; } - - /// - /// Transformer un objet SaisieDTO en objet Saisie. - /// - /// - /// - public Saisie GetSaisie(SaisieDTO saisieDTO) + + public RDVEntretienDTO GetRDVEntretienDTO(RdvEntretien rdvEntretien) + { + throw new NotImplementedException(); + } + + + /// + /// Transformer un objet SaisieDTO en objet Saisie. + /// + /// + /// + public Saisie GetSaisie(SaisieDTO saisieDTO) { if (saisieDTO == null) return null;