Jobs: Write Used XML Schema to Database
This commit is contained in:
parent
a1609ee3c7
commit
3987634848
@ -548,7 +548,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
'Next
|
'Next
|
||||||
|
|
||||||
' DataTable vorbereiten
|
' DataTable vorbereiten
|
||||||
Dim oDataTable As DataTable = FillDataTable(pMessageId, oCheckResult, oDocument.Specification)
|
Dim oDataTable As DataTable = FillDataTable(pMessageId, oCheckResult, oDocument.Specification, oDocument.UsedXMLSchema)
|
||||||
|
|
||||||
' ColumnList initialisieren
|
' ColumnList initialisieren
|
||||||
Dim oColumnNames As List(Of String) = New List(Of String) From {
|
Dim oColumnNames As List(Of String) = New List(Of String) From {
|
||||||
@ -578,7 +578,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function FillDataTable(pMessageId As String, pCheckResult As PropertyValues.CheckPropertyValuesResult, pSpecification As String) As DataTable
|
Private Function FillDataTable(pMessageId As String, pCheckResult As PropertyValues.CheckPropertyValuesResult, pSpecification As String, pUsedXMLSchema As String) As DataTable
|
||||||
|
|
||||||
Dim oDataTable As DataTable = New DataTable()
|
Dim oDataTable As DataTable = New DataTable()
|
||||||
oDataTable.Columns.Add(New DataColumn("REFERENCE_GUID", GetType(String)))
|
oDataTable.Columns.Add(New DataColumn("REFERENCE_GUID", GetType(String)))
|
||||||
@ -600,6 +600,17 @@ Public Class ImportZUGFeRDFiles
|
|||||||
_logger.Debug("Mapping Property [ZUGFERD_SPECIFICATION] with value [{0}]", pSpecification)
|
_logger.Debug("Mapping Property [ZUGFERD_SPECIFICATION] with value [{0}]", pSpecification)
|
||||||
oDataTable.Rows.Add(oFirstRow)
|
oDataTable.Rows.Add(oFirstRow)
|
||||||
|
|
||||||
|
' Zweite Zeile enthält das verwendete XML Schema
|
||||||
|
Dim oSecondRow As DataRow = oDataTable.NewRow()
|
||||||
|
oSecondRow("REFERENCE_GUID") = pMessageId
|
||||||
|
oSecondRow("ITEM_DESCRIPTION") = "ZUGFeRDXMLSchema"
|
||||||
|
oSecondRow("ITEM_VALUE") = pUsedXMLSchema
|
||||||
|
oSecondRow("GROUP_COUNTER") = 0
|
||||||
|
oSecondRow("SPEC_NAME") = "ZUGFERD_XML_SCHEMA"
|
||||||
|
oSecondRow("IS_REQUIRED") = False
|
||||||
|
|
||||||
|
_logger.Debug("Mapping Property [ZUGFERD_XML_SCHEMA] with value [{0}]", pUsedXMLSchema)
|
||||||
|
oDataTable.Rows.Add(oSecondRow)
|
||||||
|
|
||||||
For Each oProperty In pCheckResult.ValidProperties
|
For Each oProperty In pCheckResult.ValidProperties
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user