Beispiel #1
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);
     }
 }
Beispiel #2
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);
     }
 }