protected void Button1_Click(object sender, EventArgs e) { string begindate = StartTime.Value; string enddate = EndTime.Value; string strCheckID = CheckGroup.Value; int rowcount = 0; int countPage = 0; DataTable dt = bll.GetForeCastCheckData(begindate, enddate, strCheckID, 0, 1, 10000, ref rowcount, ref countPage); if (dt != null) { ExportToExcel(dt, "统计模式预测结果"); } }