Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            BindingList <LineaIngresoSalidaProducto> lista = logica.reporteSalidasProducto(this.idAlmacen, dateTimePickerInicial.Value, dateTimePickerFinal.Value);

            if (lista != null)
            {
                PantallaVistaPreviaReporte newPant = new PantallaVistaPreviaReporte(lista);
                newPant.ShowDialog();
            }
            else
            {
                MessageBox.Show("Error en la conexion con la base de datos. Intentelo nuevamente", "Error");
            }
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            BindingList <LineaIngresoSalidaProducto> lista = logica.reporteSalidasProducto(this.idAlmacen, dateTimePickerInicial.Value, dateTimePickerFinal.Value);

            if (lista != null)
            {
                PantallaVistaPreviaReporte newPant = new PantallaVistaPreviaReporte(lista);
                newPant.chart.SaveImage("Reporte.jpeg", System.Windows.Forms.DataVisualization.Charting.ChartImageFormat.Jpeg);
                MessageBox.Show("Guardado exitoso");
                newPant.ShowDialog();
            }
            else
            {
                MessageBox.Show("Error en la conexion con la base de datos. Intentelo nuevamente", "Error");
            }
        }