以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  可视化授权 MSGBOX(USER.GROUP)返回的是空白  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=121053)

--  作者:visoni
--  发布时间:2018/6/28 11:28:00
--  可视化授权 MSGBOX(USER.GROUP)返回的是空白

----

For Each t As Table In Tables
    t.Visible =
True
    t.AllowEdit =
true

    For
Each c As Col In t.Cols
        c.Visible =
True
        c.AllowEdit =
True
    Next

Next

 

MSGBOX(USER.GROUP)


Tables
("授权表").Visible = (User.Type <> UserTypeEnum.User )
If
User.Type = UserTypeEnum.User Then
   
For Each dr As DataRow In DataTables("授权表").Select("分组名 = \'" & User.Group & "\'" )
        If
dr.IsNull("列名")
Then
           
Tables(dr("表名")).Visible = Not dr("不可见")
            Tables
(dr("表名")).AllowEdit = Not dr("不可编辑")

        Else
           
Tables(dr("表名")).Cols(dr("列名")).Visible = Not dr("不可见")
            Tables
(dr("表名")).Cols(dr("列名")).AllowEdit = Not dr("不可编辑")
        End
If
    Next
End
If

-----

请问老师 这个什么原因!!

我有建立两个分组的

 


图片点击可在新窗口打开查看此主题相关图片如下:22.jpg
图片点击可在新窗口打开查看

图片点击可在新窗口打开查看此主题相关图片如下:33.jpg
图片点击可在新窗口打开查看
[此贴子已经被作者于2018/6/28 11:29:29编辑过]

--  作者:有点甜
--  发布时间:2018/6/28 11:33:00
--  
你要修改用户,给对应的用户指定其【用户分组】属性。