public ActionResult List(DataSourceRequest command, ApplyCashListModel model) { var cashs = _cashService.GetAllApplyCashs( audit: model.AuditId, createdFrom: model.StartDate, createdTo: model.EndDate, pageIndex: command.Page, pageSize: command.PageSize); var jsonData = new DataSourceResult { Data = cashs.Items.Select(b => new { Id = b.Id, Audit = ((AuditStatus)b.Audit).GetDescription(), Amount = b.Amount, Allowance = b.Allowance, CreationTime = b.CreationTime.ToString("yyyy/mm/dd"), NickName = GetCustomerInfo(b.CustomerId).NickName, Mobile = GetCustomerInfo(b.CustomerId).Mobile }), }; return(AbpJson(jsonData)); }
public ActionResult List() { var model = new ApplyCashListModel(); model.AvailableAudits = AuditStatus.None.EnumToDictionary(o => o.GetDescription(), false).ToList(); return(View(model)); }