Exemple #1
0
        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";
                }
                Au_GroupBL          _bl  = new Au_GroupBL();
                List <Au_GroupInfo> _lst = _bl.Search(p_keysearch, ref _total_record, p_from, p_to);
                string htmlPaging        = NaviCommon.CommonFuc.Get_HtmlPaging <Au_GroupInfo>((int)_total_record, p_CurrentPage, "bản ghi");


                ViewBag.Paging    = htmlPaging;
                ViewBag.List      = _lst;
                ViewBag.SumRecord = _total_record;
                return(PartialView("~/Areas/UserAndRole/Views/AuGroup/_Partial_List.cshtml"));
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(PartialView("~/Areas/UserAndRole/Views/AuGroup/_Partial_List.cshtml"));
            }
        }
Exemple #2
0
        // GET: UserAndRole/AuGroup
        public ActionResult AuGroupDisplay()
        {
            List <Au_GroupInfo> list = new List <Au_GroupInfo>();

            try
            {
                Au_GroupBL _bl = new Au_GroupBL();


                decimal _total_record = 0;
                list = _bl.Search("ALL", ref _total_record);


                string htmlPaging = NaviCommon.CommonFuc.Get_HtmlPaging <Au_GroupInfo>((int)_total_record, 1, "bản ghi");
                ViewBag.Paging    = htmlPaging;
                ViewBag.List      = list;
                ViewBag.SumRecord = _total_record;
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
            return(View());
        }