예제 #1
0
    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.GetCityCheckData(begindate, enddate, strCheckID, 1, 10000, ref rowcount, ref countPage);

        if (dt != null)
        {
            ExportToExcel(dt, "全国空气质量");
        }
    }