jj: Init Monorepo! :)

This commit is contained in:
Jonathan Jenne
2018-08-14 16:54:23 +02:00
parent 1a06d7ff67
commit f5f93b981f
47 changed files with 3061 additions and 0 deletions

24
EDMDesigner/ClassInit.vb Normal file
View File

@@ -0,0 +1,24 @@
Imports System.IO
Imports DD_FirebirdDLL
Public Class ClassInit
Public Shared Function Init_user()
Try
USER_USERNAME = Environment.UserName
Dim sql = String.Format("select FNGET_USER_ACCESS('edm','{0}') from rdb$database", USER_USERNAME)
Dim result = ClassDBFirebird.ExecuteScalar(sql, LOGGERFilePath)
sql = String.Format("SELECT * FROM VW_TBEDM_USER WHERE UPPER(LOGIN_NAME) = UPPER('{0}')", USER_USERNAME)
DT_USER = ClassDBFirebird.ReturnDatatable(sql, LOGGERFilePath)
If Not IsNothing(result) Then
If Not IsNothing(DT_USER) Then
USER_LANGUAGE = DT_USER.Rows(0).Item("LANGUAGE")
End If
Return result
Else
Return False
End If
Catch ex As Exception
End Try
End Function
End Class