2019-01-18 13:08:55 +01:00
|
|
|
#region Ressources extérieures
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Text;
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
namespace ProjetTheAlone.Classes
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Classe de définition des données
|
|
|
|
/// </summary>
|
|
|
|
public class C_T_event
|
|
|
|
{
|
|
|
|
#region Données membres
|
|
|
|
private int _ID_event;
|
|
|
|
private DateTime? _E_date;
|
|
|
|
private DateTime? _E_duree;
|
|
|
|
private int? _ID_typeEvenement;
|
|
|
|
private string _E_description;
|
|
|
|
private int? _ID_lieu;
|
2019-01-24 22:24:05 +01:00
|
|
|
private byte?[] _E_Pic;
|
2019-01-18 13:08:55 +01:00
|
|
|
#endregion
|
|
|
|
#region Constructeurs
|
|
|
|
public C_T_event()
|
|
|
|
{ }
|
2019-01-19 22:29:09 +01:00
|
|
|
public C_T_event(DateTime? E_date_, DateTime? E_duree_, int? ID_typeEvenement_, string E_description_, int? ID_lieu_, byte?[] E_Pic_)
|
2019-01-18 13:08:55 +01:00
|
|
|
{
|
|
|
|
E_date = E_date_;
|
|
|
|
E_duree = E_duree_;
|
|
|
|
ID_typeEvenement = ID_typeEvenement_;
|
|
|
|
E_description = E_description_;
|
|
|
|
ID_lieu = ID_lieu_;
|
2019-01-19 22:29:09 +01:00
|
|
|
E_Pic = E_Pic_;
|
2019-01-18 13:08:55 +01:00
|
|
|
}
|
2019-01-19 22:29:09 +01:00
|
|
|
public C_T_event(int ID_event_, DateTime? E_date_, DateTime? E_duree_, int? ID_typeEvenement_, string E_description_, int? ID_lieu_, byte?[] E_Pic_)
|
|
|
|
: this(E_date_, E_duree_, ID_typeEvenement_, E_description_, ID_lieu_, E_Pic_)
|
2019-01-18 13:08:55 +01:00
|
|
|
{
|
|
|
|
ID_event = ID_event_;
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Accesseurs
|
|
|
|
public int ID_event
|
|
|
|
{
|
|
|
|
get { return _ID_event; }
|
|
|
|
set { _ID_event = value; }
|
|
|
|
}
|
|
|
|
public DateTime? E_date
|
|
|
|
{
|
2019-01-27 10:22:31 +01:00
|
|
|
get { return _E_date.Value; }
|
2019-01-18 13:08:55 +01:00
|
|
|
set { _E_date = value; }
|
|
|
|
}
|
2019-01-27 10:22:31 +01:00
|
|
|
public string E_Date_string
|
|
|
|
{ get => _E_date.Value.ToShortDateString(); }
|
2019-01-18 13:08:55 +01:00
|
|
|
public DateTime? E_duree
|
|
|
|
{
|
|
|
|
get { return _E_duree; }
|
|
|
|
set { _E_duree = value; }
|
|
|
|
}
|
|
|
|
public int? ID_typeEvenement
|
|
|
|
{
|
|
|
|
get { return _ID_typeEvenement; }
|
|
|
|
set { _ID_typeEvenement = value; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public string E_description { get => _E_description; set => _E_description = value; }
|
|
|
|
public int? ID_lieu { get => _ID_lieu; set => _ID_lieu = value; }
|
2019-01-19 22:29:09 +01:00
|
|
|
public byte?[] E_Pic { get => _E_Pic; set => _E_Pic = value; }
|
2019-01-18 13:08:55 +01:00
|
|
|
|
|
|
|
|
2019-01-19 22:29:09 +01:00
|
|
|
#endregion
|
|
|
|
}
|
2019-01-18 13:08:55 +01:00
|
|
|
}
|