ImportActionEduViewModel.cs 886 B

123456789101112131415161718192021222324252627282930
  1. using CD67.FicheCollege.Entity;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace CD67.FicheCollege.MVC.Models
  5. {
  6. public class ImportActionEduViewModel
  7. {
  8. public int Annee_Id;
  9. public string Annee_Lib = "";
  10. public List<int> actionsEdu_ids = new List<int>();
  11. public List<string> actionsEdu_noms = new List<string>();
  12. public List<string> actionsEdu_nums = new List<string>();
  13. public List<bool> selection = new List<bool>();
  14. public void set_liste(List<ActionEdu> actionsEdu)
  15. {
  16. foreach (ActionEdu actionEdu in actionsEdu)
  17. {
  18. actionsEdu_ids.Add(actionEdu.Id);
  19. actionsEdu_noms.Add(actionEdu.Nom);
  20. actionsEdu_nums.Add(actionEdu.Numero);
  21. selection.Add(false);
  22. }
  23. }
  24. }
  25. }