private void btnExport_Click(object sender, EventArgs e) { ExportToExcel ee = new ExportToExcel(); var mp = yltl.Common.ConfigHelper <MappingGroup> .ReloadFile(); var dbo = yltl.DBUtility.DBFactory.Create(yltl.DBUtility.eDBType.Oracle, "Data Source=lan_189;User ID=user_ahdy_shi;Password=user_ahdy_shi"); var dt = dbo.GetDataTable("select * from sys_dept"); ee.Export(mp.Maps[0], dt); }
private void btnExport_Click(object sender, EventArgs e) { ExportToExcel ee = new ExportToExcel(); var mp = yltl.Common.ConfigHelper<MappingGroup>.ReloadFile(); var dbo = yltl.DBUtility.DBFactory.Create(yltl.DBUtility.eDBType.Oracle, "Data Source=lan_189;User ID=user_ahdy_shi;Password=user_ahdy_shi"); var dt = dbo.GetDataTable("select * from sys_dept"); ee.Export(mp.Maps[0], dt); }