|
|
@@ -0,0 +1,35 @@
|
|
|
+using CD67.FicheCollege.Entity;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.ComponentModel.DataAnnotations;
|
|
|
+
|
|
|
+namespace CD67.FicheCollege.MVC.Models
|
|
|
+{
|
|
|
+
|
|
|
+ // Modèle utilisé pour les pages de confirmation avant suppression des pages d'administration
|
|
|
+ public class DeleteViewModel
|
|
|
+ {
|
|
|
+ public object Obj;
|
|
|
+ public string TypeObjet { get; }
|
|
|
+ public string NomObjet { get; }
|
|
|
+
|
|
|
+ // (Facultatif) Mode d'accès à la page
|
|
|
+ // Defaut: Lecture
|
|
|
+ public ModeAcces Acces { get; set; }
|
|
|
+
|
|
|
+ // Utilisateur courant
|
|
|
+ public UtilisateurConnecte User;
|
|
|
+
|
|
|
+ // ***************************
|
|
|
+ // Constructeurs de base
|
|
|
+ public DeleteViewModel(object model, string TypeObjet, string NomObjet)
|
|
|
+ {
|
|
|
+ this.Obj = model;
|
|
|
+ this.TypeObjet = TypeObjet;
|
|
|
+ this.NomObjet = NomObjet;
|
|
|
+ Acces = ModeAcces.Suppression;
|
|
|
+ User = Internal.UtilisateurConnecteFactory.getUtilisateurConnecte();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+}
|