コード例 #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.ExportLateDeliveryPage(strWhereAdd);

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