| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åPDAé¦é¡µä»åºæé |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public object GetTreeMenuPDAStash(int ParentId) |
| | | { |
| | | List<MenuDTO> _menus = BaseDal.GetAllMenuPDA().Where(x => x.ParentId == ParentId).ToList(); |
| | | return _menus; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®è§è²IDè·åèå䏿é |
| | | /// </summary> |
| | | /// <param name="roleId"></param> |
| | |
| | | if (menu.MenuId == menu.ParentId) |
| | | { |
| | | return webResponse.Error($"ç¶çº§idä¸è½ä¸ºèªå·±"); |
| | | } |
| | | } |
| | | if (BaseDal.QueryFirst(x => x.ParentId == menu.MenuId && menu.ParentId == x.MenuId) != null) |
| | | { |
| | | return webResponse.Error($"ä¸è½éæ©æ¤ç¶çº§idï¼éæ©çç¶çº§idä¸å½åèåå½¢æä¾èµå
³ç³»"); |
| | |
| | | public WebResponseContent DelMenu(int menuId) |
| | | { |
| | | WebResponseContent webResponse = new WebResponseContent(); |
| | | if(BaseDal.QueryFirst(x=>x.ParentId == menuId) != null) |
| | | if (BaseDal.QueryFirst(x => x.ParentId == menuId) != null) |
| | | { |
| | | return webResponse = WebResponseContent.Instance.Error("å½åèååå¨åèå,请å
å é¤åèå!"); |
| | | } |