private void btExplorerqc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmYearSelect fys = new frmYearSelect(); fys.StrSQL = "select distinct left(CONVERT(varchar(50) , ssrq, 112 ),4 ) from PJ_cqcssqk"; if (fys.ShowDialog() == DialogResult.OK) { ExportCQCSSQK etdjh = new ExportCQCSSQK(); etdjh.ExportExcelQiuChaYear(parentID, fys.strYear); } }
private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ExportCQCSSQK ex = new ExportCQCSSQK(); ex.ExportExcel(parentID); }