If user.isrole("部门预算") And User.Group = "CNC部" Then
DataTables("预算总表").LoadFilter = "[预算年份] >= " & d1.year & " And [预算年份] <= " & d2.year & " and [预算部门] ='CNC部'"
DataTables("预算细分").LoadFilter = " [预算年份] >= " & d1.year & " And [预算年份] <= " & d2.year & "And [预算部门] = 'CNC部'"
ElseIf user.isrole("部门预算") And User.Group = "生产部" Then
DataTables("预算总表").LoadFilter = "[预算年份] >= " & d1.year & " And [预算年份] <= " & d2.year & " And [预算部门] = '生产部'"
DataTables("预算细分").LoadFilter = "[预算年份] >= " & d1.year & " And [预算年份] <= " & d2.year & " And [预算部门] = '生产部'"
ElseIf user.isrole("部门预算") And User.Group = "抛光部" Then
DataTables("预算总表").LoadFilter = "[预算年份] >= " & d1.year & " And [预算年份] <= " & d2.year & " And [预算部门] = '抛光部'"
DataTables("预算细分").LoadFilter = "[预算年份] >= " & d1.year & " And [预算年份] <= " & d2.year & " And [预算部门] = '抛光部'"
Else
DataTables("预算总表").LoadFilter = "[_Identify] Is Null"
DataTables("预算细分").LoadFilter = "[_Identify] Is Null"
DataTables("预算使用").LoadFilter = "[_Identify] Is Null"
End If