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_plat
|
|
|
|
{
|
2019-01-24 22:24:05 +01:00
|
|
|
public enum TypePlat_E { Soupe, Plat, Dessert}
|
|
|
|
#region Données membres
|
|
|
|
private int _ID_plat;
|
2019-01-18 13:08:55 +01:00
|
|
|
private string _P_nom;
|
2019-01-24 22:24:05 +01:00
|
|
|
private byte?[] _P_img;
|
|
|
|
private TypePlat_E _ID_typePlat;
|
2019-01-18 13:08:55 +01:00
|
|
|
#endregion
|
|
|
|
#region Constructeurs
|
|
|
|
public C_T_plat()
|
|
|
|
{ }
|
2019-01-24 22:24:05 +01:00
|
|
|
public C_T_plat(string P_nom_, byte?[] P_img_, int? ID_typePlat_)
|
2019-01-18 13:08:55 +01:00
|
|
|
{
|
|
|
|
P_nom = P_nom_;
|
|
|
|
P_img = P_img_;
|
2019-01-24 22:24:05 +01:00
|
|
|
ID_typePlat = (C_T_plat.TypePlat_E)(ID_typePlat_==null?0:ID_typePlat_.Value);
|
2019-01-18 13:08:55 +01:00
|
|
|
}
|
2019-01-24 22:24:05 +01:00
|
|
|
public C_T_plat(int ID_plat_, string P_nom_, byte?[] P_img_, int? ID_typePlat_)
|
2019-01-18 13:08:55 +01:00
|
|
|
: this(P_nom_, P_img_, ID_typePlat_)
|
|
|
|
{
|
|
|
|
ID_plat = ID_plat_;
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Accesseurs
|
|
|
|
public int ID_plat
|
|
|
|
{
|
|
|
|
get { return _ID_plat; }
|
|
|
|
set { _ID_plat = value; }
|
|
|
|
}
|
|
|
|
public string P_nom
|
|
|
|
{
|
|
|
|
get { return _P_nom; }
|
|
|
|
set { _P_nom = value; }
|
|
|
|
}
|
2019-01-24 22:24:05 +01:00
|
|
|
public byte?[] P_img
|
2019-01-18 13:08:55 +01:00
|
|
|
{
|
|
|
|
get { return _P_img; }
|
|
|
|
set { _P_img = value; }
|
|
|
|
}
|
2019-01-24 22:24:05 +01:00
|
|
|
public TypePlat_E ID_typePlat
|
2019-01-18 13:08:55 +01:00
|
|
|
{
|
|
|
|
get { return _ID_typePlat; }
|
|
|
|
set { _ID_typePlat = value; }
|
|
|
|
}
|
2019-01-24 22:24:05 +01:00
|
|
|
#endregion
|
|
|
|
}
|
2019-01-18 13:08:55 +01:00
|
|
|
}
|