public ActionResult GoodsPageView(GoodsPageQueryModel query)
        {
            var page = _goodsSearchService.GetGoodsPage(query);

            ViewData["tableColumns"] = page.TableColumns;
            return(View(page.PageData));
        }
        public ActionResult Export(GoodsPageQueryModel query)
        {
            var goods      = _goodsSearchService.GetGoods(query);
            var properties = _goodsPropertyService.SearchService.GetColumns();
            var model      = new ExportDataHaveColumnModel <GoodsModel, GoodsPropertyModel>
            {
                Datas   = goods,
                Columns = properties
            };
            var fileName = _dataExporter.CreateFileName("商品");
            var datas    = _dataExporter.Export <GoodsModel, GoodsPropertyModel>(model);

            return(File(datas, "application/ms-excel", fileName));
        }
 public PageModel <GoodsModel> GetGoodsPage(GoodsPageQueryModel query)
 {
     return(_goodsPageQueryer.QueryPage(query));
 }
 public List <GoodsModel> GetGoods(GoodsPageQueryModel query)
 {
     return(_goodsPageQueryer.Query(query));
 }
        public ActionResult GoodsPage(GoodsPageQueryModel query)
        {
            var page = _goodsSearchService.GetGoodsPage(query);

            return(Success(page));
        }