private void btnQuitar_Click(object sender, EventArgs e)
        {
            if (GrillaVentas.CurrentRow == null)
            {
                Mensaje("Debe seleccionar un registro");
                return;
            }
            string CodRegistro = GrillaVentas.CurrentRow.Cells[0].Value.ToString();

            tbVenta = fun.EliminarFila(tbVenta, "Codregistro", CodRegistro);
            CalcularTotal();
        }
Exemplo n.º 2
0
        private void btnQuitarPapel_Click(object sender, EventArgs e)
        {
            if (GrillaPapeles.CurrentRow == null)
            {
                Mensaje("Debe seleccionar un registro");
                return;
            }
            string     CodPapel = GrillaPapeles.CurrentRow.Cells[0].Value.ToString();
            cFunciones fun      = new cFunciones();

            tbListaPapeles           = fun.EliminarFila(tbListaPapeles, "CodPapel", CodPapel);
            GrillaPapeles.DataSource = tbListaPapeles;
        }
Exemplo n.º 3
0
        private void btnEliminar_Click(object sender, EventArgs e)
        {
            if (Grilla.CurrentRow == null)
            {
                Mensaje("Debe seleccionar una fila");
                return;
            }
            string Codigo = Grilla.CurrentRow.Cells[0].Value.ToString();

            tbCompra          = fun.EliminarFila(tbCompra, "CodArticulo", Codigo);
            Grilla.DataSource = tbCompra;
            CalcularTotal();
        }
Exemplo n.º 4
0
        private void btnQuitar_Click(object sender, EventArgs e)
        {
            if (GrillaCuotas.CurrentRow == null)
            {
                Mensaje("Debe seleccionar una cuota");
                return;
            }
            string Cuota = GrillaCuotas.CurrentRow.Cells[1].Value.ToString();

            tbCuotas = fun.EliminarFila(tbCuotas, "Cuota", Cuota);
            GrillaCuotas.DataSource = tbCuotas;
            CalcularTotales();
        }
        private void btnEliminar_Click(object sender, EventArgs e)
        {
            if (Grilla.CurrentRow == null)
            {
                Mensaje("Debe seleccionar un elelemnto");
                return;
            }
            string CodJoya = Grilla.CurrentRow.Cells[1].Value.ToString();

            tbDetalle         = fun.EliminarFila(tbDetalle, "CodJoya", CodJoya);
            Grilla.DataSource = tbDetalle;
            Double Total = fun.TotalizarColumna(tbDetalle, "Precio");

            txtTotal.Text = Total.ToString();
        }
        private void btnEliminar_Click(object sender, EventArgs e)
        {
            if (Grilla.CurrentRow == null)
            {
                Mensaje("Debe seleccionar una fila");
                return;
            }
            string Codigo = Grilla.CurrentRow.Cells[0].Value.ToString();

            tbVenta           = fun.EliminarFila(tbVenta, "CodArticulo", Codigo);
            Grilla.DataSource = tbVenta;
            Double Total = fun.TotalizarColumna(tbVenta, "Subtotal");

            txtTotal.Text             = Total.ToString();
            txtTotalConDescuento.Text = Total.ToString();
        }