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

            rpt.Site = this.Site;
            return(rpt);
        }
        //public void ShowSiteIntegorration(string ReportName, DataSet dsReportDataSet)
        //{
        //    try
        //    {

        //        string sVersion, sSiteName;
        //        SiteIntegorrationReport objSiteIntegorrationReport = new SiteIntegorrationReport();
        //        objSiteIntegorrationReport.SetDataSource(dsReportDataSet);
        //        GetVersion_SiteName(out  sVersion, out  sSiteName);
        //        objSiteIntegorrationReport.SetParameterValue("siteName", sSiteName);
        //        objSiteIntegorrationReport.SetParameterValue("BMCVersion", sVersion);
        //        objSiteIntegorrationReport.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);
        //        objSiteIntegorrationReport.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol());
        //        //objSiteIntegorrationReport.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);
        //        crystalReportViewer.ReportSource = objSiteIntegorrationReport;
        //        // AuditReports();
        //        strReportName = "SiteIntegorrationReport";
        //    }
        //    catch (Exception ex)
        //    {
        //        ExceptionManager.Publish(ex);
        //    }
        //}
        


        public void ShowMeterListReport(DataSet dsReportsDataSet, string assetNo)
        {
            string sVersion = string.Empty;
            string sSiteName = string.Empty;

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

                MeterListReport meterListReport = new MeterListReport();

                GetVersion_SiteName(out  sVersion, out  sSiteName);

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

                meterListReport.SetDataSource(dsReportsDataSet);

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

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

                meterListReport.SetParameterValue("Site", sSiteName);
                meterListReport.SetParameterValue("Version", sVersion);
                meterListReport.SetParameterValue("AssetNo", assetNo);
                meterListReport.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);
                meterListReport.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);

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

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

                crystalReportViewer.ReportSource = meterListReport;

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

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