You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1044 lines
42 KiB
1044 lines
42 KiB
using EPAServeur.Models.EP;
|
|
using EPAServeur.Models.Formation;
|
|
using EPAServeur.Models.Notes;
|
|
using EPAServeur.Models.SaisieChamp;
|
|
using IO.Swagger.Enum;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace EPAServeur.Context
|
|
{
|
|
/// <summary>
|
|
/// Classe permettant d'insérer des données dans la base de données.
|
|
/// </summary>
|
|
public class DataSeeder
|
|
{
|
|
/// <summary>
|
|
/// Insère des informations qui pourront être conservées dans la base de données
|
|
/// </summary>
|
|
/// <param name="epContext"></param>
|
|
public static void AddInformationsDeBase(EpContext epContext)
|
|
{
|
|
|
|
AddTypesEntretien(epContext);
|
|
|
|
AddFormations(epContext);
|
|
|
|
|
|
//AVoir un tableau pour dire combien de demande de formations seront faites pour chaque EP
|
|
//Avoir un tableau pour dire combien de demande de Participation seront faites et accepter (max : 11)
|
|
//La formation associée sera choisie de manière aléatoire parmi celles créées (pas grave si la cohérence niveau date est foireuse....)
|
|
//Pour chaque demande de formation... essayer d'avoir une fois la même personne dans une formation ?... lool
|
|
}
|
|
|
|
/// <summary>
|
|
/// Insère des thèmes qui pourront être ajoutés et conservés
|
|
/// </summary>
|
|
/// <param name="epContext"></param>
|
|
//public static void AddThemes(EpContext epContext)
|
|
//{
|
|
// Theme management, securite, developpement, gestionprojet;
|
|
|
|
// management = new Theme { Libelle = "Management" };
|
|
// epContext.Theme.Add(management);
|
|
|
|
// securite = new Theme { Libelle = "Sécurité" };
|
|
// epContext.Theme.Add(securite);
|
|
|
|
// developpement = new Theme { Libelle = "Développement" };
|
|
// epContext.Theme.Add(developpement);
|
|
|
|
// gestionprojet = new Theme { Libelle = "Gestion de projet" };
|
|
// epContext.Theme.Add(gestionprojet);
|
|
|
|
// epContext.SaveChanges();
|
|
//}
|
|
|
|
/// <summary>
|
|
/// Insère un jeu de données fictif pour les types d'entretien
|
|
/// </summary>
|
|
/// <param name="epContext"></param>
|
|
public static void AddTypesEntretien(EpContext epContext)
|
|
{
|
|
//TypeEntretien
|
|
TypeEntretien typeSite, typeClient, typeVisio, typeTelephone;
|
|
|
|
typeSite = new TypeEntretien { Libelle = "Sur site" };
|
|
epContext.TypeEntretien.Add(typeSite);
|
|
|
|
typeClient = new TypeEntretien { Libelle = "Chez le client" };
|
|
epContext.TypeEntretien.Add(typeClient);
|
|
|
|
typeVisio = new TypeEntretien { Libelle = "Visioconférence" };
|
|
epContext.TypeEntretien.Add(typeVisio);
|
|
|
|
typeTelephone = new TypeEntretien { Libelle = "Téléphonique" };
|
|
epContext.TypeEntretien.Add(typeTelephone);
|
|
|
|
epContext.SaveChanges();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Insère un jeu de données fictif pour les ep
|
|
/// </summary>
|
|
/// <param name="epContext"></param>
|
|
public static void AddEp(EpContext epContext)
|
|
{
|
|
//Créer des EP qui ont déjà été effectué (pas grave si il y a des informations qui sont incohérentes)
|
|
//C1 ---> C5 Collaborateurs
|
|
//C5 --> C10 CP+Tech Lead
|
|
//RH --> RH
|
|
//AS --> Assistant
|
|
//COM --> Commercial
|
|
//DEL --> Delivery
|
|
// 10 EP
|
|
Ep ep1, ep2, ep3;
|
|
Ep ep4, ep5;
|
|
Ep ep6, ep7, ep8;
|
|
|
|
|
|
//DemandeFormation df;
|
|
//ParticipationFormation pf;
|
|
ep1 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("1ec99fde-f756-11ea-adc1-0242ac120002"),
|
|
IdReferent = Guid.Parse("1ec9a204-f756-11ea-adc1-0242ac120002"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2017, 7, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 7, 8),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
//df = new DemandeFormation
|
|
//{
|
|
// Description = "Description formation",
|
|
// DemandeRH = false,
|
|
// DateDemande = new DateTime(2018, 7, 8),
|
|
//};
|
|
|
|
|
|
epContext.Ep.Add(ep1);
|
|
|
|
ep2 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("779bf1cf-4d38-48fb-8550-3d583384523b"),
|
|
IdReferent = Guid.Parse("ecf528c3-e509-402f-87bb-c8821467e350"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2017, 7, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 7, 8),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
epContext.Ep.Add(ep2);
|
|
|
|
ep3 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("17b87130-0e9d-4b78-b0e3-a11e5f70318d"),
|
|
IdReferent = Guid.Parse("ecf528c3-e509-402f-87bb-c8821467e350"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2017, 7, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 7, 8),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
epContext.Ep.Add(ep3);
|
|
|
|
ep4 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("f960f851-16b6-4631-952e-d05f38d8d80f"),
|
|
IdReferent = Guid.Parse("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2017, 7, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 7, 8),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
epContext.Ep.Add(ep4);
|
|
|
|
ep5 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("efb063b2-ce1e-4d19-8340-d4b0b022d0d0"),
|
|
IdReferent = Guid.Parse("3fa56dc6-8597-4030-a0b2-1619b98c428d"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2017, 7, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 7, 8),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
epContext.Ep.Add(ep5);
|
|
|
|
ep6 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("e5d36da4-df16-4d19-8a11-1ba2f6efc80c"),
|
|
IdReferent = Guid.Parse("3fa56dc6-8597-4030-a0b2-1619b98c428d"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2017, 7, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 7, 8),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
epContext.Ep.Add(ep6);
|
|
|
|
ep7 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("9e1ee839-4477-4d64-9b4d-80654c97c39f"),
|
|
IdReferent = Guid.Parse("efb063b2-ce1e-4d19-8340-d4b0b022d0d0"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2017, 7, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 7, 8),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
epContext.Ep.Add(ep7);
|
|
|
|
ep8 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("3f532f4c-a5c9-466c-b7c1-fdc6bc48780e"),
|
|
IdReferent = Guid.Parse("efb063b2-ce1e-4d19-8340-d4b0b022d0d0"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2017, 7, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 7, 8),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
epContext.Ep.Add(ep8);
|
|
|
|
epContext.SaveChanges();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Insère un jeu de données fictif pour les engagements
|
|
/// </summary>
|
|
/// <param name="epContext"></param>
|
|
public static void AddEngagements(EpContext epContext)
|
|
{
|
|
Ep ep9, ep10, ep11;
|
|
|
|
ep9 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("59a8becb-bc0a-4d3d-adb1-8a8bd13c48c9"),
|
|
IdReferent = Guid.Parse("e5d36da4-df16-4d19-8a11-1ba2f6efc80c"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2017, 7, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 7, 8),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
epContext.Ep.Add(ep9);
|
|
|
|
ep10 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("a00eb610-d735-4a83-ac5a-7b89cbd4b42d"),
|
|
IdReferent = Guid.Parse("d3f69a83-8a29-4971-8d3c-2d0cf320dad2"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2017, 7, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 7, 8),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
epContext.Ep.Add(ep10);
|
|
|
|
ep11 = new Ep
|
|
{
|
|
IdCollaborateur = Guid.Parse("a00eb610-d735-4a83-ac5a-7b89cbd4b42d"),
|
|
IdReferent = Guid.Parse("d3f69a83-8a29-4971-8d3c-2d0cf320dad2"),
|
|
IdBu = 2,
|
|
Fonction = "Dev",
|
|
TypeEP = TypeEp.EPA,
|
|
NumeroEp = 1,
|
|
DateCreation = new DateTime(2018, 1, 7),
|
|
DatePrevisionnelle = new DateTime(2018, 1, 6),
|
|
Obligatoire = false,
|
|
Statut = StatutEp.Signe,
|
|
CV = "CV.pdf",
|
|
DateSaisie = new DateTime(2018, 6, 20)
|
|
};
|
|
epContext.Ep.Add(ep11);
|
|
|
|
Engagement engagement1, engagement2, engagement3;
|
|
|
|
engagement1 = new Engagement
|
|
{
|
|
Action = "Je m'engage à...",
|
|
Dispositif = "interne",
|
|
Modalite = "Modalite",
|
|
DateLimite = new DateTime(2017, 7, 7),
|
|
EtatEngagement = EtatEngagement.EnAttente,
|
|
RaisonNonRealisable = null,
|
|
Ep = ep9
|
|
};
|
|
epContext.Engagement.Add(engagement1);
|
|
|
|
engagement2 = new Engagement
|
|
{
|
|
Action = "Je m'engage à faire...",
|
|
Dispositif = "externe",
|
|
Modalite = "Modalite 2",
|
|
DateLimite = new DateTime(2017, 7, 8),
|
|
EtatEngagement = EtatEngagement.EnAttente,
|
|
RaisonNonRealisable = null,
|
|
Ep = ep10
|
|
};
|
|
epContext.Engagement.Add(engagement2);
|
|
|
|
engagement3 = new Engagement
|
|
{
|
|
Action = "Je m'engage à faire...",
|
|
Dispositif = "externe",
|
|
Modalite = "Modalite 3",
|
|
DateLimite = new DateTime(2017, 7, 8),
|
|
EtatEngagement = EtatEngagement.EnAttente,
|
|
RaisonNonRealisable = "Aucune formation disponible",
|
|
Ep = ep11
|
|
};
|
|
epContext.Engagement.Add(engagement3);
|
|
|
|
epContext.SaveChanges();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Insère un jeu de données fictif pour les formations
|
|
/// </summary>
|
|
/// <param name="epContext"></param>
|
|
public static void AddFormations(EpContext epContext)
|
|
{
|
|
//StatutFormation
|
|
StatutFormation statutPlanifie, statutReplanifie, statutRealise, statutAnnule;
|
|
|
|
statutPlanifie = new StatutFormation { IdStatutFormation = 1, Libelle = "Planifiée" };
|
|
epContext.StatutFormation.Add(statutPlanifie);
|
|
|
|
statutReplanifie = new StatutFormation { IdStatutFormation = 2, Libelle = "Replanifié" };
|
|
epContext.StatutFormation.Add(statutReplanifie);
|
|
|
|
statutRealise = new StatutFormation { IdStatutFormation = 3, Libelle = "Réalisée" };
|
|
epContext.StatutFormation.Add(statutRealise);
|
|
|
|
statutAnnule = new StatutFormation { IdStatutFormation = 4, Libelle = "Annulée" };
|
|
epContext.StatutFormation.Add(statutAnnule);
|
|
|
|
//ModeFormation
|
|
ModeFormation modeExterne, modeInterne, modePresentiel, modeELearning;
|
|
|
|
modeExterne = new ModeFormation { IdModeFormation = 1, Libelle = "Externe" };
|
|
epContext.ModeFormation.Add(modeExterne);
|
|
|
|
modeInterne = new ModeFormation { IdModeFormation = 2, Libelle = "Interne" };
|
|
epContext.ModeFormation.Add(modeInterne);
|
|
|
|
modePresentiel = new ModeFormation { IdModeFormation = 3, Libelle = "Présentiel" };
|
|
epContext.ModeFormation.Add(modePresentiel);
|
|
|
|
modeELearning = new ModeFormation { IdModeFormation = 4, Libelle = "E-learning" };
|
|
epContext.ModeFormation.Add(modeELearning);
|
|
|
|
//TypeFormation
|
|
TypeFormation typeExterne, typeInterne, typeELearning, typeAcademy;
|
|
|
|
typeExterne = new TypeFormation { IdTypeFormation = 1, Libelle = "Externe" };
|
|
epContext.TypeFormation.Add(typeExterne);
|
|
|
|
typeInterne = new TypeFormation { IdTypeFormation = 2, Libelle = "Interne" };
|
|
epContext.TypeFormation.Add(typeInterne);
|
|
|
|
typeELearning = new TypeFormation { IdTypeFormation = 3, Libelle = "E-learning" };
|
|
epContext.TypeFormation.Add(typeELearning);
|
|
|
|
typeAcademy = new TypeFormation { IdTypeFormation = 4, Libelle = "Academy by Apside" };
|
|
epContext.TypeFormation.Add(typeAcademy);
|
|
|
|
//OrigineFormation
|
|
OrigineFormation origineFormationCollaborateur, origineFormationClient, origineFormationApside, origineFormationReglementaire;
|
|
|
|
origineFormationCollaborateur = new OrigineFormation { IdOrigineFormation = 1, Libelle = "Demande collaborateur" };
|
|
epContext.OrigineFormation.Add(origineFormationCollaborateur);
|
|
|
|
origineFormationClient = new OrigineFormation { IdOrigineFormation = 2, Libelle = "Exigence client" };
|
|
epContext.OrigineFormation.Add(origineFormationClient);
|
|
|
|
origineFormationApside = new OrigineFormation { IdOrigineFormation = 3, Libelle = "Exigence Apside" };
|
|
epContext.OrigineFormation.Add(origineFormationApside);
|
|
|
|
origineFormationReglementaire = new OrigineFormation { IdOrigineFormation = 4, Libelle = "Formation réglementaire" };
|
|
epContext.OrigineFormation.Add(origineFormationReglementaire);
|
|
|
|
//OrigineDemandeFormation
|
|
OrigineDemande origineDemandeFormationCollaborateur, origineDemandeFormationEP,
|
|
origineDemandeFormationClient, origineDemandeFormationReglement, origineDemandeFormationApside;
|
|
|
|
origineDemandeFormationCollaborateur = new OrigineDemande { IdOrigineDemande = 1, Libelle = "Demande collaborateur" };
|
|
epContext.OrigineDemandeFormation.Add(origineDemandeFormationCollaborateur);
|
|
|
|
origineDemandeFormationEP = new OrigineDemande { IdOrigineDemande = 2, Libelle = "Demande EP" };
|
|
epContext.OrigineDemandeFormation.Add(origineDemandeFormationEP);
|
|
|
|
origineDemandeFormationClient = new OrigineDemande { IdOrigineDemande = 3, Libelle = "Exigence Client" };
|
|
epContext.OrigineDemandeFormation.Add(origineDemandeFormationClient);
|
|
|
|
origineDemandeFormationReglement = new OrigineDemande { IdOrigineDemande = 4, Libelle = "Formation réglementaire" };
|
|
epContext.OrigineDemandeFormation.Add(origineDemandeFormationReglement);
|
|
|
|
origineDemandeFormationApside = new OrigineDemande { IdOrigineDemande = 5, Libelle = "Demande Apside" };
|
|
epContext.OrigineDemandeFormation.Add(origineDemandeFormationApside);
|
|
|
|
//Formation
|
|
Formation f1, f2, f3;//Planifiées
|
|
Formation f4, f5; // Réalisées
|
|
Formation f6, f7, f8, f9;//Replanifiées
|
|
Formation f10, f11; //Annulées
|
|
//new DateTime(Année, Mois, Jour, Heure, Minute...)
|
|
|
|
|
|
List<Formation> formations = new List<Formation>();
|
|
|
|
f1 = new Formation
|
|
{
|
|
Intitule = "Formation1",
|
|
|
|
DateDebut = new DateTime(2020, 9, 16, 10, 0, 0),
|
|
DateFin = new DateTime(2020, 9, 16),
|
|
IdAgence = 1,
|
|
Heure = 2,
|
|
Jour = 1,
|
|
ModeFormation = modeELearning,
|
|
TypeFormation = typeELearning,
|
|
Organisme = "Organisme1",
|
|
Origine = origineFormationClient,
|
|
Statut = statutPlanifie,
|
|
EstCertifiee = false
|
|
};
|
|
epContext.Formation.Add(f1);
|
|
|
|
f2 = new Formation
|
|
{
|
|
Intitule = "Formation2",
|
|
|
|
DateDebut = new DateTime(2020, 10, 5, 14, 0, 0),
|
|
DateFin = new DateTime(2020, 10, 9),
|
|
IdAgence = 1,
|
|
Heure = 10,
|
|
Jour = 5,
|
|
ModeFormation = modeExterne,
|
|
TypeFormation = typeExterne,
|
|
Organisme = "Organisme2",
|
|
Origine = origineFormationClient,
|
|
Statut = statutPlanifie,
|
|
EstCertifiee = false
|
|
};
|
|
epContext.Formation.Add(f2);
|
|
|
|
f3 = new Formation
|
|
{
|
|
Intitule = "Formation3",
|
|
|
|
DateDebut = new DateTime(2020, 9, 21, 14, 0, 0),
|
|
DateFin = new DateTime(2020, 9, 21),
|
|
IdAgence = 1,
|
|
Heure = 4,
|
|
Jour = 2,
|
|
ModeFormation = modeELearning,
|
|
TypeFormation = typeELearning,
|
|
Organisme = "Organisme2",
|
|
Origine = origineFormationApside,
|
|
Statut = statutPlanifie,
|
|
EstCertifiee = true
|
|
};
|
|
epContext.Formation.Add(f3);
|
|
|
|
f4 = new Formation
|
|
{
|
|
Intitule = "Formation4",
|
|
|
|
DateDebut = new DateTime(2020, 05, 11, 14, 0, 0),
|
|
DateFin = new DateTime(2020, 05, 11),
|
|
IdAgence = 1,
|
|
Heure = 3,
|
|
Jour = 1,
|
|
ModeFormation = modeELearning,
|
|
TypeFormation = typeAcademy,
|
|
Organisme = "Organisme2",
|
|
Origine = origineFormationCollaborateur,
|
|
Statut = statutRealise,
|
|
EstCertifiee = true
|
|
};
|
|
epContext.Formation.Add(f4);
|
|
|
|
f5 = new Formation
|
|
{
|
|
Intitule = "Formation5",
|
|
|
|
DateDebut = new DateTime(2020, 08, 1, 13, 0, 0),
|
|
DateFin = new DateTime(2020, 08, 3),
|
|
IdAgence = 1,
|
|
Heure = 6,
|
|
Jour = 2,
|
|
ModeFormation = modePresentiel,
|
|
TypeFormation = typeExterne,
|
|
Organisme = "Organisme3",
|
|
Origine = origineFormationClient,
|
|
Statut = statutRealise,
|
|
EstCertifiee = true
|
|
};
|
|
epContext.Formation.Add(f5);
|
|
|
|
f6 = new Formation
|
|
{
|
|
Intitule = "Formation6",
|
|
|
|
DateDebut = new DateTime(2020, 9, 30, 9, 0, 0),
|
|
DateFin = new DateTime(2020, 10, 1),
|
|
IdAgence = 1,
|
|
Heure = 4,
|
|
Jour = 2,
|
|
ModeFormation = modePresentiel,
|
|
TypeFormation = typeInterne,
|
|
Organisme = "Organisme4",
|
|
Origine = origineFormationClient,
|
|
Statut = statutReplanifie,
|
|
EstCertifiee = false
|
|
};
|
|
epContext.Formation.Add(f6);
|
|
|
|
f7 = new Formation
|
|
{
|
|
Intitule = "Formation7",
|
|
|
|
DateDebut = new DateTime(2020, 10, 5, 10, 0, 0),
|
|
DateFin = new DateTime(2020, 10, 8),
|
|
IdAgence = 1,
|
|
Heure = 6,
|
|
Jour = 5,
|
|
ModeFormation = modePresentiel,
|
|
TypeFormation = typeInterne,
|
|
Organisme = "Organisme2",
|
|
Origine = origineFormationClient,
|
|
Statut = statutReplanifie,
|
|
EstCertifiee = false
|
|
};
|
|
epContext.Formation.Add(f7);
|
|
|
|
f8 = new Formation
|
|
{
|
|
Intitule = "Formation2",
|
|
DateDebut = new DateTime(2020, 11, 18, 10, 0, 0),
|
|
DateFin = new DateTime(2020, 11, 20),
|
|
IdAgence = 1,
|
|
Heure = 6,
|
|
Jour = 3,
|
|
ModeFormation = modeELearning,
|
|
TypeFormation = typeAcademy,
|
|
Organisme = "Organisme4",
|
|
Origine = origineFormationClient,
|
|
Statut = statutReplanifie,
|
|
EstCertifiee = true
|
|
};
|
|
epContext.Formation.Add(f8);
|
|
|
|
f9 = new Formation
|
|
{
|
|
Intitule = "Formation9",
|
|
DateDebut = new DateTime(2020, 11, 15, 9, 0, 0),
|
|
DateFin = new DateTime(2020, 11, 15),
|
|
IdAgence = 1,
|
|
Heure = 3,
|
|
Jour = 1,
|
|
ModeFormation = modePresentiel,
|
|
TypeFormation = typeInterne,
|
|
Organisme = "Organisme3",
|
|
Origine = origineFormationClient,
|
|
Statut = statutReplanifie,
|
|
EstCertifiee = true
|
|
};
|
|
epContext.Formation.Add(f9);
|
|
|
|
f10 = new Formation
|
|
{
|
|
Intitule = "Formation10",
|
|
DateDebut = new DateTime(2020, 8, 3, 14, 0, 0),
|
|
DateFin = new DateTime(2020, 8, 3),
|
|
IdAgence = 1,
|
|
Heure = 2,
|
|
Jour = 1,
|
|
ModeFormation = modePresentiel,
|
|
TypeFormation = typeInterne,
|
|
Organisme = "Organisme4",
|
|
Origine = origineFormationClient,
|
|
Statut = statutAnnule,
|
|
EstCertifiee = false
|
|
};
|
|
epContext.Formation.Add(f10);
|
|
|
|
f11 = new Formation
|
|
{
|
|
Intitule = "Formation11",
|
|
DateDebut = new DateTime(2020, 04, 6, 9, 0, 0),
|
|
DateFin = new DateTime(2020, 04, 11),
|
|
IdAgence = 1,
|
|
Heure = 15,
|
|
Jour = 5,
|
|
ModeFormation = modePresentiel,
|
|
TypeFormation = typeInterne,
|
|
Organisme = "Organisme1",
|
|
Origine = origineFormationClient,
|
|
Statut = statutAnnule,
|
|
EstCertifiee = false
|
|
};
|
|
epContext.Formation.Add(f11);
|
|
|
|
/*
|
|
formations.Add(f1);
|
|
formations.Add(f2);
|
|
formations.Add(f3);
|
|
formations.Add(f4);
|
|
formations.Add(f5);
|
|
formations.Add(f6);
|
|
formations.Add(f7);
|
|
formations.Add(f8);
|
|
formations.Add(f9);
|
|
formations.Add(f10);
|
|
formations.Add(f11);
|
|
|
|
int[] npParticipants = { };
|
|
*/
|
|
|
|
epContext.SaveChanges();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Insère un jeu de données fictif pour les champs
|
|
/// </summary>
|
|
/// <param name="epContext"></param>
|
|
public static void AddChamps(EpContext epContext)
|
|
{
|
|
|
|
Champ c;
|
|
|
|
//CHAMPS EPS
|
|
c = new Champ { Section = "Mission/Projet", Ordre = 0, Texte = "Impressions générales", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Commentaire };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Mission/Projet", Ordre = 1, Texte = "Faits marquants", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Commentaire };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Mission/Projet", Ordre = 2, Texte = "Succès", TypeChamp = TypeChamps.EPS };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Mission/Projet", Ordre = 3, Texte = "Retours Client/Chef de projet", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Commentaire };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Mission/Projet", Ordre = 4, Texte = "Difficultés", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Mission/Projet", Ordre = 5, Texte = "Relation Client/Chef de projet", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Mission/Projet", Ordre = 6, Texte = "Ambiance de travail", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Mission/Projet", Ordre = 7, Texte = "Intérêt technique", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Mission/Projet", Ordre = 8, Texte = "Site géographique", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Générales", Ordre = 0, Texte = "Motivation", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Générales", Ordre = 1, Texte = "Adaptabilité", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Générales", Ordre = 2, Texte = "Force de proposition", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Générales", Ordre = 3, Texte = "Leadership", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Générales", Ordre = 4, Texte = "Ecoute", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Générales", Ordre = 5, Texte = "Prise de recul", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Générales", Ordre = 6, Texte = "Sens du service", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Générales", Ordre = 7, Texte = "Communication", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Générales", Ordre = 8, Texte = "Rigueur", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Générales", Ordre = 9, Texte = "Organisation", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Compétences", SousSection = "Compétences Techniques", Ordre = 0, Texte = "Nouvelle compétence", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Competence };
|
|
epContext.Champ.Add(c);
|
|
|
|
|
|
|
|
c = new Champ { Section = "Apside", Ordre = 0, Texte = "Relation avec la structure", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Apside", Ordre = 1, Texte = "Sentiment d'écoute", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Apside", Ordre = 2, Texte = "Perception de la stratégie de développement", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Apside", Ordre = 3, Texte = "Esprit d'entreprise", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Apside", Ordre = 4, Texte = "Transparence de l'information", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Apside", Ordre = 5, Texte = "Politique de formation", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Apside", Ordre = 6, Texte = "Satisfaction Apside", TypeChamp = TypeChamps.EPS, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
|
|
|
|
//CHAMPS EPA
|
|
c = new Champ { Section = "Formation", Ordre = 0, Texte = "Formations effectuées", TypeChamp = TypeChamps.EPA, TypeSaisie = TypeSaisie.Aucun };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Evolution Professionnelle et Salarial", Ordre = 0, Texte = "Evolution de l'emploie", TypeChamp = TypeChamps.EPA, TypeSaisie = TypeSaisie.Aucun };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Projet professionnel/Souhait d’évolution ", Ordre = 0, Texte = "A court terme", TypeChamp = TypeChamps.EPA, TypeSaisie = TypeSaisie.Commentaire };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Projet professionnel/Souhait d’évolution ", Ordre = 1, Texte = "A long terme", TypeChamp = TypeChamps.EPA, TypeSaisie = TypeSaisie.Commentaire };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Projet professionnel/Souhait d’évolution ", Ordre = 2, Texte = "Atouts/Freins pour ce projet", TypeChamp = TypeChamps.EPA, TypeSaisie = TypeSaisie.Commentaire };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Projet professionnel/Souhait d’évolution ", Ordre = 3, Texte = "Commentaire référent", TypeChamp = TypeChamps.EPA, TypeSaisie = TypeSaisie.Commentaire };
|
|
epContext.Champ.Add(c);
|
|
|
|
//CHAMPS EPASIX
|
|
c = new Champ { Section = "Evolution", Ordre = 1, Texte = "Evolution du salaire", TypeChamp = TypeChamps.EPASIXANS, TypeSaisie = TypeSaisie.Aucun };
|
|
epContext.Champ.Add(c);
|
|
/*c = new Champ { Section = "", SousSection = "", Ordre = 0, Texte = "", TypeChamp = TypeChamps.EPASIXANS };
|
|
this.Champ.Add(c);
|
|
c = new Champ { Section = "", SousSection = "", Ordre = 0, Texte = "", TypeChamp = TypeChamps.EPASIXANS };
|
|
this.Champ.Add(c);
|
|
c = new Champ { Section = "", SousSection = "", Ordre = 0, Texte = "", TypeChamp = TypeChamps.EPASIXANS };
|
|
this.Champ.Add(c);*/
|
|
|
|
//CHAMPS EVALUATION
|
|
c = new Champ { Section = "Evaluation", Ordre = 0, Texte = "Accueil et organisation", TypeChamp = TypeChamps.Evaluation, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Evaluation", Ordre = 1, Texte = "Compétences animateur", TypeChamp = TypeChamps.Evaluation, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Evaluation", Ordre = 2, Texte = "Pédagogie/Animation", TypeChamp = TypeChamps.Evaluation, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Evaluation", Ordre = 3, Texte = "Exhaustivité des sujets traités", TypeChamp = TypeChamps.Evaluation, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Evaluation", Ordre = 4, Texte = "Utilité/Apport de la formation", TypeChamp = TypeChamps.Evaluation, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Evaluation", Ordre = 5, Texte = "Contenu théorique", TypeChamp = TypeChamps.Evaluation, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Evaluation", Ordre = 6, Texte = "Contenu pratique", TypeChamp = TypeChamps.Evaluation, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Evaluation", Ordre = 7, Texte = "Equilibre pratique/théorie", TypeChamp = TypeChamps.Evaluation, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Evaluation", Ordre = 8, Texte = "Support de cours", TypeChamp = TypeChamps.Evaluation, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
c = new Champ { Section = "Evaluation", Ordre = 9, Texte = "Durée", TypeChamp = TypeChamps.Evaluation, TypeSaisie = TypeSaisie.Notation };
|
|
epContext.Champ.Add(c);
|
|
|
|
|
|
epContext.SaveChanges();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Insère un jeu de données fictif pour les notes
|
|
/// </summary>
|
|
/// <param name="epContext"></param>
|
|
public static void AddNotes(EpContext epContext)
|
|
{
|
|
Note note;
|
|
|
|
note = new Note()
|
|
{
|
|
IdNote = 1,
|
|
Titre = "Titre1",
|
|
Texte = "Texte1",
|
|
IdAuteur = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696"),
|
|
IdCollaborateur = new Guid("842650db-a548-4472-a3af-4c5fff3c1ab8"),
|
|
DateCreation = DateTime.Now,
|
|
DateMiseAJour = DateTime.Now
|
|
|
|
};
|
|
epContext.Note.Add(note);
|
|
|
|
note = new Note()
|
|
{
|
|
IdNote = 2,
|
|
Titre = "Titre2",
|
|
Texte = "Texte2",
|
|
IdAuteur = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696"),
|
|
IdCollaborateur = new Guid("842650db-a548-4472-a3af-4c5fff3c1ab8"),
|
|
DateCreation = DateTime.Now,
|
|
DateMiseAJour = DateTime.Now
|
|
|
|
};
|
|
epContext.Note.Add(note);
|
|
|
|
note = new Note()
|
|
{
|
|
IdNote = 3,
|
|
Titre = "Titre3",
|
|
Texte = "Texte3",
|
|
IdAuteur = new Guid(),
|
|
IdCollaborateur = new Guid("842650db-a548-4472-a3af-4c5fff3c1ab8"),
|
|
DateCreation = DateTime.Now,
|
|
DateMiseAJour = DateTime.Now
|
|
|
|
};
|
|
epContext.Note.Add(note);
|
|
|
|
note = new Note()
|
|
{
|
|
IdNote = 4,
|
|
Titre = "Titre4",
|
|
Texte = "Texte4",
|
|
IdAuteur = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696"),
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"),
|
|
DateCreation = DateTime.Now,
|
|
DateMiseAJour = DateTime.Now
|
|
|
|
};
|
|
epContext.Note.Add(note);
|
|
|
|
note = new Note()
|
|
{
|
|
IdNote = 5,
|
|
Titre = "Titre5",
|
|
Texte = "Texte5",
|
|
IdAuteur = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696"),
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"),
|
|
DateCreation = DateTime.Now,
|
|
DateMiseAJour = DateTime.Now
|
|
|
|
};
|
|
epContext.Note.Add(note);
|
|
|
|
note = new Note()
|
|
{
|
|
IdNote = 6,
|
|
Titre = "Titre6",
|
|
Texte = "Texte6",
|
|
IdAuteur = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"),
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"),
|
|
DateCreation = DateTime.Now,
|
|
DateMiseAJour = DateTime.Now
|
|
|
|
};
|
|
epContext.Note.Add(note);
|
|
|
|
note = new Note()
|
|
{
|
|
IdNote = 7,
|
|
Titre = "Titre7",
|
|
Texte = "Texte7",
|
|
IdAuteur = new Guid(),
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"),
|
|
DateCreation = DateTime.Now,
|
|
DateMiseAJour = DateTime.Now
|
|
|
|
};
|
|
epContext.Note.Add(note);
|
|
|
|
note = new Note()
|
|
{
|
|
IdNote = 8,
|
|
Titre = "Titre8",
|
|
Texte = "Texte8",
|
|
IdAuteur = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"),
|
|
IdCollaborateur = new Guid(),
|
|
DateCreation = DateTime.Now,
|
|
DateMiseAJour = DateTime.Now
|
|
|
|
};
|
|
epContext.Note.Add(note);
|
|
|
|
note = new Note()
|
|
{
|
|
IdNote = 9,
|
|
Titre = "Titre9",
|
|
Texte = "Texte9",
|
|
IdAuteur = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"),
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"),
|
|
DateCreation = DateTime.Now,
|
|
DateMiseAJour = DateTime.Now
|
|
|
|
};
|
|
epContext.Note.Add(note);
|
|
|
|
note = new Note()
|
|
{
|
|
IdNote = 10,
|
|
Titre = "Titre10",
|
|
Texte = "Texte10",
|
|
IdAuteur = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"),
|
|
IdCollaborateur = new Guid(),
|
|
DateCreation = DateTime.Now,
|
|
DateMiseAJour = DateTime.Now
|
|
|
|
};
|
|
epContext.Note.Add(note);
|
|
|
|
epContext.SaveChanges();
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Insérer un jeu de données fictif pour les référents EP
|
|
/// </summary>
|
|
/// <param name="epContext"></param>
|
|
public static void AddRereferentEP(EpContext epContext)
|
|
{
|
|
ReferentEP referentEP;
|
|
|
|
referentEP = new ReferentEP()
|
|
{
|
|
IdCollaborateur = new Guid("842650db-a548-4472-a3af-4c5fff3c1ab8"),
|
|
IdReferent = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696")
|
|
};
|
|
|
|
epContext.ReferentEP.Add(referentEP);
|
|
|
|
referentEP = new ReferentEP()
|
|
{
|
|
IdCollaborateur = new Guid(),
|
|
IdReferent = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696")
|
|
};
|
|
|
|
epContext.ReferentEP.Add(referentEP);
|
|
|
|
referentEP = new ReferentEP()
|
|
{
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"),
|
|
IdReferent = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696")
|
|
};
|
|
|
|
epContext.ReferentEP.Add(referentEP);
|
|
|
|
referentEP = new ReferentEP()
|
|
{
|
|
IdCollaborateur = new Guid("4f3fcd23-a1e4-4c9e-afa2-d06ca9216491"),
|
|
IdReferent = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d")
|
|
};
|
|
|
|
epContext.ReferentEP.Add(referentEP);
|
|
|
|
referentEP = new ReferentEP()
|
|
{
|
|
IdCollaborateur = new Guid("0968ccd3-1ef5-4041-83f3-1c76afb02bbf"),
|
|
IdReferent = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d")
|
|
};
|
|
|
|
epContext.ReferentEP.Add(referentEP);
|
|
|
|
referentEP = new ReferentEP()
|
|
{
|
|
IdCollaborateur = new Guid("1429be5b-9125-482c-80c4-c1d34afbd8d2"),
|
|
IdReferent = new Guid("e7820f92-eab1-42f5-ae96-5c16e71ff1e6")
|
|
};
|
|
|
|
epContext.ReferentEP.Add(referentEP);
|
|
|
|
referentEP = new ReferentEP()
|
|
{
|
|
IdCollaborateur = new Guid("13fbe621-1bc9-4f04-afde-b54ca076e239"),
|
|
IdReferent = new Guid("e7820f92-eab1-42f5-ae96-5c16e71ff1e6")
|
|
};
|
|
|
|
epContext.ReferentEP.Add(referentEP);
|
|
|
|
referentEP = new ReferentEP()
|
|
{
|
|
IdCollaborateur = new Guid("b5254c6c-7caa-435f-a4bb-e0cf92559832"),
|
|
IdReferent = new Guid("de98a866-736f-4295-a669-92a8694e2ee3")
|
|
};
|
|
|
|
epContext.ReferentEP.Add(referentEP);
|
|
|
|
referentEP = new ReferentEP()
|
|
{
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"),
|
|
IdReferent = new Guid("de98a866-736f-4295-a669-92a8694e2ee3")
|
|
};
|
|
|
|
epContext.ReferentEP.Add(referentEP);
|
|
|
|
epContext.SaveChanges();
|
|
|
|
}
|
|
}
|
|
}
|
|
|