Example #1
0
        public ActionResult AddRemit(UserRemit remit)
        {
            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            if (!Users.IsExistMobile(remit.Mobile))
            {
                return(PromptView("账号不存在"));
            }
            PartUserInfo user = Users.GetPartUserByMobile(remit.Mobile);
            MD_Remit     rmt  = new MD_Remit
            {
                Uid     = user.Uid,
                Mobile  = remit.Mobile,
                Type    = "人工充值",
                Name    = "系统充值",
                Account = "系统充值",
                Money   = remit.Money,
                Status  = 0
            };
            bool addres = NewUser.AddUserRemit(rmt);

            if (addres)
            {
                return(PromptView("添加成功"));
            }
            else
            {
                return(PromptView("添加失败"));
            }
        }
Example #2
0
        public ActionResult EditAttributeValue(int attrValueId = -1)
        {
            AttributeValueInfo attributeValueInfo = AdminCategories.GetAttributeValueById(attrValueId);

            if (attributeValueInfo == null)
            {
                return(PromptView("属性值不存在"));
            }
            if (attributeValueInfo.IsInput == 1)
            {
                return(PromptView("输入型属性值不能修改"));
            }

            AttributeValueModel model = new AttributeValueModel();

            model.AttrValue    = attributeValueInfo.AttrValue;
            model.DisplayOrder = attributeValueInfo.AttrValueDisplayOrder;

            AttributeInfo attributeInfo = Categories.GetAttributeById(attributeValueInfo.AttrId);

            ViewData["attrId"]        = attributeInfo.AttrId;
            ViewData["attributeName"] = attributeInfo.Name;
            ViewData["referer"]       = ShopUtils.GetAdminRefererCookie();

            return(View(model));
        }
