Example #1
0
 private void btExplorerYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmYearSelect fys = new frmYearSelect();
     fys.StrSQL = "select distinct left(CONVERT(varchar(50) , wcsj, 112 ),4 )  from PJ_ccxqjh";
     if (fys.ShowDialog() == DialogResult.OK)
     {
         ExportGDSCCXQJH etdjh = new ExportGDSCCXQJH();
         etdjh.ExportExcel(parentID, fys.strYear);
     }
 }
Example #2
0
 private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     ExportGDSCCXQJH ex = new ExportGDSCCXQJH();
     ex.ExportExcel(parentID, "全部");
 }