|
|
@ -85,9 +85,12 @@ namespace EPAServeur.Context |
|
|
|
public static void AddEp(EpContext epContext) |
|
|
|
public static void AddEp(EpContext epContext) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Engagement eg1, eg2, eg3, eg4; |
|
|
|
Engagement eg1, eg2, eg3, eg4; |
|
|
|
|
|
|
|
ParticipationEP p1, p2, p3, p4, p5; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Ep en cours |
|
|
|
//Ep en cours |
|
|
|
Ep epEnCours1, epEnCours2, epEnCours3, epEnCours4, epEnCours5, epEnCours6, epEnCours7, epEnCours8, epEnCours9; |
|
|
|
Ep epEnCours1, epEnCours2, epEnCours3, epEnCours4, epEnCours5, epEnCours6, epEnCours7, epEnCours8, epEnCours9; |
|
|
|
//Tours |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
epEnCours1 = new Ep() |
|
|
|
epEnCours1 = new Ep() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -130,6 +133,20 @@ namespace EPAServeur.Context |
|
|
|
IdCollaborateur = new Guid("b5254c6c-7caa-435f-a4bb-e0cf92559832"), |
|
|
|
IdCollaborateur = new Guid("b5254c6c-7caa-435f-a4bb-e0cf92559832"), |
|
|
|
Obligatoire = false, |
|
|
|
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 }); |
|
|
|
|
|
|
|
|
|
|
|
epContext.Ep.Add(epEnCours3); |
|
|
|
epContext.Ep.Add(epEnCours3); |
|
|
|
|
|
|
|
|
|
|
|
epEnCours4 = new Ep() |
|
|
|
epEnCours4 = new Ep() |
|
|
@ -158,6 +175,13 @@ namespace EPAServeur.Context |
|
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"), |
|
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"), |
|
|
|
Obligatoire = true, |
|
|
|
Obligatoire = true, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
p3 = new ParticipationEP() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Ep = epEnCours5, |
|
|
|
|
|
|
|
IdParticipant = new Guid("d4fc247b-015a-44d6-8f3e-a52f0902d2bf"), |
|
|
|
|
|
|
|
EstPermanente = false |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
epEnCours5.Participants = new List<ParticipationEP>(new[] { p3 }); |
|
|
|
epContext.Ep.Add(epEnCours5); |
|
|
|
epContext.Ep.Add(epEnCours5); |
|
|
|
|
|
|
|
|
|
|
|
epEnCours6 = new Ep() |
|
|
|
epEnCours6 = new Ep() |
|
|
@ -289,6 +313,19 @@ namespace EPAServeur.Context |
|
|
|
IdCollaborateur = new Guid("e7820f92-eab1-42f5-ae96-5c16e71ff1e6"), |
|
|
|
IdCollaborateur = new Guid("e7820f92-eab1-42f5-ae96-5c16e71ff1e6"), |
|
|
|
Obligatoire = false, |
|
|
|
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); |
|
|
|
epContext.Ep.Add(epSigne2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|