public static List <VendedoresDetalles> GetCategoriaId(int categoriaid)
        {
            List <VendedoresDetalles> lista = new List <VendedoresDetalles>();
            GestionVentaDb            db    = new GestionVentaDb();

            lista = db.VendedorDetalle.Where(p => p.CategoriaId == categoriaid).ToList();
            return(lista);
        }
        public static List <Ventas> GetContrasena(string tmp)
        {
            List <Ventas>  lista = new List <Ventas>();
            GestionVentaDb db    = new GestionVentaDb();

            //lista = db.ventas.Where(e => e.Comision == tmp).ToList();
            return(lista);
        }
        public static List <VendedoresDetalles> GetLista()
        {
            List <VendedoresDetalles> lista = new List <VendedoresDetalles>();
            GestionVentaDb            db    = new GestionVentaDb();

            lista = db.VendedorDetalle.ToList();
            return(lista);
        }
        public static void Eliminar(int v)
        {
            GestionVentaDb     db = new GestionVentaDb();
            VendedoresDetalles cl = db.VendedorDetalle.Find(v);

            db.VendedorDetalle.Remove(cl);
            db.SaveChanges();
        }
Esempio n. 5
0
        public static List <Categorias> GetNombres(string nombres)
        {
            List <Categorias> lista = new List <Categorias>();
            GestionVentaDb    db    = new GestionVentaDb();

            lista = db.Categoria.Where(p => p.Nombre == nombres).ToList();
            return(lista);
        }
Esempio n. 6
0
        public static List <Pagos> GetId(int pagoid)
        {
            List <Pagos>   lista = new List <Pagos>();
            GestionVentaDb db    = new GestionVentaDb();

            lista = db.pago.Where(p => p.PagoId == pagoid).ToList();
            return(lista);
        }
Esempio n. 7
0
        public static void Eliminar(int v)
        {
            GestionVentaDb db = new GestionVentaDb();
            Categorias     cl = db.Categoria.Find(v);

            db.Categoria.Remove(cl);
            db.SaveChanges();
        }
Esempio n. 8
0
        public static List <Categorias> GetListaCategoria(int tmp)
        {
            List <Categorias> lista = new List <Categorias>();
            GestionVentaDb    db    = new GestionVentaDb();

            lista = db.Categoria.Where(p => p.CategoriaId == tmp).ToList();
            return(lista);
        }
Esempio n. 9
0
        public static List <Categorias> GetLista()
        {
            List <Categorias> lista = new List <Categorias>();
            GestionVentaDb    db    = new GestionVentaDb();

            lista = db.Categoria.ToList();
            return(lista);
        }
Esempio n. 10
0
        public static List <DetalleVendedores> GetListaCuadre(int tmp)
        {
            List <DetalleVendedores> lista = new List <DetalleVendedores>();
            GestionVentaDb           db    = new GestionVentaDb();

            lista = db.DetalleVendedores.Where(d => d.CategoriaId == tmp).ToList();
            return(lista);
        }
Esempio n. 11
0
        public static void Eliminar(int v)
        {
            GestionVentaDb    db = new GestionVentaDb();
            DetalleVendedores de = db.DetalleVendedores.Find(v);

            db.DetalleVendedores.Remove(de);
            db.SaveChanges();
        }
        public static List <Gastos> GetId(int gastoid)
        {
            List <Gastos>  lista = new List <Gastos>();
            GestionVentaDb db    = new GestionVentaDb();

            lista = db.gasto.Where(p => p.GastoId == gastoid).ToList();
            return(lista);
        }
        public static List <Gastos> GetLista()
        {
            List <Gastos>  lista = new List <Gastos>();
            GestionVentaDb db    = new GestionVentaDb();

            lista = db.gasto.ToList();
            return(lista);
        }
        public static List <Subsidios> GetConcepto(string tmp)
        {
            List <Subsidios> lista = new List <Subsidios>();
            GestionVentaDb   db    = new GestionVentaDb();

            lista = db.subsidios.Where(s => s.Concepto == tmp).ToList();
            return(lista);
        }
        public static void Eliminar(int eliminar)
        {
            GestionVentaDb db = new GestionVentaDb();
            Categorias     c  = db.Categorias.Find(eliminar);

            db.Categorias.Remove(c);
            // db.SaveChanges();
        }
        public static void Eliminar(int eliminar)
        {
            GestionVentaDb db  = new GestionVentaDb();
            Subsidios      sub = db.subsidios.Find(eliminar);

            db.subsidios.Remove(sub);
            // db.SaveChanges();
        }
        public static List <Subsidios> GetListaSubsidiosId(int tmp)
        {
            List <Subsidios> lista = new List <Subsidios>();
            GestionVentaDb   db    = new GestionVentaDb();

            lista = db.subsidios.Where(s => s.SubsidioId == tmp).ToList();
            return(lista);
        }
