private void btnExportExcel_Click(object sender, EventArgs e)
 {
     PrintCore.ExportExcel excel = new PrintCore.ExportExcel();
     excel.Sql_ExportExcel(dgvMain, "特殊作业人员报警统计");
 }
 private void btnExportExcel_Click(object sender, EventArgs e)
 {
     ExportExcel excel = new ExportExcel();
     excel.Sql_ExportExcel(dgrd, "考勤原始数据统计", "统计时间:" + dtpStartTime.Value.ToString("yyyy-MM-dd") + "--" + dtpEndTime.Value.ToString("yyyy-MM-dd"));
 }
 private void btnExportExcel_Click(object sender, EventArgs e)
 {
     PrintCore.ExportExcel excel = new PrintCore.ExportExcel();
     excel.Sql_ExportExcel(dgrd, "人员考勤明细", "统计时间:" + dtpBeginTime.Value.ToString("yyyy-MM-dd") + "--" + dtpEndTime.Value.ToString("yyyy-MM-dd"));
 }
 private void btnExportExcel_Click(object sender, EventArgs e)
 {
     PrintCore.ExportExcel excel = new PrintCore.ExportExcel();
     excel.Sql_ExportExcel(dgvMain, "领导干部月下井统计", "统计时间:" + dtpDate.Text + "--" + dtpDate1.Text);
 }
 private void btnExportExcel_Click(object sender, EventArgs e)
 {
     ExportExcel excel = new ExportExcel();
     excel.Sql_ExportExcel(dgvMain, "请假管理");
 }
 private void btnExportExcel_Click(object sender, EventArgs e)
 {
     PrintCore.ExportExcel excel = new PrintCore.ExportExcel();
     excel.Sql_ExportExcel(dataGridView1, PrintTableName());
 }
 private void btnExportExcel_Click(object sender, EventArgs e)
 {
     PrintCore.ExportExcel excel = new PrintCore.ExportExcel();
     excel.Sql_ExportExcel(dataGridView1, PrintTableName());
 }