| | |
| | | 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; |
| | |
| | | { |
| | | dto = _admGoodsManageService.Get(id); |
| | | } |
| | | |
| | | |
| | | |
| | | ViewBag.ClassifyIds = ClassifyIds; |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | 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(); |
| | |
| | | |
| | | |
| | | |
| | | 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(); |
| | | |