예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            SpotCheckReport rpt = new SpotCheckReport();

            rpt.Site = this.Site;
            return(rpt);
        }
        internal void ShowSpotCheckReport(string sBarpositionName, string sZoneName, string sGameTitle, string dPop, DateTime dtDropDate, decimal dNetWinLoss, decimal dHandle, decimal dPercentagePayout, decimal dDrop, decimal dHandpay,DateTime dtLastDropDate, string siteCode)
        {
            try
            {
                string sVersion, sSiteName;
                var rptSpotCheck = new SpotCheckReport();

                rptSpotCheck.SetParameterValue("UserName", Security.SecurityHelper.CurrentUser.UserName);
                GetVersion_SiteName(out  sVersion, out  sSiteName);
                rptSpotCheck.SetParameterValue("siteName", sSiteName);
                rptSpotCheck.SetParameterValue("BMCVersion", sVersion);
                rptSpotCheck.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);
                rptSpotCheck.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol());
                rptSpotCheck.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);
                rptSpotCheck.SetParameterValue("SiteCode", siteCode);

                rptSpotCheck.SetParameterValue("@CurrentDateTime", DateTime.Now);
                rptSpotCheck.SetParameterValue("@Position", sBarpositionName);
                rptSpotCheck.SetParameterValue("@ZoneName", sZoneName);
                rptSpotCheck.SetParameterValue("@GameTitle", sGameTitle);
                rptSpotCheck.SetParameterValue("@Denom", dPop);

                rptSpotCheck.SetParameterValue("@LastMeterUpdate", dtDropDate);
                rptSpotCheck.SetParameterValue("@NetWinLoss", dNetWinLoss);
                rptSpotCheck.SetParameterValue("@Handle", dHandle);
                rptSpotCheck.SetParameterValue("@PercentagePayout", dPercentagePayout.ToString());
                rptSpotCheck.SetParameterValue("@Drop", dDrop);
                rptSpotCheck.SetParameterValue("@Handpay", dHandpay);
                rptSpotCheck.SetParameterValue("@DropDate", dtLastDropDate);

                crystalReportViewer.ReportSource = rptSpotCheck;
                crystalReportViewer.PrintReport();

                AuditReports();

                strReportName = "Spot Check Report";
            }

            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     SpotCheckReport rpt = new SpotCheckReport();
     rpt.Site = this.Site;
     return rpt;
 }