If User.Group = "销售" Then
DataTables("合同录入系统").LoadFilter = "业务员 = '" & User.name & "'"
DataTables("理财合同登记").LoadFilter = "业务员 = '" & User.name & "'"
DataTables("酒会登记").LoadFilter = "业务员 = '" & User.name & "'"
DataTables("旅游登记").LoadFilter = "业务员 = '" & User.name & "'"
DataTables("收款收据").LoadFilter = "业务员 = '" & User.name & "'"
DataTables("我的意向客户").LoadFilter = "业务员 = '" & User.name & "'"
DataTables("我的客户").LoadFilter = "业务员 = '" & User.name & "'"
DataTables("业务员信息表").LoadFilter = "业务员 = '" & User.name & "'"
DataTables("邮件打印").LoadFilter = "业务员 = '" & User.name & "'"
DataTables("信封打印系统").LoadFilter = "业务员 = '" & User.name & "'"
ElseIf User.Group = "团队长" Then
Dim names As String = DataTables("业务员信息表").GetComboListString("姓名", "团队 = '" & user.name & "'")
DataTables("合同录入系统").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("理财合同登记").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("酒会登记").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("旅游登记").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("收款收据").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("我的意向客户").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("我的客户").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("业务员信息表").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("邮件打印").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("信封打印系统").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
ElseIf User.Group = "经理" Then
Dim names As String = DataTables("业务员信息表").GetComboListString("姓名", "部门 = '" & user.name & "'")
DataTables("合同录入系统").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("理财合同登记").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("酒会登记").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("旅游登记").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("收款收据").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("我的意向客户").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("业务员信息表").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("我的客户").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("邮件打印").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("信封打印系统").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
ElseIf User.Group = "总监" Then
Dim names As String = DataTables("业务员信息表").GetComboListString("姓名", "总监 = '" & user.name & "'")
DataTables("合同录入系统").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("理财合同登记").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("酒会登记").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("旅游登记").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("收款收据").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("我的意向客户").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("我的客户").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("业务员信息表").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("邮件打印").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
DataTables("信封打印系统").LoadFilter = "业务员 in ('" & names.Replace("|", "','") & "')"
ElseIf user.Type = UserTypeEnum.Administrator AndAlso user.Type = UserTypeEnum.Developer
DataTables("合同录入系统").LoadFilter = ""
DataTables("理财合同登记").LoadFilter = ""
DataTables("酒会登记").LoadFilter = ""
DataTables("旅游登记").LoadFilter = ""
DataTables("收款收据").LoadFilter = ""
DataTables("我的意向客户").LoadFilter = ""
DataTables("业务员信息表").LoadFilter = ""
DataTables("我的客户").LoadFilter = ""
DataTables("邮件打印").LoadFilter = ""
DataTables("信封打印系统").LoadFilter = ""
End If
DataTables("合同录入系统").Load
DataTables("理财合同登记").Load
DataTables("酒会登记").Load
DataTables("旅游登记").Load
DataTables("收款收据").Load
DataTables("我的意向客户").Load
DataTables("我的客户").load
DataTables("业务员信息表").load
DataTables("邮件打印").load
DataTables("信封打印系统").load