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