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
    {
        /// <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;

        }

    }
}