示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            DropSummaryReport rpt = new DropSummaryReport();

            rpt.Site = this.Site;
            return(rpt);
        }
        internal void DropSummaryReport(DataSet DSDeclaration, string userName, int BatchNo, int nMachineCount, string sDropType)
        {
            try
            {
                string sVersion, sSiteName;

                var rDSDeclaration = new DropSummaryReport();

                rDSDeclaration.SetDataSource(DSDeclaration);
                rDSDeclaration.SetParameterValue("UserName", userName);
                rDSDeclaration.SetParameterValue("DropType", sDropType);
                GetVersion_SiteName(out  sVersion, out  sSiteName);
                rDSDeclaration.SetParameterValue("SiteCode", Settings.SiteCode);
                rDSDeclaration.SetParameterValue("siteName", sSiteName);
                rDSDeclaration.SetParameterValue("Version", sVersion);
                rDSDeclaration.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);
                rDSDeclaration.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol());
                rDSDeclaration.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);
                rDSDeclaration.SetParameterValue("BatchNo", BatchNo);
                rDSDeclaration.SetParameterValue("MachineCount", nMachineCount);

                crystalReportViewer.ReportSource = rDSDeclaration;

                AuditReports();

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