Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public CustomerAmountRecordListViewModel()
 {
     PagedList   = new PagedList <CustomerAmountRecordListModel>();
     FilterModel = new CustomerAmountRecordListFilterModel();
 }
Exemplo n.º 3
0
 public ActionResult CustomerAmountRecordList(CustomerAmountRecordListFilterModel param)
 {
     return(View(AmountRecordDataBind(param)));
 }