loadusersetting代码如下:
Dim druser As DataRow = DataTables("技术支持信息表").SqlFind("name = '" & user.name & "'")
With DataTables("需求明细表")
.LoadFilter = "技术支持邮箱='" & User.name & "'"
.LoadTop = 25
.LoadPage = 0
.Load()
End With
Tables("临时版本跟踪表").Sort = "需求编号 DESC"
Tables("需求明细表").Sort = "需求编号 DESC"
If User.Name.Trim() = "liujiyong@bdcom.com.cn" Then
DataTables("需求明细表").LoadFilter = ""
Else
Select Case user.Group
Case "录入" ,"审核"
If druser.Isnull("新负责人邮箱") Then
DataTables("需求明细表").LoadFilter = "技术支持邮箱 = '" & User.Name.trim() & "'" ' Or 流程 = '" & user.Group & "'"
Else
DataTables("需求明细表").LoadFilter = "技术支持邮箱 = '" & User.Name.trim() & "' or 技术支持邮箱 in ('" & druser("新负责人邮箱").Trim().Replace(",", "','") & "') " 'or 流程 = '" & user.Group & "'"
End If
DataTables("需求明细表").LoadFilter = "技术支持邮箱 = '" & User.Name.trim() & "'" ' Or 流程 = '" & user.Group & "'"
End Select
End If
DataTables("需求明细表").Load()
此主题相关图片如下:审核组的看不到关联表内容.png