示例#1
0
        private void QueryBackgroundWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            this.Invoke(new Action(() =>
            {
                buttonBuscar.Enabled       = false;
                loaderControl1.title       = "Por favor espere";
                loaderControl1.description = "Obteniendo información";
                loaderControl1.Visible     = true;
            }
                                   ));

            System.Threading.Thread.Sleep(3000);
            ReportsBLL ReportsBLL = new ReportsBLL();


            //CheckInoursBLL CheckInoursBLL = new CheckInoursBLL();
            this.Invoke(new Action(() => dataGridViewReporteGeneral.DataSource = ReportsBLL.ReportAbsenteeism(dateTimeFechaInicio.Value, dateTimeFechaFin.Value, Convert.ToInt32(comboBoxDepartamento.SelectedValue.ToString()), Convert.ToInt32(comboBoxEmpleado.SelectedValue.ToString()))));
            //LoadDataGridView();
            //exportExcelControl1.data = dataGridViewReporteGeneral;
            //exportExcelControl1.Title = "ReporteAusentismo";
        }
示例#2
0
        public void LoadDataGridView()
        {
            ReportsBLL ReportsBLL = new ReportsBLL();

            dataGridViewReporteGeneral.DataSource = ReportsBLL.ReportAbsenteeism(dateTimeFechaInicio.Value, dateTimeFechaFin.Value, Convert.ToInt32(comboBoxDepartamento.SelectedValue.ToString()), Convert.ToInt32(comboBoxEmpleado.SelectedValue.ToString()));
        }