private void timer1_Tick(object sender, EventArgs e)
        {
            if (ESTADO.Equals("S"))
            {
                ESTADO = "N";
                cbo_presupuesto.Enabled      = true;
                chk_lote.ReadOnly            = false;
                chk_variedad.ReadOnly        = false;
                btn_generarplantilla.Enabled = true;
                bar_progreso.Visible         = false;
                dtg_datos.DataSource         = DTRESULT;



                string RUTA = "c:\\DATA\\DETALLE.xlsx";
                dtg_datos.ExportToXlsx(RUTA);
                ProcessStartInfo startInfo = new ProcessStartInfo();
                startInfo.FileName  = "EXCEL.EXE";
                startInfo.Arguments = RUTA;
                Process.Start(startInfo);
                timer1.Stop();
            }
            else
            {
                lb_correlativo.Text = DTRESULT.Rows.Count.ToString() + " " + FuncionesExtras.mensajeexport;
            }
        }