Inheritance: DevExpress.XtraReports.UI.XtraReport
Beispiel #1
0
 public static MasterReportBound GetOffloadingReport(Cats.Models.Hub.ViewModels.Report.Data.OffloadingReport offloadingreport)
 {
     var rpt = new OffLoadingReport();
     rpt.DataSource = offloadingreport;
     MasterReportBound report = new MasterReportBound();
     report.DataSource = offloadingreport;
     report.rptSubReport.ReportSource = rpt;
     return report;
 }
Beispiel #2
0
 public MasterReportBound GetOffloading(DispatchesViewModel dispatchesViewModel)
 {
     UserProfile user = _userProfileService.GetUser(User.Identity.Name);
        OffloadingReportMain main = new OffloadingReportMain();
        List<OffloadingReport> reports = _transactionService.GetOffloadingReport(user.DefaultHub.HubID, dispatchesViewModel);
        main.reports = reports;
        main.PreparedBy = user.GetFullName();
        main.HubName = user.DefaultHub.HubNameWithOwner;
        main.ReportDate = DateTime.Now;
        main.ReportName = "OffloadingReport";
        main.ReportTitle = "Offloading";
        List<OffloadingReportMain> coll = new List<OffloadingReportMain>();
        coll.Add(main);
        OffLoadingReport rpt = new OffLoadingReport() { DataSource = reports };
        // XtraReport1 rpt = new XtraReport1() { DataSource = freestockreport.Programs[2].Details };
        MasterReportBound report = new MasterReportBound() { Name = "Offloading Report " + DateTime.Now.ToShortDateString(), DataSource = coll };
        report.rptSubReport.ReportSource = rpt;
        return report;
 }