If _usergroup.Contains("管理员组") Then
ssfx.ComboList="总校|" & DataTables("分校").SQLGetComboListString("分校名称")
fxlb.ComboList= DataTables("分校").SQLGetComboListString("分校名称")
jztj=""
ElseIf _usergroup.Contains("权益组")
Dim Multi As String = DataTables("职员表").SQLFind("工号=\'" & _userzhanghao & "\'")("所属校区")
MessageBox.show(multi)
Dim Values() As String
Values = Multi.split("|")
For i As Integer = 0 To Values.Length - 1
If i > 0 Then
MessageBox.show("1")
jztj = jztj & " OrElse "
End If
jztj = jztj & "所属校区 Like \' % " & Values(i) & " % \'"
Next
MessageBox.show(jztj)
Dim dr As DataRow
dr=DataTables("职员表").SQLFind("工号=\'" & _username & "\'")
If dr IsNot Nothing Then \'如果找到的话
fxlb.ComboList=dr("所属校区")
ssfx.ComboList=dr("所属校区")
End If
Else
MessageBox.show("您无此管理权限!","提示")
Return
End If
DataTables("职员表").LoadFilter=jztj
DataTables("职员表").Load
此主题相关图片如下:qq图片20180103194758.png
Tables(e.form.name & "_职员列表").AutoSizeCols
Tables(e.form.name & "_职员列表").Cols.Frozen=2