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

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        internal void ShowVaultFillHistory(DataTable dtHistory, int DeviceId, int Records)
        {
            try
            {
                string sVersion, sSiteName;

                FillVaultHistory oFillHistory = new FillVaultHistory();

                oFillHistory.SetDataSource(dtHistory);

                GetVersion_SiteName(out  sVersion, out  sSiteName);

                oFillHistory.SetParameterValue("@Device_ID", DeviceId);
                oFillHistory.SetParameterValue("@No_Of_Records", Records);               
                oFillHistory.SetParameterValue("siteName", sSiteName);
                oFillHistory.SetParameterValue("BMCVersion", sVersion);
                oFillHistory.SetParameterValue("RequestedRecords", Records);
                oFillHistory.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);
                oFillHistory.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol());
                oFillHistory.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);                

                crystalReportViewer.ReportSource = oFillHistory;

                AuditReports();

                strReportName = "Fill Vault History";
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }    
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     FillVaultHistory rpt = new FillVaultHistory();
     rpt.Site = this.Site;
     return rpt;
 }