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