private void btExplorerqc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmYearSelect fys = new frmYearSelect(); fys.StrSQL = "select distinct left(CONVERT(varchar(50) , jhwcsj, 112 ),4 ) from PJ_lcfxwtjzgls"; if (fys.ShowDialog() == DialogResult.OK) { ExportLCFXWTJZGLS etdjh = new ExportLCFXWTJZGLS(); etdjh.ExportExcelQiuChaYear(parentID, fys.strYear); } }
private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ExportLCFXWTJZGLS etdjh = new ExportLCFXWTJZGLS(); etdjh.CurrRecord = currRecord; etdjh.IsWorkflowCall = isWorkflowCall; etdjh.ParentTemple = parentTemple; etdjh.RecordWorkFlowData = WorkFlowData; etdjh.ExportExcel(); }