protected void btnExcel_Click(object sender, EventArgs e) { DataTable exportDataSource = this.GetExportDataSource(); Common2 common = new Common2(); common.ExportToExecelAll(exportDataSource, "仓库信息—按批次.xls", base.Request.Browser.Browser); }
protected void btnexecl_Click(object sender, System.EventArgs e) { DataTable table = this.GetTable(); Common2 common = new Common2(); common.ExportToExecelAll(this.GetTitleByTable(table), "退库报表.xls", base.Request.Browser.Browser); }
protected void btnexecl_Click(object sender, System.EventArgs e) { DataTable reportData = this.GetReportData(); Common2 common = new Common2(); common.ExportToExecelAll(reportData, "项目资金收支明细表.xls", base.Request.Browser.Browser); }
protected void btnExcel_Command(object sender, CommandEventArgs e) { DataTable exportDataSource = this.GetExportDataSource(); Common2 common = new Common2(); if (e.CommandName == "excel") { common.ExportToExecelAll(exportDataSource, "调拨单报表.xls", base.Request.Browser.Browser); return; } common.ExportToWordAll(exportDataSource, "调拨单报表.doc"); }