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); }
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; }