Beispiel #1
0
        public MasterReportBound GetFreeStock(FreeStockFilterViewModel freeStockFilterViewModel)
        {
            List <Cats.Models.Hub.ViewModels.Report.Data.FreeStockReport> reports = new List <Cats.Models.Hub.ViewModels.Report.Data.FreeStockReport>();

            Cats.Models.Hub.ViewModels.Report.Data.FreeStockReport freestockreport = new Cats.Models.Hub.ViewModels.Report.Data.FreeStockReport();
            UserProfile user = _userProfileService.GetUser(User.Identity.Name);

            freestockreport.Programs    = _hubService.GetFreeStockGroupedByProgram(user.DefaultHub.HubID, freeStockFilterViewModel);
            freestockreport.PreparedBy  = user.GetFullName();
            freestockreport.HubName     = user.DefaultHub.HubNameWithOwner;
            freestockreport.ReportDate  = System.DateTime.Now;
            freestockreport.ReportName  = "FreeStockStatusReport";
            freestockreport.ReportTitle = "Free Stock Status";
            reports.Add(freestockreport);

            Cats.Web.Hub.Reports.FreeStockReport rpt = new Cats.Web.Hub.Reports.FreeStockReport()
            {
                DataSource = freestockreport.Programs
            };
            // XtraReport1 rpt = new XtraReport1() { DataSource = freestockreport.Programs[2].Details };
            MasterReportBound report = new MasterReportBound()
            {
                DataSource = reports
            };

            report.rptSubReport.ReportSource = rpt;
            return(report);
        }
Beispiel #2
0
 public static MasterReportBound GetFreeStockReport(Cats.Models.Hub.ViewModels.Report.Data.FreeStockReport freestockreport)
 {
     var rpt = new Cats.Web.Hub.Reports.FreeStockReport();
     rpt.DataSource = freestockreport.Programs;
     var report = new MasterReportBound();
     //report.DataSource = freestockreport.Programs ;
     report.rptSubReport.ReportSource = rpt;
     return report;
 }
Beispiel #3
0
        public static MasterReportBound GetFreeStockReport(Cats.Models.Hub.ViewModels.Report.Data.FreeStockReport freestockreport)
        {
            var rpt = new Cats.Web.Hub.Reports.FreeStockReport();

            rpt.DataSource = freestockreport.Programs;
            var report = new MasterReportBound();

            //report.DataSource = freestockreport.Programs ;
            report.rptSubReport.ReportSource = rpt;
            return(report);
        }
Beispiel #4
0
        public MasterReportBound GetFreeStock(FreeStockFilterViewModel freeStockFilterViewModel)
        {
            List<Cats.Models.Hub.ViewModels.Report.Data.FreeStockReport> reports = new List<Cats.Models.Hub.ViewModels.Report.Data.FreeStockReport>();
            Cats.Models.Hub.ViewModels.Report.Data.FreeStockReport freestockreport = new Cats.Models.Hub.ViewModels.Report.Data.FreeStockReport();
            UserProfile user =_userProfileService.GetUser(User.Identity.Name);

            freestockreport.Programs = _hubService.GetFreeStockGroupedByProgram(user.DefaultHub.HubID, freeStockFilterViewModel);
            freestockreport.PreparedBy = user.GetFullName();
            freestockreport.HubName = user.DefaultHub.HubNameWithOwner;
            freestockreport.ReportDate = System.DateTime.Now;
            freestockreport.ReportName = "FreeStockStatusReport";
            freestockreport.ReportTitle = "Free Stock Status";
            reports.Add(freestockreport);

            Cats.Web.Hub.Reports.FreeStockReport rpt = new Cats.Web.Hub.Reports.FreeStockReport() { DataSource = freestockreport.Programs };
            // XtraReport1 rpt = new XtraReport1() { DataSource = freestockreport.Programs[2].Details };
            MasterReportBound report = new MasterReportBound() { DataSource = reports };
            report.rptSubReport.ReportSource = rpt;
            return report;
        }