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

            rpt.Site = this.Site;
            return(rpt);
        }
        public void ShowCashDeskReconcilationReport(DataSet dsReportsDataSet, DateTime StartDate, DateTime EndDate)
        {
            string sVersion = string.Empty;
            string sSiteName = string.Empty;

            try
            {
                LogManager.WriteLog("Inside ShowCashDeskReconcilationReport method", LogManager.enumLogLevel.Info);

                GetVersion_SiteName(out  sVersion, out  sSiteName);
                CashDeskReconicilationReport cashdeskListReport = new CashDeskReconicilationReport();

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

                cashdeskListReport.SetDataSource(dsReportsDataSet);

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

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

                cashdeskListReport.SetParameterValue("@startDate", StartDate);
                cashdeskListReport.SetParameterValue("@endDate", EndDate);
                cashdeskListReport.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);
                cashdeskListReport.SetParameterValue("Version", sVersion);
                cashdeskListReport.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);
                cashdeskListReport.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol());

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

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

                crystalReportViewer.ReportSource = cashdeskListReport;

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

                AuditReports();

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