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


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

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

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


加好友 发短信
等级:超级版主 帖子:107135 积分:544918 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/11/17 9:06:00 [显示全部帖子]

麻烦直接贴代码文字,不要截图

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


加好友 发短信
等级:超级版主 帖子:107135 积分:544918 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/11/17 9:24:00 [显示全部帖子]

If User.Type <> UserTypeEnum.Developer andalso User.Type <> UserTypeEnum.Administrator  Then
    TableCaptionVisible = False
End If

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


加好友 发短信
等级:超级版主 帖子:107135 积分:544918 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/11/17 9:47:00 [显示全部帖子]

判断一下如果是管理员登录,就把所有其它表都隐藏了

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


加好友 发短信
等级:超级版主 帖子:107135 积分:544918 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/11/17 10:05: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
        Tables("数据操作日志").visible = True 
    Case UserTypeEnum.Administrator 
For Each tb As Table In Tables
    tb.
.visible = False
Next
        Tables("数据操作日志").visible = True
    Case Else
        Tables("数据操作日志").visible = False 
End Select 

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


加好友 发短信
等级:超级版主 帖子:107135 积分:544918 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/11/17 11:13:00 [显示全部帖子]

……
    Case User.Type = 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
……

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


加好友 发短信
等级:超级版主 帖子:107135 积分:544918 威望: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

 回到顶部