以下是原来权限设置的代码,请看看是否有误(BCDEFGH是各员工的名称)
Select Case User.Name
Case "B","C","F","G","H"
Tables("集团员工档案").Visible = False
End Select
Select Case User.Name
Case "D","E"
Tables("集团员工档案").Cols.Remove("试用期工资")
Tables("集团员工档案").Cols.Remove("转正后薪级")
Tables("集团员工档案").Cols.Remove("目前薪资")
Tables("集团员工档案").Cols.Remove("目前薪级")
Tables("集团员工档案").Cols.Remove("薪资变动记录")
End Select
Select Case User.Name
Case "F","G","H"
Tables("网站业务系统密码信息记录").Visible = False
End Select
Select Case User.Name
Case "B","C","D","E","F","G","H"
Tables("员工薪酬福利").Visible = False
End Select
Select Case User.Name
Case "B","C","D","E","F","G","H"
Tables("薪资变动表").Visible = False
End Select
Select Case User.Name
Case "B","C","F","G","H"
Tables("员工试用与转正事务").Visible = False
Case "D","E"
Tables("员工试用与转正事务").Cols.Remove("试用薪资")
Tables("员工试用与转正事务").Cols.Remove("转正岗级")
Tables("员工试用与转正事务").Cols.Remove("转正岗级工资")
End Select
Select Case User.Name
Case "B","C","D","E","F","G","H"
Tables("员工岗级晋升或降级").Visible = False
End Select
Select Case User.Name
Case "B","C","F","G","H"
Tables("员工离职事务").Visible = False
End Select
Select Case User.Name
Case "B","C","F","G","H"
Tables("员工请假或假期记录").Visible = False
End Select
Select Case User.Name
Case "B","C","D","E","F","G","H"
Tables("员工入职一周访谈记录").Visible = False
End Select
Select Case User.Name
Case "B","C","D","E","F","G","H"
Tables("员工入职三十天访谈记录").Visible = False
End Select
Select Case User.Name
Case "B","C","F","G","H"
Tables("员工岗级晋升考核评定").Visible = False
Case "D","E"
Tables("员工岗级晋升考核评定").Cols.Remove("原岗级")
Tables("员工岗级晋升考核评定").Cols.Remove("申请岗级")
End Select
Select Case User.Name
Case "C","F","G","H"
Tables("人员配置情况").Visible = False
End Select
Select Case User.Name
Case "C","G","H"
Tables("人员面试和复试").Visible = False
Case "D","E","B","F"
Tables("人员面试和复试").Cols.Remove("薪资要求")
End Select
Select Case User.Name
Case "B","C","F","G","H"
Tables("KPI考核记录").Visible = False
End Select
Select Case User.Name
Case "B","C","F","G","H"
Tables("部门预算").Visible = False
End Select
If User.Group = "A" Then
For Each dt As DataTable In DataTables
dt.AllowClipBoard = False
Next
End If
If User.Group = "B" Then
For Each dt As DataTable In DataTables
dt.AllowClipBoard = False
Next
End If
If User.Group = "C" Then
For Each dt As DataTable In DataTables
dt.AllowClipBoard = False
Next
End If
If User.Group = "D" Then
For Each dt As DataTable In DataTables
dt.AllowClipBoard = False
Next
End If
If User.Group = "E" Then
For Each dt As DataTable In DataTables
dt.AllowClipBoard = False
Next
End If
If User.Group = "F" Then
For Each dt As DataTable In DataTables
dt.AllowClipBoard = False
Next
End If
If User.Group = "G" Then
For Each dt As DataTable In DataTables
dt.AllowClipBoard = False
Next
End If
If User.Group = "H" Then
For Each dt As DataTable In DataTables
dt.AllowClipBoard = False
Next