Modules.Interfaces: Neues DB-Feld ItemType hinzugefügt

This commit is contained in:
PitzM 2025-01-28 14:36:52 +01:00
parent 3e2606a582
commit b7c172c382
2 changed files with 17 additions and 3 deletions

View File

@ -30,6 +30,8 @@ Public Class PropertyValues
Public Description As String Public Description As String
Public Value As String Public Value As String
Public XMLPath As String Public XMLPath As String
Public ItemType As Integer = 0
End Class End Class
Public Class MissingProperty Public Class MissingProperty
@ -109,6 +111,7 @@ Public Class PropertyValues
Dim oIsRequired As Boolean = oColumn.Key.IsRequired Dim oIsRequired As Boolean = oColumn.Key.IsRequired
Dim oPropertyDescription As String = oColumn.Key.Description Dim oPropertyDescription As String = oColumn.Key.Description
Dim oPropertyPath As String = oColumn.Key.XMLPath Dim oPropertyPath As String = oColumn.Key.XMLPath
Dim oItemType As Integer = oColumn.Key.ItemType
Dim oRowCounter = oRowIndex + oGlobalGroupCounter + 1 Dim oRowCounter = oRowIndex + oGlobalGroupCounter + 1
@ -144,7 +147,8 @@ Public Class PropertyValues
.TableName = oTableName, .TableName = oTableName,
.TableColumn = oTableColumn, .TableColumn = oTableColumn,
.IsRequired = oIsRequired, .IsRequired = oIsRequired,
.XMLPath = oPropertyPath .XMLPath = oPropertyPath,
.ItemType = oItemType
}) })
Next Next
Next Next
@ -162,6 +166,7 @@ Public Class PropertyValues
Dim oTableName = oItem.Value.TableName Dim oTableName = oItem.Value.TableName
Dim oIsRequired = oItem.Value.IsRequired Dim oIsRequired = oItem.Value.IsRequired
Dim oDescription = oItem.Value.Description Dim oDescription = oItem.Value.Description
Dim oItemType = oItem.Value.ItemType
Try Try
oPropertyValueList = GetPropValue(pDocument, oItem.Key) oPropertyValueList = GetPropValue(pDocument, oItem.Key)
@ -225,7 +230,8 @@ Public Class PropertyValues
.TableName = oTableName, .TableName = oTableName,
.TableColumn = oTableColumn, .TableColumn = oTableColumn,
.IsRequired = oIsRequired, .IsRequired = oIsRequired,
.XMLPath = oPropertyPath .XMLPath = oPropertyPath,
.ItemType = oItemType
}) })
Next Next
@ -304,7 +310,6 @@ Public Class PropertyValues
Return oResults Return oResults
End If End If
Next Next
Return New List(Of Object) From {Obj} Return New List(Of Object) From {Obj}

View File

@ -16,4 +16,13 @@
''' XML Pfad, für Anzeige in Ablehnungsmail ''' XML Pfad, für Anzeige in Ablehnungsmail
''' </summary> ''' </summary>
Public XMLPath As String Public XMLPath As String
''' <summary>
''' (Daten-)Typ des Knoten
''' 0 = Default / Text
''' 1 = Datum
''' 2 = Gleitkomma
''' 3 = Memo-Feld
''' </summary>
Public ItemType As Integer
End Class End Class