'shouquan导航分组 Dim dt As DataTable = DataTables("授权") Dim dr As DataRow dr = dt.Find("导航分组 = '" & args(0) & "' And 功能模块 Is Null And 流程 Is Null") If dr.IsNull("用户") = False Then Dim nms() As String = dr("用户").Split(",") For Each nm As String In nms If nm = _UserGroup Then '如果授权用户包括登录用户所属的分组或其用户名 Return True '返回True End If Next End If Return False
'shouquan功能模块 Dim dt As DataTable = DataTables("授权") Dim dr As DataRow dr = dt.Find("导航分组 = '" & args(0) & "' And 功能模块 = '" & args(1) & "' And 流程 Is Null") If dr.IsNull("用户") = False Then Dim nms() As String = dr("用户").Split(",") For Each nm As String In nms If nm = _UserGroup Then '如果授权用户包括登录用户所属的分组或其用户名 Return True '返回True End If Next End If Return False