EDMI: Add GetDocumentInfo

This commit is contained in:
Jonathan Jenne
2020-12-22 16:28:06 +01:00
parent 2800169251
commit 62ac7860ef
14 changed files with 379 additions and 267 deletions

View File

@@ -210,16 +210,29 @@ Public Class frmDocumentResultList
End Select
End Sub
Private Sub GridView_FocusedRowChanged(sender As GridView, e As FocusedRowChangedEventArgs)
Private Async Sub GridView_FocusedRowChanged(sender As GridView, e As FocusedRowChangedEventArgs)
_ActiveRowHandle = e.FocusedRowHandle
DocumentViewer1.CloseDocument()
If _IsLegacy Then
If e.FocusedRowHandle >= 0 Then
DocumentViewer1.CloseDocument()
If e.FocusedRowHandle >= 0 Then
Dim oRow = sender.GetDataRow(e.FocusedRowHandle)
Dim oFullPath = oRow.Item(COLUMN_FILEPATH)
Dim oRow = sender.GetDataRow(e.FocusedRowHandle)
Dim oFullPath = oRow.Item(COLUMN_FILEPATH)
DocumentViewer1.LoadFile(oFullPath)
End If
Else
If e.FocusedRowHandle >= 0 Then
DocumentViewer1.CloseDocument()
Dim oRow = sender.GetDataRow(e.FocusedRowHandle)
Dim oObjectId = oRow.Item(COLUMN_DOCID)
Dim oInfo = Await _IDBClient.GetDocumentInfo(_Environment.User.UserId, oObjectId)
End If
DocumentViewer1.LoadFile(oFullPath)
End If
End Sub