public ActionResult CustomerFinancePageView(CustomerFinancePageQueryModel query)
        {
            var page = _financeSearchService.GetCustomerFinancePage(query);

            _financeWrappers.ToList().ForEach(wraper =>
            {
                wraper.Wrapper(page.PageData);
            });
            ViewData["tableColumns"] = page.TableColumns;
            return(View(page.PageData));
        }
        public ActionResult Export(CustomerFinancePageQueryModel query)
        {
            var customerFinances = _financeSearchService.GetCustomerFinances(query);

            _financeWrappers.ToList().ForEach(wraper =>
            {
                wraper.Wrapper(customerFinances);
            });
            var properties = _propertySearchService.GetColumns();
            var model      = new ExportDataHaveColumnModel <CustomerFinanceModel, CustomerFinancePropertyModel>
            {
                Datas   = customerFinances,
                Columns = properties
            };
            var fileName = _dataExporter.CreateFileName("客户财务");
            var datas    = _dataExporter.Export <CustomerFinanceModel, CustomerFinancePropertyModel>(model);

            return(File(datas, "application/ms-excel", fileName));
        }
Beispiel #3
0
 public List <CustomerFinanceModel> GetCustomerFinances(CustomerFinancePageQueryModel query)
 {
     return(_customerFinancePageQueryer.Query(query));
 }
Beispiel #4
0
 public PageModel <CustomerFinanceModel> GetCustomerFinancePage(CustomerFinancePageQueryModel query)
 {
     return(_customerFinancePageQueryer.QueryPage(query));
 }
        public ActionResult CustomerFinancePage(CustomerFinancePageQueryModel query)
        {
            var page = _financeSearchService.GetCustomerFinancePage(query);

            return(Success(page));
        }