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

            rpt.Site = this.Site;
            return(rpt);
        }
        public void ShowRedeemedTicketByDevice(string reportName, DataSet dsReportsDataSet, DateTime fromdate,DateTime toDate, string DeviceType, string siteCode)
        {
            try
            {
                string sVersion, sSiteName;

                var vRedeemedTicketByDeviceReport = new RedeemedTicketByDeviceReport();

                vRedeemedTicketByDeviceReport.SetDataSource(dsReportsDataSet);
                vRedeemedTicketByDeviceReport.SetParameterValue("fromdate", fromdate);
                vRedeemedTicketByDeviceReport.SetParameterValue("toDate", toDate);
                vRedeemedTicketByDeviceReport.SetParameterValue("DeviceType", DeviceType);

                GetVersion_SiteName(out  sVersion, out  sSiteName);
                vRedeemedTicketByDeviceReport.SetParameterValue("siteName", sSiteName);
                vRedeemedTicketByDeviceReport.SetParameterValue("BMCVersion", sVersion);
                vRedeemedTicketByDeviceReport.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);
                vRedeemedTicketByDeviceReport.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol());
                vRedeemedTicketByDeviceReport.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);
                vRedeemedTicketByDeviceReport.SetParameterValue("SiteCode", siteCode);
                
                crystalReportViewer.ReportSource = vRedeemedTicketByDeviceReport;
                AuditReports();

                strReportName = "Redeemed Ticket By Device Report";
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     RedeemedTicketByDeviceReport rpt = new RedeemedTicketByDeviceReport();
     rpt.Site = this.Site;
     return rpt;
 }