예제 #1
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);
 }