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) , gzrq, 112 ),4 )  from PJ_gztjb";
            if (fys.ShowDialog() == DialogResult.OK)
            {
                ExportGZTJB etdjh = new ExportGZTJB();
                etdjh.ExportExcel(fys.strYear);
            }
        }
Example #2
0
 private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     ExportGZTJB ex = new ExportGZTJB();
     ex.ExportExcel("全部");
 }