示例#1
0
        public ActionResult Select(string accessInd, string userId)
        {
            var viewModel = new UserAccessViewModel()
            {
                _userAccessPermission = (UserAccessService.GetUserAccessDetail(accessInd, userId)).userAccess
            };

            viewModel._userAccessPermission.SelectedAccessInd = accessInd;
            return(View(viewModel));
        }
示例#2
0
        public async Task <ActionResult> GetUserAccessDetail(string accessInd, string UserId)
        {
            var _userAccessPermission = (UserAccessService.GetUserAccessDetail(accessInd, UserId)).userAccess;
            var Selects = new UserAccess
            {
                Sts       = await BaseService.GetRefLib("UserSts"),
                MapUserId = await UserAccessService.GetMap(),
                AccessInd = await BaseService.GetRefLib("AccessInd"),
                Title     = await BaseService.GetRefLib("Title"),
                DeptId    = await UserAccessService.GetRefLib("Dept")
            };

            return(Json(new { User = _userAccessPermission, AccessInd = accessInd, _Selects = Selects }, JsonRequestBehavior.AllowGet));
        }
示例#3
0
        public ActionResult ftUserAccessDetail(string accessind, string userid)
        {
            var data = (UserAccessService.GetUserAccessDetail(accessind, userid)).userAccess;

            return(Json(new { userAccess = data }, JsonRequestBehavior.AllowGet));
        }