|
|
|
@ -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,11 +84,21 @@ 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; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Ep en cours |
|
|
|
|
Ep epEnCours1, epEnCours2, epEnCours3, epEnCours4, epEnCours5, epEnCours6, epEnCours7, epEnCours8, epEnCours9; |
|
|
|
|
|
|
|
|
@ -141,6 +151,32 @@ namespace EPAServeur.Context |
|
|
|
|
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 }); |
|
|
|
|
epContext.Ep.Add(epEnCours2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -170,7 +206,10 @@ namespace EPAServeur.Context |
|
|
|
|
EstPermanente = false |
|
|
|
|
}; |
|
|
|
|
epEnCours3.Participants = new List<ParticipationEP>(new[] { p1, p2 }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
epContext.Ep.Add(epEnCours3); |
|
|
|
|
|
|
|
|
|
epEnCours4 = new Ep() |
|
|
|
@ -208,6 +247,8 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"), |
|
|
|
|
Obligatoire = true, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
p3 = new ParticipationEP() |
|
|
|
|
{ |
|
|
|
|
Ep = epEnCours5, |
|
|
|
@ -215,6 +256,29 @@ namespace EPAServeur.Context |
|
|
|
|
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 = typeSite |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
epEnCours5.PropositionsRDV = new List<RdvEntretien>(new[] { rdv2, proposition3 }); |
|
|
|
|
epEnCours5.RdvEntretien = rdv2; |
|
|
|
|
|
|
|
|
|
epContext.Ep.Add(epEnCours5); |
|
|
|
|
|
|
|
|
|
epEnCours6 = new Ep() |
|
|
|
@ -384,8 +448,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), |
|
|
|
|