|
|
|
@ -84,6 +84,7 @@ namespace EPAServeur.Context |
|
|
|
|
/// <param name="epContext"></param> |
|
|
|
|
public static void AddEp(EpContext epContext) |
|
|
|
|
{ |
|
|
|
|
Engagement eg1, eg2, eg3, eg4; |
|
|
|
|
//Ep en cours |
|
|
|
|
Ep epEnCours1, epEnCours2, epEnCours3, epEnCours4, epEnCours5, epEnCours6, epEnCours7, epEnCours8, epEnCours9; |
|
|
|
|
//Tours |
|
|
|
@ -171,6 +172,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() |
|
|
|
@ -219,7 +251,7 @@ namespace EPAServeur.Context |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//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 +264,17 @@ 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); |
|
|
|
|
epContext.Ep.Add(epSigne1); |
|
|
|
|
|
|
|
|
|
epSigne2 = new Ep() |
|
|
|
@ -303,6 +346,7 @@ namespace EPAServeur.Context |
|
|
|
|
IdCollaborateur = new Guid("a0f40e2a-cc03-4032-a627-5389e1281c64"), |
|
|
|
|
Obligatoire = false, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
epContext.Ep.Add(epSigne6); |
|
|
|
|
|
|
|
|
|
epSigne7 = new Ep() |
|
|
|
|