private CustomerAmountRecordListViewModel AmountRecordDataBind(CustomerAmountRecordListFilterModel filter) { var model = new CustomerAmountRecordListViewModel { FilterModel = filter }; decimal totalInFee = 0; decimal totalOutFee = 0; if (!string.IsNullOrWhiteSpace(filter.CustomerCode)) { model.PagedList = _customerService.GetCustomerAmountRecordPagedList(new AmountRecordSearchParam() { CustomerCode = filter.CustomerCode, EndDateTime = filter.EndDateTime, StartDateTime = filter.StartDateTime, Page = filter.Page, PageSize = filter.PageSize }, out totalInFee, out totalOutFee).ToModelAsPageCollection <CustomerAmountRecordExt, CustomerAmountRecordListModel>(); } model.TotalInFee = totalInFee; model.TotalOutFee = totalOutFee; return(model); }
public CustomerAmountRecordListViewModel() { PagedList = new PagedList <CustomerAmountRecordListModel>(); FilterModel = new CustomerAmountRecordListFilterModel(); }
public ActionResult CustomerAmountRecordList(CustomerAmountRecordListFilterModel param) { return(View(AmountRecordDataBind(param))); }