|
@@ -4,13 +4,13 @@
|
|
|
|
|
|
using ERP.Core.Constant;
|
|
|
using ERP.Core.Dto;
|
|
|
-using ERP.Core.Entity;
|
|
|
+using ERP.Core.Entities;
|
|
|
using ERP.Core.Interface;
|
|
|
-using ERP.Core.Repository;
|
|
|
+using ERP.Core.Repositorys;
|
|
|
using ERP.Framework.Security;
|
|
|
using ERP.Framework.Utils;
|
|
|
|
|
|
-namespace ERP.Core.Service
|
|
|
+namespace ERP.Core.Services
|
|
|
{
|
|
|
public class SysMenuService : ISysMenuService
|
|
|
{
|
|
@@ -66,7 +66,7 @@ namespace ERP.Core.Service
|
|
|
};
|
|
|
|
|
|
var cMenus = menu.Children;
|
|
|
- if (cMenus != null && menu.MenuType == Enum.MenuTypeEnum.Catalog)
|
|
|
+ if (cMenus != null && menu.MenuType == Enums.MenuTypeEnum.Catalog)
|
|
|
{
|
|
|
router.Children = BuildMenuTree(cMenus, router.Path);
|
|
|
}
|
|
@@ -98,7 +98,7 @@ namespace ERP.Core.Service
|
|
|
{
|
|
|
string routerPath;
|
|
|
|
|
|
- if (menu.ParentId == 0 && menu.MenuType == Enum.MenuTypeEnum.Catalog)
|
|
|
+ if (menu.ParentId == 0 && menu.MenuType == Enums.MenuTypeEnum.Catalog)
|
|
|
{
|
|
|
routerPath = "/" + menu.Path;
|
|
|
}
|
|
@@ -121,7 +121,7 @@ namespace ERP.Core.Service
|
|
|
|
|
|
private bool IsMenuFrame(SysMenu menu)
|
|
|
{
|
|
|
- return menu.ParentId == 0 && menu.MenuType == Enum.MenuTypeEnum.Menu;
|
|
|
+ return menu.ParentId == 0 && menu.MenuType == Enums.MenuTypeEnum.Menu;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -131,7 +131,7 @@ namespace ERP.Core.Service
|
|
|
|
|
|
private bool IsParentView(SysMenu menu)
|
|
|
{
|
|
|
- return menu.ParentId != 0 && menu.MenuType == Enum.MenuTypeEnum.Catalog;
|
|
|
+ return menu.ParentId != 0 && menu.MenuType == Enums.MenuTypeEnum.Catalog;
|
|
|
}
|
|
|
|
|
|
|