Пример #1
0
        public IActionResult EditMember(int id)
        {
            IList <MemberRoles> list = MemberRoles.FindAll(MemberRoles._.Id > 0, MemberRoles._.Rank.Asc(), null, 0, 0);

            ViewBag.RoleList = list;

            Member entity = Member.Find(Core.Member._.Id == id);

            if (entity == null)
            {
                return(EchoTipPage("系统找不到本记录!"));
            }
            ViewBag.allmember = Member.FindAll(Member._.Id > 0 & Member._.IsLock != 1 & Member._.Id != entity.Id, null, null, 0, 0);
            //获取用户余额变化记录
            IList <BalanceChangeLog> listbalancelogs = BalanceChangeLog.FindAll(BalanceChangeLog._.UId == entity.Id, null, null, 0, 0);

            ViewBag.listbalancelogs = listbalancelogs;

            IList <RebateChangeLog> listrechargebalancelogs = RebateChangeLog.FindAll(RebateChangeLog._.UId == entity.Id, null, null, 0, 0);

            ViewBag.listrechargebalancelogs = listrechargebalancelogs;



            Core.Admin.WriteLogActions($"查看/编辑用户({entity.UserName});");
            return(View(entity));
        }
Пример #2
0
        public IActionResult MemberRole()
        {
            IList <MemberRoles> list = MemberRoles.FindAll(MemberRoles._.Id > 0, MemberRoles._.Rank.Asc(), null, 0, 0);

            Core.Admin.WriteLogActions("查看用户组列表;");
            return(View(list));
        }
Пример #3
0
        public IActionResult Members()
        {
            //加载用户组
            IList <MemberRoles> list = MemberRoles.FindAll(MemberRoles._.Id > 0, MemberRoles._.Rank.Asc(), null, 0, 0);

            ViewBag.RoleList = list;
            Core.Admin.WriteLogActions("查看用户列表;");
            return(View());
        }
Пример #4
0
        public IActionResult AddMember()
        {
            IList <MemberRoles> list = MemberRoles.FindAll(MemberRoles._.Id > 0, MemberRoles._.Rank.Asc(), null, 0, 0);

            ViewBag.RoleList  = list;
            ViewBag.allmember = Member.FindAll(Member._.Id > 0 & Member._.IsLock != 1, null, null, 0, 0);

            Core.Admin.WriteLogActions($"查看添加用户页面;");
            Member model = new Member();

            return(View(model));
        }
Пример #5
0
        public IActionResult AddMember()
        {
            IList <MemberRoles> list = MemberRoles.FindAll(MemberRoles._.Id > 0, MemberRoles._.Rank.Asc(), null, 0, 0);

            ViewBag.RoleList    = list;
            ViewBag.allmember   = Member.FindAll(Member._.Id > 0 & Member._.IsLock != 1, null, null, 0, 0);
            ViewBag.passwordTip = Utils.GetPasswordStrengthTip(_systemSetting.PasswordStrength);
            Core.Admin.WriteLogActions($"查看添加用户页面;");
            Member model = new Member();

            return(View(model));
        }