コード例 #1
0
        public ActionResult ExportGoodInfo(string SupplierId = "", string fstTypeId = "", string secTypeId = "", string thdTypeId = "", string keyWord = "")
        {
            var loginUser            = (UserInfo)ViewBag.User;;
            PageData <GoodInfo> page = _manager.GetGoodsList(ViewBag.ManagerId, loginUser.TypeId, 1, 100000, SupplierId, fstTypeId, secTypeId, thdTypeId, "", keyWord, "");
            var output = _manager.ExportGoodInfo(page.ListData);

            return(File(output, "application/ms-excel", "商品列表.xlsx"));
        }