/// <summary>
        /// Modifier une commande en base
        /// </summary>
        /// <param name="p">Commande à modifier</param>
        public void ModifierCommande(Commande cmd)
        {
            // Contôle des champs
            CommandeCommand commandeCmd = new CommandeCommand(contexte);

            commandeCmd.Modifier(cmd);
        }
예제 #2
0
        public void PurgeDatabase()
        {
            CategorieCommand catC = new CategorieCommand(contexte);
            ClientCommand    cliC = new ClientCommand(contexte);
            CommandeCommand  comC = new CommandeCommand(contexte);
            ProduitCommand   proC = new ProduitCommand(contexte);
            StatutCommand    staC = new StatutCommand(contexte);

            catC.Purge();
            cliC.Purge();
            comC.Purge();
            proC.Purge();
            staC.Purge();
        }
예제 #3
0
        public void SupprimerCommande(int id)
        {
            CommandeCommand cc = new CommandeCommand(contexte);

            cc.Supprimer(id);
        }
예제 #4
0
        public void ModifierCommande(Commande commande)
        {
            CommandeCommand cc = new CommandeCommand(contexte);

            cc.Modifier(commande);
        }
예제 #5
0
        public int AjouterCommande(Commande commande)
        {
            CommandeCommand cc = new CommandeCommand(contexte);

            return(cc.Ajouter(commande));
        }
예제 #6
0
        public void DeleteCommande(Commande c)
        {
            CommandeCommand cc = new CommandeCommand(contexte);

            cc.Delete(c);
        }
예제 #7
0
        public Commande UpdateCommande(Commande c)
        {
            CommandeCommand cc = new CommandeCommand(contexte);

            return(cc.Update(c));
        }
예제 #8
0
        public void AddCommande(Commande c)
        {
            CommandeCommand cc = new CommandeCommand(contexte);

            cc.Add(c);
        }
        /// <summary>
        /// Ajouter une commande en base
        /// </summary>
        /// <param name="p">Commande à ajouter</param>
        /// <returns>identifiant de la nouvelle commande</returns>
        public int AjouterCommande(Commande cmd)
        {
            CommandeCommand commandeCmd = new CommandeCommand(contexte);

            return(commandeCmd.Ajouter(cmd));
        }