username@email.com
2021-09-28 ef80d35cdbabf2ac5fd83f84714b4254e6444fef
zhengcaioa/zhengcaioa/Controllers/admin/AdmGoodsManageController.cs
@@ -153,7 +153,7 @@
            return new JsonResult(_admGoodsManageService.SearchByPaging(search));
        }
        public IActionResult Edit(string id = null)
        public IActionResult Edit(string id = null,string ClassifyIds = "")
        {
            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
            ViewData["curentuser"] = curentuser;
@@ -163,9 +163,9 @@
            {
                dto = _admGoodsManageService.Get(id);
            }
            ViewBag.ClassifyIds = ClassifyIds;
@@ -219,13 +219,17 @@
        public IActionResult Chuku()
        public IActionResult Chuku(string id = null)
        {
            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
            ViewData["curentuser"] = curentuser;
            AdmGoodsManageDTO dto = new AdmGoodsManageDTO();
            if (!String.IsNullOrEmpty(id))
            {
                dto = _admGoodsManageService.Get(id);
            }
            ViewBag.ClassifyId = _admGoodsClassifyService.GetList();
            ViewBag.Goods = _admGoodsManageService.GetList().Where(x => x.GoodsStatus == "A").ToList();
@@ -280,12 +284,16 @@
        public IActionResult Ruku()
        public IActionResult Ruku(string id=null)
        {
            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
            ViewData["curentuser"] = curentuser;
            AdmGoodsManageDTO dto = new AdmGoodsManageDTO();
            if (!String.IsNullOrEmpty(id))
            {
                dto = _admGoodsManageService.Get(id);
            }
            ViewBag.ClassifyId = _admGoodsClassifyService.GetList();