//*************************************************************************** #region 推广统计列表 /// <summary> /// 推广统计列表 /// </summary> /// <param name="spreadBase"></param> /// <returns></returns> public ActionResult SpreadDataReport(SpreadBaseRefer spreadBase) { //获取归属地列表 var list = new List <SpreadUserDetail>(); list = SpreadInfoClient.Instance.QueryRegionList(); //生成下拉列表并绑定值 List <SelectListItem> ddClass = new List <SelectListItem>(); foreach (var cls in list) { ddClass.Add(new SelectListItem() { Value = cls.UserId.ToString(), Text = cls.UserName }); } ViewData.Add("SearchDetail.RegionId", ddClass); ViewBag.SpreadBaseInfo = spreadBase; #region 通过第三方标识查找用户信息 var res = new ResultUserByUnionIdentity(); var req = new GetUserByUnionIdentity(); res = QueryUserByUnionIdentity(req); Session["S_RoleInfo"] = res.RoleInfo; Session["S_UserInfo"] = res.UserInfo; #endregion return(View(spreadBase)); }
/// <summary> /// 推广统计列表 /// </summary> /// <param name="spreadBase"></param> /// <returns></returns> public SpreadBaseRefer QueryAllSpreadDataReport(SpreadBaseRefer spreadBase) { var req = Mapper.Map <SpreadBaseRefer, GetAllSpreadDataReportRequest>(spreadBase); var res = MKMSClient.Send <GetAllSpreadDataReportResponse>(req); if (res.DoFlag) { spreadBase.List = Mapper.MappGereric <SpreadBaseReport, SpreadBase>(res.Data); spreadBase.Total = res.RowCount; } return(spreadBase); }
public ActionResult SpreadDataReportItem(SpreadBaseRefer spreadBase) { try { spreadBase = SpreadInfoClient.Instance.QueryAllSpreadDataReport(spreadBase); } catch (Exception ex) { throw ex; } ViewBag.SpreadBaseInfo = spreadBase; return(View()); }