|
|
@ -143,7 +143,7 @@ namespace EPAServeur.Context |
|
|
|
|
|
|
|
|
|
|
|
ep3 = new Ep |
|
|
|
ep3 = new Ep |
|
|
|
{ |
|
|
|
{ |
|
|
|
IdCollaborateur = Guid.Parse("006226f6-51b2-4a02-a302-7447f7fccc04"), |
|
|
|
IdCollaborateur = Guid.Parse("17b87130-0e9d-4b78-b0e3-a11e5f70318d"), |
|
|
|
IdReferent = Guid.Parse("ecf528c3-e509-402f-87bb-c8821467e350"), |
|
|
|
IdReferent = Guid.Parse("ecf528c3-e509-402f-87bb-c8821467e350"), |
|
|
|
IdBu = 2, |
|
|
|
IdBu = 2, |
|
|
|
Fonction = "Dev", |
|
|
|
Fonction = "Dev", |
|
|
@ -161,7 +161,7 @@ namespace EPAServeur.Context |
|
|
|
ep4 = new Ep |
|
|
|
ep4 = new Ep |
|
|
|
{ |
|
|
|
{ |
|
|
|
IdCollaborateur = Guid.Parse("f960f851-16b6-4631-952e-d05f38d8d80f"), |
|
|
|
IdCollaborateur = Guid.Parse("f960f851-16b6-4631-952e-d05f38d8d80f"), |
|
|
|
IdReferent = Guid.Parse("6aa62dcb-f7c9-4c0c-af40-e934a4d6a7eb"), |
|
|
|
IdReferent = Guid.Parse("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), |
|
|
|
IdBu = 2, |
|
|
|
IdBu = 2, |
|
|
|
Fonction = "Dev", |
|
|
|
Fonction = "Dev", |
|
|
|
TypeEP = TypeEp.EPA, |
|
|
|
TypeEP = TypeEp.EPA, |
|
|
@ -828,8 +828,8 @@ namespace EPAServeur.Context |
|
|
|
IdNote = 1, |
|
|
|
IdNote = 1, |
|
|
|
Titre = "Titre1", |
|
|
|
Titre = "Titre1", |
|
|
|
Texte = "Texte1", |
|
|
|
Texte = "Texte1", |
|
|
|
IdAuteur = new Guid("ecf528c3-e509-402f-87bb-c8821467e350"), |
|
|
|
IdAuteur = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696"), |
|
|
|
IdCollaborateur = new Guid("fc1d7593-83c3-44de-b3f5-53dbe53c0830"), |
|
|
|
IdCollaborateur = new Guid("842650db-a548-4472-a3af-4c5fff3c1ab8"), |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
|
|
|
|
|
|
|
@ -841,8 +841,8 @@ namespace EPAServeur.Context |
|
|
|
IdNote = 2, |
|
|
|
IdNote = 2, |
|
|
|
Titre = "Titre2", |
|
|
|
Titre = "Titre2", |
|
|
|
Texte = "Texte2", |
|
|
|
Texte = "Texte2", |
|
|
|
IdAuteur = new Guid("ecf528c3-e509-402f-87bb-c8821467e350"), |
|
|
|
IdAuteur = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696"), |
|
|
|
IdCollaborateur = new Guid("fc1d7593-83c3-44de-b3f5-53dbe53c0830"), |
|
|
|
IdCollaborateur = new Guid("842650db-a548-4472-a3af-4c5fff3c1ab8"), |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
|
|
|
|
|
|
|
@ -854,8 +854,8 @@ namespace EPAServeur.Context |
|
|
|
IdNote = 3, |
|
|
|
IdNote = 3, |
|
|
|
Titre = "Titre3", |
|
|
|
Titre = "Titre3", |
|
|
|
Texte = "Texte3", |
|
|
|
Texte = "Texte3", |
|
|
|
IdAuteur = new Guid("073a4fb0-45c3-11eb-b378-0242ac130002"), |
|
|
|
IdAuteur = new Guid(), |
|
|
|
IdCollaborateur = new Guid("fc1d7593-83c3-44de-b3f5-53dbe53c0830"), |
|
|
|
IdCollaborateur = new Guid("842650db-a548-4472-a3af-4c5fff3c1ab8"), |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
|
|
|
|
|
|
|
@ -867,8 +867,8 @@ namespace EPAServeur.Context |
|
|
|
IdNote = 4, |
|
|
|
IdNote = 4, |
|
|
|
Titre = "Titre4", |
|
|
|
Titre = "Titre4", |
|
|
|
Texte = "Texte4", |
|
|
|
Texte = "Texte4", |
|
|
|
IdAuteur = new Guid("ecf528c3-e509-402f-87bb-c8821467e350"), |
|
|
|
IdAuteur = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696"), |
|
|
|
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"), |
|
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"), |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
|
|
|
|
|
|
|
@ -880,8 +880,8 @@ namespace EPAServeur.Context |
|
|
|
IdNote = 5, |
|
|
|
IdNote = 5, |
|
|
|
Titre = "Titre5", |
|
|
|
Titre = "Titre5", |
|
|
|
Texte = "Texte5", |
|
|
|
Texte = "Texte5", |
|
|
|
IdAuteur = new Guid("ecf528c3-e509-402f-87bb-c8821467e350"), |
|
|
|
IdAuteur = new Guid("aa36f34c-9041-42f5-9db3-6536fe7f1696"), |
|
|
|
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"), |
|
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"), |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
|
|
|
|
|
|
|
@ -893,8 +893,8 @@ namespace EPAServeur.Context |
|
|
|
IdNote = 6, |
|
|
|
IdNote = 6, |
|
|
|
Titre = "Titre6", |
|
|
|
Titre = "Titre6", |
|
|
|
Texte = "Texte6", |
|
|
|
Texte = "Texte6", |
|
|
|
IdAuteur = new Guid("6aa62dcb-f7c9-4c0c-af40-e934a4d6a7eb"), |
|
|
|
IdAuteur = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), |
|
|
|
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"), |
|
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"), |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
|
|
|
|
|
|
|
@ -906,8 +906,8 @@ namespace EPAServeur.Context |
|
|
|
IdNote = 7, |
|
|
|
IdNote = 7, |
|
|
|
Titre = "Titre7", |
|
|
|
Titre = "Titre7", |
|
|
|
Texte = "Texte7", |
|
|
|
Texte = "Texte7", |
|
|
|
IdAuteur = new Guid("073a4fb0-45c3-11eb-b378-0242ac130002"), |
|
|
|
IdAuteur = new Guid(), |
|
|
|
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"), |
|
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"), |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
|
|
|
|
|
|
|
@ -919,8 +919,8 @@ namespace EPAServeur.Context |
|
|
|
IdNote = 8, |
|
|
|
IdNote = 8, |
|
|
|
Titre = "Titre8", |
|
|
|
Titre = "Titre8", |
|
|
|
Texte = "Texte8", |
|
|
|
Texte = "Texte8", |
|
|
|
IdAuteur = new Guid("571463f3-b286-4a21-9eab-0707dc506dec"), |
|
|
|
IdAuteur = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), |
|
|
|
IdCollaborateur = new Guid("227e0e1a-45c3-11eb-b378-0242ac130002"), |
|
|
|
IdCollaborateur = new Guid(), |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
|
|
|
|
|
|
|
@ -932,8 +932,8 @@ namespace EPAServeur.Context |
|
|
|
IdNote = 9, |
|
|
|
IdNote = 9, |
|
|
|
Titre = "Titre9", |
|
|
|
Titre = "Titre9", |
|
|
|
Texte = "Texte9", |
|
|
|
Texte = "Texte9", |
|
|
|
IdAuteur = new Guid("571463f3-b286-4a21-9eab-0707dc506dec"), |
|
|
|
IdAuteur = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), |
|
|
|
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"), |
|
|
|
IdCollaborateur = new Guid("17b87130-0e9d-4b78-b0e3-a11e5f70318d"), |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
|
|
|
|
|
|
|
@ -945,8 +945,8 @@ namespace EPAServeur.Context |
|
|
|
IdNote = 10, |
|
|
|
IdNote = 10, |
|
|
|
Titre = "Titre10", |
|
|
|
Titre = "Titre10", |
|
|
|
Texte = "Texte10", |
|
|
|
Texte = "Texte10", |
|
|
|
IdAuteur = new Guid("6aa62dcb-f7c9-4c0c-af40-e934a4d6a7eb"), |
|
|
|
IdAuteur = new Guid("01ee85ff-d7f3-494b-b1de-26ced8fbfa0d"), |
|
|
|
IdCollaborateur = new Guid("694ffef2-45c3-11eb-b378-0242ac130002"), |
|
|
|
IdCollaborateur = new Guid(), |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateCreation = DateTime.Now, |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
DateMiseAJour = DateTime.Now |
|
|
|
|
|
|
|
|
|
|
@ -955,5 +955,90 @@ namespace EPAServeur.Context |
|
|
|
|
|
|
|
|
|
|
|
epContext.SaveChanges(); |
|
|
|
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(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|