DAtabase integriert
This commit is contained in:
@@ -38,7 +38,7 @@ Public Class ClassWDRights
|
||||
Try
|
||||
MSG_RESULT = ""
|
||||
LOGGER.Debug(String.Format("Init ClassWDRights started - " & Now & " ..."))
|
||||
Dim DT_KONFIG As DataTable = ClassDatabase.Return_Datatable("SELECT * FROM TBPMO_SERVICE_RIGHT_CONFIG WHERE GUID = 1")
|
||||
Dim DT_KONFIG As DataTable = MYDB_ECM.GetDatatable("SELECT * FROM TBPMO_SERVICE_RIGHT_CONFIG WHERE GUID = 1")
|
||||
AD_DOMAIN = DT_KONFIG.Rows(0).Item("AD_DOMAIN")
|
||||
AD_USER = DT_KONFIG.Rows(0).Item("AD_USER")
|
||||
WD_RIGHT_ADMIN = DT_KONFIG.Rows(0).Item("WD_RIGHT")
|
||||
@@ -91,9 +91,9 @@ Public Class ClassWDRights
|
||||
If Not IsNothing(oSession) Then
|
||||
LOGGER.Debug("Session created.")
|
||||
Dim sql = String.Format("SELECT * FROM [dbo].[FNPMO_GET_RIGHTS_FOR_DOC] ({0}) where USER_OR_GROUP = 'USER'", doc_id)
|
||||
DT_USER_RIGHT = clsDatabase.Return_Datatable(sql)
|
||||
DT_USER_RIGHT = MYDB_ECM.GetDatatable(sql)
|
||||
sql = String.Format("SELECT * FROM [dbo].[FNPMO_GET_RIGHTS_FOR_DOC] ({0}) where USER_OR_GROUP = 'GROUP'", doc_id)
|
||||
DT_GROUP_RIGHT = clsDatabase.Return_Datatable(sql)
|
||||
DT_GROUP_RIGHT = MYDB_ECM.GetDatatable(sql)
|
||||
If IsNothing(DT_USER_RIGHT) Then
|
||||
Dim msg = "Error while receiving rights for DocID"
|
||||
clsLogger.Add(msg)
|
||||
|
||||
Reference in New Issue
Block a user