public ActionResult GetActionInfoList(int page, int rows, string ActionInfoName, string Url)
        {
            //int totalCount = 0;
            ActionInfoSearch actionInfoSearch = new ActionInfoSearch()
            {
                PageIndex      = page,
                PageSize       = rows,
                ActionInfoName = ActionInfoName,
                Url            = Url,
                //TotalCount = totalCount
            };
            var ActionInfoList = ActionInfoService.LoadSerachEntities(actionInfoSearch, delFlag).Select(
                u =>
                new
            {
                u.ID,
                u.ActionInfoName,
                u.Url,
                u.HttpMethod,
                u.Remark,
                u.MenuIcon,
                u.IsMenu,
                u.SubTime,
                u.ModifiedOn,
                u.Sort
            });
            //var ActionInfoList = ActionInfoService.LoadPageEntities(page, rows, out totalCount, u => u.DelFlag == delFlag, u => u.ID).Select(u => new { ID = u.ID, UName = u.UName, UPwd = u.UPwd, SubTime = u.SubTime, Remark = u.Remark });
            string data = WebCommon.GetJsonList(actionInfoSearch.TotalCount, ActionInfoList);

            return(Content(data));
        }
Exemplo n.º 2
0
        public ActionResult GetRoleInfoList(int page, int rows, string RoleName, string Remark)
        {
            //int totalCount = 0;
            short          delFlag        = (short)DeleteEnumType.Normal;
            RoleInfoSearch roleInfoSearch = new RoleInfoSearch()
            {
                PageIndex = page,
                PageSize  = rows,
                RoleName  = RoleName,
                Remark    = Remark,
                //TotalCount = totalCount
            };
            var RoleInfoList = RoleInfoService.LoadSerachEntities(roleInfoSearch, delFlag).Select(
                u =>
                new
            {
                u.ID,
                u.RoleName,
                u.Remark,
                u.SubTime,
                u.ModifiedOn,
                u.Sort
            });
            //var RoleInfoList = RoleInfoService.LoadPageEntities(page, rows, out totalCount, u => u.DelFlag == delFlag, u => u.ID).Select(u => new { ID = u.ID, UName = u.UName, UPwd = u.UPwd, SubTime = u.SubTime, Remark = u.Remark });
            string data = WebCommon.GetJsonList(roleInfoSearch.TotalCount, RoleInfoList);

            return(Content(data));
        }
Exemplo n.º 3
0
        public ActionResult GetUserInfoList(int page, int rows, string UName, string Remark)
        {
            //int totalCount = 0;
            UserInfoSearch userInfoSearch = new UserInfoSearch()
            {
                PageIndex = page,
                PageSize  = rows,
                UName     = UName,
                Remark    = Remark,
                //TotalCount = totalCount
            };
            var userInfoList = userInfoService.LoadSerachEntities(userInfoSearch, delFlag).Select(u => new { ID = u.ID, UName = u.UName, UPwd = u.UPwd, SubTime = u.SubTime, Remark = u.Remark });
            //var userInfoList = userInfoService.LoadPageEntities(page, rows, out totalCount, u => u.DelFlag == delFlag, u => u.ID).Select(u => new { ID = u.ID, UName = u.UName, UPwd = u.UPwd, SubTime = u.SubTime, Remark = u.Remark });
            string data = WebCommon.GetJsonList(userInfoSearch.TotalCount, userInfoList);

            return(Content(data));
        }