35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Web;
|
|
namespace BLL
|
|
{
|
|
public static class FastReportService
|
|
{
|
|
/// <summary>
|
|
/// 重置数据
|
|
/// </summary>
|
|
public static void ResetData()
|
|
{
|
|
HttpContext.Current.Session["ReportDataTables"] = null;
|
|
HttpContext.Current.Session["ReportParameterValues"] = null;
|
|
}
|
|
public static void AddFastreportTable(DataTable dataTable)
|
|
{
|
|
List<DataTable> dataTables = (List<DataTable>)HttpContext.Current.Session["ReportDataTables"];
|
|
if (dataTables == null)
|
|
{
|
|
dataTables = new List<DataTable>();
|
|
}
|
|
dataTables.Add(dataTable);
|
|
|
|
HttpContext.Current.Session["ReportDataTables"] = dataTables;
|
|
}
|
|
public static void AddFastreportParameter(Dictionary<string, string> Dicparames)
|
|
{
|
|
HttpContext.Current.Session["ReportParameterValues"] = Dicparames;
|
|
|
|
}
|
|
|
|
}
|
|
}
|