private void bVentas_Click(object sender, EventArgs e) { FListadoVentas fListadoVentas = new FListadoVentas((Dependiente)bs.Current, serviciosVenta, serviciosDependiente, serviciosArticulos); fListadoVentas.ShowDialog(); fListadoVentas.Dispose(); }
private void listadoToolStripMenuItem2_Click(object sender, EventArgs e) { FListadoVentas fListadoVentas = new FListadoVentas(lnv, lnd, lna); fListadoVentas.ShowDialog(); fListadoVentas.Dispose(); }
private void bExtra_Click(object sender, EventArgs e) { if (tipoDeClase == TipoDeClase.Dependiente) { FListadoVentas fListadoVentas = new FListadoVentas((Dependiente)bindingSource.Current, serviciosVenta, serviciosDependiente, serviciosArticulos); fListadoVentas.ShowDialog(); fListadoVentas.Dispose(); } else if (tipoDeClase == TipoDeClase.Articulo) { FListadoVentas fListadoVentas = new FListadoVentas((Articulo)bindingSource.Current, serviciosVenta, serviciosDependiente, serviciosArticulos); fListadoVentas.ShowDialog(); fListadoVentas.Dispose(); } }
private void ventasDeArtículoToolStripMenuItem_Click(object sender, EventArgs e) { FIntroducir fIntroducir = new FIntroducir(TipoDeClase.Articulo); DialogResult dr = fIntroducir.ShowDialog(); if (dr == DialogResult.OK) { Articulo articulo = lna.getArticulo(fIntroducir.Clave); if (articulo != null) { FListadoVentas fListadoVentas = new FListadoVentas(articulo, lnv, lnd, lna); fListadoVentas.ShowDialog(); fListadoVentas.Dispose(); } } fIntroducir.Dispose(); }
private void ventasRecientesDeDependienteToolStripMenuItem_Click(object sender, EventArgs e) { FIntroducir fIntroducir = new FIntroducir(TipoDeClase.Dependiente); DialogResult dr = fIntroducir.ShowDialog(); if (dr == DialogResult.OK) { Dependiente dependiente = lnd.getDependiente(fIntroducir.Clave); if (dependiente != null) { FListadoVentas fListadoVentas = new FListadoVentas(dependiente, lnv, lnd, lna); fListadoVentas.ShowDialog(); fListadoVentas.Dispose(); } } fIntroducir.Dispose(); }