Exemplo n.º 1
0
 public ActionResult VipUserReview(int page = 1, int size = 10)
 {
     MemberViewModel viewModel = new MemberViewModel();
     try
     {
         UserService service = new UserService();
         int totalCount;
         viewModel.VipInfos = service.GetVipUserReviewList(page, size, out totalCount);
         viewModel.PageSize = size;
         viewModel.CurrentPage = page;
         viewModel.TotalCount = totalCount;
     }
     catch (Exception ex)
     {
         LogService.Log("VIP会员审核列表", ex.ToString());
     }
     return View(viewModel);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 会员统计
 /// </summary>
 /// <param name="page"></param>
 /// <param name="size"></param>
 /// <param name="querytype"></param>
 /// <returns></returns>
 public ActionResult TongJi(string city = "-1", int resurce = -1, 
     int querytype = -1, int page = 1, string Keyword="")
 {
     MemberViewModel viewModel = new MemberViewModel();
     try
     {
         UserService service = new UserService();
         int totalCount;
         viewModel.UserList = service.QuersyUsersByCityAndResource(city, resurce, page, 20,
             querytype, Keyword, out totalCount);
         viewModel.PageSize = 20;
         viewModel.PageStep = 5;
         viewModel.CurrentPage = page;
         viewModel.TotalCount = totalCount;
         viewModel.Resurce = resurce;
         viewModel.City = city;
         viewModel.QueryType = querytype;
         viewModel.Keyword = Keyword;
     }
     catch (Exception ex)
     {
         LogService.Log("会员列表", ex.ToString());
     }
     return View(viewModel);
 }
Exemplo n.º 3
0
        public ActionResult EditUser(string UserId, string Cellphone, string Email,
            string QQ, string Address, string UCard, string SiteUrl)
        {
            MemberViewModel viewModel = new MemberViewModel();
            try
            {
                UserService service = new UserService();
                User user = service.GetUserById(int.Parse(UserId));

                if (user != null)
                {
                    user.Cellphone = Cellphone;
                    user.Email = Email;
                    user.QQ = QQ;
                    user.Adress = Address;
                    user.UCard = UCard;
                    user.SiteUrl = SiteUrl;
                }

                service.UserUpdate(user);
                viewModel.SingleUser = service.GetUserById(user.UserId); ;
            }
            catch (Exception ex)
            {
                LogService.Log("会员列表", ex.ToString());
            }
            return View(viewModel);
        }
Exemplo n.º 4
0
 public ActionResult Index(int querytype = 0, int page = 1, string Keyword = "")
 {
     MemberViewModel viewModel = new MemberViewModel();
     try
     {
         UserService service = new UserService();
         int totalCount;
         int pageSize = 20;
         viewModel.UserList = service.QuersyUsers("-1", -1, page, pageSize,
             querytype, Keyword, out totalCount);
         viewModel.PageSize = pageSize;
         viewModel.PageStep = 5;
         viewModel.CurrentPage = page;
         viewModel.Keyword = Keyword;
         viewModel.QueryType = querytype;
         viewModel.TotalCount = totalCount;
     }
     catch (Exception ex)
     {
         LogService.Log("会员列表", ex.ToString());
     }
     return View(viewModel);
 }
Exemplo n.º 5
0
 public ActionResult EditUser(int id)
 {
     MemberViewModel viewModel = new MemberViewModel();
     try
     {
         UserService service = new UserService();
         viewModel.SingleUser = service.GetUserById(id);
     }
     catch (Exception ex)
     {
         LogService.Log("会员列表", ex.ToString());
     }
     return View(viewModel);
 }