Ejemplo 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); //获取查询条件
            DataSet dt          = _ExcelBLL.ExportSleepCustomerPage(strWhereAdd);

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