Foxtable(狐表)用户栏目专家坐堂 → [求助]菜单中项目已经删除干净如何把功能组也删除?


  共有2055人关注过本帖树形打印复制链接

主题:[求助]菜单中项目已经删除干净如何把功能组也删除?

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/5/24 20:03:00 [显示全部帖子]


For Each a1 As RibbonMenu.Tab In RibbonTabs
    Dim count1 As Integer = 0
    For Each a2 As RibbonMenu.group In a1.Groups
        Dim count2 As Integer = 0
        For Each a3 As  RibbonMenu.RibbonItem  In  a2.Items '  ToolBars
            'If a3.name.Contains("退出")=True Or a3.name.Contains("标准按钮")=True Then  Continue For
            If zc="" Then
                r=DataTables("角色").sqlfind("功能区='" & a1.name & "' And 菜单分类='" & a2.name & "' And 模块名称='" & a3.name & "'")
               
            Else
                r=DataTables("角色").sqlfind("功能区='" & a1.name & "' And 菜单分类='" & a2.name & "' And 模块名称='" & a3.name & "' And " & zc)
            End If
            If r Is Nothing Then
                a3.Visible=False
            Else
                a3.Visible=True
                count2 += 1
            End If
        Next
        If count2 = 0 Then
            a2.Visible = False
        Else
            a2.Visible=True
            count1 += 1
        End If
    Next
    If count1 = 0 Then
        a1.Visible = False
    else
        a1.Visible=true
    End If
Next

 回到顶部