public ActionResult Save(PromotBlend obj)
        {
            obj.StoreId = Request["StoreId"];
            var re = CommodityPromotionService.ManYuanSaveOrUpdate(obj, Request["Times"]);

            return(Content(re.ToJson()));
        }
        public ActionResult Save(string id)
        {
            ViewBag.customers = EnumToSelect(typeof(CustomerType), selectValue: 0);
            ViewBag.shops     = ListToSelect(WarehouseService.GetList().Select(o => new SelectListItem()
            {
                Value = o.StoreId, Text = o.Title
            }), emptyTitle: "全部", emptyValue: "-1");
            ViewBag.times = CommonRules.TimeLines;
            var parents = ProductCategoryService.GetParentTypes().Select(o => new DropdownItem()
            {
                Value = o.CategorySN.ToString(), Text = o.Title
            }).ToList();

            ViewBag.parenttypes = parents.ToJson();
            parents             = ProductBrandService.GetList().Select(o => new DropdownItem(o.BrandSN.ToString(), o.Title)).ToList();
            ViewBag.brands      = parents.ToJson();
            var obj = new PromotBlend();

            if (!id.IsNullOrEmpty())
            {
                obj = CommodityPromotionService.FindZuheById(id);
                if (obj.Timeliness == 1)
                {
                    ViewBag.times = new List <string>()
                    {
                        obj.StartAging1, obj.EndAging1, obj.StartAging2, obj.EndAging2, obj.StartAging3, obj.EndAging3
                    }
                }
                ;
            }
            return(View(obj));
        }