Improve ZUGFeRD Test
This commit is contained in:
parent
d8bc87fd24
commit
573912ced5
@ -129,7 +129,9 @@ Public Class Form1
|
|||||||
If oDialogResult = DialogResult.OK Then
|
If oDialogResult = DialogResult.OK Then
|
||||||
Dim oDoc = _zugferd.ValidateZUGFeRDFileWithGDPicture(OpenFileDialog1.FileName)
|
Dim oDoc = _zugferd.ValidateZUGFeRDFileWithGDPicture(OpenFileDialog1.FileName)
|
||||||
Dim oResult = _zugferd.SerializeZUGFeRDDocument(oDoc)
|
Dim oResult = _zugferd.SerializeZUGFeRDDocument(oDoc)
|
||||||
Console.WriteLine()
|
|
||||||
|
WriteLog("Specification: " & oResult.Specification)
|
||||||
|
WriteLog("Embedded File Name: " & oResult.DataFileName)
|
||||||
|
|
||||||
Dim oSpecification = oResult.Specification
|
Dim oSpecification = oResult.Specification
|
||||||
|
|
||||||
@ -143,11 +145,17 @@ Public Class Form1
|
|||||||
|
|
||||||
Dim oResult2 = _zugferd.PropertyValues.CheckPropertyValues(oResult.SchemaObject, oPropertyMap, "test")
|
Dim oResult2 = _zugferd.PropertyValues.CheckPropertyValues(oResult.SchemaObject, oPropertyMap, "test")
|
||||||
|
|
||||||
|
WriteLog("Valid Properties: [{0}]", oResult2.ValidProperties.Count)
|
||||||
|
For Each Prop In oResult2.ValidProperties
|
||||||
|
WriteLog("Property: [{0}] = [{1}]", Prop.Description, Prop.Value)
|
||||||
|
Next
|
||||||
|
|
||||||
|
WriteLog("Missing Properties: [{0}]", oResult2.MissingProperties.Count)
|
||||||
For Each Prop In oResult2.MissingProperties
|
For Each Prop In oResult2.MissingProperties
|
||||||
WriteLog("Missing Property: [{0}]", Prop)
|
WriteLog("Missing Property: [{0}]", Prop)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
Console.WriteLine()
|
WriteLog("--------------------------------")
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user