/// <summary> /// 已上傳商品 /// </summary> /// <returns></returns> public ActionResult PublishedList(PublishedListModel model) { var queryInfo = new ProductListQueryInfo(); queryInfo.SupplierID = base.CurrentUser.SupplierID; queryInfo.BarCode = model.BarCode.SafeTrim(); queryInfo.HasInventory = model.HasInventory; queryInfo.IsOnSaled = model.IsOnSaled; queryInfo.ProductName = model.ProductName.SafeTrim(); queryInfo.Sku = model.Sku.SafeTrim(); if (model.SkuStatus.HasValue) { queryInfo.SkuStatus = new[] { model.SkuStatus.Value }; } else { queryInfo.SkuStatus = new[] { 1, 3, 4, 5, 6 }; } queryInfo.UploadTime = model.UploadTime; var page = new PageDTO() { PageIndex = model.PageIndex, PageSize = 20 }; try { PageOf <ProductTempModel> dateList = bll.GetProductList(queryInfo, LanguageEnum.SimplifiedChinese, page); ViewBag.DataList = dateList; } catch (Exception ex) { LogHelper.Error(ex); } return(View(model)); }