예제 #1
0
        public ActionResult Checks(int? page, DateTime? start_dt, DateTime? end_dt)
        {
            if (page == null)
                page = 1;

            Fusion.Models.BC.BCViewModels.ReceiptListViewModel rlvm = new Models.BC.BCViewModels.ReceiptListViewModel();
            rlvm.start_dt = DateTime.Today.AddMonths(-1);
            rlvm.end_dt = DateTime.Today;
            rlvm.paginator = new Models.BC.Paginator();
            rlvm.paginator.currentPage = (int)page;
            rlvm.paginator.totalcnt = rlvm.GetCount(rlvm.start_dt, rlvm.end_dt);
            rlvm.GetReceiptList(rlvm.paginator.offset, rlvm.paginator.limit, rlvm.start_dt, rlvm.end_dt);
            rlvm.paginator.ControllerName = "BCController";
            rlvm.paginator.ActionName = "Checks";
            return View(rlvm);
        }
예제 #2
0
 public ActionResult Transactions(int party_id, DateTime start_dt, DateTime end_dt)
 {
     if (party_id != 0)
     {
         Fusion.Models.BC.BCModels.Party.TParty p = new Models.BC.BCModels.Party.TParty();
         p.GetPartyByID(party_id);
         ViewBag.PersonName = p.name;
         Fusion.Models.BC.BCViewModels.ReceiptListViewModel rlvm = new Models.BC.BCViewModels.ReceiptListViewModel();
         rlvm.GetPartyReceiptsRangeForPeriod(start_dt, end_dt, party_id);
         return View(rlvm);
     }
     else
     {
         Fusion.Models.BC.BCViewModels.ReceiptListViewModel rlvm = new Models.BC.BCViewModels.ReceiptListViewModel();
         rlvm.GetReceiptsRangeForPeriod(start_dt, end_dt);
         return View(rlvm);
     }
 }
예제 #3
0
 public ActionResult Transactions(int? party_id)
 {
     if (party_id != null)
     {
         Fusion.Models.BC.BCModels.Party.TParty p = new Models.BC.BCModels.Party.TParty();
         p.GetPartyByID(party_id);
         ViewBag.PersonName = p.name;
         Fusion.Models.BC.BCViewModels.ReceiptListViewModel rlvm = new Models.BC.BCViewModels.ReceiptListViewModel();
         rlvm.party_id = Convert.ToInt32(party_id);
         rlvm.start_dt = DateTime.Today.AddDays(-90);
         rlvm.end_dt = DateTime.Today;
         rlvm.GetPartyReceiptsRangeForPeriod(rlvm.start_dt, rlvm.end_dt, (int)party_id);
         return View(rlvm);
     }
     else
     {
         Fusion.Models.BC.BCViewModels.ReceiptListViewModel rlvm = new Models.BC.BCViewModels.ReceiptListViewModel();
         rlvm.start_dt = DateTime.Today;
         rlvm.end_dt = DateTime.Today;
         rlvm.GetReceiptsRangeForPeriod(rlvm.start_dt, rlvm.end_dt);
         return View(rlvm);
     }
 }