Esempio n. 1
0
        bool IntfDalUSAbonnementNVDevis.deleteUSAbonnementNVDevis(string numAbonnementNVDevis)
        {
            #region declaration
            bool           isUpdate       = false;
            IntfDalGeneral serviceGeneral = new ImplDalGeneral();
            #endregion

            #region implementation
            if (numAbonnementNVDevis != "")
            {
                this.strCommande  = "UPDATE `uscarte` SET `numAbonnementNVDevis`=NULL";
                this.strCommande += " WHERE `numAbonnementNVDevis`='" + numAbonnementNVDevis + "'";

                this.serviceConnectBase.openConnection();
                this.serviceConnectBase.requete(this.strCommande);
                this.serviceConnectBase.closeConnection();

                if (serviceGeneral.delete("usabonnementnvdevis", "numAbonnementNVDevis", numAbonnementNVDevis) == 1)
                {
                    isUpdate = true;
                }
            }
            #endregion

            return(isUpdate);
        }
Esempio n. 2
0
        bool IntfDalRouteNationale.deleteRouteNationale(string routeNationale)
        {
            #region declaration
            bool           isDelete       = false;
            IntfDalGeneral serviceGeneral = new ImplDalGeneral();
            #endregion

            #region implementation
            if (routeNationale != null)
            {
                serviceGeneral.delete("assovilleroutenationale", "routeNationale", routeNationale);
                if (serviceGeneral.delete("routenationale", "routeNationale", routeNationale) == 1)
                {
                    isDelete = true;
                }
            }
            #endregion

            return(isDelete);
        }