This commit is contained in:
2020-02-10 16:26:28 +01:00
parent 2b9e0e7ef4
commit ddb694c8e8
35 changed files with 259700 additions and 46 deletions

View File

@@ -369,13 +369,13 @@ Public Class ClassNIWindream
convertValue = CInt(value)
_int = True
Case WMObjectVariableValueTypeFloat
' _Logger.Debug("Typ des windream-Indexes: WMObjectVariableValueTypeFloat")
_Logger.Debug("Typ des windream-Indexes: WMObjectVariableValueTypeFloat")
value = value.ToString.Replace(" ", "")
convertValue = CDbl(value)
Case WMObjectVariableValueTypeFixedPoint
'_Logger.Debug("Typ des windream-Indexes: WMObjectVariableValueTypeFixedPoint")
value = value.ToString.Replace(" ", "")
convertValue = CDbl(value)
convertValue = value
_dbl = True
Case WMObjectVariableValueTypeBoolean
'_Logger.Debug("Typ des windream-Indexes: WMObjectVariableValueTypeBoolean")
@@ -388,7 +388,7 @@ Public Class ClassNIWindream
convertValue = value
Case WMObjectVariableValueTypeTimeStamp
'_Logger.Debug("Typ des windream-Indexes: WMObjectVariableValueTypeTimeStamp")
convertValue = CDbl(value)
convertValue = CDate(value)
Case WMObjectVariableValueTypeCurrency
' _Logger.Debug(">> Typ des windream-Indexes: WMObjectVariableValueTypeCurrency")
'Wegen currency muß ein eigenes Objekt vom typ Variant erzeugt werden
@@ -995,6 +995,7 @@ Public Class ClassNIWindream
End Try
End Function
Public Function NEW_MOVE_FILE(targetpath As String, sourcepath As String, oMethod As String) As Boolean
Dim oWMFile As WINDREAMLib.WMObject
Try
If My.Settings.vLogErrorsonly = False Then
_Logger.Info($"targetpath ({targetpath})")
@@ -1015,7 +1016,7 @@ Public Class ClassNIWindream
sourcepath = sourcepath.Replace("W:\", "\")
Const WMEntityDocument = 1
Dim IndexwertAusWindream As Object = Nothing
Dim oWMFile As WINDREAMLib.WMObject
oWMFile = oWMSession.GetWMObjectByPath(WMEntityDocument, sourcepath)
If oWMFile.lock Then
oWMFile.aPath = targetpath
@@ -1032,6 +1033,10 @@ Public Class ClassNIWindream
End If
Catch ex As Exception
_Logger.Error(ex)
If Not IsNothing(oWMFile) Then
oWMFile.unlock()
End If
Return False
End Try
End Function