EDMI: Include Doctypes in ClientConfig
This commit is contained in:
@@ -3,6 +3,7 @@ Imports DigitalData.Modules.EDMI.API
|
||||
Imports DigitalData.Modules.EDMI.API.Client
|
||||
Imports DigitalData.Modules.EDMI.API.EDMIServiceReference
|
||||
Imports DigitalData.Modules.Logging
|
||||
Imports DigitalData.Modules.Base.IDB
|
||||
Imports DigitalData.Modules.ZooFlow.Constants
|
||||
Imports DigitalData.Modules.ZooFlow.State
|
||||
|
||||
@@ -41,24 +42,29 @@ Namespace DocumentResultList
|
||||
Private Function Load_FromWindream(pObjectId As Long, pFullPath As String) As Document
|
||||
Dim oFileInfo As New FileInfo(pFullPath)
|
||||
Dim oResultDocumentInfo = New Document(pObjectId) With {
|
||||
.Contents = Load_FromDisk(pFullPath),
|
||||
.AccessRight = Rights.AccessRight.FULL,
|
||||
.FullPath = pFullPath,
|
||||
.Extension = oFileInfo.Extension.Substring(1)
|
||||
}
|
||||
.Contents = Load_FromDisk(pFullPath),
|
||||
.AccessRight = Rights.AccessRight.FULL,
|
||||
.FullPath = pFullPath,
|
||||
.Extension = oFileInfo.Extension.Substring(1)
|
||||
}
|
||||
|
||||
Return oResultDocumentInfo
|
||||
End Function
|
||||
|
||||
Private Function Load_FromIDB(pObjectId As Long) As Document
|
||||
Try
|
||||
Dim oDocumentInfo As Client.DocumentInfo = Client.GetDocumentInfo(User.UserId, pObjectId)
|
||||
Dim oDocumentInfo As DocumentInfo = Client.GetDocumentInfo(User.UserId, pObjectId)
|
||||
Dim oFileInfo As New FileInfo(oDocumentInfo.FullPath)
|
||||
|
||||
' Load Doctype Attribute
|
||||
Dim oDoctype As VariableValue = Client.GetVariableValue(pObjectId, Attributes.ATTRIBUTE_DOCTYPE)
|
||||
|
||||
Dim oResultDocumentInfo As New Document(pObjectId) With {
|
||||
.Contents = Load_FromDisk(oDocumentInfo.FullPath),
|
||||
.AccessRight = oDocumentInfo.AccessRight,
|
||||
.FullPath = oDocumentInfo.FullPath,
|
||||
.Extension = oFileInfo.Extension.Substring(1)
|
||||
.Extension = oFileInfo.Extension.Substring(1),
|
||||
.DocumentType = oDoctype.Value
|
||||
}
|
||||
|
||||
Return oResultDocumentInfo
|
||||
@@ -75,12 +81,16 @@ Namespace DocumentResultList
|
||||
Return Nothing
|
||||
End If
|
||||
|
||||
' Load Doctype Attribute
|
||||
Dim oDoctype As VariableValue = Client.GetVariableValue(pObjectId, Attributes.ATTRIBUTE_DOCTYPE)
|
||||
|
||||
Dim oResultDocumentInfo As New Document(pObjectId) With {
|
||||
.Contents = oFileObject._FileContents,
|
||||
.Extension = oFileObject._FileExtension,
|
||||
.AccessRight = Rights.AccessRight.FULL,
|
||||
.FileHash = oFileObject._FileHash,
|
||||
.FullPath = Nothing
|
||||
.FullPath = Nothing,
|
||||
.DocumentType = oDoctype.Value
|
||||
}
|
||||
|
||||
Return oResultDocumentInfo
|
||||
|
||||
Reference in New Issue
Block a user