using System.Collections.Generic; using System.Data; using System.Web; namespace BLL { public static class FastReportService { /// /// 重置数据 /// public static void ResetData() { HttpContext.Current.Session["ReportDataTables"] = null; HttpContext.Current.Session["ReportParameterValues"] = null; } public static void AddFastreportTable(DataTable dataTable) { List dataTables = (List)HttpContext.Current.Session["ReportDataTables"]; if (dataTables == null) { dataTables = new List(); } dataTables.Add(dataTable); HttpContext.Current.Session["ReportDataTables"] = dataTables; } public static void AddFastreportParameter(Dictionary Dicparames) { HttpContext.Current.Session["ReportParameterValues"] = Dicparames; } } }