diff --git a/ProjetTheAlone/App.config b/ProjetTheAlone/App.config
index 6fb35e6..a66c31a 100644
--- a/ProjetTheAlone/App.config
+++ b/ProjetTheAlone/App.config
@@ -11,7 +11,7 @@
- Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=ProjetThe;Integrated Security=True
+ Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='C:\Users\Hugues\Haute Ecole de la ville de Liège\Adrien VAN DAMME - ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf';Integrated Security = True
diff --git a/ProjetTheAlone/Config/Settings1.Designer.cs b/ProjetTheAlone/Config/Settings1.Designer.cs
new file mode 100644
index 0000000..0c2f1ed
--- /dev/null
+++ b/ProjetTheAlone/Config/Settings1.Designer.cs
@@ -0,0 +1,40 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace ProjetTheAlone {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")]
+ internal sealed partial class Settings1 : global::System.Configuration.ApplicationSettingsBase {
+
+ private static Settings1 defaultInstance = ((Settings1)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings1())));
+
+ public static Settings1 Default {
+ get {
+ return defaultInstance;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=\'C:\\Users\\Hugues\\Haute Ecole " +
+ "de la ville de Liège\\Adrien VAN DAMME - ProjetTheAlone\\ProjetTheAlone\\ProjetThe." +
+ "mdf\';Integrated Security = True")]
+ public string schCon {
+ get {
+ return ((string)(this["schCon"]));
+ }
+ set {
+ this["schCon"] = value;
+ }
+ }
+ }
+}
diff --git a/ProjetTheAlone/Config/Settings1.settings b/ProjetTheAlone/Config/Settings1.settings
new file mode 100644
index 0000000..b9c37dd
--- /dev/null
+++ b/ProjetTheAlone/Config/Settings1.settings
@@ -0,0 +1,9 @@
+
+
+
+
+
+ Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='C:\Users\Hugues\Haute Ecole de la ville de Liège\Adrien VAN DAMME - ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf';Integrated Security = True
+
+
+
\ No newline at end of file
diff --git a/ProjetTheAlone/MainWindow.xaml.cs b/ProjetTheAlone/MainWindow.xaml.cs
index b67276a..81cdcdb 100644
--- a/ProjetTheAlone/MainWindow.xaml.cs
+++ b/ProjetTheAlone/MainWindow.xaml.cs
@@ -23,6 +23,7 @@ namespace ProjetTheAlone
public MainWindow()
{
InitializeComponent();
+
}
}
}
diff --git a/ProjetTheAlone/Model/A_T_beneficiaire.cs b/ProjetTheAlone/Model/A_T_beneficiaire.cs
index 51287e2..d8d7317 100644
--- a/ProjetTheAlone/Model/A_T_beneficiaire.cs
+++ b/ProjetTheAlone/Model/A_T_beneficiaire.cs
@@ -20,7 +20,7 @@ namespace ProjetTheAlone.Acces
: base(sChaineConnexion)
{ }
#endregion
- public int Ajouter(string B_nom, string B_prenom, DateTime? B_anniversaire, string B_img)
+ public int Ajouter(string B_nom, string B_prenom, DateTime? B_anniversaire, byte?[] B_img)
{
CreerCommande("AjouterT_beneficiaire");
int res = 0;
@@ -40,7 +40,7 @@ namespace ProjetTheAlone.Acces
Commande.Connection.Close();
return res;
}
- public int Modifier(int ID_beneficiaire, string B_nom, string B_prenom, DateTime? B_anniversaire, string B_img)
+ public int Modifier(int ID_beneficiaire, string B_nom, string B_prenom, DateTime? B_anniversaire, byte?[] B_img)
{
CreerCommande("ModifierT_beneficiaire");
int res = 0;
@@ -72,7 +72,7 @@ namespace ProjetTheAlone.Acces
tmp.B_nom = dr["B_nom"].ToString();
tmp.B_prenom = dr["B_prenom"].ToString();
if(dr["B_anniversaire"] != DBNull.Value) tmp.B_anniversaire = DateTime.Parse(dr["B_anniversaire"].ToString());
- tmp.B_img = dr["B_img"].ToString();
+ tmp.B_img = dr["B_img"];
res.Add(tmp);
}
dr.Close();
@@ -92,7 +92,7 @@ namespace ProjetTheAlone.Acces
res.B_nom = dr["B_nom"].ToString();
res.B_prenom = dr["B_prenom"].ToString();
if(dr["B_anniversaire"] != DBNull.Value) res.B_anniversaire = DateTime.Parse(dr["B_anniversaire"].ToString());
- res.B_img = dr["B_img"].ToString();
+ res.B_img = (byte?[])dr["B_img"];
}
dr.Close();
Commande.Connection.Close();
diff --git a/ProjetTheAlone/Model/A_T_plat.cs b/ProjetTheAlone/Model/A_T_plat.cs
index 145dc16..6c6c9f7 100644
--- a/ProjetTheAlone/Model/A_T_plat.cs
+++ b/ProjetTheAlone/Model/A_T_plat.cs
@@ -74,7 +74,30 @@ namespace ProjetTheAlone.Acces
Commande.Connection.Close();
return res;
}
- public C_T_plat Lire_ID(int ID_plat)
+ ///
+ /// Permet de récupérer la liste des plats d'un repas
+ ///
+ public List ListPlat(int ID_listPlat)
+ {
+ CreerCommande("ListPlat");
+ Commande.Parameters.AddWithValue("@ID_listPlat", ID_listPlat);
+ Commande.Connection.Open();
+ SqlDataReader dr = Commande.ExecuteReader();
+ List res = new List();
+ while (dr.Read())
+ {
+ C_T_plat tmp = new C_T_plat();
+ tmp.ID_plat = int.Parse(dr["ID_plat"].ToString());
+ if (dr["P_nom"] != DBNull.Value) tmp.P_nom = (dr["P_nom"].ToString());
+ if (dr["P_img"] != DBNull.Value) tmp.P_img = Encoding.ASCII.GetBytes(dr["P_img"].ToString());
+ if (dr["ID_typePlat"] != DBNull.Value) tmp.ID_typePlat = int.Parse(dr["ID_typePlat"].ToString());
+ res.Add(tmp);
+ }
+ dr.Close();
+ Commande.Connection.Close();
+ return res;
+ }
+ public C_T_plat Lire_ID(int ID_plat)
{
CreerCommande("SelectionnerT_plat_ID");
Commande.Parameters.AddWithValue("@ID_plat", ID_plat);
diff --git a/ProjetTheAlone/Model/A_T_repa.cs b/ProjetTheAlone/Model/A_T_repa.cs
index 4e13faf..1ccd3c6 100644
--- a/ProjetTheAlone/Model/A_T_repa.cs
+++ b/ProjetTheAlone/Model/A_T_repa.cs
@@ -74,7 +74,7 @@ namespace ProjetTheAlone.Acces
}
///
- /// resume de Lire
+ /// Permet de récupérer les repas entre deux date
///
/// Date filtre debut compris
/// Date fin non compris
@@ -100,6 +100,11 @@ namespace ProjetTheAlone.Acces
Commande.Connection.Close();
return res;
}
+ ///
+ /// Permet de récupérer les repas d'une date donnée
+ ///
+ /// Date filtre
+
public List Lire(DateTime dateV)
{
CreerCommande("SelectEventBetweenTwoDateTime");
diff --git a/ProjetTheAlone/Model/C_T_beneficiaire.cs b/ProjetTheAlone/Model/C_T_beneficiaire.cs
index 2b1f32b..2a38f34 100644
--- a/ProjetTheAlone/Model/C_T_beneficiaire.cs
+++ b/ProjetTheAlone/Model/C_T_beneficiaire.cs
@@ -16,19 +16,19 @@ namespace ProjetTheAlone.Classes
private string _B_nom;
private string _B_prenom;
private DateTime? _B_anniversaire;
- private string _B_img;
+ private byte?[] _B_img;
#endregion
#region Constructeurs
public C_T_beneficiaire()
{ }
- public C_T_beneficiaire(string B_nom_, string B_prenom_, DateTime? B_anniversaire_, string B_img_)
+ public C_T_beneficiaire(string B_nom_, string B_prenom_, DateTime? B_anniversaire_, byte?[] B_img_)
{
B_nom = B_nom_;
B_prenom = B_prenom_;
B_anniversaire = B_anniversaire_;
B_img = B_img_;
}
- public C_T_beneficiaire(int ID_beneficiaire_, string B_nom_, string B_prenom_, DateTime? B_anniversaire_, string B_img_)
+ public C_T_beneficiaire(int ID_beneficiaire_, string B_nom_, string B_prenom_, DateTime? B_anniversaire_, byte?[] B_img_)
: this(B_nom_, B_prenom_, B_anniversaire_, B_img_)
{
ID_beneficiaire = ID_beneficiaire_;
@@ -55,7 +55,7 @@ namespace ProjetTheAlone.Classes
get { return _B_anniversaire; }
set { _B_anniversaire = value; }
}
- public string B_img
+ public byte?[] B_img
{
get { return _B_img; }
set { _B_img = value; }
diff --git a/ProjetTheAlone/Model/G_T_beneficiaire.cs b/ProjetTheAlone/Model/G_T_beneficiaire.cs
index eeba4e7..c0b1462 100644
--- a/ProjetTheAlone/Model/G_T_beneficiaire.cs
+++ b/ProjetTheAlone/Model/G_T_beneficiaire.cs
@@ -21,9 +21,9 @@ namespace ProjetTheAlone.Gestion
: base(sChaineConnexion)
{ }
#endregion
- public int Ajouter(string B_nom, string B_prenom, DateTime? B_anniversaire, string B_img)
+ public int Ajouter(string B_nom, string B_prenom, DateTime? B_anniversaire, byte?[] B_img)
{ return new A_T_beneficiaire(ChaineConnexion).Ajouter(B_nom, B_prenom, B_anniversaire, B_img); }
- public int Modifier(int ID_beneficiaire, string B_nom, string B_prenom, DateTime? B_anniversaire, string B_img)
+ public int Modifier(int ID_beneficiaire, string B_nom, string B_prenom, DateTime? B_anniversaire, byte?[] B_img)
{ return new A_T_beneficiaire(ChaineConnexion).Modifier(ID_beneficiaire, B_nom, B_prenom, B_anniversaire, B_img); }
public List Lire(string Index)
{ return new A_T_beneficiaire(ChaineConnexion).Lire(Index); }
diff --git a/ProjetTheAlone/Model/G_T_plat.cs b/ProjetTheAlone/Model/G_T_plat.cs
index c38c1e5..ad6fdd6 100644
--- a/ProjetTheAlone/Model/G_T_plat.cs
+++ b/ProjetTheAlone/Model/G_T_plat.cs
@@ -29,7 +29,12 @@ namespace ProjetTheAlone.Gestion
{ return new A_T_plat(ChaineConnexion).Lire(Index); }
public C_T_plat Lire_ID(int ID_plat)
{ return new A_T_plat(ChaineConnexion).Lire_ID(ID_plat); }
- public int Supprimer(int ID_plat)
+ ///
+ /// Permet de récupérer la liste des plats d'un repas
+ ///
+ public List ListPlat(int ID_repa)
+ { return new A_T_plat(ChaineConnexion).ListPlat(ID_repa); }
+ public int Supprimer(int ID_plat)
{ return new A_T_plat(ChaineConnexion).Supprimer(ID_plat); }
}
}
diff --git a/ProjetTheAlone/Model/G_T_repa.cs b/ProjetTheAlone/Model/G_T_repa.cs
index e4cd392..73ccb3e 100644
--- a/ProjetTheAlone/Model/G_T_repa.cs
+++ b/ProjetTheAlone/Model/G_T_repa.cs
@@ -27,6 +27,19 @@ namespace ProjetTheAlone.Gestion
{ return new A_T_repa(ChaineConnexion).Modifier(ID_repa, ID_listPlat, ID_typeRepa , R_Date); }
public List Lire(string Index)
{ return new A_T_repa(ChaineConnexion).Lire(Index); }
+ ///
+ /// Permet de récupérer les repas entre deux date
+ ///
+ /// Date filtre debut compris
+ /// Date fin non compris
+ public List Lire(DateTime start, DateTime end)
+ { return new A_T_repa(ChaineConnexion).Lire(start, end); }
+ ///
+ /// Permet de récupérer les repas d'une date donnée
+ ///
+ /// Date filtre
+ public List Lire(DateTime dateV)
+ { return new A_T_repa(ChaineConnexion).Lire(dateV); }
public C_T_repa Lire_ID(int ID_repa)
{ return new A_T_repa(ChaineConnexion).Lire_ID(ID_repa); }
public int Supprimer(int ID_repa)
diff --git a/ProjetTheAlone/ProjetTheAlone.csproj b/ProjetTheAlone/ProjetTheAlone.csproj
index 6ca0669..82e0c3a 100644
--- a/ProjetTheAlone/ProjetTheAlone.csproj
+++ b/ProjetTheAlone/ProjetTheAlone.csproj
@@ -82,6 +82,10 @@
Designer
+
+
+ FicEncodePlat.xaml
+
@@ -157,6 +161,10 @@
FicRepasEncode.xaml
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer
diff --git a/ProjetTheAlone/Settings1.Designer.cs b/ProjetTheAlone/Settings1.Designer.cs
new file mode 100644
index 0000000..15801e7
--- /dev/null
+++ b/ProjetTheAlone/Settings1.Designer.cs
@@ -0,0 +1,40 @@
+//------------------------------------------------------------------------------
+//
+// Ce code a été généré par un outil.
+// Version du runtime :4.0.30319.42000
+//
+// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
+// le code est régénéré.
+//
+//------------------------------------------------------------------------------
+
+namespace ProjetTheAlone {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
+ internal sealed partial class Settings1 : global::System.Configuration.ApplicationSettingsBase {
+
+ private static Settings1 defaultInstance = ((Settings1)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings1())));
+
+ public static Settings1 Default {
+ get {
+ return defaultInstance;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=\'C:\\Users\\Hugues\\Haute Ecole " +
+ "de la ville de Liège\\Adrien VAN DAMME - ProjetTheAlone\\ProjetTheAlone\\ProjetThe." +
+ "mdf\';Integrated Security = True")]
+ public string schCon {
+ get {
+ return ((string)(this["schCon"]));
+ }
+ set {
+ this["schCon"] = value;
+ }
+ }
+ }
+}
diff --git a/ProjetTheAlone/Settings1.settings b/ProjetTheAlone/Settings1.settings
new file mode 100644
index 0000000..b9c37dd
--- /dev/null
+++ b/ProjetTheAlone/Settings1.settings
@@ -0,0 +1,9 @@
+
+
+
+
+
+ Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='C:\Users\Hugues\Haute Ecole de la ville de Liège\Adrien VAN DAMME - ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf';Integrated Security = True
+
+
+
\ No newline at end of file
diff --git a/ProjetTheAlone/View/Accueil.xaml.cs b/ProjetTheAlone/View/Accueil.xaml.cs
index 2e34fdd..0631918 100644
--- a/ProjetTheAlone/View/Accueil.xaml.cs
+++ b/ProjetTheAlone/View/Accueil.xaml.cs
@@ -22,6 +22,7 @@ namespace ProjetTheAlone.View
public Accueil()
{
InitializeComponent();
+ Settings1.Default.schCon = @"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='C:\Users\Hugues\Haute Ecole de la ville de Liège\Adrien VAN DAMME - ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf';Integrated Security = True";
}
private static bool openaffichage = false;
private static bool openencodage = false;
diff --git a/ProjetTheAlone/View/FicBeneficiaireEncode.xaml b/ProjetTheAlone/View/FicBeneficiaireEncode.xaml
index f2ad232..cfb39bf 100644
--- a/ProjetTheAlone/View/FicBeneficiaireEncode.xaml
+++ b/ProjetTheAlone/View/FicBeneficiaireEncode.xaml
@@ -29,17 +29,16 @@
-
-
+
+
-
+
diff --git a/ProjetTheAlone/View/FicBeneficiaireEncode.xaml.cs b/ProjetTheAlone/View/FicBeneficiaireEncode.xaml.cs
index cd5a1de..c56e2f5 100644
--- a/ProjetTheAlone/View/FicBeneficiaireEncode.xaml.cs
+++ b/ProjetTheAlone/View/FicBeneficiaireEncode.xaml.cs
@@ -24,7 +24,7 @@ namespace ProjetTheAlone.View
public FicBeneficiaireEncode()
{
InitializeComponent();
- // DataContext = new ViewModel.VM_Beneficiaire();
+ DataContext = new ViewModel.VM_Beneficiaire();
}
private void BtnQuitter_Click(object sender, RoutedEventArgs e)
diff --git a/ProjetTheAlone/View/FicEncodePlat.xaml b/ProjetTheAlone/View/FicEncodePlat.xaml
new file mode 100644
index 0000000..711a40a
--- /dev/null
+++ b/ProjetTheAlone/View/FicEncodePlat.xaml
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetTheAlone/View/FicEncodePlat.xaml.cs b/ProjetTheAlone/View/FicEncodePlat.xaml.cs
new file mode 100644
index 0000000..1b5de06
--- /dev/null
+++ b/ProjetTheAlone/View/FicEncodePlat.xaml.cs
@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+using System.IO;
+
+using Microsoft.Win32;
+
+namespace ProjetTheAlone
+{
+ ///
+ /// Logique d'interaction pour FicEncodePlat.xaml
+ ///
+ public partial class FicEncodePlat : Window
+ {
+ public FicEncodePlat()
+ {
+ InitializeComponent();
+ DataContext = new ViewModel.VM_Plat();
+ }
+
+ private void BtnQuitter_Click(object sender, RoutedEventArgs e)
+ {
+ Close();
+ }
+
+ private void btnOpenFile_Click(object sender, RoutedEventArgs e)
+ {
+ OpenFileDialog openFileDialog = new OpenFileDialog();
+ openFileDialog.Filter = "Image files (*.png;*.jpeg)|*.png;*.jpeg|All files (*.*)|*.*";
+ if (openFileDialog.ShowDialog() == true)
+ {
+ string FileName = openFileDialog.FileName;
+
+ txtEditor.Text = FileName;
+
+ //FileStream fs = new System.IO.FileStream(@""+FileName+"", FileMode.Open, FileAccess.Read);
+ //BinaryReader br = new BinaryReader(fs);
+ //byte[] result = br.ReadBytes((int)fs.Length);
+
+ ImageFile.Source = new BitmapImage(new Uri(@"" + FileName + ""));
+ }
+ }
+
+
+ }
+}
diff --git a/ProjetTheAlone/View/FicRepasEncode.xaml b/ProjetTheAlone/View/FicRepasEncode.xaml
index 027d31b..d241468 100644
--- a/ProjetTheAlone/View/FicRepasEncode.xaml
+++ b/ProjetTheAlone/View/FicRepasEncode.xaml
@@ -10,7 +10,7 @@
-
+
@@ -18,7 +18,7 @@
-
+
@@ -27,6 +27,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetTheAlone/View/FicRepasEncode.xaml.cs b/ProjetTheAlone/View/FicRepasEncode.xaml.cs
index dc84d37..780adba 100644
--- a/ProjetTheAlone/View/FicRepasEncode.xaml.cs
+++ b/ProjetTheAlone/View/FicRepasEncode.xaml.cs
@@ -46,5 +46,11 @@ namespace ProjetTheAlone.View
CheckPlatP.IsChecked = false;
CheckSoupe.IsChecked = false;
}
+
+ private void btnPlat_Click(object sender, RoutedEventArgs e)
+ {
+ FicEncodePlat w = new FicEncodePlat();
+ w.ShowDialog();
+ }
}
}
diff --git a/ProjetTheAlone/ViewModel/EncodeBeneficiaire.cs b/ProjetTheAlone/ViewModel/EncodeBeneficiaire.cs
new file mode 100644
index 0000000..f8ab6b9
--- /dev/null
+++ b/ProjetTheAlone/ViewModel/EncodeBeneficiaire.cs
@@ -0,0 +1,169 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.ComponentModel;
+using ProjetTheAlone.Classes;
+using ProjetTheAlone.Gestion;
+using System.Collections.ObjectModel;
+
+namespace ProjetTheAlone.ViewModel
+{
+ public class VM_Beneficiaire : BasePropriete
+ {
+ #region Données Écran
+ private string chConnexion = Settings1.Default.schCon /*@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='C:\Users\Hugues\Haute Ecole de la ville de Liège\Adrien VAN DAMME - ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf';Integrated Security = True"*/;
+ private int nAjout;
+ private bool _ActiverUneFiche;
+ public bool ActiverUneFiche
+ {
+ get { return _ActiverUneFiche; }
+ set
+ {
+ AssignerChamp(ref _ActiverUneFiche, value, System.Reflection.MethodBase.GetCurrentMethod().Name);
+ ActiverBcpFiche = !ActiverUneFiche;
+ }
+ }
+ private bool _ActiverBcpFiche;
+ public bool ActiverBcpFiche
+ {
+ get { return _ActiverBcpFiche; }
+ set { AssignerChamp(ref _ActiverBcpFiche, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ private C_T_beneficiaire _BeneficiaireSelectionnee;
+ public C_T_beneficiaire BeneficiaireSelectionnee
+ {
+ get { return _BeneficiaireSelectionnee; }
+ set { AssignerChamp(ref _BeneficiaireSelectionnee, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ #endregion
+ #region Données extérieures
+ private VM_UnBeneficiaire _UnBeneficiaire;
+ public VM_UnBeneficiaire UnBeneficiaire
+ {
+ get { return _UnBeneficiaire; }
+ set { AssignerChamp(ref _UnBeneficiaire, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ private ObservableCollection _BcpBeneficiaires= new ObservableCollection();
+ public ObservableCollection BcpBeneficiaires
+ {
+ get { return _BcpBeneficiaires; }
+ set { _BcpBeneficiaires = value; }
+ }
+ #endregion
+
+ public VM_Beneficiaire()
+ {
+ UnBeneficiaire = new VM_UnBeneficiaire();
+ UnBeneficiaire.ID = 0;
+ UnBeneficiaire.Pre = "Prenom";
+ UnBeneficiaire.Nom = "Nom";
+ UnBeneficiaire.Annif = DateTime.Now.Date;
+ BcpBeneficiaires = ChargerPersonnes(chConnexion);
+ ActiverUneFiche = false;
+ cConfirmer = new BaseCommande(Confirmer);
+ cAnnuler = new BaseCommande(Annuler);
+ cAjouter = new BaseCommande(Ajouter);
+ cModifier = new BaseCommande(Modifier);
+ cSupprimer = new BaseCommande(Supprimer);
+ }
+
+ #region Commandes
+ public BaseCommande cConfirmer { get; set; }
+ public BaseCommande cAnnuler { get; set; }
+ public BaseCommande cAjouter { get; set; }
+ public BaseCommande cModifier { get; set; }
+ public BaseCommande cSupprimer { get; set; }
+ #endregion
+
+ private ObservableCollection ChargerPersonnes(string chConn)
+ {
+ ObservableCollection rep = new ObservableCollection();
+ List lTmp = new G_T_beneficiaire(chConn).Lire("B_nom");
+ foreach (C_T_beneficiaire Tmp in lTmp)
+ rep.Add(Tmp);
+ return rep;
+ }
+
+ public void Confirmer()
+ {
+ if (nAjout == -1)
+ {
+ UnBeneficiaire.ID = new G_T_beneficiaire(chConnexion).Ajouter(UnBeneficiaire.Nom, UnBeneficiaire.Pre, UnBeneficiaire.Annif, UnBeneficiaire.Img);
+ BcpBeneficiaires.Add(new C_T_beneficiaire(UnBeneficiaire.ID, UnBeneficiaire.Nom, UnBeneficiaire.Pre, UnBeneficiaire.Annif, UnBeneficiaire.Img));
+ }
+ else
+ {
+ new G_T_beneficiaire(chConnexion).Modifier(UnBeneficiaire.ID, UnBeneficiaire.Nom, UnBeneficiaire.Pre, UnBeneficiaire.Annif, UnBeneficiaire.Img);
+ BcpBeneficiaires[nAjout] = new C_T_beneficiaire(UnBeneficiaire.ID, UnBeneficiaire.Nom, UnBeneficiaire.Pre, UnBeneficiaire.Annif, UnBeneficiaire.Img);
+ }
+ ActiverUneFiche = false;
+ }
+ public void Annuler()
+ { ActiverUneFiche = false; }
+ public void Ajouter()
+ {
+ UnBeneficiaire = new VM_UnBeneficiaire();
+ nAjout = -1;
+ ActiverUneFiche = true;
+ }
+ public void Modifier()
+ {
+ if (BeneficiaireSelectionnee != null)
+ {
+ C_T_beneficiaire Tmp = new G_T_beneficiaire(chConnexion).Lire_ID(BeneficiaireSelectionnee.ID_beneficiaire);
+
+ UnBeneficiaire = new VM_UnBeneficiaire();
+ UnBeneficiaire.ID = Tmp.ID_beneficiaire;
+ UnBeneficiaire.Pre = Tmp.B_prenom;
+ UnBeneficiaire.Nom = Tmp.B_nom;
+ UnBeneficiaire.Annif = Tmp.B_anniversaire.Value;
+ UnBeneficiaire.Img = Tmp.B_img;
+ nAjout = BcpBeneficiaires.IndexOf(BeneficiaireSelectionnee);
+ ActiverUneFiche = true;
+ }
+ }
+ public void Supprimer()
+ {
+ if (BeneficiaireSelectionnee != null)
+ {
+ new G_T_beneficiaire(chConnexion).Supprimer(BeneficiaireSelectionnee.ID_beneficiaire);
+ BcpBeneficiaires.Remove(BeneficiaireSelectionnee);
+ }
+ }
+ }
+ public class VM_UnBeneficiaire : BasePropriete
+ {
+ private int _ID;
+ private string _Nom, _Pre,_Img;
+ private DateTime _Annif;
+
+ public int ID
+ {
+ get { return _ID; }
+ set { AssignerChamp(ref _ID, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ public string Pre
+ {
+ get { return _Pre; }
+ set { AssignerChamp(ref _Pre, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ public string Nom
+ {
+ get { return _Nom; }
+ set { AssignerChamp(ref _Nom, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ public DateTime Annif
+ {
+ get { return _Annif; }
+ set { AssignerChamp(ref _Annif, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+
+ public string Img
+ {
+ get { return _Img; }
+ set { AssignerChamp(ref _Img, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ }
+}
diff --git a/ProjetTheAlone/ViewModel/PlatsEncode-PC-Bureau.cs b/ProjetTheAlone/ViewModel/PlatsEncode-PC-Bureau.cs
new file mode 100644
index 0000000..7eecd89
--- /dev/null
+++ b/ProjetTheAlone/ViewModel/PlatsEncode-PC-Bureau.cs
@@ -0,0 +1,164 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using ProjetTheAlone.Classes;
+using ProjetTheAlone.Gestion;
+using System.Collections.ObjectModel;
+using System.IO;
+
+namespace ProjetTheAlone.ViewModel
+{
+
+ public class VM_Plat : BasePropriete
+ {
+ #region Données Écran
+ private string chConnexion = Settings1.Default.schCon /*@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='C:\Users\Hugues\Haute Ecole de la ville de Liège\Adrien VAN DAMME - ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf';Integrated Security = True"*/;
+ private int nAjout;
+ private int typeplat=0;
+ private bool _ActiverUneFiche;
+ public bool ActiverUneFiche
+ {
+ get { return _ActiverUneFiche; }
+ set
+ {
+ AssignerChamp(ref _ActiverUneFiche, value, System.Reflection.MethodBase.GetCurrentMethod().Name);
+ ActiverBcpFiche = !ActiverUneFiche;
+ }
+ }
+ private bool _ActiverBcpFiche;
+ public bool ActiverBcpFiche
+ {
+ get { return _ActiverBcpFiche; }
+ set { AssignerChamp(ref _ActiverBcpFiche, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ private C_T_plat _PlatSelectionnee;
+ public C_T_plat PlatSelectionnee
+ {
+ get { return _PlatSelectionnee; }
+ set { AssignerChamp(ref _PlatSelectionnee, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ #endregion
+ #region Données extérieures
+ private VM_UnPlat _UnPlat;
+ public VM_UnPlat UnPlat
+ {
+ get { return _UnPlat; }
+ set { AssignerChamp(ref _UnPlat, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ private ObservableCollection _BcpPlats = new ObservableCollection();
+ public ObservableCollection BcpPlats
+ {
+ get { return _BcpPlats; }
+ set { _BcpPlats = value; }
+ }
+ #endregion
+
+ public VM_Plat()
+ {
+ UnPlat = new VM_UnPlat();
+ UnPlat.ID = 0;
+ UnPlat.Nom = "Nom du plat";
+ BcpPlats = ChargerPersonnes(chConnexion);
+ ActiverUneFiche = false;
+ cConfirmer = new BaseCommande(Confirmer);
+ cAnnuler = new BaseCommande(Annuler);
+ cAjouter = new BaseCommande(Ajouter);
+ cModifier = new BaseCommande(Modifier);
+ cSupprimer = new BaseCommande(Supprimer);
+ }
+
+ #region Commandes
+ public BaseCommande cConfirmer { get; set; }
+ public BaseCommande cAnnuler { get; set; }
+ public BaseCommande cAjouter { get; set; }
+ public BaseCommande cModifier { get; set; }
+ public BaseCommande cSupprimer { get; set; }
+ #endregion
+
+ private ObservableCollection ChargerPersonnes(string chConn)
+ {
+ ObservableCollection rep = new ObservableCollection();
+ List lTmp = new G_T_plat(chConn).Lire("B_nom");
+ foreach (C_T_plat Tmp in lTmp)
+ rep.Add(Tmp);
+ return rep;
+ }
+
+ public void Confirmer()
+ {
+ if (nAjout == -1)
+ {
+ UnPlat.ID = new G_T_plat(chConnexion).Ajouter(UnPlat.Nom, UnPlat.Img,typeplat);
+ BcpPlats.Add(new C_T_plat(UnPlat.ID, UnPlat.Nom, UnPlat.Img,typeplat));
+ }
+ else
+ {
+ new G_T_plat(chConnexion).Modifier(UnPlat.ID, UnPlat.Nom, UnPlat.Img,typeplat);
+ BcpPlats[nAjout] = new C_T_plat(UnPlat.ID, UnPlat.Nom, UnPlat.Img, typeplat);
+ }
+ ActiverUneFiche = false;
+ }
+ public void Annuler()
+ { ActiverUneFiche = false; }
+ public void Ajouter()
+ {
+ UnPlat = new VM_UnPlat();
+ nAjout = -1;
+ ActiverUneFiche = true;
+ }
+ public void Modifier()
+ {
+ if (PlatSelectionnee != null)
+ {
+ C_T_plat Tmp = new G_T_plat(chConnexion).Lire_ID(PlatSelectionnee.ID_plat);
+
+ UnPlat = new VM_UnPlat();
+ UnPlat.ID = Tmp.ID_plat;
+ UnPlat.Nom = Tmp.P_nom;
+ UnPlat.Img = Tmp.P_img;
+ nAjout = BcpPlats.IndexOf(PlatSelectionnee);
+ ActiverUneFiche = true;
+ }
+ }
+ public void Supprimer()
+ {
+ if (PlatSelectionnee != null)
+ {
+ new G_T_plat(chConnexion).Supprimer(PlatSelectionnee.ID_plat);
+ BcpPlats.Remove(PlatSelectionnee);
+ }
+ }
+ }
+ public class VM_UnPlat : BasePropriete
+ {
+ private int _ID,_TypePlat;
+ private string _Nom;
+ private byte[] _Img;
+
+ public int ID
+ {
+ get { return _ID; }
+ set { AssignerChamp(ref _ID, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+
+ public string Nom
+ {
+ get { return _Nom; }
+ set { AssignerChamp(ref _Nom, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+
+ public byte[] Img
+ {
+ get { return _Img; }
+ set { AssignerChamp (ref _Img, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+
+ public int TypePlat
+ {
+ get { return _TypePlat; }
+ set { AssignerChamp(ref _TypePlat, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ }
+}
diff --git a/ProjetTheAlone/ViewModel/PlatsEncode.cs b/ProjetTheAlone/ViewModel/PlatsEncode.cs
new file mode 100644
index 0000000..c9283d3
--- /dev/null
+++ b/ProjetTheAlone/ViewModel/PlatsEncode.cs
@@ -0,0 +1,165 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using ProjetTheAlone.Classes;
+using ProjetTheAlone.Gestion;
+using System.Collections.ObjectModel;
+using System.IO;
+
+namespace ProjetTheAlone.ViewModel
+{
+
+ public class VM_Plat : BasePropriete
+ {
+ #region Données Écran
+
+ private string chConnexion = Settings1.Default.schCon /*@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='C:\Users\Hugues\Haute Ecole de la ville de Liège\Adrien VAN DAMME - ProjetTheAlone\ProjetTheAlone\ProjetThe.mdf';Integrated Security = True"*/;
+ private int nAjout;
+ private int typeplat=0;
+ private bool _ActiverUneFiche;
+ public bool ActiverUneFiche
+ {
+ get { return _ActiverUneFiche; }
+ set
+ {
+ AssignerChamp(ref _ActiverUneFiche, value, System.Reflection.MethodBase.GetCurrentMethod().Name);
+ ActiverBcpFiche = !ActiverUneFiche;
+ }
+ }
+ private bool _ActiverBcpFiche;
+ public bool ActiverBcpFiche
+ {
+ get { return _ActiverBcpFiche; }
+ set { AssignerChamp(ref _ActiverBcpFiche, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ private C_T_plat _PlatSelectionnee;
+ public C_T_plat PlatSelectionnee
+ {
+ get { return _PlatSelectionnee; }
+ set { AssignerChamp(ref _PlatSelectionnee, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ #endregion
+ #region Données extérieures
+ private VM_UnPlat _UnPlat;
+ public VM_UnPlat UnPlat
+ {
+ get { return _UnPlat; }
+ set { AssignerChamp(ref _UnPlat, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ private ObservableCollection _BcpPlats = new ObservableCollection();
+ public ObservableCollection BcpPlats
+ {
+ get { return _BcpPlats; }
+ set { _BcpPlats = value; }
+ }
+ #endregion
+
+ public VM_Plat()
+ {
+ UnPlat = new VM_UnPlat();
+ UnPlat.ID = 0;
+ UnPlat.Nom = "Nom du plat";
+ BcpPlats = ChargerPersonnes(chConnexion);
+ ActiverUneFiche = false;
+ cConfirmer = new BaseCommande(Confirmer);
+ cAnnuler = new BaseCommande(Annuler);
+ cAjouter = new BaseCommande(Ajouter);
+ cModifier = new BaseCommande(Modifier);
+ cSupprimer = new BaseCommande(Supprimer);
+ }
+
+ #region Commandes
+ public BaseCommande cConfirmer { get; set; }
+ public BaseCommande cAnnuler { get; set; }
+ public BaseCommande cAjouter { get; set; }
+ public BaseCommande cModifier { get; set; }
+ public BaseCommande cSupprimer { get; set; }
+ #endregion
+
+ private ObservableCollection ChargerPersonnes(string chConn)
+ {
+ ObservableCollection rep = new ObservableCollection();
+ List lTmp = new G_T_plat(chConn).Lire("B_nom");
+ foreach (C_T_plat Tmp in lTmp)
+ rep.Add(Tmp);
+ return rep;
+ }
+
+ public void Confirmer()
+ {
+ if (nAjout == -1)
+ {
+ UnPlat.ID = new G_T_plat(chConnexion).Ajouter(UnPlat.Nom, UnPlat.Img,typeplat);
+ BcpPlats.Add(new C_T_plat(UnPlat.ID, UnPlat.Nom, UnPlat.Img,typeplat));
+ }
+ else
+ {
+ new G_T_plat(chConnexion).Modifier(UnPlat.ID, UnPlat.Nom, UnPlat.Img,typeplat);
+ BcpPlats[nAjout] = new C_T_plat(UnPlat.ID, UnPlat.Nom, UnPlat.Img, typeplat);
+ }
+ ActiverUneFiche = false;
+ }
+ public void Annuler()
+ { ActiverUneFiche = false; }
+ public void Ajouter()
+ {
+ UnPlat = new VM_UnPlat();
+ nAjout = -1;
+ ActiverUneFiche = true;
+ }
+ public void Modifier()
+ {
+ if (PlatSelectionnee != null)
+ {
+ C_T_plat Tmp = new G_T_plat(chConnexion).Lire_ID(PlatSelectionnee.ID_plat);
+
+ UnPlat = new VM_UnPlat();
+ UnPlat.ID = Tmp.ID_plat;
+ UnPlat.Nom = Tmp.P_nom;
+ UnPlat.Img = Tmp.P_img;
+ nAjout = BcpPlats.IndexOf(PlatSelectionnee);
+ ActiverUneFiche = true;
+ }
+ }
+ public void Supprimer()
+ {
+ if (PlatSelectionnee != null)
+ {
+ new G_T_plat(chConnexion).Supprimer(PlatSelectionnee.ID_plat);
+ BcpPlats.Remove(PlatSelectionnee);
+ }
+ }
+ }
+ public class VM_UnPlat : BasePropriete
+ {
+ private int _ID,_TypePlat;
+ private string _Nom;
+ private byte[] _Img;
+
+ public int ID
+ {
+ get { return _ID; }
+ set { AssignerChamp(ref _ID, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+
+ public string Nom
+ {
+ get { return _Nom; }
+ set { AssignerChamp(ref _Nom, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+
+ public byte[] Img
+ {
+ get { return _Img; }
+ set { AssignerChamp (ref _Img, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+
+ public int TypePlat
+ {
+ get { return _TypePlat; }
+ set { AssignerChamp(ref _TypePlat, value, System.Reflection.MethodBase.GetCurrentMethod().Name); }
+ }
+ }
+}
diff --git a/procedureMaison.sql b/procedureMaison.sql
new file mode 100644
index 0000000..0136d91
--- /dev/null
+++ b/procedureMaison.sql
@@ -0,0 +1,82 @@
+/*
+EEEEEEEEEEEEEEEEEEEEEEVVVVVVVV VVVVVVVVEEEEEEEEEEEEEEEEEEEEEENNNNNNNN NNNNNNNNTTTTTTTTTTTTTTTTTTTTTTT
+E::::::::::::::::::::EV::::::V V::::::VE::::::::::::::::::::EN:::::::N N::::::NT:::::::::::::::::::::T
+E::::::::::::::::::::EV::::::V V::::::VE::::::::::::::::::::EN::::::::N N::::::NT:::::::::::::::::::::T
+EE::::::EEEEEEEEE::::EV::::::V V::::::VEE::::::EEEEEEEEE::::EN:::::::::N N::::::NT:::::TT:::::::TT:::::T
+ E:::::E EEEEEE V:::::V V:::::V E:::::E EEEEEEN::::::::::N N::::::NTTTTTT T:::::T TTTTTT
+ E:::::E V:::::V V:::::V E:::::E N:::::::::::N N::::::N T:::::T
+ E::::::EEEEEEEEEE V:::::V V:::::V E::::::EEEEEEEEEE N:::::::N::::N N::::::N T:::::T
+ E:::::::::::::::E V:::::V V:::::V E:::::::::::::::E N::::::N N::::N N::::::N T:::::T
+ E:::::::::::::::E V:::::V V:::::V E:::::::::::::::E N::::::N N::::N:::::::N T:::::T
+ E::::::EEEEEEEEEE V:::::V V:::::V E::::::EEEEEEEEEE N::::::N N:::::::::::N T:::::T
+ E:::::E V:::::V:::::V E:::::E N::::::N N::::::::::N T:::::T
+ E:::::E EEEEEE V:::::::::V E:::::E EEEEEEN::::::N N:::::::::N T:::::T
+EE::::::EEEEEEEE:::::E V:::::::V EE::::::EEEEEEEE:::::EN::::::N N::::::::N TT:::::::TT
+E::::::::::::::::::::E V:::::V E::::::::::::::::::::EN::::::N N:::::::N T:::::::::T
+E::::::::::::::::::::E V:::V E::::::::::::::::::::EN::::::N N::::::N T:::::::::T
+EEEEEEEEEEEEEEEEEEEEEE VVV EEEEEEEEEEEEEEEEEEEEEENNNNNNNN NNNNNNN TTTTTTTTTTT*/
+IF OBJECT_ID ( 'SelectEventByDate', 'P' ) IS NOT NULL
+ DROP PROCEDURE SelectEventByDate;
+GO
+CREATE PROCEDURE SelectEventByDate
+ @dateV date
+AS
+SELECT * FROM [ProjetThe].[dbo].[T_event] Where CAST(E_date AS DATE) = @dateV;
+RETURN
+GO
+IF OBJECT_ID ( 'SelectEventBetweenTwoDateTime', 'P' ) IS NOT NULL
+ DROP PROCEDURE SelectEventBetweenTwoDateTime;
+GO
+CREATE PROCEDURE SelectEventBetweenTwoDateTime
+ @dateStart datetime,
+ @dateEnd datetime
+AS
+SELECT * FROM [ProjetThe].[dbo].[T_event] Where E_Date>=@dateStart AND E_Date<@dateEnd;
+RETURN
+GO
+/*
+RRRRRRRRRRRRRRRRR EEEEEEEEEEEEEEEEEEEEEEPPPPPPPPPPPPPPPPP AAA
+R::::::::::::::::R E::::::::::::::::::::EP::::::::::::::::P A:::A
+R::::::RRRRRR:::::R E::::::::::::::::::::EP::::::PPPPPP:::::P A:::::A
+RR:::::R R:::::REE::::::EEEEEEEEE::::EPP:::::P P:::::P A:::::::A
+ R::::R R:::::R E:::::E EEEEEE P::::P P:::::P A:::::::::A
+ R::::R R:::::R E:::::E P::::P P:::::PA:::::A:::::A
+ R::::RRRRRR:::::R E::::::EEEEEEEEEE P::::PPPPPP:::::PA:::::A A:::::A
+ R:::::::::::::RR E:::::::::::::::E P:::::::::::::PPA:::::A A:::::A
+ R::::RRRRRR:::::R E:::::::::::::::E P::::PPPPPPPPP A:::::A A:::::A
+ R::::R R:::::R E::::::EEEEEEEEEE P::::P A:::::AAAAAAAAA:::::A
+ R::::R R:::::R E:::::E P::::P A:::::::::::::::::::::A
+ R::::R R:::::R E:::::E EEEEEE P::::P A:::::AAAAAAAAAAAAA:::::A
+RR:::::R R:::::REE::::::EEEEEEEE:::::EPP::::::PP A:::::A A:::::A
+R::::::R R:::::RE::::::::::::::::::::EP::::::::P A:::::A A:::::A
+R::::::R R:::::RE::::::::::::::::::::EP::::::::P A:::::A A:::::A
+RRRRRRRR RRRRRRREEEEEEEEEEEEEEEEEEEEEEPPPPPPPPPPAAAAAAA AAAAAAA*/
+IF OBJECT_ID ( 'SelectRepaByDate', 'P' ) IS NOT NULL
+ DROP PROCEDURE SelectRepaByDate;
+GO
+CREATE PROCEDURE SelectRepaByDate
+ @dateV date
+AS
+SELECT * FROM [ProjetThe].[dbo].[T_repa] Where CAST(R_Date AS DATE) = @dateV;
+RETURN
+GO
+IF OBJECT_ID ( 'SelectRepaBetweenTwoDateTime', 'P' ) IS NOT NULL
+ DROP PROCEDURE SelectRepaBetweenTwoDateTime;
+GO
+CREATE PROCEDURE SelectRepaBetweenTwoDateTime
+ @dateStart datetime,
+ @dateEnd datetime
+AS
+SELECT * FROM [ProjetThe].[dbo].[T_repas] Where R_Date>=@dateStart AND R_Date<@dateEnd;
+RETURN
+GO
+
+IF OBJECT_ID ( 'SelectRepaBetweenTwoDateTime', 'P' ) IS NOT NULL
+ DROP PROCEDURE SelectRepaBetweenTwoDateTime;
+GO
+CREATE PROCEDURE SelectRepaBetweenTwoDateTime
+ @ID_repa int
+AS
+SELECT T_plat.ID_plat, T_plat.P_nom, T_plat.P_img, T_plat.ID_typePlat FROM [ProjetThe].[dbo].[T_listPlat] RIGHT JOIN T_plat ON T_listPlat.ID_repa=@ID_repa;
+RETURN
+GO
diff --git a/script.sql b/script.sql
deleted file mode 100644
index b8cee95..0000000
Binary files a/script.sql and /dev/null differ