Dim flag = User.group = "销售开票"
QAT.Items("返回系统菜单").Enabled = flag
QAT.Items("窗口管理").Enabled = flag
QAT.Items("数据源管理").Enabled = flag
Tables("JHS").DataTable.Load()
Tables("FAJHB").DataTable.Load()
If User.Group <>"销售开票" AndAlso User.Group <>"发运地磅" Then
DataTables("JHS").LoadFilter = "客户名 = \'" & User.Name & "\'"
DataTables("FAJHB").LoadFilter = "客户名 = \'" & User.Name & "\'"
Else
DataTables("JHS").LoadFilter =""
DataTables("FAJHB").LoadFilter =""
End If
If User.Group <> "发运地磅" Then
Tables("JHS").visible =True
Tables("KH").visible =True
Tables("FAJHB").visible =True
Else
Tables("JHS").visible =False
Tables("FAJHB").visible =True
Tables("KH").visible =False
End If
DataTables("FAJHB").LoadTop = "100 percent"
DataTables("JHS").LoadTop = "100 percent"