Example #1
0
        public ActionResult GetLeverList(string SelVal, int Lever)
        {
            List <C_UserType> cType = C_UserType.GetEntitysAll().ToList();
            List <C_UserType> nType = new List <C_UserType>();

            if (SelVal == "授权链接")
            {
                nType = cType.Where(m => m.Lever > Lever).ToList();
            }
            else
            {
                nType = cType.Where(m => m.Lever <= Lever).ToList();
            }
            return(Json(nType, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        /// <summary>
        /// 申请升级
        /// </summary>
        /// <returns></returns>
        public ActionResult ApplyUpgrade()
        {
            C_UserVM user = C_UserVM.GetVMByID(CurrentUser.ID);

            ViewData["user"] = user;
            //List<C_UserType> userTypes = C_UserType.GetLowerByUserID(user.Chief,CurrentUser.ID);
            List <C_UserType> userTypes = C_UserType.GetEntitysAll();

            if (userTypes != null)
            {
                userTypes = userTypes.OrderByDescending(m => m.Lever).ToList();
                userTypes = userTypes.FindAll(m => m.Lever < user.userTypeLever).ToList();
            }
            ViewData["userTypes"] = userTypes;

            List <C_UserUpGrade> doings = C_UserUpGrade.GetDetailListByAuditStat("未审核", CurrentUser.UserName);

            ViewData["doings"] = doings;
            return(View());
        }
        public ActionResult Index()
        {
            List <C_UserType> usertype = C_UserType.GetEntitysAll().OrderByDescending(m => m.Lever).ToList();

            return(View(usertype));
        }