public ActionResult DetailList(long id, int page = 1, int rows = 20) { PageModel <ShopBonusReceiveInfo> detail = _bonusService.GetDetail(id, page, rows); List <ShopBonusReceiveModel> list = ( from p in detail.Models.ToList() select new ShopBonusReceiveModel() { OpenId = p.OpenId, Price = p.Price.Value, ReceiveTime = (!p.ReceiveTime.HasValue ? "" : p.ReceiveTime.Value.ToString("yyyy-MM-dd")), StateStr = p.State.ToDescription(), UsedTime = (!p.UsedTime.HasValue ? "" : p.UsedTime.Value.ToString("yyyy-MM-dd")), UsedOrderId = p.UsedOrderId.ToString() }).ToList(); DataGridModel <ShopBonusReceiveModel> dataGridModel = new DataGridModel <ShopBonusReceiveModel>() { rows = list, total = detail.Total }; return(Json(dataGridModel)); }
/// <summary> /// 获取红包详情 /// </summary> public static ObsoletePageModel <ShopBonusReceiveInfo> GetDetail(long bonusid, int pageIndex, int pageSize) { return(_iShopBonusService.GetDetail(bonusid, pageIndex, pageSize)); }