MS clswindream entfernt Umstieg auf Modulwindream
This commit is contained in:
@@ -11,23 +11,22 @@ Public Class frmWM_EntityImport
|
||||
|
||||
Private Sub frmWD_EntityImport_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
Me.txtEntityString.Text = CURRENT_ENTITYSTRING
|
||||
If clsWindream.SESSION_CREATED = True Then
|
||||
If WMMOD.SessionReconnect Then
|
||||
ObjektTypenEintragen()
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
End Sub
|
||||
Private Sub ObjektTypenEintragen()
|
||||
Try
|
||||
Dim oDokumentTyp As WINDREAMLib.WMObject
|
||||
' Combobox leeren
|
||||
Me.cmbObjekttyp.Items.Clear()
|
||||
' alle Objekttypen durchlaufen
|
||||
For Each oDokumentTyp In clsWD_GET.GetObjecttypesAsObjects
|
||||
For Each oDokumentTyp As String In WMMOD.ObjectTypes
|
||||
' und in die Combobox eintragen
|
||||
Me.cmbObjekttyp.Items.Add(oDokumentTyp.aName)
|
||||
Me.cmbObjekttyp.Items.Add(oDokumentTyp)
|
||||
Next
|
||||
Catch ex As Exception
|
||||
MsgBox("Fehlernachricht:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Fehler beim Eintragen der Objekttypen")
|
||||
@@ -139,42 +138,42 @@ Public Class frmWM_EntityImport
|
||||
End Sub
|
||||
Private Function WINDREAM_IMPORT()
|
||||
Try
|
||||
clsWindream.MY_WDOBJECTTYPE = Me.cmbObjekttyp.Text
|
||||
WMOBJECTTYPE = Me.cmbObjekttyp.Text
|
||||
Dim streamresult = clsWD_SET.Stream_File(LOCAL_IMPORTFILE, LOCAL_TARGET_PATH)
|
||||
'Dim type = streamresult.GetType
|
||||
If streamresult = True Then
|
||||
Dim indexierung_erfolgreich As Boolean = False
|
||||
|
||||
'den Entity-Key auslesen
|
||||
Dim sql As String = "Select Top 1 * from TBPMO_WD_OBJECTTYPE where Upper(object_type) = Upper('" & clsWindream.MY_WDOBJECTTYPE & "')"
|
||||
Dim sql As String = "Select Top 1 * from TBPMO_WD_OBJECTTYPE where Upper(object_type) = Upper('" & WMOBJECTTYPE & "')"
|
||||
Dim dt As DataTable = MYDB_ECM.GetDatatable(sql)
|
||||
If Not dt Is Nothing Then
|
||||
If dt.Rows.Count = 1 Then
|
||||
Dim indexname = dt.Rows(0).Item("IDXNAME_ENTITYID").ToString
|
||||
Dim idxvalue = CURRENT_ENTITY_ID
|
||||
LOGGER.Debug("Entity-ID: " & idxvalue.ToString, False)
|
||||
indexierung_erfolgreich = clsWD_SET.IndexFile(CURRENT_FILEIN_WD, indexname, idxvalue, clsWindream.MY_WDOBJECTTYPE)
|
||||
indexierung_erfolgreich = clsWD_SET.IndexFile(CURRENT_FILEIN_WD, indexname, idxvalue, WMOBJECTTYPE)
|
||||
If indexierung_erfolgreich = False Then
|
||||
MsgBox("Error in indexing file Entity - See log", MsgBoxStyle.Critical)
|
||||
End If
|
||||
indexname = dt.Rows(0).Item("IDXNAME_PARENTID").ToString
|
||||
idxvalue = CURRENT_PARENT_ENTITY_ID
|
||||
LOGGER.Debug("Parent-ID: " & idxvalue.ToString, False)
|
||||
indexierung_erfolgreich = clsWD_SET.IndexFile(CURRENT_FILEIN_WD, indexname, idxvalue, clsWindream.MY_WDOBJECTTYPE)
|
||||
indexierung_erfolgreich = clsWD_SET.IndexFile(CURRENT_FILEIN_WD, indexname, idxvalue, WMOBJECTTYPE)
|
||||
If indexierung_erfolgreich = False Then MsgBox("Error in indexing file Parent-ID - See log", MsgBoxStyle.Critical)
|
||||
'###
|
||||
'den Record-Key auslesen
|
||||
indexname = dt.Rows(0).Item("IDXNAME_PARENTID").ToString
|
||||
idxvalue = CURRENT_RECORD_ID
|
||||
LOGGER.Debug("Record-ID: " & idxvalue.ToString, False)
|
||||
indexierung_erfolgreich = clsWD_SET.IndexFile(CURRENT_FILEIN_WD, indexname, idxvalue, clsWindream.MY_WDOBJECTTYPE)
|
||||
indexierung_erfolgreich = clsWD_SET.IndexFile(CURRENT_FILEIN_WD, indexname, idxvalue, WMOBJECTTYPE)
|
||||
If indexierung_erfolgreich = False Then MsgBox("Unexpected Error in indexing file Record-ID - See log", MsgBoxStyle.Critical)
|
||||
|
||||
'den Doctype-Key auslesen
|
||||
indexname = dt.Rows(0).Item("IDXNAME_DOCTYPE").ToString
|
||||
idxvalue = CURRENT_DOKARTSTRING
|
||||
LOGGER.Debug("Doctype: " & idxvalue.ToString, False)
|
||||
indexierung_erfolgreich = clsWD_SET.IndexFile(CURRENT_FILEIN_WD, indexname, idxvalue, clsWindream.MY_WDOBJECTTYPE)
|
||||
indexierung_erfolgreich = clsWD_SET.IndexFile(CURRENT_FILEIN_WD, indexname, idxvalue, WMOBJECTTYPE)
|
||||
If indexierung_erfolgreich = False Then MsgBox("Unexpected Error in indexing file Doctype - See log", MsgBoxStyle.Critical)
|
||||
'####
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user