Example #3
0
        public ActionResult AddTimeProduct()
        {
            TimeProductModel model = new TimeProductModel();

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #4
0
        public ActionResult AddTimeProduct(TimeProductModel model)
        {
            PartProductInfo partProductInfo = AdminProducts.AdminGetPartProductById(model.Pid);

            if (partProductInfo == null)
            {
                ModelState.AddModelError("Pid", "请选择商品");
            }
            if (AdminProducts.IsExistTimeProduct(model.Pid))
            {
                ModelState.AddModelError("Pid", "此商品已经存在");
            }

            if (ModelState.IsValid)
            {
                DateTime        noTime          = new DateTime(1900, 1, 1);
                TimeProductInfo timeProductInfo = new TimeProductInfo()
                {
                    Pid          = model.Pid,
                    OnSaleState  = model.OnSaleTime == null ? 0 : 1,
                    OutSaleState = model.OutSaleTime == null ? 0 : 1,
                    OnSaleTime   = model.OnSaleTime == null ? noTime : model.OnSaleTime.Value,
                    OutSaleTime  = model.OutSaleTime == null ? noTime : model.OutSaleTime.Value
                };
                AdminProducts.AddTimeProduct(timeProductInfo);
                AddAdminOperateLog("添加定时商品", "添加定时商品,定时商品为:" + partProductInfo.Name);
                return(PromptView("定时商品添加成功"));
            }
            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #5
0
        public ActionResult AddAdvertPosition()
        {
            AdvertPositionModel model = new AdvertPositionModel();

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
        public ActionResult AddProductConsultType()
        {
            ProductConsultTypeModel model = new ProductConsultTypeModel();

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #7
0
        public ActionResult EditProduct(int pid = -1)
        {
            ProductInfo productInfo = AdminProducts.AdminGetProductById(pid);

            if (productInfo == null)
            {
                return(PromptView("商品不存在"));
            }

            CategoryInfo vCategoryInfo = AdminCategories.GetCategoryById(productInfo.CateId);
            string       vCateName     = "";

            if (vCategoryInfo != null)
            {
                vCateName = vCategoryInfo.Name;
            }


            EditProductModel model = new EditProductModel();

            model.PSN          = productInfo.PSN;
            model.CateId       = productInfo.CateId;
            model.CategoryName = vCateName;
            model.BrandId      = productInfo.BrandId;
            model.ProductName  = productInfo.Name;
            model.ShopPrice    = productInfo.ShopPrice;
            model.MarketPrice  = productInfo.MarketPrice;
            model.CostPrice    = productInfo.CostPrice;
            model.State        = productInfo.State;
            model.IsBest       = productInfo.IsBest == 1 ? true : false;
            model.IsHot        = productInfo.IsHot == 1 ? true : false;
            model.IsNew        = productInfo.IsNew == 1 ? true : false;
            model.DisplayOrder = productInfo.DisplayOrder;
            model.Weight       = productInfo.Weight;
            model.Description  = productInfo.Description;

            model.BrandName = AdminBrands.GetBrandById(productInfo.BrandId).Name;


            //库存信息
            ProductStockInfo productStockInfo = AdminProducts.GetProductStockByPid(pid);

            model.StockNumber = productStockInfo.Number;
            model.StockLimit  = productStockInfo.Limit;

            //商品属性列表
            List <ProductAttributeInfo> productAttributeList = Products.GetProductAttributeList(pid);

            //商品sku项列表
            DataTable productSKUItemList = AdminProducts.GetProductSKUItemList(productInfo.Pid);

            ViewData["pid"]                  = productInfo.Pid;
            ViewData["cateId"]               = productInfo.CateId;
            ViewData["categoryName"]         = vCateName;
            ViewData["productAttributeList"] = productAttributeList;
            ViewData["productSKUItemList"]   = productSKUItemList;
            ViewData["referer"]              = ShopUtils.GetAdminRefererCookie();

            return(View(model));
        }
Example #8
0
        private void Load()
        {
            List <SelectListItem> advertPositionList = new List <SelectListItem>();

            advertPositionList.Add(new SelectListItem()
            {
                Text = "请选择广告位置", Value = "0"
            });
            foreach (AdvertPositionInfo advertPositionInfo in AdminAdverts.GetAllAdvertPosition())
            {
                advertPositionList.Add(new SelectListItem()
                {
                    Text = advertPositionInfo.Title, Value = advertPositionInfo.AdPosId.ToString()
                });
            }
            ViewData["advertPositionList"] = advertPositionList;

            string allowImgType = string.Empty;

            string[] imgTypeList = StringHelper.SplitString(BSPConfig.ShopConfig.UploadImgType, ",");
            foreach (string imgType in imgTypeList)
            {
                allowImgType += string.Format("{0},", imgType.ToLower());
            }
            allowImgType             = allowImgType.Replace(".", "");
            allowImgType             = allowImgType.TrimEnd(',');
            ViewData["allowImgType"] = allowImgType;
            ViewData["maxImgSize"]   = BSPConfig.ShopConfig.UploadImgSize;

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
        }
Example #9
0
        public ActionResult Add(EventModel model)
        {
            if (!string.IsNullOrWhiteSpace(model.Key) && BSPConfig.EventConfig.BSPEventList.Find(x => x.Key == model.Key.Trim().ToLower()) != null)
            {
                ModelState.AddModelError("Key", "键已经存在");
            }

            if (!string.IsNullOrWhiteSpace(model.Title) && BSPConfig.EventConfig.BSPEventList.Find(x => x.Title == model.Title.Trim().ToLower()) != null)
            {
                ModelState.AddModelError("Title", "名称已经存在");
            }

            if (ModelState.IsValid)
            {
                EventInfo eventInfo = new EventInfo()
                {
                    Key       = model.Key.Trim().ToLower(),
                    Title     = model.Title.Trim().ToLower(),
                    TimeType  = model.TimeType,
                    TimeValue = model.TimeValue,
                    ClassName = model.ClassName,
                    Code      = model.Code ?? "",
                    Enabled   = model.Enabled
                };

                BSPConfig.EventConfig.BSPEventList.Add(eventInfo);
                BSPConfig.SaveEventConfig(BSPConfig.EventConfig);
                AddAdminOperateLog("添加事件", "添加事件,事件为:" + model.Title);
                return(PromptView("事件添加成功"));
            }
            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #10
0
        public ActionResult Add()
        {
            FilterWordModel model = new FilterWordModel();

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #11
0
        public ActionResult Edit(FilterWordModel model, int id = -1)
        {
            List <FilterWordInfo> filterWordList = AdminFilterWords.GetFilterWordList();
            FilterWordInfo        filterWordInfo = filterWordList.Find(x => x.Id == id);

            if (filterWordInfo == null)
            {
                return(PromptView("筛选词不存在"));
            }

            if (!string.IsNullOrWhiteSpace(model.Match))
            {
                FilterWordInfo filterWordInfo2 = filterWordList.Find(x => x.Match == model.Match.Trim());
                if (filterWordInfo2 != null && filterWordInfo2.Id != id)
                {
                    ModelState.AddModelError("Match", "筛选词已经存在");
                }
            }

            if (ModelState.IsValid)
            {
                filterWordInfo.Match   = model.Match.Trim();
                filterWordInfo.Replace = model.Replace.Trim();

                AdminFilterWords.UpdateFilterWord(filterWordInfo);
                AddAdminOperateLog("修改筛选词", "修改筛选词,筛选词ID为:" + id);
                return(PromptView("筛选词修改成功"));
            }

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #12
0
        public ActionResult EditTimeProduct(TimeProductModel model, int recordId = -1)
        {
            TimeProductInfo timeProductInfo = AdminProducts.GetTimeProductByRecordId(recordId);

            if (timeProductInfo == null)
            {
                return(PromptView("定时商品不存在"));
            }

            if (ModelState.IsValid)
            {
                DateTime noTime = new DateTime(1900, 1, 1);
                timeProductInfo.OnSaleTime  = model.OnSaleTime == null ? noTime : model.OnSaleTime.Value;
                timeProductInfo.OutSaleTime = model.OutSaleTime == null ? noTime : model.OutSaleTime.Value;

                if (model.OnSaleTime != timeProductInfo.OnSaleTime)
                {
                    timeProductInfo.OnSaleState = model.OnSaleTime == null ? 0 : 1;
                }
                if (model.OutSaleTime != timeProductInfo.OutSaleTime)
                {
                    timeProductInfo.OutSaleState = model.OutSaleTime == null ? 0 : 1;
                }

                AdminProducts.UpdateTimeProduct(timeProductInfo);
                AddAdminOperateLog("修改定时商品", "修改定时商品,定时商品ID为:" + timeProductInfo.Pid);
                return(PromptView("定时商品修改成功"));
            }

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #13
0
        public ActionResult AddNewsType()
        {
            NewsTypeModel model = new NewsTypeModel();

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #14
0
        public ActionResult AddUserBackRule()
        {
            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            MD_UserBackRate baseinfo = new MD_UserBackRate();

            return(View(baseinfo));
        }
Example #15
0
        public ActionResult EditAttributeGroup(AttributeGroupModel model, int attrGroupId = -1)
        {
            AttributeGroupInfo attributeGroupInfo = AdminCategories.GetAttributeGroupById(attrGroupId);

            if (attributeGroupInfo == null)
            {
                return(PromptView("属性分组不存在"));
            }

            int attrGroupId2 = AdminCategories.GetAttributeGroupIdByCateIdAndName(attributeGroupInfo.CateId, model.AttributeGroupName);

            if (attrGroupId2 > 0 && attrGroupId2 != attrGroupId)
            {
                ModelState.AddModelError("AttributeGroupName", "名称已经存在");
            }

            if (ModelState.IsValid)
            {
                attributeGroupInfo.Name         = model.AttributeGroupName;
                attributeGroupInfo.DisplayOrder = model.DisplayOrder;

                AdminCategories.UpdateAttributeGroup(attributeGroupInfo);
                AddAdminOperateLog("修改属性分组", "修改属性分组,属性分组ID为:" + attrGroupId);
                return(PromptView("属性分组修改成功"));
            }

            CategoryInfo categoryInfo = AdminCategories.GetCategoryById(attributeGroupInfo.CateId);

            ViewData["cateId"]       = categoryInfo.CateId;
            ViewData["categoryName"] = categoryInfo.Name;
            ViewData["referer"]      = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #16
0
        public ActionResult EditAttribute(int attrId = -1)
        {
            AttributeInfo attributeInfo = AdminCategories.GetAttributeById(attrId);

            if (attributeInfo == null)
            {
                return(PromptView("属性不存在"));
            }

            AttributeModel model = new AttributeModel();

            model.AttributName = attributeInfo.Name;
            model.AttrGroupId  = attributeInfo.AttrGroupId;
            model.ShowType     = attributeInfo.ShowType;
            model.IsFilter     = attributeInfo.IsFilter;
            model.DisplayOrder = attributeInfo.DisplayOrder;

            CategoryInfo categoryInfo = AdminCategories.GetCategoryById(attributeInfo.CateId);

            ViewData["cateId"]             = categoryInfo.CateId;
            ViewData["categoryName"]       = categoryInfo.Name;
            ViewData["attributeGroupList"] = GetAttributeGroupSelectList(categoryInfo.CateId);
            ViewData["referer"]            = ShopUtils.GetAdminRefererCookie();

            return(View(model));
        }
Example #17
0
        public ActionResult Add(BannedIPModel model)
        {
            string ip = "";

            if (string.IsNullOrWhiteSpace(model.IP4))
            {
                ip = string.Format("{0}.{1}.{2}", model.IP1, model.IP2, model.IP3);
            }
            else
            {
                ip = string.Format("{0}.{1}.{2}.{3}", model.IP1, model.IP2, model.IP3, model.IP4);
            }

            if (AdminBannedIPs.GetBannedIPIdByIP(ip) > 0)
            {
                ModelState.AddModelError("IP4", "IP已经存在");
            }

            if (ModelState.IsValid)
            {
                BannedIPInfo bannedIPInfo = new BannedIPInfo()
                {
                    IP          = ip,
                    LiftBanTime = model.LiftBanTime
                };

                AdminBannedIPs.AddBannedIP(bannedIPInfo);
                AddAdminOperateLog("添加禁止IP", "添加禁止IP,禁止IP为:" + ip);
                return(PromptView("禁止IP添加成功"));
            }
            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #18
0
        public ActionResult AddAttributeGroup(AttributeGroupModel model, int cateId = -1)
        {
            CategoryInfo categoryInfo = AdminCategories.GetCategoryById(cateId);

            if (categoryInfo == null)
            {
                return(PromptView("分类不存在"));
            }

            if (AdminCategories.GetAttributeGroupIdByCateIdAndName(cateId, model.AttributeGroupName) > 0)
            {
                ModelState.AddModelError("AttributeGroupName", "名称已经存在");
            }

            if (ModelState.IsValid)
            {
                AttributeGroupInfo attributeGroupInfo = new AttributeGroupInfo()
                {
                    Name         = model.AttributeGroupName,
                    CateId       = categoryInfo.CateId,
                    DisplayOrder = model.DisplayOrder
                };

                AdminCategories.CreateAttributeGroup(attributeGroupInfo);
                AddAdminOperateLog("添加属性分组", "添加属性分组,属性分组为:" + model.AttributeGroupName);
                return(PromptView("属性分组添加成功"));
            }
            ViewData["cateId"]       = categoryInfo.CateId;
            ViewData["categoryName"] = categoryInfo.Name;
            ViewData["referer"]      = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #19
0
        private void Load(int regionId)
        {
            List <SelectListItem> adminGroupList = new List <SelectListItem>();

            adminGroupList.Add(new SelectListItem()
            {
                Text = "选择管理员组", Value = "0"
            });
            foreach (AdminGroupInfo info in AdminGroups.GetAdminGroupList())
            {
                adminGroupList.Add(new SelectListItem()
                {
                    Text = info.Title, Value = info.AdminGid.ToString()
                });
            }
            ViewData["adminGroupList"] = adminGroupList;

            RegionInfo regionInfo = Regions.GetRegionById(regionId);

            if (regionInfo != null)
            {
                ViewData["provinceId"] = regionInfo.ProvinceId;
                ViewData["cityId"]     = regionInfo.CityId;
                ViewData["countyId"]   = regionInfo.RegionId;
            }
            else
            {
                ViewData["provinceId"] = -1;
                ViewData["cityId"]     = -1;
                ViewData["countyId"]   = -1;
            }

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
        }
Example #20
0
        public ActionResult Edit(ShipCompanyModel model, int shipCoId = -1)
        {
            ShipCompanyInfo shipCompanyInfo = AdminShipCompanies.GetShipCompanyById(shipCoId);

            if (shipCompanyInfo == null)
            {
                return(PromptView("配送公司不存在"));
            }

            int shipCoId2 = AdminShipCompanies.GetShipCoIdByName(model.CompanyName);

            if (shipCoId2 > 0 && shipCoId2 != shipCoId)
            {
                ModelState.AddModelError("CompanyName", "名称已经存在");
            }

            if (ModelState.IsValid)
            {
                shipCompanyInfo.DisplayOrder = model.DisplayOrder;
                shipCompanyInfo.Name         = model.CompanyName;

                AdminShipCompanies.UpdateShipCompany(shipCompanyInfo);
                AddAdminOperateLog("修改配送公司", "修改配送公司,配送公司ID为:" + shipCoId);
                return(PromptView("配送公司修改成功"));
            }

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #21
0
        public ActionResult Add()
        {
            BannedIPModel model = new BannedIPModel();

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #22
0
        public ActionResult AddHelpCategory()
        {
            HelpCategoryModel model = new HelpCategoryModel();

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #23
0
        public ActionResult Add()
        {
            ShipCompanyModel model = new ShipCompanyModel();

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #24
0
        public ActionResult EditHelpCategory(HelpCategoryModel model, int id = -1)
        {
            HelpInfo helpInfo = AdminHelps.GetHelpById(id);

            if (helpInfo == null)
            {
                return(PromptView("帮助分类不存在"));
            }

            if (ModelState.IsValid)
            {
                helpInfo.Pid          = 0;
                helpInfo.Title        = model.HelpCategoryTitle;
                helpInfo.Url          = "";
                helpInfo.Description  = "";
                helpInfo.DisplayOrder = model.DisplayOrder;

                AdminHelps.UpdateHelp(helpInfo);
                AddAdminOperateLog("修改帮助分类", "修改帮助分类,帮助分类ID为:" + id);
                return(PromptView("帮助分类修改成功"));
            }

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #25
0
        public ActionResult EditNewsType(NewsTypeModel model, int newsTypeId = -1)
        {
            NewsTypeInfo newsTypeInfo = AdminNews.GetNewsTypeById(newsTypeId);

            if (newsTypeInfo == null)
            {
                return(PromptView("新闻类型不存在"));
            }

            NewsTypeInfo newsTypeInfo2 = AdminNews.GetNewsTypeByName(model.NewsTypeName);

            if (newsTypeInfo2 != null && newsTypeInfo2.NewsTypeId != newsTypeId)
            {
                ModelState.AddModelError("NewsTypeName", "名称已经存在");
            }

            if (ModelState.IsValid)
            {
                newsTypeInfo.Name         = model.NewsTypeName;
                newsTypeInfo.DisplayOrder = model.DisplayOrder;

                AdminNews.UpdateNewsType(newsTypeInfo);
                AddAdminOperateLog("修改新闻类型", "修改新闻类型,新闻类型ID为:" + newsTypeId);
                return(PromptView("新闻类型修改成功"));
            }

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #26
0
        public ActionResult Edit(TopicModel model, int topicId = -1)
        {
            TopicInfo topicInfo = AdminTopic.AdminGetTopicById(topicId);

            if (topicInfo == null)
            {
                return(PromptView("活动专题不存在"));
            }

            if (ModelState.IsValid)
            {
                topicInfo.StartTime = model.StartTime;
                topicInfo.EndTime   = model.EndTime;
                topicInfo.Title     = model.Title;
                topicInfo.HeadHtml  = model.HeadHtml ?? "";
                topicInfo.BodyHtml  = model.BodyHtml ?? "";
                topicInfo.IsShow    = model.IsShow;

                AdminTopic.UpdateTopic(topicInfo);
                AddAdminOperateLog("修改活动专题", "修改活动专题,活动专题ID为:" + topicId);
                return(PromptView("活动专题修改成功"));
            }

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #27
0
        private void Load(int parentid = -1)
        {
            ShopUtils.SetAdminRefererCookie(string.Format("{0}/" + parentid, Url.Action("basetypelist")));

            ViewData["baseTypeList"] = AdminBaseInfo.GetBaseTypeList();
            ViewData["referer"]      = ShopUtils.GetAdminRefererCookie();
        }
Example #28
0
        public ActionResult Add()
        {
            Load();
            BaseInfo model = new BaseInfo();

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #29
0
        public ActionResult AddDummy()
        {
            LoadRoom();
            UserDummyModel model = new UserDummyModel();

            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }
Example #30
0
        public ActionResult AddSKU(AddSKUModel model)
        {
            if (model.AttrIdList == null || model.AttrIdList.Length < 1)
            {
                ModelState.AddModelError("CateId", "请选择SKU");
            }

            if (ModelState.IsValid)
            {
                //商品信息
                ProductInfo productInfo = new ProductInfo()
                {
                    PSN          = "",
                    CateId       = model.CateId,
                    BrandId      = model.BrandId,
                    SKUGid       = 0,
                    Name         = model.ProductName,
                    ShopPrice    = model.ShopPrice,
                    MarketPrice  = model.MarketPrice,
                    CostPrice    = model.CostPrice,
                    State        = (int)ProductState.OutSale,//设为下架状态
                    IsBest       = model.IsBest == true ? 1 : 0,
                    IsHot        = model.IsHot == true ? 1 : 0,
                    IsNew        = model.IsNew == true ? 1 : 0,
                    DisplayOrder = model.DisplayOrder,
                    Weight       = model.Weight,
                    ShowImg      = "",
                    Description  = model.Description ?? "",
                    AddTime      = DateTime.Now
                };

                //SKU处理
                List <ProductSKUItemInfo> productSKUItemList = new List <ProductSKUItemInfo>();
                for (int i = 0; i < model.AttrIdList.Length; i++)
                {
                    int    attrId      = model.AttrIdList[i];         //属性id
                    int    attrValueId = model.AttrValueIdList[i];    //属性值id
                    string inputValue  = model.AttrInputValueList[i]; //属性输入值
                    if (attrId > 0 && attrValueId > 0)
                    {
                        productSKUItemList.Add(new ProductSKUItemInfo()
                        {
                            AttrId      = attrId,
                            AttrValueId = attrValueId,
                            InputValue  = inputValue ?? ""
                        });
                    }
                }

                AdminProducts.AddSKU(productInfo, productSKUItemList);
                AddAdminOperateLog("添加SKU商品", "添加SKU商品,商品为:" + model.ProductName);

                return(PromptView(Url.Action("outsaleproductlist"), "SKU商品添加成功"));
            }
            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            return(View(model));
        }