示例#1
0
 /// <summary>
 /// 其他菜单
 /// </summary>
 /// <param name="del"></param>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool OtherAndMenu(LogicDelegateArr del, object[] obj)
 {
     try
     {
         if (IsHasRole(AppSupport.adminGuid) || (IsHasRole(AppSupport.adminGuid) && del(obj)))
         {
             return(true);
         }
         return(false);
     }
     catch
     {
         return(false);
     }
 }
示例#2
0
 /// <summary>
 ///判断审核菜单
 /// </summary>
 /// <param name="current"></param>
 /// <param name="del"></param>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool HasOrConfrim(LogicDelegateArr del, object[] obj)
 {
     try
     {
         if (IsHasRole(AppSupport.adminGuid) || IsHasRole(AppSupport.confrimRole) || del(obj))
         {
             return(true);
         }
         return(false);
     }
     catch
     {
         return(false);
     }
 }
示例#3
0
 /// <summary>
 /// 判断保存菜单
 /// </summary>
 /// <param name="current"></param>
 /// <param name="del"></param>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool HasAndSave(LogicDelegateArr del, object[] obj)
 {
     try
     {
         if (IsHasRole(AppSupport.adminGuid) || (IsHasRole(AppSupport.saveRole) && del(obj)))
         {
             return(true);
         }
         return(false);
     }
     catch
     {
         return(false);
     }
 }