public ActionResult Notify_Billing(string p_keysearch, int p_CurrentPage, string p_column, string p_type_sort) { try { decimal _total_record = 0; string p_to = ""; string p_from = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to); B_Todos_BL _obj_bl = new B_Todos_BL(); string htmlPaging = ""; if (p_keysearch.Contains("REMIND")) { List <B_Remind_Info> _lst1 = _obj_bl.Notify_R_Search(p_keysearch, SessionData.CurrentUser.Username, ref _total_record, p_from, p_to); ViewBag.Obj = _lst1; htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <B_Remind_Info>((int)_total_record, p_CurrentPage, "Nội dung"); } else { List <B_Todos_Info> _lst = _obj_bl.Notify_Search(p_keysearch, SessionData.CurrentUser.Username, ref _total_record, p_from, p_to); htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <B_Todos_Info>((int)_total_record, p_CurrentPage, "Nội dung"); ViewBag.Obj = _lst; } ViewBag.Paging = htmlPaging; ViewBag.SumRecord = _total_record; } catch (Exception ex) { Logger.LogException(ex); } string[] _arr = p_keysearch.Split('|'); if (_arr.Length > 0) { if (_arr[0] == "TODO") { return(PartialView("~/Areas/Home/Views/Shared/_TodoData.cshtml")); } else if (_arr[0] == "ORDER") { return(PartialView("~/Areas/Home/Views/Shared/_OrderData.cshtml")); } else if (_arr[0] == "REMIND") { return(PartialView("~/Areas/Home/Views/Shared/_RemindData.cshtml")); } } return(PartialView("~/Areas/Home/Views/Shared/_TodoData.cshtml")); }
public ActionResult Notify_Display() { try { if (SessionData.CurrentUser == null) { return(Redirect("/")); } string _type = B_Todo.TypeProcess; if (RouteData.Values["id"] != null && RouteData.Values["id"].ToString() != "") { _type = RouteData.Values["id"].ToString(); } decimal _total_record = 0; B_Todos_BL _obj_bl = new B_Todos_BL(); string keysSearch = _type + "|" + "ALL" + "|" + "ALL" + "|" + "ALL" + "|" + "ALL"; string htmlPaging = ""; if (_type == "REMIND") { List <B_Remind_Info> _lst = _obj_bl.Notify_R_Search(keysSearch, SessionData.CurrentUser.Username, ref _total_record); htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <B_Remind_Info>((int)_total_record, 1, "Nội dung"); ViewBag.Obj = _lst; } else { List <B_Todos_Info> _lst = _obj_bl.Notify_Search(keysSearch, SessionData.CurrentUser.Username, ref _total_record); htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <B_Todos_Info>((int)_total_record, 1, "Nội dung"); ViewBag.Obj = _lst; } ViewBag.Paging = htmlPaging; ViewBag.SumRecord = _total_record; ViewBag.Type = _type; return(View("~/Areas/Manager/Views/Notify/Notify_Display.cshtml")); } catch (Exception ex) { Logger.LogException(ex); return(View()); } }