Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
这是当然的,你要变通一下,在窗口的AfterLoad事件设置代码,根据上图表中的设置,来设置窗口表的可见和编辑权限。
设置在窗口的AfterLoad事件:
Dim t As Table = Tables("窗口表名")
If User.Type = UserTypeEnum.User Then
For Each dr As DataRow In DataTables("授权表").Select("用户名 = '" & User.Name & "' And 表名 = '表名'" )
If dr.IsNull("列名") = False
Tables(“窗口表名”).Cols(dr("列名")).Visible = Not dr("不可见")
Tables(“窗口表名”).Cols(dr("列名")).AllowEdit = Not dr("不可编辑")
End If
Next
End If