2025-06-02 13:19:31 +00:00
|
|
|
|
namespace projet.modele
|
2025-05-27 14:17:40 +00:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Représente un motif d'absence
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class Motif
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>Identifiant du motif</summary>
|
|
|
|
|
|
public int IdMotif { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>Libellé du motif</summary>
|
|
|
|
|
|
public string Libelle { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Constructeur de la classe Motif
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public Motif(int idMotif, string libelle)
|
|
|
|
|
|
{
|
|
|
|
|
|
IdMotif = idMotif;
|
|
|
|
|
|
Libelle = libelle;
|
|
|
|
|
|
}
|
2025-06-03 08:31:45 +00:00
|
|
|
|
|
2025-06-03 10:30:47 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Méthode pour obtenir une représentation en chaîne du motif.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
2025-06-03 08:31:45 +00:00
|
|
|
|
public override string ToString()
|
|
|
|
|
|
{
|
|
|
|
|
|
return this.Libelle;
|
|
|
|
|
|
}
|
2025-05-27 14:17:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|