V 2.1.1
This commit is contained in:
parent
eb527fc619
commit
1f32baeb8d
@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.1.0.0")>
|
<Assembly: AssemblyVersion("2.1.1.0")>
|
||||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||||
|
|||||||
@ -67,8 +67,17 @@ Public Class frmMain
|
|||||||
TBDD_USERTableAdapter.Connection.ConnectionString = MyConnectionString
|
TBDD_USERTableAdapter.Connection.ConnectionString = MyConnectionString
|
||||||
TBDD_USER_MODULESTableAdapter.Connection.ConnectionString = MyConnectionString
|
TBDD_USER_MODULESTableAdapter.Connection.ConnectionString = MyConnectionString
|
||||||
|
|
||||||
Dim sql = String.Format("SELECT * FROM [dbo].[FNDD_LOGIN_USER_MODULE] ('{0}','UM',1)", Environment.UserName)
|
Dim oSql = String.Format("SELECT * FROM [dbo].[FNDD_LOGIN_USER_MODULE] ('{0}','UM',1)", Environment.UserName)
|
||||||
Dim DT_CHECKUSER_MODULE As DataTable = MyDatabase.GetDatatable(sql)
|
Dim DT_CHECKUSER_MODULE As DataTable
|
||||||
|
Try
|
||||||
|
DT_CHECKUSER_MODULE = MyDatabase.GetDatatable(oSql)
|
||||||
|
Catch ex As Exception
|
||||||
|
MyLogger.Warn($"Error Executing: FNDD_LOGIN_USER_MODULE: {ex.Message}")
|
||||||
|
MyLogger.Warn($"SQL so far: [{oSql}]")
|
||||||
|
Application.ExitThread()
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If DT_CHECKUSER_MODULE.Rows.Count = 0 Then
|
If DT_CHECKUSER_MODULE.Rows.Count = 0 Then
|
||||||
MsgBox($"Der Benutzer '{Environment.UserName}' ist nicht zur Benutzerverwaltung berechtigt. {vbCrLf & vbCrLf}Bitte kontaktieren Sie den Administrator, wenn dies ein Fehler ist.", MsgBoxStyle.Critical, "UserManager")
|
MsgBox($"Der Benutzer '{Environment.UserName}' ist nicht zur Benutzerverwaltung berechtigt. {vbCrLf & vbCrLf}Bitte kontaktieren Sie den Administrator, wenn dies ein Fehler ist.", MsgBoxStyle.Critical, "UserManager")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user