示例#1
0
        public ActionResult EditManJian(Guid activeId)
        {
            var  detail    = _active.GetManJianDetial(activeId);
            var  loginUser = (UserInfo)ViewBag.User;
            Guid managerId = (Guid)ViewBag.ManagerId;
            var  typelist  = _user.GetTypeList();
            var  suppliers = _user.GetSupplierList(managerId);
            var  BrandList = _good.GetAllBrand(managerId);
            var  areas     = detail.areas.Select(x => x.Num + "_" + x.Name).ToArray();

            ViewBag.AreaStr = string.Join(",", areas);

            ViewBag.TypeList  = typelist;
            ViewBag.Supplier  = suppliers;
            ViewBag.BrandList = BrandList;

            return(View(detail));
        }