fix numbering of group counts
This commit is contained in:
parent
0878c02ace
commit
d3d669cf3a
@ -238,6 +238,9 @@ Public Class ImportZUGFeRDFiles
|
|||||||
For Each oFile In oFileGroupFiles
|
For Each oFile In oFileGroupFiles
|
||||||
Dim oDocument As CrossIndustryDocumentType
|
Dim oDocument As CrossIndustryDocumentType
|
||||||
|
|
||||||
|
' Start a global group counter for each file
|
||||||
|
Dim oGlobalGroupCounter = 0
|
||||||
|
|
||||||
' Clear missing properties for the new file
|
' Clear missing properties for the new file
|
||||||
oMissingProperties = New List(Of String)
|
oMissingProperties = New List(Of String)
|
||||||
oCurrentFileCount += 1
|
oCurrentFileCount += 1
|
||||||
@ -372,7 +375,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
Dim oTableName As String = oColumn.Key.TableName
|
Dim oTableName As String = oColumn.Key.TableName
|
||||||
Dim oPropertyDescription As String = oColumn.Key.Description
|
Dim oPropertyDescription As String = oColumn.Key.Description
|
||||||
Dim oPropertyValue = oColumn.Value.Item(oRowIndex)
|
Dim oPropertyValue = oColumn.Value.Item(oRowIndex)
|
||||||
Dim oRowCounter = oRowIndex + 1
|
Dim oRowCounter = oRowIndex + oGlobalGroupCounter + 1
|
||||||
|
|
||||||
_logger.Debug("Processing property {0}.", oPropertyDescription)
|
_logger.Debug("Processing property {0}.", oPropertyDescription)
|
||||||
|
|
||||||
@ -414,6 +417,8 @@ Public Class ImportZUGFeRDFiles
|
|||||||
_firebird.ExecuteNonQueryWithConnection(oCommand, oConnection, Firebird.TransactionMode.ExternalTransaction, oTransaction)
|
_firebird.ExecuteNonQueryWithConnection(oCommand, oConnection, Firebird.TransactionMode.ExternalTransaction, oTransaction)
|
||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
oGlobalGroupCounter += oRowCount
|
||||||
Next
|
Next
|
||||||
|
|
||||||
' Iterate through default properties
|
' Iterate through default properties
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user