Exemplo n.º 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_sbsjgcxmjhsbb";
            if (fys.ShowDialog() == DialogResult.OK)
            {
                ExportSBSJGCXMJHSBB etdjh = new ExportSBSJGCXMJHSBB();
                etdjh.ExportExcel(fys.strYear);
            }
        }
Exemplo n.º 2
0
 private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     ExportSBSJGCXMJHSBB ex = new ExportSBSJGCXMJHSBB();
     ex.ExportExcel("全部");
 }