|
@@ -9,13 +9,17 @@ namespace CD67.FicheCollege.MVC.Models
|
|
|
public class ActionEduViewModel : BaseViewModel<ActionEdu>
|
|
public class ActionEduViewModel : BaseViewModel<ActionEdu>
|
|
|
{
|
|
{
|
|
|
public SelectList Sel_Thematique;
|
|
public SelectList Sel_Thematique;
|
|
|
|
|
+ public SelectList Sel_Statut;
|
|
|
|
|
|
|
|
public ActionEduViewModel(ActionEdu model, Entities dbContext, ModeAcces acces = ModeAcces.Lecture, Dictionary<string, object> bag = null) : base(model, acces, bag)
|
|
public ActionEduViewModel(ActionEdu model, Entities dbContext, ModeAcces acces = ModeAcces.Lecture, Dictionary<string, object> bag = null) : base(model, acces, bag)
|
|
|
{
|
|
{
|
|
|
if (acces == ModeAcces.Creation | acces == ModeAcces.Modification)
|
|
if (acces == ModeAcces.Creation | acces == ModeAcces.Modification)
|
|
|
{
|
|
{
|
|
|
- ActionEduThematiqueFactory fact = new ActionEduThematiqueFactory(dbContext);
|
|
|
|
|
- Sel_Thematique = new SelectList(fact.getAll(), "Id", "Nom", Obj.ActionEduThematiqueId);
|
|
|
|
|
|
|
+ ActionEduThematiqueFactory fact_thema = new ActionEduThematiqueFactory(dbContext);
|
|
|
|
|
+ Sel_Thematique = new SelectList(fact_thema.getAll(), "Id", "Nom", Obj.ActionEduThematiqueId);
|
|
|
|
|
+
|
|
|
|
|
+ ActionEduStatutFactory fact_statuts = new ActionEduStatutFactory(dbContext);
|
|
|
|
|
+ Sel_Statut = new SelectList(fact_statuts.getAll(), "Id", "Nom", Obj.StatutId);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|