/// <summary> /// 导出事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnExport_Click(object sender, EventArgs e) { DataSet ds = _ExcelBLL.ExportArrivalNotice(getSqlStr()); if (ds.Tables[0].Rows.Count > 0) { this.DownloadFile(ds, "ArrivalNotice.xls", "ArrivalNotice.xml"); } else { new Sinoo.Common.MessageShow().ExportErrorMessage(this); } }