using System.Web; using System.Web.Security; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace BLL.Common { public static class FastReport { /// /// 重置数据 /// 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; } } }