| | |
| | | private readonly IAdmGoodsRecordService _admGoodsRecordService; |
| | | |
| | | |
| | | |
| | | public AdmGoodsManageController(ILogger<AdmGoodsManageController> logger, ILiaotianService liaotianService, IAdmGoodsManageService admGoodsManageService, IAdmGoodsClassifyService admGoodsClassifyService, IPltPageService pltPageService |
| | | , IAdmGoodsRecordService admGoodsRecordService) |
| | | { |
| | |
| | | actionlist.Add(actionEntity); |
| | | |
| | | List<PageEntity> pageEntities = _pltPageService.GetUserPage(curentuser.Id, "/AdmGoodsManage/Index/"); |
| | | |
| | | foreach (var pageEntity in pageEntities ) |
| | | var pageEntities1 = pageEntities.Where(x => x.PageMethod == "01").ToList(); |
| | | foreach (var pageEntity in pageEntities1) |
| | | { |
| | | ActionEntity actionEntity1 = new ActionEntity(); |
| | | actionEntity1.OpenType = pageEntity.OpenType; |
| | |
| | | |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | |
| | | ViewData["ActionInfo2"] = pageEntities1; |
| | | |
| | | |
| | | ViewBag.GoodsStatus = _liaotianService.GetSYScode("adm_goods_manage", "goods_status").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | var pageEntities = _pltPageService.GetUserPage(curentuser.Id, "/AdmGoodsManage/Index/"); |
| | | var pageEntities2 = pageEntities.Where(x => x.PageMethod == "02").ToList(); |
| | | ViewData["ActionInfo2"] = pageEntities2; |
| | | |
| | | AdmGoodsManageDTO dto = new AdmGoodsManageDTO(); |
| | | if (!String.IsNullOrEmpty(id)) |