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