Exemplo n.º 1
0
        private int CheckArticulosCarrito(string idCarrito)
        {
            int numArticulos = 0;

            try
            {
                objVenta             = new DLLGestionVenta.ProcesarVenta();
                objVenta.ConexString = System.Configuration.ConfigurationManager.ConnectionStrings["MC_TDAConnectionString"].ToString();

                numArticulos = objVenta.GetArticulosCarrito(idCarrito);
            }
            catch (Exception ex)
            {
            }
            return(numArticulos);
        }
Exemplo n.º 2
0
        protected int ValidaArticulosCarrito(string idCarrito)
        {
            int numArticulos = 0;

            DLLGestionVenta.ProcesarVenta objCarrito;
            try
            {
                objCarrito             = new DLLGestionVenta.ProcesarVenta();
                objCarrito.ConexString = System.Configuration.ConfigurationManager.ConnectionStrings["MC_TDAConnectionString"].ToString();

                numArticulos = objCarrito.GetArticulosCarrito(idCarrito);
            }
            catch (Exception ex)
            {
                //log.Error(ex);
            }
            return(numArticulos);
        }
Exemplo n.º 3
0
        private int CheckArticulosCarritoHermes(int?idCarrito)
        {
            DLLGestionVenta.ProcesarVenta objVenta;
            int numArticulos = 0;

            try
            {
                objVenta             = new DLLGestionVenta.ProcesarVenta();
                objVenta.ConexString = System.Configuration.ConfigurationManager.ConnectionStrings["MC_TDAConnectionString"].ToString();

                numArticulos = objVenta.GetArticulosCarrito(Convert.ToString(idCarrito));
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }
            return(numArticulos);
        }