Beispiel #1
0
        public JsonResult ChargeList(int page, int rows)
        {
            IMemberCapitalService memberCapitalService = ServiceHelper.Create <IMemberCapitalService>();
            ChargeQuery           chargeQuery          = new ChargeQuery()
            {
                memberId = new long?(base.CurrentUser.Id),
                PageSize = rows,
                PageNo   = page
            };
            PageModel <ChargeDetailInfo>    chargeLists = memberCapitalService.GetChargeLists(chargeQuery);
            IEnumerable <ChargeDetailModel> list        =
                from e in chargeLists.Models.ToList()
                select new ChargeDetailModel()
            {
                Id               = e.Id.ToString(),
                ChargeAmount     = e.ChargeAmount,
                ChargeStatus     = e.ChargeStatus,
                ChargeStatusDesc = e.ChargeStatus.ToDescription(),
                ChargeTime       = e.ChargeTime.ToString(),
                CreateTime       = e.CreateTime.ToString(),
                ChargeWay        = e.ChargeWay,
                MemId            = e.MemId
            };
            DataGridModel <ChargeDetailModel> dataGridModel = new DataGridModel <ChargeDetailModel>()
            {
                rows  = list,
                total = chargeLists.Total
            };

            return(Json(dataGridModel));
        }
 /// <summary>
 /// 取充值列表
 /// </summary>
 /// <param name="query"></param>
 /// <returns></returns>
 public static ObsoletePageModel <ChargeDetailInfo> GetChargeLists(ChargeQuery query)
 {
     return(_iMemberCapitalService.GetChargeLists(query));
 }