//添加关联商品页面 public ActionResult AddNewShelfProductList(string ArrivalId, string DateShelf, string IsOneRow, string pageIndex, int pageSize = 20, string brandNo = "B0626") { if (IsOneRow == null || IsOneRow == "") { IsOneRow = "1"; } pageIndex = pageIndex == null || pageIndex == "" ? "1" : pageIndex; DateShelf = DateShelf == null || DateShelf == "" ? System.DateTime.Now.ToString("yyyy-MM-dd HH") : DateShelf; if (Request.QueryString["keyWord"] != null) { ViewBag.keyWord = Request.QueryString["keyWord"]; } if (Request.QueryString["CategoryNo"] != null) { ViewBag.categoryNo = Request.QueryString["CategoryNo"]; } if (Request.QueryString["Gender"] != null) { ViewBag.Gender = Request.QueryString["Gender"]; } SwfsFlagShipNewArrivalProductService service = new SwfsFlagShipNewArrivalProductService(); int total = 0; List <ProductInfoNew> list = service.BrandNewShelfProductList(brandNo, Convert.ToInt32(pageIndex), pageSize, DateShelf, ViewBag.keyword, ViewBag.categoryNo, ViewBag.Gender, out total); ViewBag.page = pageIndex; ViewBag.pageSize = pageSize; ViewBag.totalCount = total; ViewBag.NewArrivalId = ArrivalId; ViewBag.IsOneRow = IsOneRow; List <ProductInfoNew> listp = service.SelectNewArrivalId(ArrivalId, IsOneRow); ViewBag.PCunt = listp.Count(); return(View(list)); }
//管理商品页面 public ActionResult NewShelfProductListManage(string ArrivalId, string isOneRow) { isOneRow = isOneRow == null || isOneRow == "" ? "1" : isOneRow; SwfsFlagShipNewArrivalProductService service = new SwfsFlagShipNewArrivalProductService(); List <ProductInfoNew> list = service.SelectNewArrivalId(ArrivalId, isOneRow); return(View(list)); }