Ejemplo n.º 1
0
        public void Agregar(CLotes Lotes)
        {
            string cmd = "INSERT INTO Lotes (IDEnvase,Cantidad,Disponibles, PrecioCompra) VALUES (" + Lotes.idenvase
                         + "," + Lotes.cantidad + "," + Lotes.cantidad + "," + Lotes.preciocompra + ")";

            MiConexion.EjecutarSql(cmd);
        }
Ejemplo n.º 2
0
        public void Modificar(CLotes Lotes)
        {
            string cmd = "update Lotes set Cantidad = " + Lotes.cantidad + ", Disponibles = " + Lotes.cantidad +
                         ", IDEnvase = " + Lotes.idenvase + ", PrecioCompra = " +
                         Lotes.preciocompra + " where idlote = " + Lotes.idlote;

            MiConexion.EjecutarSql(cmd);
        }
Ejemplo n.º 3
0
        public void Agregar(int idlote, int idenvase, int cant, int disp, decimal preciocomp)
        {
            CLotes oLote = new CLotes();

            oLote.idlote       = idlote;
            oLote.idenvase     = idenvase;
            oLote.cantidad     = cant;
            oLote.disponibles  = disp;
            oLote.preciocompra = preciocomp;

            oLotes.Agregar(oLote);
        }
Ejemplo n.º 4
0
 public void Modificar(CLotes Lotes)
 {
     oLotes.Modificar(Lotes);
 }