public ActionResult Search(string p_keysearch, int p_CurrentPage) { try { decimal _total_record = 0; string p_to = ""; string p_from = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to); if (p_keysearch == "" || p_keysearch == null) { p_keysearch = "ALL"; } CarriersBL _bl = new CarriersBL(); List <CarriersInfo> _lst = _bl.Search(p_keysearch, ref _total_record, p_from, p_to); string htmlPaging = NaviCommon.CommonFuc.Get_HtmlPaging <CarriersInfo>((int)_total_record, p_CurrentPage, "nhà cung cấp"); ViewBag.Paging = htmlPaging; ViewBag.List = _lst; ViewBag.SumRecord = _total_record; return(PartialView("~/Areas/ModuleBaseData/Views/Carriers/_Partial_List.cshtml")); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); return(PartialView("~/Areas/ModuleBaseData/Views/Carriers/_Partial_List.cshtml")); } }
// GET: Carrierss public ActionResult CarriersDisplay() { List <CarriersInfo> list = new List <CarriersInfo>(); try { CarriersBL _bl = new CarriersBL(); decimal _total_record = 0; list = _bl.Search("ALL", ref _total_record); string htmlPaging = NaviCommon.CommonFuc.Get_HtmlPaging <CarriersInfo>((int)_total_record, 1, "hãng tàu"); ViewBag.Paging = htmlPaging; ViewBag.List = list; ViewBag.SumRecord = _total_record; } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); } return(View()); }