104 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			104 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using AIMSDAL;
 | |
| using AIMSModel;
 | |
| using AIMSObjectQuery;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using System.Windows.Forms;
 | |
| using System.Data;
 | |
| 
 | |
| namespace AIMSBLL
 | |
| {
 | |
|     public partial class BMenu
 | |
|     {
 | |
|         public static void Add(AIMSModel.Menu MenuObj)
 | |
|         {
 | |
|             try
 | |
|             {
 | |
|                 DMenu.Add(MenuObj);
 | |
|                 MessageBox.Show("增加成功!");
 | |
| 
 | |
|             }
 | |
|             catch (Exception ex)
 | |
|             {
 | |
|                 MessageBox.Show("增加失败!"+ex.Message);
 | |
|             }
 | |
|           
 | |
|         } 
 | |
|         public static void Delete(int Id)
 | |
|         {
 | |
|           try
 | |
|             {
 | |
|                 DMenu.Delete(Id);
 | |
|                 MessageBox.Show("删除成功!");
 | |
| 
 | |
|             }
 | |
|             catch (Exception ex)
 | |
|             {
 | |
|                 MessageBox.Show("删除失败!"+ex.Message);
 | |
|             }
 | |
|         }
 | |
|         public static AIMSModel.Menu GetModel(int Id)
 | |
|         {
 | |
|            return DMenu.GetModel(Id);
 | |
|         }
 | |
|         public static DataTable GetDateTable(string strWhere)
 | |
|         {
 | |
|             return DMenu.GetDateTable(strWhere);
 | |
|         }
 | |
| 
 | |
|         public static List<AIMSModel.Menu> GetModelList()
 | |
|         {
 | |
|             return DMenu.GetModelList();
 | |
|         }
 | |
|         public static List<AIMSModel.Menu> GetModelList_FSB(int RoleId)
 | |
|         {
 | |
|             return DMenu.GetModelList_FSB(RoleId);
 | |
|         }
 | |
| 
 | |
|         public static List<AIMSModel.Menu> GetMenuRootList(int ParentId)
 | |
|         {
 | |
|           
 | |
|             return DMenu.GetMenuRootList(ParentId);
 | |
|         }
 | |
|         public static List<AIMSModel.Menu> GetMenuRootList(int RoleId, int ParentId)
 | |
|         {
 | |
|             return DMenu.GetMenuRootList(RoleId,ParentId);
 | |
|         } 
 | |
|         public static List<AIMSModel.Menu> GetMenuRootListManage(int RoleId, string ParentId)
 | |
|         {
 | |
|             return DMenu.GetMenuRootListManage(RoleId,ParentId);
 | |
|         }
 | |
|         public static List<AIMSModel.Menu> GetMenuRootListManage(int RoleId)
 | |
|         {
 | |
|             return DMenu.GetMenuRootListManage(RoleId);
 | |
|         }
 | |
|         public static AIMSModel.Menu GetMenuById(int Id, int RoleId, int IsAll)
 | |
|         {
 | |
| 
 | |
|             return DMenu.GetMenuById(Id, RoleId,IsAll);
 | |
|         }
 | |
|         public static AIMSModel.Menu GetMenuByName(string name)
 | |
|         {
 | |
| 
 | |
|             return DMenu.GetMenuByName(name);
 | |
|         }
 | |
| 
 | |
|         public List<AIMSModel.Menu> GetChildren(AIMSModel.Menu  Menu, int RoleId,int IsAll)
 | |
|         {
 | |
| 
 | |
|             return DMenu.GetChildren( Menu, RoleId, IsAll);
 | |
|         }
 | |
| 
 | |
|         public static AIMSModel.Menu GetPathByName(string Name)
 | |
|         {
 | |
|             return DMenu.GetPathByName(Name);
 | |
|         }
 | |
| 
 | |
|         public static DataTable GetMenuDataTable(int ParentId, int RoleId)
 | |
|         {
 | |
|             return DMenu.GetMenuDataTable(ParentId, RoleId);
 | |
|         }
 | |
|     }
 | |
| }
 |