Beispiel #1
0
 /// <summary>
 /// 根据功能ID查找功能类
 /// </summary>
 /// <param name="functionID"></param>
 /// <returns></returns>
 public ModuleFunction FindFunctionByFunctionID(string functionID)
 {
     if (DataFunctions.ContainsKey(functionID))
     {
         return(DataFunctions[functionID]);
     }
     return(null);
 }
Beispiel #2
0
 /// <summary>
 /// 判断是否有功能权限
 /// </summary>
 /// <param name="function"></param>
 /// <returns></returns>
 public bool HasAuthority(Type function)
 {
     return(DataFunctions.ContainsKey(function.FullName));
 }
Beispiel #3
0
 /// <summary>
 /// 判断是否有功能权限
 /// </summary>
 /// <param name="functionID"></param>
 /// <returns></returns>
 public bool HasAuthority(string functionID)
 {
     return(DataFunctions.ContainsKey(functionID));
 }