Exemplo n.º 1
0
        public bool getDatosRptVentaProductos(System.Windows.Forms.DataGridView dgv, DateTime fecha1, DateTime fecha2) // Metodo que obtiene los datos para el reporte producto
        {
            clear();
            bool exito = false;

            try
            {
                dsGimnasioTableAdapters.rptventaproductosTableAdapter ta = new dsGimnasioTableAdapters.rptventaproductosTableAdapter();
                dsGimnasio.rptventaproductosDataTable dt = ta.GetDataByFecha(fecha1, fecha2);
                dgv.DataSource = dt;
                exito          = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return(exito);
        }
Exemplo n.º 2
0
        public bool getDatosRptVentaProductos(System.Windows.Forms.DataGridView dgv,DateTime fecha1, DateTime fecha2)
        {
            clear();
            bool exito = false;
            try
            {
                dsGimnasioTableAdapters.rptventaproductosTableAdapter ta = new dsGimnasioTableAdapters.rptventaproductosTableAdapter();
                dsGimnasio.rptventaproductosDataTable dt = ta.GetDataByFecha(fecha1, fecha2);
                dgv.DataSource = dt;
                exito = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return exito;
        }