以下是引用shxiaoya在2009-7-2 10:59:00的发言:
User.Type <> UserTypeEnum.User 这是个逻辑判断,用户类型不是普通用户的话,授权表可见
Tables("授权表").Visible = (User.Type <> UserTypeEnum.User )
If User.Type = UserTypeEnum.User Then
For Each dr As DataRow In DataTables("授权表").Select("用户名 = '" & User.Name & "'" )
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
那加上这段有何意义?
[此贴子已经被作者于2009-7-2 11:05:35编辑过]