Beispiel #1
0
        /// <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.ExportSalesYearPage(strWhereAdd, blInvoice);

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