Esempio n. 1
0
 /// <summary>
 /// 根据菜单ID获取菜单信息
 /// </summary>
 /// <param name="UserId"></param>
 /// <returns></returns>
 public static Menu GetUser(string nodeid)
 {
     return(MenuProvider.Instance().GetFunctionNode(nodeid));
 }
Esempio n. 2
0
 /// <summary>
 /// 删除菜单
 /// </summary>
 /// <param name="userId"></param>
 /// <returns></returns>
 public static bool DeleteUser(string nodeid)
 {
     return(MenuProvider.Instance().DeleteFunctionNode(nodeid));
 }
Esempio n. 3
0
 /// <summary>
 /// 添加菜单
 /// </summary>
 /// <param name="User"></param>
 /// <returns></returns>
 public static bool AddUser(Menu node)
 {
     return(MenuProvider.Instance().AddFunctionNode(node));
 }
Esempio n. 4
0
 /// <summary>
 /// 更新菜单
 /// </summary>
 /// <param name="User"></param>
 /// <returns></returns>
 public static bool UpdateUser(Menu node)
 {
     return(MenuProvider.Instance().UpdateFunctionNode(node));
 }
Esempio n. 5
0
 static MenuProvider()
 {
     _defaultInstance =
         DataProviders.CreateInstance("FPLDQ.DataController.MenuData, FPLDQ.DataController") as
         MenuProvider;
 }