public ActionResult CustomerPageView(CustomerPageQueryModel query)
        {
            var page = _customerSearchService.GetCustomerPage(query);

            ViewData["tableColumns"] = page.TableColumns;
            return(View(page.PageData));
        }
        public ActionResult Export(CustomerPageQueryModel query)
        {
            var customers  = _customerSearchService.GetCustomers(query);
            var properties = _customerPropertyService.SearchService.GetColumns();
            var model      = new ExportDataHaveColumnModel <CustomerModel, CustomerPropertyModel>
            {
                Datas   = customers,
                Columns = properties
            };
            var datas    = _dataExporter.Export <CustomerModel, CustomerPropertyModel>(model);
            var fileName = _dataExporter.CreateFileName("客户");

            return(File(datas, "application/ms-excel", fileName));
        }
 public List <CustomerModel> GetCustomers(CustomerPageQueryModel query)
 {
     return(_customerPageQueryer.Query(query));
 }
 public PageModel <CustomerModel> GetCustomerPage(CustomerPageQueryModel query)
 {
     return(_customerPageQueryer.QueryPage(query));
 }
        public ActionResult CustomerPage(CustomerPageQueryModel query)
        {
            var page = _customerSearchService.GetCustomerPage(query);

            return(Success(page));
        }