MS_04.01
This commit is contained in:
@@ -218,6 +218,8 @@ Public Class ClassWindream
|
||||
oConnect = CreateObject("Windream.WMConnect")
|
||||
'MsgBox("windrem init 'ed")
|
||||
Catch ex As Exception
|
||||
Dim msg = "Error in CreateObject(Windream.WMSession) - Err.Number: " & Err.Number & vbNewLine & Err.Description
|
||||
ClassLogger.Add(msg, True)
|
||||
Return False
|
||||
End Try
|
||||
|
||||
@@ -270,6 +272,8 @@ Public Class ClassWindream
|
||||
' Ordnertypen ausgelesen werden
|
||||
oDokumentTypen = oSession.GetWMObjectTypes(WINDREAMLib.WMEntity.WMEntityDocument)
|
||||
Catch ex As Exception
|
||||
Dim msg = "Error in oSession.SwitchEvents - Err.Number: " & Err.Number & vbNewLine & Err.Description
|
||||
ClassLogger.Add(msg, True)
|
||||
Return False
|
||||
End Try
|
||||
|
||||
@@ -334,7 +338,7 @@ Public Class ClassWindream
|
||||
End Function
|
||||
Public Function GetTypeOfIndex(ByVal indexname As String) As Integer
|
||||
Try
|
||||
Dim oAttribute = Me.oSession.GetWMObjectByName(WINDREAMLib.WMEntity.WMEntityAttribute, indexname)
|
||||
Dim oAttribute = oSession.GetWMObjectByName(WINDREAMLib.WMEntity.WMEntityAttribute, indexname)
|
||||
Dim vType = oAttribute.getVariableValue("dwAttrType")
|
||||
Return vType
|
||||
Catch ex As Exception
|
||||
@@ -397,7 +401,7 @@ Public Class ClassWindream
|
||||
Public Function GetObjecttypeByName(ByVal objekttypName As String) As WMObject
|
||||
Try
|
||||
' alle Objekttypen auslesen
|
||||
Dim oObjectTypes As WMObjects = Me.oSession.GetWMObjectTypes(WINDREAMLib.WMEntity.WMEntityDocument)
|
||||
Dim oObjectTypes As WMObjects = oSession.GetWMObjectTypes(WINDREAMLib.WMEntity.WMEntityDocument)
|
||||
|
||||
' alle Objekttypen durchlaufen und nach dem mit dem angegebenen Namen suchen
|
||||
For Each oObjectType As WMObject In oObjectTypes
|
||||
@@ -2175,7 +2179,8 @@ Public Class ClassWindream
|
||||
End If
|
||||
|
||||
Dim oWMObject As WINDREAMLib.WMObject
|
||||
oWMObject = oSession.GetWMObjectByPath(WMEntityDocumentAndMap, filepath.Substring(2))
|
||||
Dim file = filepath.Substring(2)
|
||||
oWMObject = oSession.GetWMObjectByPath(WINDREAMLib.WMEntity.WMEntityDocument, filepath.Substring(2))
|
||||
If Not IsNothing(oWMObject) Then
|
||||
Dim AccessRightsObject
|
||||
AccessRightsObject = oWMObject.GetWMObjectRelationByName(REL_Document_AccessRight)
|
||||
|
||||
Reference in New Issue
Block a user