Example #1
0
        //Actualiza inventario
        public bool getDatosRptInventario(System.Windows.Forms.DataGridView dgv)// Metodo que obtiene los datos para el reporte inventrio
        {
            clear();
            bool exito = false;

            try
            {
                dsGimnasioTableAdapters.rptinventarioTableAdapter ta = new dsGimnasioTableAdapters.rptinventarioTableAdapter();
                dsGimnasio.rptinventarioDataTable dt = ta.GetData();
                dgv.DataSource = dt;
                exito          = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return(exito);
        }
        //actualiza inventario
        public bool getDatosRptInventario(System.Windows.Forms.DataGridView dgv)
        {
            clear();
            bool exito = false;
            try
            {
                dsGimnasioTableAdapters.rptinventarioTableAdapter ta = new dsGimnasioTableAdapters.rptinventarioTableAdapter();
                dsGimnasio.rptinventarioDataTable dt = ta.GetData();
                dgv.DataSource = dt;
                exito = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return exito;
        }