public ActionResult Pager(Models.TransactionsModel data) { if (data.SearchString == null) { data.SearchString = " "; } if (data.SearchString == " ") { data.SearchValue = 0; } List <CLayer.Booking> users = BLayer.Transaction.GetAllPartialPaymentCancelledForSearch((int)CLayer.ObjectStatus.BookingStatus.CheckOut, data.SearchString, data.SearchValue, (data.currentPage - 1) * data.Limit, data.Limit); ViewBag.Filter = new Models.TransactionsModel(); Models.TransactionsModel forPager = new Models.TransactionsModel() { Status = data.Status, SearchString = data.SearchString, SearchValue = data.SearchValue, TotalRows = 0, Limit = 25, currentPage = data.currentPage }; if (users.Count > 0) { forPager.TotalRows = users[0].TotalRows; } ViewBag.Filter = forPager; return(PartialView("_List", users)); }
public ActionResult Filter(Models.TransactionsModel data) { if (data.SearchString == null) { data.SearchString = " "; } if (data.SearchString == " ") { data.SearchValue = 0; } List <CLayer.Booking> users = BLayer.Bookings.GetAllBookingNotify((int)CLayer.ObjectStatus.BookingStatus.Cart, data.SearchString, data.SearchValue, 0, 25); ViewBag.Filter = new Models.TransactionsModel(); Models.TransactionsModel forPager = new Models.TransactionsModel() { Status = data.Status, SearchString = data.SearchString, SearchValue = data.SearchValue, TotalRows = 0, Limit = 15, currentPage = 1 }; if (users.Count > 0) { forPager.TotalRows = users[0].TotalRows; } ViewBag.Filter = forPager; return(PartialView("_List", users)); }
public ActionResult Filter(Models.TransactionsModel data) { if (data.SearchString == null) { data.SearchString = ""; } List <CLayer.Booking> users = new List <CLayer.Booking>(); if (data.InventoryAPIType <= 2) { users = BLayer.Transaction.GetAllForSearchBookingRequestWithType(data.Status, data.InventoryAPIType, data.SearchString, data.SearchValue, 0, 25); } else { users = BLayer.Transaction.GetAllForSearchBookingRequest(data.Status, data.SearchString, data.SearchValue, 0, 25); } ViewBag.Filter = new Models.TransactionsModel(); Models.TransactionsModel forPager = new Models.TransactionsModel() { Status = data.Status, SearchString = data.SearchString, SearchValue = data.SearchValue, TotalRows = 0, Limit = 25, currentPage = 1 }; if (users.Count > 0) { forPager.TotalRows = users[0].TotalRows; } ViewBag.Filter = forPager; return(PartialView("_List", users)); }
public ActionResult Index(string searchstring, int?searchitem) { Models.TransactionsModel search = new Models.TransactionsModel(); if (searchstring == null) { searchstring = ""; } if (searchitem == null) { searchitem = 1; } List <CLayer.Booking> users = BLayer.Transaction.GetAllForSearchBookingRequest((int)CLayer.ObjectStatus.BookingRequestStatus.All, searchstring, searchitem.Value, 0, 25); search.SearchString = ""; search.SearchValue = searchitem.Value; search.TotalRows = 0; search.Bookinglist = users; if (users.Count > 0) { search.TotalRows = users[0].TotalRows; } search.Limit = 25; search.currentPage = 1; ViewBag.Filter = search; return(View(search)); }
public ActionResult Index() { Models.TransactionsModel search = new Models.TransactionsModel(); List <CLayer.Booking> users = BLayer.Bookings.GetAllBookingNotify((int)CLayer.ObjectStatus.BookingStatus.Cart, "", 0, 0, 25); search.SearchString = " "; search.SearchValue = 1; search.TotalRows = 0; search.Bookinglist = users; if (users.Count > 0) { search.TotalRows = users[0].TotalRows; } search.Limit = 15; search.currentPage = 1; ViewBag.Filter = search; return(View(search)); }
public ActionResult Pager(Models.TransactionsModel data) { List <CLayer.Booking> users = BLayer.Transaction.GetUserId(data.UserId, (data.currentPage - 1) * data.Limit, data.Limit); ViewBag.Filter = new Models.TransactionListModel(); Models.TransactionListModel forPager = new Models.TransactionListModel() { TotalRows = 0, Limit = PAGE_LIMIT, currentPage = data.currentPage }; if (users.Count > 0) { forPager.TotalRows = users[0].TotalRows; } ViewBag.Filter = forPager; return(PartialView("~/Areas/Admin/Views/Common/_TransactionList.cshtml", users)); }
public ActionResult Pager(Models.OfferModel data) { Models.OfferModel search = new Models.OfferModel(); List <CLayer.Offers> offer = BLayer.Offers.GetAllByStatus(data.Status, (data.currentPage - 1) * data.Limit, data.Limit); ViewBag.Filter = new Models.TransactionsModel(); search.offerlist = offer; Models.TransactionsModel forPager = new Models.TransactionsModel() { TotalRows = 0, Limit = 25, currentPage = data.currentPage }; if (search.offerlist.Count > 0) { search.TotalRows = offer[0].TotalRows; } ViewBag.Filter = forPager; return(PartialView("_List", search)); }