Beispiel #1
0
        public MasterReportBound GetReceiveReportByBudgetYear(ReceiptsViewModel receiptsViewModel)
        {
            List <Cats.Models.Hub.ViewModels.Report.Data.ReceiveReportMain> reports = new List <ReceiveReportMain>();

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

            receivereport.receiveReports = _transactionService.GetReceiveReport(user.DefaultHub.HubID, receiptsViewModel);//new List<ViewModels.Report.Data.ReceiveReport>();
            receivereport.PreparedBy     = user.GetFullName();
            receivereport.HubName        = user.DefaultHub.HubNameWithOwner;
            receivereport.ReportDate     = System.DateTime.Now;
            receivereport.ReportCode     = DateTime.Now.ToString();
            receivereport.ReportName     = "ReceiveReport";
            receivereport.ReportTitle    = "Receive Report";
            reports.Add(receivereport);


            Cats.Web.Hub.Reports.ReceiveReportByBudgetYear rpt = new ReceiveReportByBudgetYear()
            {
                DataSource = receivereport.receiveReports
            };
            MasterReportBound report = new MasterReportBound()
            {
                Name = "Receive Report - " + DateTime.Now.ToShortDateString(), DataSource = reports
            };

            report.rptSubReport.ReportSource = rpt;
            return(report);
        }
Beispiel #2
0
        public MasterReportBound GetReceiveReportByBudgetYear(ReceiptsViewModel receiptsViewModel)
        {
            List<Cats.Models.Hub.ViewModels.Report.Data.ReceiveReportMain> reports = new List<ReceiveReportMain>();
            Cats.Models.Hub.ViewModels.Report.Data.ReceiveReportMain receivereport = new ReceiveReportMain();
            UserProfile user = _userProfileService.GetUser(User.Identity.Name);

            receivereport.receiveReports = _transactionService.GetReceiveReport(user.DefaultHub.HubID, receiptsViewModel);//new List<ViewModels.Report.Data.ReceiveReport>();
            receivereport.PreparedBy = user.GetFullName();
            receivereport.HubName = user.DefaultHub.HubNameWithOwner;
            receivereport.ReportDate = System.DateTime.Now;
            receivereport.ReportCode = DateTime.Now.ToString();
            receivereport.ReportName = "ReceiveReport";
            receivereport.ReportTitle = "Receive Report";
            reports.Add(receivereport);

            Cats.Web.Hub.Reports.ReceiveReportByBudgetYear rpt = new ReceiveReportByBudgetYear() { DataSource = receivereport.receiveReports };
            MasterReportBound report = new MasterReportBound() { Name = "Receive Report - " + DateTime.Now.ToShortDateString(), DataSource = reports };
            report.rptSubReport.ReportSource = rpt;
            return report;
        }