EDMI: Update Service and Client to accept IDBDoctypeId instead of Business entity
This commit is contained in:
@@ -64,7 +64,7 @@ Namespace Methods.GlobalIndexer.ImportFile
|
||||
Dim oNewFile As New NewFile.NewFileMethod(LogConfig, DatabaseIDB, DatabaseECM, GlobalState)
|
||||
Dim oResponse = oNewFile.Run(New NewFile.NewFileRequest With {
|
||||
.File = pData.File,
|
||||
.BusinessEntity = pData.BusinessEntity,
|
||||
.IDBDoctypeId = pData.IDBDoctypeId,
|
||||
.KindType = pData.KindType,
|
||||
.StoreName = pData.StoreName,
|
||||
.User = User
|
||||
|
||||
@@ -19,10 +19,10 @@ Namespace Methods.GlobalIndexer.ImportFile
|
||||
Public Property ProfileId As Integer
|
||||
|
||||
''' <summary>
|
||||
''' The business entity of the file, ex DEFAULT
|
||||
''' The Document Type of the file, ex. IncomingInvoice
|
||||
''' </summary>
|
||||
<DataMember>
|
||||
Public Property BusinessEntity As String
|
||||
Public Property IDBDoctypeId As String
|
||||
|
||||
''' <summary>
|
||||
''' The kind of object to be created, ex. DOC
|
||||
|
||||
@@ -28,7 +28,7 @@ Namespace Methods.IDB.NewFile
|
||||
|
||||
Try
|
||||
|
||||
Dim oObjectId = Helpers.NewObjectIdWithTransaction(pData.KindType, pData.BusinessEntity, pData.User.UserName, Connection, Transaction)
|
||||
Dim oObjectId = Helpers.NewObjectIdWithTransaction(pData.KindType, pData.IDBDoctypeId, pData.User.UserName, Connection, Transaction)
|
||||
If oObjectId = 0 Then
|
||||
LogAndThrow("Could not create new ObjectId!")
|
||||
End If
|
||||
|
||||
@@ -18,7 +18,7 @@ Namespace Methods.IDB.NewFile
|
||||
''' The business entity of the file, ex DEFAULT
|
||||
''' </summary>
|
||||
<DataMember>
|
||||
Public Property BusinessEntity As String
|
||||
Public Property IDBDoctypeId As Long
|
||||
|
||||
''' <summary>
|
||||
''' The kind of object to be created, ex. DOC
|
||||
|
||||
@@ -83,7 +83,7 @@ Namespace Methods.IDB.UpdateFile
|
||||
Dim oNewFileMethod As New NewFile.NewFileMethod(LogConfig, DatabaseIDB, DatabaseECM, GlobalState)
|
||||
Dim oNewFileRequest As New NewFile.NewFileRequest With {
|
||||
.File = pData.File,
|
||||
.BusinessEntity = oBusinessEntity,
|
||||
.IDBDoctypeId = oBusinessEntity,
|
||||
.KindType = oKind,
|
||||
.StoreName = oStore,
|
||||
.User = pData.User
|
||||
|
||||
Reference in New Issue
Block a user