Foxtable(狐表)用户栏目专家坐堂 → 关于开发者和管理员


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

主题:关于开发者和管理员

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


加好友 发短信
等级:童狐 帖子:273 积分:1777 威望:0 精华:0 注册:2013/2/18 23:22:00
  发帖心情 Post By:2022/11/17 11:35:00 [只看该作者]

If User.Type <> UserTypeEnum.Developer AndAlso User.Type <> UserTypeEnum.Administrator Then
    TableCaptionVisible = False
End If
Select Case User.Type
    Case User.Type = UserTypeEnum.Developer
        For Each tb As Table In Tables
            tb.visible = True
        Next
    Case User.Type = UserTypeEnum.Administrator 
        For Each tb As Table In Tables
            tb.visible = False
        Next
        Tables("数据操作日志").visible = True
    Case Else
        Tables("数据操作日志").visible = False 
End Select

现在开发者进去,也只能看得到数据操作日志了,其他的表都看不见了。图片点击可在新窗口打开查看

 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  12楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107680 积分:547721 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/11/17 13:37:00 [只看该作者]

Select Case User.Type
    Case UserTypeEnum.Developer
        For Each tb As Table In Tables
            tb.visible = True
        Next
    Case UserTypeEnum.Administrator 
        For Each tb As Table In Tables
            tb.visible = False
        Next
        Tables("数据操作日志").visible = True
    Case Else
        Tables("数据操作日志").visible = False 
End Select

 回到顶部
帅哥哟,离线,有人找我吗?
yolala
  13楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:童狐 帖子:273 积分:1777 威望:0 精华:0 注册:2013/2/18 23:22:00
  发帖心情 Post By:2022/11/17 15:15:00 [只看该作者]

这个代码就没错了,非常棒,给力。谢谢版版

 回到顶部
总数 13 上一页 1 2