//***********************dbo.Web_Award_Record********************************* #region 奖品明细/抽奖明细 public ActionResult WebAwardRecordIndex(WebAwardRecordRefer record, int?id, string name) { var result = new WebAwardRecordRefer(); //record.SearchDetail.IntAwardId = id; //result = WebAwardClient.Instance.QueryWebAwardRecordItem(record); ////获取指定活动所有的奖项设置 //var req = new WebPrizeRefer(); //var res = WebAwardClient.Instance.QueryWebAwardPrize(req); //if (res.List != null && res.List.Count > 0) //{ // //生成下拉列表并绑定值 // List<SelectListItem> ddClass = new List<SelectListItem>(); // foreach (var cls in res.List) // { // ddClass.Add(new SelectListItem() { Value = cls.IntPrizeId.ToString(), Text = cls.vchAwardName }); // } // ViewData.Add("SearchDetail.IntPrizeNo", ddClass); //} //ViewBag.Name = name; //ViewBag.Id = id; return(View(result)); }
//***********************dbo.Web_Award_Record********************************* #region 拉取特殊奖品明细/抽奖明细 /// <summary> /// 拉取特殊奖品明细/抽奖明细 /// </summary> /// <param name="id"></param> /// <param name="recordDetail"></param> /// <returns></returns> public WebAwardRecordRefer QueryWebAwardRecordItem(WebAwardRecordRefer recordDetail) { var result = new WebAwardRecordRefer(); var req = new QueryWebAwardRecordRequest(); if (recordDetail.SearchDetail != null) { req.IntAwardId = recordDetail.SearchDetail.IntAwardId; req.IntUserId = recordDetail.SearchDetail.IntUserId; req.VchEmail = recordDetail.SearchDetail.VchEmail; req.VchLoginMobile = recordDetail.SearchDetail.VchLoginMobile; req.IntPrizeNo = recordDetail.SearchDetail.IntPrizeNo; req.IntPrizeType = recordDetail.SearchDetail.IntPrizeType; req.IntPrizeCaseId = recordDetail.SearchDetail.IntPrizeCaseId; req.DtStartCreateTime = recordDetail.SearchDetail.DtCreateTime; req.DtEndCreateTime = recordDetail.SearchDetail.DtEndCreateTime; } req.PageIndex = recordDetail.PageIndex; req.PageSize = recordDetail.PageSize; var res = MKMSClient.Send <QueryWebAwardRecordResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <Web_Award_RecordExt, WebAwardRecordDetail>(res.WebAwardRecordDos); result.Total = res.Total; } result.SearchDetail = recordDetail.SearchDetail; result.PageIndex = recordDetail.PageIndex; result.PageSize = recordDetail.PageSize; return(result); }