|
|
|
@ -63,16 +63,16 @@ namespace EPAServeur.Context |
|
|
|
|
//TypeEntretien |
|
|
|
|
TypeEntretien typeSite, typeClient, typeVisio, typeTelephone; |
|
|
|
|
|
|
|
|
|
typeSite = new TypeEntretien { Libelle = "Sur site" }; |
|
|
|
|
typeSite = new TypeEntretien { IdTypeEntretien = 1, Libelle = "Sur site" }; |
|
|
|
|
epContext.TypeEntretien.Add(typeSite); |
|
|
|
|
|
|
|
|
|
typeClient = new TypeEntretien { Libelle = "Chez le client" }; |
|
|
|
|
typeClient = new TypeEntretien { IdTypeEntretien = 2, Libelle = "Chez le client" }; |
|
|
|
|
epContext.TypeEntretien.Add(typeClient); |
|
|
|
|
|
|
|
|
|
typeVisio = new TypeEntretien { Libelle = "Visioconférence" }; |
|
|
|
|
typeVisio = new TypeEntretien { IdTypeEntretien = 3, Libelle = "Visioconférence" }; |
|
|
|
|
epContext.TypeEntretien.Add(typeVisio); |
|
|
|
|
|
|
|
|
|
typeTelephone = new TypeEntretien { Libelle = "Téléphonique" }; |
|
|
|
|
typeTelephone = new TypeEntretien { IdTypeEntretien = 4, Libelle = "Téléphonique" }; |
|
|
|
|
epContext.TypeEntretien.Add(typeTelephone); |
|
|
|
|
|
|
|
|
|
epContext.SaveChanges(); |
|
|
|
@ -84,9 +84,32 @@ namespace EPAServeur.Context |
|
|
|
|
/// <param name="epContext"></param> |
|
|
|
|
public static void AddEp(EpContext epContext) |
|
|
|
|
{ |
|
|
|
|
TypeEntretien typeSite, typeClient, typeVisio, typeTelephone; |
|
|
|
|
typeSite = epContext.TypeEntretien.Find((long)1); |
|
|
|
|
typeClient = epContext.TypeEntretien.Find((long)2); |
|
|
|
|
typeVisio = epContext.TypeEntretien.Find((long)3); |
|
|
|
|
typeTelephone = epContext.TypeEntretien.Find((long)4); |
|
|
|
|
|
|
|
|
|
Engagement eg1, eg2, eg3, eg4; |
|
|
|
|
ParticipationEP p1, p2, p3, p4, p5; |
|
|
|
|
CommentaireAssistant ca1, ca2, ca3; |
|
|
|
|
DemandeDelegation dm1, dm2, dm3; |
|
|
|
|
RdvEntretien rdv1, rdv2, rdv3; |
|
|
|
|
|
|
|
|
|
RdvEntretien proposition1, proposition2, proposition3; |
|
|
|
|
|
|
|
|
|
ChoixTypeEntretien choix1, choix2, choix3, choix4, choix5, choix6, choix7; |
|
|
|
|
|
|
|
|
|
Objectif objectif1, objectif2, objectif3, objectif4, objectif5, objectif6, objectif7, objectif8, objectif9; |
|
|
|
|
|
|
|
|
|
ObjectifPrecedent objectifPrecedent1, objectifPrecedent2, objectifPrecedent3, objectifPrecedent4, objectifPrecedent5, objectifPrecedent6; |
|
|
|
|
|
|
|
|
|
DemandeEPI demandeEPI1, demandeEPI2, demandeEPI3; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Ep en cours |
|
|
|
|
Ep epEnCours1, epEnCours2, epEnCours3, epEnCours4, epEnCours5, epEnCours6, epEnCours7, epEnCours8, epEnCours9; |
|
|
|
|
//Tours |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
epEnCours1 = new Ep() |
|
|
|
|
{ |
|
|
|
@ -114,6 +137,82 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("e7820f92-eab1-42f5-ae96-5c16e71ff1e6"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
ca1 = new CommentaireAssistant() |
|
|
|
|
{ |
|
|
|
|
Commentaire = "Commentaire assistant", |
|
|
|
|
IdAssistant = new Guid("a43b6f4f-f199-4dd0-93b6-a1cb2c0a0d14"), |
|
|
|
|
Ep = epEnCours2 |
|
|
|
|
}; |
|
|
|
|
ca2 = new CommentaireAssistant() |
|
|
|
|
{ |
|
|
|
|
Commentaire = "Commentaire assistant", |
|
|
|
|
IdAssistant = new Guid("a29d707c-5d82-4c48-bed1-a6d1c1710047"), |
|
|
|
|
Ep = epEnCours2 |
|
|
|
|
}; |
|
|
|
|
epEnCours2.CommentairesAssistant = new List<CommentaireAssistant>(new[] { ca1, ca2 }); |
|
|
|
|
dm1 = new DemandeDelegation() |
|
|
|
|
{ |
|
|
|
|
DateDemande = DateTime.Now, |
|
|
|
|
Ep = epEnCours1, |
|
|
|
|
IdReferent = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), |
|
|
|
|
EtatDemande = EtatDemande.EnAttente, |
|
|
|
|
RaisonDemande = "Raison quelconque 1" |
|
|
|
|
}; |
|
|
|
|
epEnCours2.DemandeDelegation = dm1; |
|
|
|
|
|
|
|
|
|
rdv1 = new RdvEntretien() |
|
|
|
|
{ |
|
|
|
|
IdRdvEntretien = 1, |
|
|
|
|
DateEntretien = new DateTime(), |
|
|
|
|
EpChoixRDV = epEnCours2, |
|
|
|
|
TypeEntretien = typeClient, |
|
|
|
|
EpProposition = epEnCours2 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
epEnCours2.RdvEntretien = rdv1; |
|
|
|
|
proposition1 = new RdvEntretien() |
|
|
|
|
{ |
|
|
|
|
DateEntretien = new DateTime(), |
|
|
|
|
EpProposition = epEnCours2, |
|
|
|
|
IdRdvEntretien = 2, |
|
|
|
|
TypeEntretien = typeSite |
|
|
|
|
}; |
|
|
|
|
proposition2 = new RdvEntretien() |
|
|
|
|
{ |
|
|
|
|
DateEntretien = new DateTime(), |
|
|
|
|
EpProposition = epEnCours2, |
|
|
|
|
IdRdvEntretien = 3, |
|
|
|
|
TypeEntretien = typeVisio |
|
|
|
|
}; |
|
|
|
|
epEnCours2.PropositionsRDV = new List<RdvEntretien>(new[] { rdv1, proposition1, proposition2 }); |
|
|
|
|
|
|
|
|
|
choix1 = new ChoixTypeEntretien() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours2, |
|
|
|
|
Ordre = 0, |
|
|
|
|
TypeEntretien = typeClient |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
choix2 = new ChoixTypeEntretien() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours2, |
|
|
|
|
Ordre = 1, |
|
|
|
|
TypeEntretien = typeSite |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
choix3 = new ChoixTypeEntretien() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours2, |
|
|
|
|
Ordre = 2, |
|
|
|
|
TypeEntretien = typeVisio |
|
|
|
|
}; |
|
|
|
|
choix4 = new ChoixTypeEntretien() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours2, |
|
|
|
|
Ordre = 3, |
|
|
|
|
TypeEntretien = typeTelephone |
|
|
|
|
}; |
|
|
|
|
epEnCours2.ChoixTypeEntretien = new List<ChoixTypeEntretien>() { choix1, choix2, choix3, choix4 }; |
|
|
|
|
epContext.Ep.Add(epEnCours2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -129,6 +228,34 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("b5254c6c-7caa-435f-a4bb-e0cf92559832"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
p1 = new ParticipationEP() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours3, |
|
|
|
|
IdParticipant = new Guid("eb8b0f33-f529-4985-861e-1207f3312bb5"), |
|
|
|
|
EstPermanente = false |
|
|
|
|
}; |
|
|
|
|
p2 = new ParticipationEP() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours3, |
|
|
|
|
IdParticipant = new Guid("d4fc247b-015a-44d6-8f3e-a52f0902d2bf"), |
|
|
|
|
EstPermanente = false |
|
|
|
|
}; |
|
|
|
|
epEnCours3.Participants = new List<ParticipationEP>(new[] { p1, p2 }); |
|
|
|
|
|
|
|
|
|
objectif1 = new Objectif() { Ep = epEnCours3, Libelle = "Objectif1" }; |
|
|
|
|
objectif2 = new Objectif() { Ep = epEnCours3, Libelle = "Objectif2" }; |
|
|
|
|
objectif3 = new Objectif() { Ep = epEnCours3, Libelle = "Objectif3" }; |
|
|
|
|
|
|
|
|
|
objectifPrecedent1 = new ObjectifPrecedent() { Ep = epEnCours3, Libelle = "ObjectifPrec1", Commentaire = "Commentaire", StatutObjectif = StatutObjectif.Atteint }; |
|
|
|
|
objectifPrecedent2 = new ObjectifPrecedent() { Ep = epEnCours3, Libelle = "ObjectifPrec2", Commentaire = "Commentaire", StatutObjectif = StatutObjectif.Partiel }; |
|
|
|
|
objectifPrecedent3 = new ObjectifPrecedent() { Ep = epEnCours3, Libelle = "ObjectifPrec3", Commentaire = "Commentaire", StatutObjectif = StatutObjectif.Partiel }; |
|
|
|
|
epEnCours3.Objectifs = new List<Objectif>() { objectif1, objectif2, objectif3 }; |
|
|
|
|
epEnCours3.ObjectifsPrecedents = new List<ObjectifPrecedent>() { objectifPrecedent1, objectifPrecedent2, objectifPrecedent3 }; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
epContext.Ep.Add(epEnCours3); |
|
|
|
|
|
|
|
|
|
epEnCours4 = new Ep() |
|
|
|
@ -143,6 +270,36 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("a0f40e2a-cc03-4032-a627-5389e1281c64"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
dm2 = new DemandeDelegation() |
|
|
|
|
{ |
|
|
|
|
DateDemande = DateTime.Now, |
|
|
|
|
Ep = epEnCours4, |
|
|
|
|
IdReferent = new Guid("d4fc247b-015a-44d6-8f3e-a52f0902d2bf"), |
|
|
|
|
EtatDemande = EtatDemande.EnAttente, |
|
|
|
|
RaisonDemande = "Raison quelconque 2" |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
demandeEPI1 = new DemandeEPI() |
|
|
|
|
{ |
|
|
|
|
IdReferent = new Guid("eb8b0f33-f529-4985-861e-1207f3312bb5"), |
|
|
|
|
Ep = epEnCours4, |
|
|
|
|
DateDemande = new DateTime(), |
|
|
|
|
DateReponse = new DateTime(), |
|
|
|
|
EtatDemande = EtatDemande.Validee, |
|
|
|
|
IdCollaborateur = new Guid("a0f40e2a-cc03-4032-a627-5389e1281c64") |
|
|
|
|
}; |
|
|
|
|
epEnCours4.DemandeEPI = demandeEPI1; |
|
|
|
|
epEnCours4.DemandeDelegation = dm2; |
|
|
|
|
|
|
|
|
|
choix5 = new ChoixTypeEntretien() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours4, |
|
|
|
|
Ordre = 0, |
|
|
|
|
TypeEntretien = typeSite |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
epEnCours4.ChoixTypeEntretien = new List<ChoixTypeEntretien>() { choix5 }; |
|
|
|
|
|
|
|
|
|
epContext.Ep.Add(epEnCours4); |
|
|
|
|
|
|
|
|
|
epEnCours5 = new Ep() |
|
|
|
@ -157,6 +314,54 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"), |
|
|
|
|
Obligatoire = true, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
p3 = new ParticipationEP() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours5, |
|
|
|
|
IdParticipant = new Guid("d4fc247b-015a-44d6-8f3e-a52f0902d2bf"), |
|
|
|
|
EstPermanente = false |
|
|
|
|
}; |
|
|
|
|
epEnCours5.Participants = new List<ParticipationEP>(new[] { p3 }); |
|
|
|
|
|
|
|
|
|
rdv2 = new RdvEntretien() |
|
|
|
|
{ |
|
|
|
|
DateEntretien = new DateTime(), |
|
|
|
|
EpProposition = epEnCours5, |
|
|
|
|
IdRdvEntretien = 4, |
|
|
|
|
TypeEntretien = typeSite, |
|
|
|
|
EpChoixRDV = epEnCours5 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
proposition3 = new RdvEntretien() |
|
|
|
|
{ |
|
|
|
|
DateEntretien = new DateTime(), |
|
|
|
|
EpProposition = epEnCours5, |
|
|
|
|
IdRdvEntretien = 5, |
|
|
|
|
TypeEntretien = typeVisio |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
epEnCours5.PropositionsRDV = new List<RdvEntretien>(new[] { rdv2, proposition3 }); |
|
|
|
|
epEnCours5.RdvEntretien = rdv2; |
|
|
|
|
|
|
|
|
|
choix6 = new ChoixTypeEntretien() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours5, |
|
|
|
|
Ordre = 0, |
|
|
|
|
TypeEntretien = typeSite |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
choix7 = new ChoixTypeEntretien() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours5, |
|
|
|
|
Ordre = 1, |
|
|
|
|
TypeEntretien = typeVisio |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
epEnCours5.ChoixTypeEntretien = new List<ChoixTypeEntretien>() { choix6, choix7 }; |
|
|
|
|
epContext.Ep.Add(epEnCours5); |
|
|
|
|
|
|
|
|
|
epEnCours6 = new Ep() |
|
|
|
@ -171,6 +376,37 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("de98a866-736f-4295-a669-92a8694e2ee3"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
eg1 = new Engagement() |
|
|
|
|
{ |
|
|
|
|
Action = "action", |
|
|
|
|
DateLimite = DateTime.Now, |
|
|
|
|
Dispositif = "dispositif", |
|
|
|
|
EtatEngagement = EtatEngagement.EnAttente, |
|
|
|
|
Modalite = "modalite", |
|
|
|
|
Ep = epEnCours6 |
|
|
|
|
}; |
|
|
|
|
eg2 = new Engagement() |
|
|
|
|
{ |
|
|
|
|
Action = "action", |
|
|
|
|
DateLimite = DateTime.Now, |
|
|
|
|
Dispositif = "dispositif", |
|
|
|
|
EtatEngagement = EtatEngagement.EnAttente, |
|
|
|
|
Modalite = "modalite", |
|
|
|
|
Ep = epEnCours6 |
|
|
|
|
}; |
|
|
|
|
eg3 = new Engagement() |
|
|
|
|
{ |
|
|
|
|
Action = "action", |
|
|
|
|
DateLimite = DateTime.Now, |
|
|
|
|
Dispositif = "dispositif", |
|
|
|
|
EtatEngagement = EtatEngagement.EnAttente, |
|
|
|
|
Modalite = "modalite", |
|
|
|
|
Ep = epEnCours6 |
|
|
|
|
}; |
|
|
|
|
epEnCours6.Engagements = new List<Engagement>(); |
|
|
|
|
epEnCours6.Engagements.Add(eg1); |
|
|
|
|
epEnCours6.Engagements.Add(eg2); |
|
|
|
|
epEnCours6.Engagements.Add(eg3); |
|
|
|
|
epContext.Ep.Add(epEnCours6); |
|
|
|
|
|
|
|
|
|
epEnCours7 = new Ep() |
|
|
|
@ -185,6 +421,11 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("4f3fcd23-a1e4-4c9e-afa2-d06ca9216491"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
objectif4 = new Objectif() { Ep = epEnCours7, Libelle = "Objectif4" }; |
|
|
|
|
objectif5 = new Objectif() { Ep = epEnCours7, Libelle = "Objectif5" }; |
|
|
|
|
objectif6 = new Objectif() { Ep = epEnCours7, Libelle = "Objectif6" }; |
|
|
|
|
|
|
|
|
|
epEnCours7.Objectifs = new List<Objectif>() { objectif4, objectif5, objectif6 }; |
|
|
|
|
epContext.Ep.Add(epEnCours7); |
|
|
|
|
|
|
|
|
|
epEnCours8 = new Ep() |
|
|
|
@ -200,6 +441,26 @@ namespace EPAServeur.Context |
|
|
|
|
Obligatoire = true, |
|
|
|
|
}; |
|
|
|
|
epContext.Ep.Add(epEnCours8); |
|
|
|
|
dm3 = new DemandeDelegation() |
|
|
|
|
{ |
|
|
|
|
DateDemande = DateTime.Now, |
|
|
|
|
Ep = epEnCours8, |
|
|
|
|
IdReferent = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), |
|
|
|
|
EtatDemande = EtatDemande.EnAttente, |
|
|
|
|
RaisonDemande = "Raison quelconque 3" |
|
|
|
|
}; |
|
|
|
|
epEnCours8.DemandeDelegation = dm3; |
|
|
|
|
|
|
|
|
|
demandeEPI2 = new DemandeEPI() |
|
|
|
|
{ |
|
|
|
|
IdReferent = new Guid("ea027734-ff0f-4308-8879-133a09fb3c46"), |
|
|
|
|
Ep = epEnCours8, |
|
|
|
|
DateDemande = new DateTime(), |
|
|
|
|
DateReponse = new DateTime(), |
|
|
|
|
EtatDemande = EtatDemande.Validee, |
|
|
|
|
IdCollaborateur = new Guid("0968ccd3-1ef5-4041-83f3-1c76afb02bbf"), |
|
|
|
|
}; |
|
|
|
|
epEnCours8.DemandeEPI = demandeEPI2; |
|
|
|
|
|
|
|
|
|
epEnCours9 = new Ep() |
|
|
|
|
{ |
|
|
|
@ -213,13 +474,14 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("13fbe621-1bc9-4f04-afde-b54ca076e239"), |
|
|
|
|
Obligatoire = true, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
epContext.Ep.Add(epEnCours9); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Ep signés |
|
|
|
|
Ep epSigne1, epSigne2, epSigne3, epSigne4, epSigne5, epSigne6, epSigne7, epSigne8, epSigne9;//, epSigne10, epSigne11, epSigne12, epSigne13, epSigne14; |
|
|
|
|
Ep epSigne1, epSigne2, epSigne3, epSigne4, epSigne5, epSigne6, epSigne7, epSigne8, epSigne9; |
|
|
|
|
epSigne1 = new Ep() |
|
|
|
|
{ |
|
|
|
|
DateDisponibilite = new DateTime(2017, 1, 15), |
|
|
|
@ -232,6 +494,28 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("301ba7f3-095e-4912-8998-a7c942dc5f23"), |
|
|
|
|
Obligatoire = true, |
|
|
|
|
}; |
|
|
|
|
eg4 = new Engagement() |
|
|
|
|
{ |
|
|
|
|
Action = "action", |
|
|
|
|
DateLimite = DateTime.Now, |
|
|
|
|
Dispositif = "dispositif", |
|
|
|
|
EtatEngagement = EtatEngagement.EnAttente, |
|
|
|
|
Modalite = "modalite", |
|
|
|
|
Ep = epSigne1 |
|
|
|
|
}; |
|
|
|
|
epSigne1.Engagements = new List<Engagement>(); |
|
|
|
|
epSigne1.Engagements.Add(eg4); |
|
|
|
|
|
|
|
|
|
objectif7 = new Objectif() { Ep = epSigne1, Libelle = "Objectif7" }; |
|
|
|
|
objectif8 = new Objectif() { Ep = epSigne1, Libelle = "Objectif8" }; |
|
|
|
|
objectif9 = new Objectif() { Ep = epSigne1, Libelle = "Objectif9" }; |
|
|
|
|
|
|
|
|
|
objectifPrecedent4 = new ObjectifPrecedent() { Ep = epSigne1, Libelle = "ObjectifPrec4", Commentaire = "Commentaire", StatutObjectif = StatutObjectif.NonAtteint }; |
|
|
|
|
objectifPrecedent5 = new ObjectifPrecedent() { Ep = epSigne1, Libelle = "ObjectifPrec5", Commentaire = "Commentaire", StatutObjectif = StatutObjectif.NonAtteint }; |
|
|
|
|
objectifPrecedent6 = new ObjectifPrecedent() { Ep = epSigne1, Libelle = "ObjectifPrec6", Commentaire = "Commentaire", StatutObjectif = StatutObjectif.Atteint }; |
|
|
|
|
epSigne1.Objectifs = new List<Objectif>() { objectif7, objectif8, objectif9 }; |
|
|
|
|
epSigne1.ObjectifsPrecedents = new List<ObjectifPrecedent>() { objectifPrecedent4, objectifPrecedent6, objectifPrecedent5 }; |
|
|
|
|
|
|
|
|
|
epContext.Ep.Add(epSigne1); |
|
|
|
|
|
|
|
|
|
epSigne2 = new Ep() |
|
|
|
@ -246,6 +530,19 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("e7820f92-eab1-42f5-ae96-5c16e71ff1e6"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
p4 = new ParticipationEP() |
|
|
|
|
{ |
|
|
|
|
Ep = epSigne2, |
|
|
|
|
IdParticipant = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), |
|
|
|
|
EstPermanente = false |
|
|
|
|
}; |
|
|
|
|
p5 = new ParticipationEP() |
|
|
|
|
{ |
|
|
|
|
Ep = epSigne2, |
|
|
|
|
IdParticipant = new Guid("eb8b0f33-f529-4985-861e-1207f3312bb5"), |
|
|
|
|
EstPermanente = false |
|
|
|
|
}; |
|
|
|
|
epSigne2.Participants = new List<ParticipationEP>(new[] { p4, p5 }); |
|
|
|
|
epContext.Ep.Add(epSigne2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -261,8 +558,21 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("b5254c6c-7caa-435f-a4bb-e0cf92559832"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
rdv3 = new RdvEntretien() |
|
|
|
|
{ |
|
|
|
|
IdRdvEntretien = 6, |
|
|
|
|
TypeEntretien = typeVisio, |
|
|
|
|
DateEntretien = new DateTime(), |
|
|
|
|
EpChoixRDV = epSigne3 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
epSigne3.RdvEntretien = rdv3; |
|
|
|
|
epContext.Ep.Add(epSigne3); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
epSigne4 = new Ep() |
|
|
|
|
{ |
|
|
|
|
DateDisponibilite = new DateTime(2017, 1, 20), |
|
|
|
@ -275,6 +585,17 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("a0f40e2a-cc03-4032-a627-5389e1281c64"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
demandeEPI3 = new DemandeEPI() |
|
|
|
|
{ |
|
|
|
|
IdReferent = new Guid("eb8b0f33-f529-4985-861e-1207f3312bb5"), |
|
|
|
|
IdCollaborateur = new Guid("a0f40e2a-cc03-4032-a627-5389e1281c64"), |
|
|
|
|
DateDemande = new DateTime(), |
|
|
|
|
EtatDemande = EtatDemande.Validee, |
|
|
|
|
DateReponse = new DateTime(), |
|
|
|
|
Ep = epSigne4 |
|
|
|
|
}; |
|
|
|
|
epSigne4.DemandeEPI = demandeEPI3; |
|
|
|
|
|
|
|
|
|
epContext.Ep.Add(epSigne4); |
|
|
|
|
|
|
|
|
|
epSigne5 = new Ep() |
|
|
|
@ -303,6 +624,7 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("a0f40e2a-cc03-4032-a627-5389e1281c64"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
epContext.Ep.Add(epSigne6); |
|
|
|
|
|
|
|
|
|
epSigne7 = new Ep() |
|
|
|
@ -317,8 +639,16 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("13fbe621-1bc9-4f04-afde-b54ca076e239"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
ca3 = new CommentaireAssistant() |
|
|
|
|
{ |
|
|
|
|
Commentaire = "Commentaire assistant", |
|
|
|
|
IdAssistant = new Guid("e6255f16-bcaf-48ac-b00b-97de83677ad8"), |
|
|
|
|
Ep = epSigne7 |
|
|
|
|
}; |
|
|
|
|
epSigne7.CommentairesAssistant = new List<CommentaireAssistant>(); |
|
|
|
|
epSigne7.CommentairesAssistant.Add(ca3); |
|
|
|
|
epContext.Ep.Add(epSigne7); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
epSigne8 = new Ep() |
|
|
|
|
{ |
|
|
|
|
DateDisponibilite = new DateTime(2020, 2, 13), |
|
|
|
@ -2005,5 +2335,6 @@ namespace EPAServeur.Context |
|
|
|
|
|
|
|
|
|
context.SaveChanges(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|