/// <summary> /// 用户行为管理列表 /// </summary> /// <returns></returns> public UserBehaviorRefer GetUserBehavior(UserBehaviorRefer userBehavior) { var result = new UserBehaviorRefer(); var req = new QueryWebLimitUserBehaviorRequest(); if (userBehavior.SearchDetail != null) { req.ObjectType = userBehavior.SearchDetail.ObjectType; req.BegionIp = userBehavior.SearchDetail.BegionIp; req.EndIp = userBehavior.SearchDetail.EndIp; req.IsEnable = userBehavior.SearchDetail.IsEnable; req.UserBehaviorId = userBehavior.SearchDetail.TempUserId; req.LimitBegionTime = userBehavior.SearchDetail.LimitBegionTime; req.LimitEndTime = userBehavior.SearchDetail.LimitEndTime; req.ShowMesage = userBehavior.SearchDetail.ShowMesage; req.Remarks = userBehavior.SearchDetail.Remarks; } req.PageIndex = userBehavior.PageIndex; req.PageSize = userBehavior.PageSize; var res = OpcClient.Send <QueryWebLimitUserBehaviorResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <Web_LimitUserBehaviorExt, UserBehaviorDetail>(res.UserBehaviorDos); result.Total = res.Total; } result.SearchDetail = userBehavior.SearchDetail; result.PageIndex = userBehavior.PageIndex; result.PageSize = userBehavior.PageSize; return(result); }
// GET: /WebLimitUserBehavior/ #region 用户行为管理列表 public ActionResult Index(UserBehaviorRefer userBehavior) { var result = new UserBehaviorRefer(); result = WebUserBehaviorClient.Instance.GetUserBehavior(userBehavior); //根据用户Id查询用户名称 if (result != null && result.List.Count > 0) { for (int i = 0; i < result.List.Count; i++) { var UserDetail = WebAwardClient.Instance.GetUserName(result.List[i].CreateBy); result.List[i].UserName = UserDetail.UserName; } } return(View(result)); }