Esempio n. 1
0
 public ActionResult MonthlyBPReport()
 {
     Fusion.Models.BC.BCViewModels.TableReportViewModel trvm = new Models.BC.BCViewModels.TableReportViewModel();
     trvm.start_dt = DateTime.Today.AddMonths(-12);
     trvm.end_dt = DateTime.Today;
     trvm.viewData = trvm.GetMonthlySpentAccruedBP(trvm.start_dt, trvm.end_dt);
     return View(trvm);
 }
Esempio n. 2
0
        public ActionResult MonthlyBPReport(DateTime start_dt, DateTime end_dt)
        {
            if (start_dt == null)
                start_dt = DateTime.Today.AddDays(-30);

            if (end_dt == null)
                end_dt = DateTime.Today;

            Fusion.Models.BC.BCViewModels.TableReportViewModel trvm = new Models.BC.BCViewModels.TableReportViewModel();
            trvm.start_dt = (DateTime)start_dt;
            trvm.end_dt = (DateTime)end_dt;
            trvm.viewData = trvm.GetMonthlySpentAccruedBP(trvm.start_dt, trvm.end_dt);
            return View(trvm);
        }
Esempio n. 3
0
 public ActionResult Index()
 {
     Fusion.Models.BC.BCViewModels.TableReportViewModel trvm = new Models.BC.BCViewModels.TableReportViewModel();
     trvm.misc = new Models.BC.BCModels.Misc();
     trvm.misc.GetTotalBP();
     trvm.misc.GetTotalBPAccrued();
     trvm.misc.GetTotalBPSpent();
     trvm.misc.GetTotalPersonCount();
     trvm.misc.GetFreeCardsCount();
     return View(trvm);
 }