private void btnExPort_Click(object sender, EventArgs e) { string FileName = "安全存量预警"; Common.ExportToExcel ete = new Common.ExportToExcel(); ete.OutputAsExcelFile(this.dgvMain, FileName); }
private void btnExPort_Click(object sender, EventArgs e) { string FileName = "现有库存明细表"; if (!rbtDetail.Checked) { FileName = "现有库存统计表"; } Common.ExportToExcel ete = new Common.ExportToExcel(); ete.OutputAsExcelFile(this.dgvMain, FileName); }