public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            JackpotSlipSummaryReport rpt = new JackpotSlipSummaryReport();

            rpt.Site = this.Site;
            return(rpt);
        }
        public void ShowJackpotSlipSummaryReport(DataSet dsReportsDataSet, DateTime reportStartDateTime, 
            DateTime reportEndDateTime,bool? ShowHandpay,bool? ShowJackpot)
        {
            string sVersion = string.Empty;
            string sSiteName = string.Empty;
            
            try
            {
                LogManager.WriteLog("Inside ShowJackpotSlipSummaryReport method", LogManager.enumLogLevel.Info);

                JackpotSlipSummaryReport jackpotSlipSummaryReport = new JackpotSlipSummaryReport();

                GetVersion_SiteName(out  sVersion, out  sSiteName);

                LogManager.WriteLog("Setting Report Datasource...", LogManager.enumLogLevel.Info);

                jackpotSlipSummaryReport.SetDataSource(dsReportsDataSet);

                LogManager.WriteLog("Report DataSource set successfully", LogManager.enumLogLevel.Info);

                LogManager.WriteLog("Setting Report Parameters...", LogManager.enumLogLevel.Info);

                jackpotSlipSummaryReport.SetParameterValue("SiteCode", Settings.SiteCode);
                jackpotSlipSummaryReport.SetParameterValue("Site", sSiteName);
                jackpotSlipSummaryReport.SetParameterValue("Version", sVersion);
                jackpotSlipSummaryReport.SetParameterValue("ReportStartDate", reportStartDateTime);
                jackpotSlipSummaryReport.SetParameterValue("ReportEndDate", reportEndDateTime);
                jackpotSlipSummaryReport.SetParameterValue("ShowHandpay", ShowHandpay);
                jackpotSlipSummaryReport.SetParameterValue("ShowJackpot", ShowJackpot);
                jackpotSlipSummaryReport.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentSiteCulture.GetCurrencySymbol());
                jackpotSlipSummaryReport.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);
                jackpotSlipSummaryReport.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);
                
                LogManager.WriteLog("Report Parameters set successfully", LogManager.enumLogLevel.Info);

                LogManager.WriteLog("Setting Report Source...", LogManager.enumLogLevel.Info);

                crystalReportViewer.ReportSource = jackpotSlipSummaryReport;

                LogManager.WriteLog("Report Source set successfully", LogManager.enumLogLevel.Info);

                AuditReports();

                strReportName = "Jackpot SlipSummary Report";
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     JackpotSlipSummaryReport rpt = new JackpotSlipSummaryReport();
     rpt.Site = this.Site;
     return rpt;
 }