Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnExPort_Click(object sender, EventArgs e)
        {
            string  strWhereAdd = this.GetWhere(false); //获取查询条件
            bool    blInvoice   = (!string.IsNullOrEmpty(this.txtBeginInvoiceTime.Text.Trim()) || !string.IsNullOrEmpty(this.txtEndInvoiceTime.Text.Trim()));
            DataSet dt          = _ExcelBLL.ExportDebtsAlertPage(strWhereAdd, blInvoice);

            if (dt.Tables[0].Rows.Count > 0)
            {
                this.DownloadFile(dt, "DebtsAlert.xls", "DebtsAlert.xml");
            }
            else
            {
                new Sinoo.Common.MessageShow().ExportErrorMessage(this);
            }
        }