/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnExPort_Click(object sender, EventArgs e) { bool blInvoice = (!string.IsNullOrEmpty(this.txtBeginInvoiceTime.Text.Trim()) || !string.IsNullOrEmpty(this.txtEndInvoiceTime.Text.Trim())); string strWhereAdd = this.GetWhere(false); //获取查询条件 DataSet dt = _ExcelBLL.ExportInvoicesAmountOfMoneyPage(strWhereAdd, blInvoice); if (dt.Tables[0].Rows.Count > 0) { this.DownloadFile(dt, "InvoicesAmount.xls", "InvoicesAmountOfMoney.xml"); } else { new Sinoo.Common.MessageShow().ExportErrorMessage(this); } }