Esempio n. 18
0
        public static List <Vendedores> GetContrasena(string tmp)
        {
            List <Vendedores> lista = new List <Vendedores>();
            GestionVentaDb    db    = new GestionVentaDb();

            lista = db.vendedores.Where(a => a.Nombres == tmp).ToList();
            return(lista);
        }
Esempio n. 19
0
        public static void Eliminar(int eliminar)
        {
            GestionVentaDb db  = new GestionVentaDb();
            Vendedores     ven = db.vendedores.Find(eliminar);

            db.vendedores.Remove(ven);
            // db.SaveChanges();
        }
Esempio n. 20
0
        public static List <Vendedores> GetListaVendedorId(int tmp)
        {
            List <Vendedores> lista = new List <Vendedores>();
            GestionVentaDb    db    = new GestionVentaDb();

            lista = db.vendedores.Where(a => a.VendedoresId == tmp).ToList();
            return(lista);
        }
        public static List <CuadresVendedores> GetId(int cuadreid)
        {
            List <CuadresVendedores> lista = new List <CuadresVendedores>();
            GestionVentaDb           db    = new GestionVentaDb();

            lista = db.Cuadre.Where(p => p.CuadreId == cuadreid).ToList();
            return(lista);
        }
        public static void Eliminar(int v)
        {
            GestionVentaDb    db = new GestionVentaDb();
            CuadresVendedores cl = db.Cuadre.Find(v);

            db.Cuadre.Remove(cl);
            db.SaveChanges();
        }
        public static List <CuadresVendedores> GetListaVendedor(int tmp)
        {
            List <CuadresVendedores> lista = new List <CuadresVendedores>();
            GestionVentaDb           db    = new GestionVentaDb();

            lista = db.Cuadre.Where(p => p.VendedorId == tmp).ToList();
            return(lista);
        }
        public static List <CuadresVendedores> GetLista()
        {
            List <CuadresVendedores> lista = new List <CuadresVendedores>();
            GestionVentaDb           db    = new GestionVentaDb();

            lista = db.Cuadre.ToList();
            return(lista);
        }
        public static void Eliminar(int v)
        {
            GestionVentaDb db = new GestionVentaDb();
            Gastos         cl = db.gasto.Find(v);

            db.gasto.Remove(cl);
            db.SaveChanges();
        }
        public static List <Categorias> GetConcepto(string tmp)
        {
            List <Categorias> lista = new List <Categorias>();
            GestionVentaDb    db    = new GestionVentaDb();

            lista = db.Categorias.Where(c => c.Nombre == tmp).ToList();
            return(lista);
        }
 public static void Guardar(Subsidios sub)
 {
     try
     {
         GestionVentaDb db = new GestionVentaDb();
         db.subsidios.Add(sub);
         //db.SaveChanges();
         db.Dispose();
     }
     catch (FormatException)
     {
         Console.WriteLine("No se puede convertir a '{0}' a un solo. ", sub);
     }
 }
Esempio n. 28
0
 public static void Guardar(Vendedores ven)
 {
     try
     {
         GestionVentaDb db = new GestionVentaDb();
         db.vendedores.Add(ven);
         //db.SaveChanges();
         db.Dispose();
     }
     catch (FormatException)
     {
         Console.WriteLine("No se puede convertir a '{0}' a un solo. ", ven);
     }
 }
 public static void Insertar(CuadresVendedores cv)
 {
     try
     {
         GestionVentaDb db = new GestionVentaDb();
         db.Cuadre.Add(cv);
         db.SaveChanges();
         db.Dispose();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public static void Insertar(Gastos g)
 {
     try
     {
         GestionVentaDb db = new GestionVentaDb();
         db.gasto.Add(g);
         db.SaveChanges();
         db.Dispose();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }