private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //frmYearSelect fys = new frmYearSelect(); //fys.StrSQL = "select distinct left(CONVERT(varchar(50) , indate, 112 ),4 ) from PJ_sctz"; //if (fys.ShowDialog() == DialogResult.OK) //{ // ExportDYJCZZSZTZEdi etdjh = new ExportDYJCZZSZTZEdi(); // etdjh.ex(parentID, fys.strYear); //} ExportDYJCZZSZTZEdit etdjh = new ExportDYJCZZSZTZEdit(); etdjh.ExportExcel(parentID); }
private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { //IList<PJ_dyjczzsztz> datalist = gridView1.DataSource as IList<PJ_dyjczzsztz>; //frmYearSelect fys = new frmYearSelect(); //fys.StrSQL = "select distinct left(CONVERT(varchar(50) , indate, 112 ),4 ) from PJ_dyjczzsztz"; //if (fys.ShowDialog() == DialogResult.OK) //{ ExportDYJCZZSZTZEdit etdjh = new ExportDYJCZZSZTZEdit(); etdjh.ExportExcel(parentID); //} }