diff --git a/ADMIN.sln b/ADMIN.sln
new file mode 100644
index 0000000..67c7d02
--- /dev/null
+++ b/ADMIN.sln
@@ -0,0 +1,97 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28307.106
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ADMIN", "UID\ADMIN.vbproj", "{6EB4D3A4-3CF2-4651-9AF9-AD5F727DF403}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ADMINUPDATER", "ADMINUPDATER\ADMINUPDATER.vbproj", "{2D061D63-7B47-4357-93C7-FB5FD0916068}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VERAGMonitoring", "VERAGMonitoring\VERAGMonitoring.vbproj", "{6C5CFB90-BE10-4824-997D-B494A7CFF565}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "RoutineManager", "initATLASAufschubkonten\RoutineManager.vbproj", "{BF2E4BDD-58D6-4ABF-B695-2B20835C0DE8}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VERAGMonitoringUPDATER", "VERAGMonitoringUPDATER\VERAGMonitoringUPDATER.vbproj", "{D18EDE7C-38E6-4FD7-BB97-A0C33483B47E}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ServerListender", "ServerListender\ServerListender.vbproj", "{FED651F8-E4EF-41D0-B68F-44FBC8F18593}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "DienstplanTV", "DienstplanTV\DienstplanTV.vbproj", "{1F008363-5FCF-49A2-A953-18DEFED4D3BE}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "MailSender", "MailSender\MailSender.vbproj", "{ED0BFDD3-71A2-48ED-BC29-3C9883A1A06F}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ATILLA_Speditionsbuch", "ATILLA_Speditionsbuch\ATILLA_Speditionsbuch.vbproj", "{2007DD34-7BB4-4A31-A6B9-BCE62BF0AFDA}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VERAG_PROG_ALLGEMEIN", "..\..\SDL\SDL\VERAG_PROG_ALLGEMEIN\VERAG_PROG_ALLGEMEIN.vbproj", "{A3B497BD-842C-4A2B-B398-ED1976849DF1}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "DAKOSY_Worker_lib", "DAKOSY_Worker\DAKOSY_Worker_lib.vbproj", "{50E8E49B-4FD9-4DD4-B159-BDC2B7D0E94F}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "TELOTEC_Worker_lib", "TELOTEK_Worker_lib\TELOTEC_Worker_lib.vbproj", "{5B947A66-009A-4BB6-B925-F84A01045095}"
+EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "MDM_Worker_lib", "MDM_Worker\MDM_Worker_lib.vbproj", "{2E4DBC09-E57B-4AC5-8554-6117D71F993B}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {6EB4D3A4-3CF2-4651-9AF9-AD5F727DF403}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6EB4D3A4-3CF2-4651-9AF9-AD5F727DF403}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6EB4D3A4-3CF2-4651-9AF9-AD5F727DF403}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6EB4D3A4-3CF2-4651-9AF9-AD5F727DF403}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2D061D63-7B47-4357-93C7-FB5FD0916068}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2D061D63-7B47-4357-93C7-FB5FD0916068}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2D061D63-7B47-4357-93C7-FB5FD0916068}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2D061D63-7B47-4357-93C7-FB5FD0916068}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6C5CFB90-BE10-4824-997D-B494A7CFF565}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6C5CFB90-BE10-4824-997D-B494A7CFF565}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6C5CFB90-BE10-4824-997D-B494A7CFF565}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6C5CFB90-BE10-4824-997D-B494A7CFF565}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BF2E4BDD-58D6-4ABF-B695-2B20835C0DE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BF2E4BDD-58D6-4ABF-B695-2B20835C0DE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BF2E4BDD-58D6-4ABF-B695-2B20835C0DE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BF2E4BDD-58D6-4ABF-B695-2B20835C0DE8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D18EDE7C-38E6-4FD7-BB97-A0C33483B47E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D18EDE7C-38E6-4FD7-BB97-A0C33483B47E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D18EDE7C-38E6-4FD7-BB97-A0C33483B47E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D18EDE7C-38E6-4FD7-BB97-A0C33483B47E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FED651F8-E4EF-41D0-B68F-44FBC8F18593}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FED651F8-E4EF-41D0-B68F-44FBC8F18593}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FED651F8-E4EF-41D0-B68F-44FBC8F18593}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FED651F8-E4EF-41D0-B68F-44FBC8F18593}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F008363-5FCF-49A2-A953-18DEFED4D3BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F008363-5FCF-49A2-A953-18DEFED4D3BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F008363-5FCF-49A2-A953-18DEFED4D3BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F008363-5FCF-49A2-A953-18DEFED4D3BE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {ED0BFDD3-71A2-48ED-BC29-3C9883A1A06F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ED0BFDD3-71A2-48ED-BC29-3C9883A1A06F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ED0BFDD3-71A2-48ED-BC29-3C9883A1A06F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ED0BFDD3-71A2-48ED-BC29-3C9883A1A06F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2007DD34-7BB4-4A31-A6B9-BCE62BF0AFDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2007DD34-7BB4-4A31-A6B9-BCE62BF0AFDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2007DD34-7BB4-4A31-A6B9-BCE62BF0AFDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2007DD34-7BB4-4A31-A6B9-BCE62BF0AFDA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A3B497BD-842C-4A2B-B398-ED1976849DF1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A3B497BD-842C-4A2B-B398-ED1976849DF1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A3B497BD-842C-4A2B-B398-ED1976849DF1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A3B497BD-842C-4A2B-B398-ED1976849DF1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {50E8E49B-4FD9-4DD4-B159-BDC2B7D0E94F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {50E8E49B-4FD9-4DD4-B159-BDC2B7D0E94F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {50E8E49B-4FD9-4DD4-B159-BDC2B7D0E94F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {50E8E49B-4FD9-4DD4-B159-BDC2B7D0E94F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5B947A66-009A-4BB6-B925-F84A01045095}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5B947A66-009A-4BB6-B925-F84A01045095}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5B947A66-009A-4BB6-B925-F84A01045095}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5B947A66-009A-4BB6-B925-F84A01045095}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2E4DBC09-E57B-4AC5-8554-6117D71F993B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2E4DBC09-E57B-4AC5-8554-6117D71F993B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2E4DBC09-E57B-4AC5-8554-6117D71F993B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2E4DBC09-E57B-4AC5-8554-6117D71F993B}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {6177B13E-756D-4EAA-B667-169EFF471EF0}
+ EndGlobalSection
+EndGlobal
diff --git a/ADMINUPDATER/ADMINUPDATER.vbproj b/ADMINUPDATER/ADMINUPDATER.vbproj
new file mode 100644
index 0000000..6b8de45
--- /dev/null
+++ b/ADMINUPDATER/ADMINUPDATER.vbproj
@@ -0,0 +1,168 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {2D061D63-7B47-4357-93C7-FB5FD0916068}
+ WinExe
+ ADMINUPDATER.My.MyApplication
+ ADMINUPDATER
+ ADMINUPDATER
+ 512
+ WindowsForms
+ v4.5
+
+
+ publish\
+ true
+ Disk
+ false
+ Foreground
+ 7
+ Days
+ false
+ false
+ true
+ 0
+ 1.0.0.%2a
+ false
+ false
+ true
+
+
+ AnyCPU
+ true
+ full
+ true
+ true
+ bin\Debug\
+ ADMINUPDATER.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+ false
+
+
+ AnyCPU
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ ADMINUPDATER.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+ false
+
+
+ On
+
+
+ Binary
+
+
+ Off
+
+
+ On
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ UPDATERfrm.vb
+
+
+ Form
+
+
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+ UPDATERfrm.vb
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
+ Always
+
+
+ Always
+
+
+
+
+ False
+ Microsoft .NET Framework 4.5 %28x86 and x64%29
+ true
+
+
+ False
+ .NET Framework 3.5 SP1 Client Profile
+ false
+
+
+ False
+ .NET Framework 3.5 SP1
+ false
+
+
+
+
+
\ No newline at end of file
diff --git a/ADMINUPDATER/ADMINUPDATER_Settings.txt b/ADMINUPDATER/ADMINUPDATER_Settings.txt
new file mode 100644
index 0000000..41dd839
--- /dev/null
+++ b/ADMINUPDATER/ADMINUPDATER_Settings.txt
@@ -0,0 +1 @@
+F:\Programme\ADMIN\
\ No newline at end of file
diff --git a/ADMINUPDATER/ADMINUPDATER_Version.txt b/ADMINUPDATER/ADMINUPDATER_Version.txt
new file mode 100644
index 0000000..389f774
--- /dev/null
+++ b/ADMINUPDATER/ADMINUPDATER_Version.txt
@@ -0,0 +1 @@
+4.0
\ No newline at end of file
diff --git a/ADMINUPDATER/App.config b/ADMINUPDATER/App.config
new file mode 100644
index 0000000..d1428ad
--- /dev/null
+++ b/ADMINUPDATER/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/ADMINUPDATER/My Project/Application.Designer.vb b/ADMINUPDATER/My Project/Application.Designer.vb
new file mode 100644
index 0000000..9d7829e
--- /dev/null
+++ b/ADMINUPDATER/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' Dieser Code wurde von einem Tool generiert.
+' Laufzeitversion:4.0.30319.42000
+'
+' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
+' der Code erneut generiert wird.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ 'HINWEIS: Diese Datei wird automatisch generiert. Ändern Sie sie nicht direkt. Zum Ändern
+ ' oder bei in dieser Datei auftretenden Buildfehlern wechseln Sie zum Projekt-Designer.
+ ' (Wechseln Sie dazu zu den Projekteigenschaften, oder doppelklicken Sie auf den Knoten "Mein Projekt" im
+ ' Projektmappen-Explorer). Nehmen Sie auf der Registerkarte "Anwendung" entsprechende Änderungen vor.
+ '
+ Partial Friend Class MyApplication
+
+ _
+ Public Sub New()
+ MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
+ Me.IsSingleInstance = false
+ Me.EnableVisualStyles = true
+ Me.SaveMySettingsOnExit = true
+ Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global.ADMINUPDATER.UPDATERfrm
+ End Sub
+ End Class
+End Namespace
diff --git a/ADMINUPDATER/My Project/Application.myapp b/ADMINUPDATER/My Project/Application.myapp
new file mode 100644
index 0000000..b194740
--- /dev/null
+++ b/ADMINUPDATER/My Project/Application.myapp
@@ -0,0 +1,10 @@
+
+
+ true
+ UPDATERfrm
+ false
+ 0
+ true
+ 0
+ true
+
\ No newline at end of file
diff --git a/ADMINUPDATER/My Project/AssemblyInfo.vb b/ADMINUPDATER/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..8751d10
--- /dev/null
+++ b/ADMINUPDATER/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' Allgemeine Informationen über eine Assembly werden über die folgenden
+' Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
+' die mit einer Assembly verknüpft sind.
+
+' Die Werte der Assemblyattribute überprüfen
+
+
+
+
+
+
+
+
+
+
+'Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
+
+
+' Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
+'
+' Hauptversion
+' Nebenversion
+' Buildnummer
+' Revision
+'
+' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
+' übernehmen, indem Sie "*" eingeben:
+'
+
+
+
diff --git a/ADMINUPDATER/My Project/Resources.Designer.vb b/ADMINUPDATER/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..e9b8dd4
--- /dev/null
+++ b/ADMINUPDATER/My Project/Resources.Designer.vb
@@ -0,0 +1,63 @@
+'------------------------------------------------------------------------------
+'
+' Dieser Code wurde von einem Tool generiert.
+' Laufzeitversion:4.0.30319.42000
+'
+' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
+' der Code erneut generiert wird.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+Imports System
+
+Namespace My.Resources
+
+ 'Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
+ '-Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
+ 'Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
+ 'mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
+ '''
+ ''' Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
+ '''
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '''
+ ''' Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
+ '''
+ _
+ Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
+ Get
+ If Object.ReferenceEquals(resourceMan, Nothing) Then
+ Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ADMINUPDATER.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '''
+ ''' Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
+ ''' Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
+ '''
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/ADMINUPDATER/My Project/Resources.resx b/ADMINUPDATER/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/ADMINUPDATER/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/ADMINUPDATER/My Project/Settings.Designer.vb b/ADMINUPDATER/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..280eab5
--- /dev/null
+++ b/ADMINUPDATER/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' Dieser Code wurde von einem Tool generiert.
+' Laufzeitversion:4.0.30319.42000
+'
+' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
+' der Code erneut generiert wird.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ Partial Friend NotInheritable Class MySettings
+ Inherits Global.System.Configuration.ApplicationSettingsBase
+
+ Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
+
+#Region "Funktion zum automatischen Speichern von My.Settings"
+#If _MyType = "WindowsForms" Then
+ Private Shared addedHandler As Boolean
+
+ Private Shared addedHandlerLockObject As New Object
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
+ If My.Application.SaveMySettingsOnExit Then
+ My.Settings.Save()
+ End If
+ End Sub
+#End If
+#End Region
+
+ Public Shared ReadOnly Property [Default]() As MySettings
+ Get
+
+#If _MyType = "WindowsForms" Then
+ If Not addedHandler Then
+ SyncLock addedHandlerLockObject
+ If Not addedHandler Then
+ AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
+ addedHandler = True
+ End If
+ End SyncLock
+ End If
+#End If
+ Return defaultInstance
+ End Get
+ End Property
+ End Class
+End Namespace
+
+Namespace My
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global.ADMINUPDATER.My.MySettings
+ Get
+ Return Global.ADMINUPDATER.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/ADMINUPDATER/My Project/Settings.settings b/ADMINUPDATER/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/ADMINUPDATER/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/ADMINUPDATER/UPDATERfrm.Designer.vb b/ADMINUPDATER/UPDATERfrm.Designer.vb
new file mode 100644
index 0000000..2373b1f
--- /dev/null
+++ b/ADMINUPDATER/UPDATERfrm.Designer.vb
@@ -0,0 +1,142 @@
+ _
+Partial Class UPDATERfrm
+ Inherits System.Windows.Forms.Form
+
+ 'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
+ _
+ Protected Overrides Sub Dispose(ByVal disposing As Boolean)
+ Try
+ If disposing AndAlso components IsNot Nothing Then
+ components.Dispose()
+ End If
+ Finally
+ MyBase.Dispose(disposing)
+ End Try
+ End Sub
+
+ 'Wird vom Windows Form-Designer benötigt.
+ Private components As System.ComponentModel.IContainer
+
+ 'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
+ 'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
+ 'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
+ _
+ Private Sub InitializeComponent()
+ Me.ProgressBar = New System.Windows.Forms.ProgressBar()
+ Me.RichTextBox = New System.Windows.Forms.RichTextBox()
+ Me.btnClose = New System.Windows.Forms.Button()
+ Me.m_Label = New System.Windows.Forms.Label()
+ Me.pnl = New System.Windows.Forms.Panel()
+ Me.Panel1 = New System.Windows.Forms.Panel()
+ Me.Label1 = New System.Windows.Forms.Label()
+ Me.pnl.SuspendLayout()
+ Me.Panel1.SuspendLayout()
+ Me.SuspendLayout()
+ '
+ 'ProgressBar
+ '
+ Me.ProgressBar.BackColor = System.Drawing.Color.White
+ Me.ProgressBar.Location = New System.Drawing.Point(13, 204)
+ Me.ProgressBar.Name = "ProgressBar"
+ Me.ProgressBar.Size = New System.Drawing.Size(501, 23)
+ Me.ProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous
+ Me.ProgressBar.TabIndex = 0
+ Me.ProgressBar.UseWaitCursor = True
+ '
+ 'RichTextBox
+ '
+ Me.RichTextBox.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.RichTextBox.Location = New System.Drawing.Point(13, 29)
+ Me.RichTextBox.Name = "RichTextBox"
+ Me.RichTextBox.ReadOnly = True
+ Me.RichTextBox.Size = New System.Drawing.Size(501, 169)
+ Me.RichTextBox.TabIndex = 1
+ Me.RichTextBox.Text = ""
+ '
+ 'btnClose
+ '
+ Me.btnClose.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
+ Me.btnClose.BackColor = System.Drawing.Color.Red
+ Me.btnClose.FlatAppearance.BorderColor = System.Drawing.Color.White
+ Me.btnClose.FlatAppearance.BorderSize = 0
+ Me.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat
+ Me.btnClose.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.btnClose.ForeColor = System.Drawing.Color.White
+ Me.btnClose.Location = New System.Drawing.Point(461, 0)
+ Me.btnClose.Name = "btnClose"
+ Me.btnClose.RightToLeft = System.Windows.Forms.RightToLeft.Yes
+ Me.btnClose.Size = New System.Drawing.Size(63, 23)
+ Me.btnClose.TabIndex = 86
+ Me.btnClose.Text = "X"
+ Me.btnClose.UseVisualStyleBackColor = False
+ '
+ 'm_Label
+ '
+ Me.m_Label.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.m_Label.Location = New System.Drawing.Point(13, 229)
+ Me.m_Label.Name = "m_Label"
+ Me.m_Label.Size = New System.Drawing.Size(501, 19)
+ Me.m_Label.TabIndex = 87
+ Me.m_Label.Text = "-"
+ Me.m_Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
+ '
+ 'pnl
+ '
+ Me.pnl.BackColor = System.Drawing.Color.White
+ Me.pnl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
+ Me.pnl.Controls.Add(Me.RichTextBox)
+ Me.pnl.Controls.Add(Me.m_Label)
+ Me.pnl.Controls.Add(Me.ProgressBar)
+ Me.pnl.Controls.Add(Me.btnClose)
+ Me.pnl.Controls.Add(Me.Panel1)
+ Me.pnl.Dock = System.Windows.Forms.DockStyle.Fill
+ Me.pnl.Location = New System.Drawing.Point(0, 0)
+ Me.pnl.Name = "pnl"
+ Me.pnl.Size = New System.Drawing.Size(526, 257)
+ Me.pnl.TabIndex = 88
+ '
+ 'Panel1
+ '
+ Me.Panel1.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(54, Byte), Integer), CType(CType(128, Byte), Integer))
+ Me.Panel1.Controls.Add(Me.Label1)
+ Me.Panel1.Location = New System.Drawing.Point(-1, -1)
+ Me.Panel1.Name = "Panel1"
+ Me.Panel1.Size = New System.Drawing.Size(526, 24)
+ Me.Panel1.TabIndex = 88
+ '
+ 'Label1
+ '
+ Me.Label1.BackColor = System.Drawing.Color.Transparent
+ Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Label1.ForeColor = System.Drawing.Color.White
+ Me.Label1.Location = New System.Drawing.Point(14, 0)
+ Me.Label1.Name = "Label1"
+ Me.Label1.Size = New System.Drawing.Size(251, 24)
+ Me.Label1.TabIndex = 89
+ Me.Label1.Text = "ADMIN Updater"
+ Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
+ '
+ 'UPDATERfrm
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.BackColor = System.Drawing.Color.White
+ Me.ClientSize = New System.Drawing.Size(526, 257)
+ Me.Controls.Add(Me.pnl)
+ Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
+ Me.Name = "UPDATERfrm"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "UPDATERfrm"
+ Me.pnl.ResumeLayout(False)
+ Me.Panel1.ResumeLayout(False)
+ Me.ResumeLayout(False)
+
+End Sub
+ Friend WithEvents ProgressBar As System.Windows.Forms.ProgressBar
+ Friend WithEvents RichTextBox As System.Windows.Forms.RichTextBox
+ Friend WithEvents btnClose As System.Windows.Forms.Button
+ Friend WithEvents m_Label As System.Windows.Forms.Label
+ Friend WithEvents pnl As System.Windows.Forms.Panel
+ Friend WithEvents Panel1 As System.Windows.Forms.Panel
+ Friend WithEvents Label1 As System.Windows.Forms.Label
+End Class
diff --git a/ADMINUPDATER/UPDATERfrm.resx b/ADMINUPDATER/UPDATERfrm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/ADMINUPDATER/UPDATERfrm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/ADMINUPDATER/UPDATERfrm.vb b/ADMINUPDATER/UPDATERfrm.vb
new file mode 100644
index 0000000..930ce83
--- /dev/null
+++ b/ADMINUPDATER/UPDATERfrm.vb
@@ -0,0 +1,269 @@
+Imports System.IO
+
+Public Class UPDATERfrm
+
+ Private Sub UPDATERfrm_Load(sender As Object, e As EventArgs) Handles Me.Load
+
+ End Sub
+
+ Private Sub UPDATERfrm_Shown(sender As Object, e As EventArgs) Handles Me.Shown
+ Dim trd As New Threading.Thread(AddressOf Main)
+ trd.IsBackground = True
+ trd.Start()
+ End Sub
+
+
+
+
+ Dim F As String = "F:\Programme\ADMIN\" ' WDH TERM
+ Dim F_PROD As String = "\\192.168.0.91\f\Programme\ADMIN\" ' VERAG
+ ' Dim F As String = "\\192.168.0.90\f\Programme\ADMIN\" 'DEVELOPER
+ Dim F_ATILLA As String = "\\172.16.0.99\Daten\Programme\ADMIN\" ' ATILLA
+ Dim F_IMEX As String = "\\192.168.1.20\Daten\VERAG Programme\ADMIN\" ' IMEX
+
+ Public Sub Main()
+
+ Dim FIRMA = "VERAG"
+ Dim pfadDatei As String = System.AppDomain.CurrentDomain.BaseDirectory & "\Standort.txt"
+ FIRMA = "VERAG"
+
+ If File.Exists(pfadDatei) Then
+ Dim fs As New FileStream(pfadDatei, FileMode.Open, FileAccess.Read)
+ Dim strmReader As New StreamReader(fs)
+ FIRMA = strmReader.ReadLine
+ fs.Dispose()
+ strmReader.Dispose()
+ End If
+
+ If FIRMA = "ATILLA" Then F = F_ATILLA 'Sichere Verbindung
+ If FIRMA = "IMEX" Then F = F_IMEX 'Sichere Verbindung
+
+ 'Falls Settings existiert, wird der Pfad daraus verwendet.
+ F = System.IO.File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory & "ADMINUPDATER_Settings.txt")
+ If Not System.IO.Directory.Exists(F) Then
+
+ If FIRMA = "ATILLA" Then
+ F = F_ATILLA 'Sichere Verbindung
+ ElseIf FIRMA = "IMEX" Then
+ F = F_IMEX 'Sichere Verbindung
+ Else
+ F = F_PROD
+ End If
+
+ writeLine(RichTextBox, "F-Pfad nicht gefunden, verbinde mit '" & F & "' ...")
+ If Not System.IO.Directory.Exists(F) Then
+ MsgBox("ERROR_UPDATE_05: Es konnte keine Verbindung mit dem F:\ Laufwerk hergestellt werden." & vbNewLine & "Wenn Sie eine Remote-Sitzung verwenden, melden Sie sich mit dieser erneut an.", MsgBoxStyle.Critical, "ERROR")
+ Environment.Exit(0)
+ End If
+
+ writeLine(RichTextBox, "Verbindung erfolgreich...")
+ End If
+
+ writeLine(RichTextBox, "3 Sekunden warten, um sicherzustellen, dass das Programm beendet wurde...")
+ Threading.Thread.Sleep(3000) 'Falls Programm gerade am Beenden
+ writeLine(RichTextBox, "Starte Update...")
+ ' If Not My.Computer.FileSystem.DirectoryExists(F) Then
+ 'MsgBox("ERROR_UPDATE_02: Update-Daten existieren nicht.", MsgBoxStyle.Critical, "ERROR")
+ ' Else
+ Try
+
+ For i As Integer = 1 To 3 Step 1
+ If Not DoesProcessExists("ADMIN") Then
+ If Not tryDelMain() Then
+ MsgBox("ERROR_UPDATE_06: ADMIN.exe konnte nicht gelöscht werden. Das Programm wird evtl. noch ausgeführt.", MsgBoxStyle.Critical, "ERROR")
+ Environment.Exit(0)
+ End If
+ delFiles()
+ FileCopier()
+ If Not System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory & "ADMIN.exe") Then
+ MsgBox("ERROR_UPDATE_03: ADMIN.exe konnte nicht gestartet werden.", MsgBoxStyle.Critical, "ERROR")
+
+ End If
+ If Not System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory & "upd.tmp") Then
+ System.IO.File.Create(AppDomain.CurrentDomain.BaseDirectory & "upd.tmp")
+ End If
+ writeLine(RichTextBox, "Erfolgreich abgeschlossen...")
+ Process.Start("ADMIN.exe")
+ Environment.Exit(0)
+ End If
+ Threading.Thread.Sleep(1000)
+ Next
+ MsgBox("ERROR_UPDATE_01: Update konnte nicht durchgeführt werden. ADMIN.exe nicht beendet?", MsgBoxStyle.Critical, "ERROR")
+
+ Catch ex As Exception
+ MsgBox("ERROR_UPDATE_02: Update-Daten existieren nicht.", MsgBoxStyle.Critical, "ERROR")
+ End Try
+ 'End If
+ Environment.Exit(0)
+ End Sub
+
+ Delegate Sub writeLineCallback(rtb As System.Windows.Forms.RichTextBox, text As String)
+ Private Sub writeLine(rtb As System.Windows.Forms.RichTextBox, text As String)
+ If Me.InvokeRequired Then
+ Dim d As New writeLineCallback(AddressOf writeLine)
+ Me.Invoke(d, New Object() {rtb, text})
+ Else
+ rtb.Text &= text & vbNewLine
+ End If
+
+ End Sub
+
+ 'Sub writeLine(richtextbox,text)
+ ' RichTextBox.Text &= text & vbNewLine
+ ' End Sub
+ Private Sub FileCopier()
+ CopyDir(F, AppDomain.CurrentDomain.BaseDirectory)
+ Exit Sub
+
+ For Each file As String In IO.Directory.GetFiles(F) ' Ermittelt alle Dateien des Ordners
+ IO.File.Copy(file, AppDomain.CurrentDomain.BaseDirectory & cut_file(file), True) ' Kopiert die Dateien Next
+ Next
+ For Each file As String In IO.Directory.GetDirectories(F) ' Ermittelt alle Unterordner des Ordners
+ My.Computer.FileSystem.CopyDirectory(file, AppDomain.CurrentDomain.BaseDirectory & cut_file(file), True)
+ Next
+ End Sub
+
+
+
+
+ Private Function cut_file(ByVal file As String) As String ' Funktion zum Entfernen der Backslashs / Ordner While file.Contains("\") file = file.Remove(0, 1) End While Return file End Function
+ While file.Contains("\")
+ file = file.Remove(0, 1)
+ End While
+ Return file
+ End Function
+ Private Function tryDelMain() As Boolean
+ 'Dim f As String = "no"
+ Try
+ If System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory & "ADMIN.exe") Then My.Computer.FileSystem.DeleteFile(AppDomain.CurrentDomain.BaseDirectory & "ADMIN.exe")
+ Return True
+ Catch ex As Exception
+ MsgBox("ERROR_UPDATE_04: Fehler beim Löschen: " & F & vbNewLine & ex.Message, MsgBoxStyle.Critical, "ERROR")
+ Environment.Exit(0)
+ Return False
+ End Try
+ End Function
+
+ Private Sub delFiles()
+ 'Dim f As String = "no"
+ Try
+ For Each file As String In IO.Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory) ' Ermittelt alle Dateien des Ordners
+ If Not cut_file(file).Contains("ADMINUPDATER") And Not cut_file(file).Contains("NOT_DEL_") Then
+ ' f = file
+ My.Computer.FileSystem.DeleteFile(file) 'Löscht das ADMIN-Programm, außer den Updater
+ ' IO.File.Delete(file)
+ 'IO.Directory.Delete(file)
+ End If
+
+ Next
+ Catch ex As Exception
+ MsgBox("ERROR_UPDATE_04: Fehler beim Löschen: " & F & vbNewLine & ex.Message, MsgBoxStyle.Critical, "ERROR")
+ Environment.Exit(0)
+ End Try
+ End Sub
+ Private Function DoesProcessExists(ByVal PName As String) As Boolean
+ For Each p As Process In System.Diagnostics.Process.GetProcessesByName(PName)
+ If p.StartInfo.UserName = Environment.UserName Then
+ Return True
+ End If
+ Next
+ Return False
+ End Function
+
+ Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
+ Me.Close()
+
+ End Sub
+
+
+
+ Private Sub CopyDir(ByVal SourceFolder As String, ByVal DestinationFolder As String)
+
+ With ProgressBar
+ .Maximum = CInt(GetFolderSize(SourceFolder) \ 1024)
+ 'eventuell Rückgabe direkt auf 0 abfragen
+ If .Maximum = 0 Then Exit Sub
+ .Minimum = 0
+ .Value = 0
+ End With
+
+ For Each file As String In IO.Directory.GetFiles(SourceFolder)
+ Copy(New IO.FileInfo(file), DestinationFolder)
+ Next file
+
+ For Each file As String In IO.Directory.GetDirectories(F) ' Ermittelt alle Unterordner des Ordners
+ 'Copy(New IO.FileInfo(file), DestinationFolder)
+ My.Computer.FileSystem.CopyDirectory(file, AppDomain.CurrentDomain.BaseDirectory & cut_file(file), True)
+ Next
+
+ ProgressBar.Value = 0
+ m_Label.Text = "0%"
+
+ End Sub
+
+ Private Function GetFolderSize(ByVal Folder As String) As Long
+ Dim l As Long
+ For Each file As String In IO.Directory.GetFiles(Folder)
+ l += New IO.FileInfo(file).Length
+ Next file
+ Return l
+ End Function
+
+ Private Sub Copy(ByVal SourceFile As IO.FileInfo, ByVal TargetDir As String)
+
+ Try
+ ' Quelle
+ Dim fsmsource As IO.FileStream
+ ' Zieldatei
+ Dim fsmtarget As IO.FileStream
+
+ ' Größe des bei jedem Durchlauf einzulesenden Datenpaketes
+ Dim buffersize As Int32 = 1024 * 30 ' (30 KByte)
+ Dim buffer(buffersize) As Byte
+ Dim readbyte As Int32
+
+ ' Quelldatei
+ ' Using nutzen
+ fsmsource = New IO.FileStream(SourceFile.FullName, IO.FileMode.Open, IO.FileAccess.Read, IO.FileShare.Read)
+
+ ' Zieldatei
+ fsmtarget = New IO.FileStream(IO.Path.Combine(TargetDir, SourceFile.Name), IO.FileMode.OpenOrCreate, IO.FileAccess.Write)
+
+ ' Daten nach und nach einlesen und im Zielstream wieder
+ ' zurückschreiben
+ While fsmsource.Position < fsmsource.Length
+ ' Quelle einlesen
+ readbyte = fsmsource.Read(buffer, 0, buffersize)
+
+ ' In das Ziel schreiben
+ fsmtarget.Write(buffer, 0, readbyte)
+
+ With ProgressBar
+ Dim vl As Integer = .Value
+ vl = Math.Min(.Maximum, readbyte \ 1024 + vl)
+ .Value = vl
+ m_Label.Text = CStr(CInt(100 * .Value / .Maximum)) + "%"
+ .Refresh()
+ m_Label.Refresh()
+ End With
+
+ End While
+
+ ' Streams schließen
+ fsmsource.Close()
+ fsmtarget.Close()
+ Catch ex As Exception
+ MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
+ End Try
+ End Sub
+
+
+
+
+
+
+
+
+
+
+End Class
\ No newline at end of file
diff --git a/ATILLA_Speditionsbuch/ATILLA_Speditionsbuch.vbproj b/ATILLA_Speditionsbuch/ATILLA_Speditionsbuch.vbproj
new file mode 100644
index 0000000..6cd475b
--- /dev/null
+++ b/ATILLA_Speditionsbuch/ATILLA_Speditionsbuch.vbproj
@@ -0,0 +1,116 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {2007DD34-7BB4-4A31-A6B9-BCE62BF0AFDA}
+ Exe
+ Sub Main
+ ATILLA_Speditionsbuch
+ ATILLA_Speditionsbuch
+ 512
+ Console
+ v4.5
+
+
+ AnyCPU
+ true
+ full
+ true
+ true
+ bin\Debug\
+ ATILLA_Speditionsbuch.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ AnyCPU
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ ATILLA_Speditionsbuch.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ On
+
+
+ Binary
+
+
+ Off
+
+
+ On
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ATILLA_Speditionsbuch/App.config b/ATILLA_Speditionsbuch/App.config
new file mode 100644
index 0000000..8e15646
--- /dev/null
+++ b/ATILLA_Speditionsbuch/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ATILLA_Speditionsbuch/My Project/Application.Designer.vb b/ATILLA_Speditionsbuch/My Project/Application.Designer.vb
new file mode 100644
index 0000000..88dd01c
--- /dev/null
+++ b/ATILLA_Speditionsbuch/My Project/Application.Designer.vb
@@ -0,0 +1,13 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.42000
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
diff --git a/ATILLA_Speditionsbuch/My Project/Application.myapp b/ATILLA_Speditionsbuch/My Project/Application.myapp
new file mode 100644
index 0000000..e62f1a5
--- /dev/null
+++ b/ATILLA_Speditionsbuch/My Project/Application.myapp
@@ -0,0 +1,10 @@
+
+
+ false
+ false
+ 0
+ true
+ 0
+ 2
+ true
+
diff --git a/ATILLA_Speditionsbuch/My Project/AssemblyInfo.vb b/ATILLA_Speditionsbuch/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..553c654
--- /dev/null
+++ b/ATILLA_Speditionsbuch/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' Allgemeine Informationen über eine Assembly werden über die folgenden
+' Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
+' die mit einer Assembly verknüpft sind.
+
+' Die Werte der Assemblyattribute überprüfen
+
+
+
+
+
+
+
+
+
+
+'Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
+
+
+' Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
+'
+' Hauptversion
+' Nebenversion
+' Buildnummer
+' Revision
+'
+' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
+' übernehmen, indem Sie "*" eingeben:
+'
+
+
+
diff --git a/ATILLA_Speditionsbuch/My Project/Resources.Designer.vb b/ATILLA_Speditionsbuch/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..fc3e6e2
--- /dev/null
+++ b/ATILLA_Speditionsbuch/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.42000
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My.Resources
+
+ 'This class was auto-generated by the StronglyTypedResourceBuilder
+ 'class via a tool like ResGen or Visual Studio.
+ 'To add or remove a member, edit your .ResX file then rerun ResGen
+ 'with the /str option, or rebuild your VS project.
+ '''
+ ''' A strongly-typed resource class, for looking up localized strings, etc.
+ '''
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '''
+ ''' Returns the cached ResourceManager instance used by this class.
+ '''
+ _
+ Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
+ Get
+ If Object.ReferenceEquals(resourceMan, Nothing) Then
+ Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ATILLA_Speditionsbuch.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '''
+ ''' Overrides the current thread's CurrentUICulture property for all
+ ''' resource lookups using this strongly typed resource class.
+ '''
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/ATILLA_Speditionsbuch/My Project/Resources.resx b/ATILLA_Speditionsbuch/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/ATILLA_Speditionsbuch/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/ATILLA_Speditionsbuch/My Project/Settings.Designer.vb b/ATILLA_Speditionsbuch/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..aa7b7cc
--- /dev/null
+++ b/ATILLA_Speditionsbuch/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.42000
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ Partial Friend NotInheritable Class MySettings
+ Inherits Global.System.Configuration.ApplicationSettingsBase
+
+ Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
+
+#Region "My.Settings Auto-Save Functionality"
+#If _MyType = "WindowsForms" Then
+ Private Shared addedHandler As Boolean
+
+ Private Shared addedHandlerLockObject As New Object
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
+ If My.Application.SaveMySettingsOnExit Then
+ My.Settings.Save()
+ End If
+ End Sub
+#End If
+#End Region
+
+ Public Shared ReadOnly Property [Default]() As MySettings
+ Get
+
+#If _MyType = "WindowsForms" Then
+ If Not addedHandler Then
+ SyncLock addedHandlerLockObject
+ If Not addedHandler Then
+ AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
+ addedHandler = True
+ End If
+ End SyncLock
+ End If
+#End If
+ Return defaultInstance
+ End Get
+ End Property
+ End Class
+End Namespace
+
+Namespace My
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global.ATILLA_Speditionsbuch.My.MySettings
+ Get
+ Return Global.ATILLA_Speditionsbuch.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/ATILLA_Speditionsbuch/My Project/Settings.settings b/ATILLA_Speditionsbuch/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/ATILLA_Speditionsbuch/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/ATILLA_Speditionsbuch/cATILLA_Speditionsbuch.vb b/ATILLA_Speditionsbuch/cATILLA_Speditionsbuch.vb
new file mode 100644
index 0000000..6316e00
--- /dev/null
+++ b/ATILLA_Speditionsbuch/cATILLA_Speditionsbuch.vb
@@ -0,0 +1,238 @@
+Imports System.Data.SqlClient
+
+Module cATILLA_Speditionsbuch
+ Dim SPED As New List(Of cSpeditionsbuch)
+
+ Sub Main()
+ LOAD(CDate("01." & Now.Month & "." & Now.Year))
+ System.Console.WriteLine(SPED.Count)
+
+ For Each s In SPED
+ 'INSERT(s)
+ Next
+ Threading.Thread.Sleep(3000)
+ End Sub
+
+ Public Sub LOAD(datum As Date)
+ Try
+ Using conn As SqlConnection = GetNewOpenConnectionFMZOLL()
+ Using cmd As New SqlCommand("SELECT * FROM Speditionsbuch WHERE FilialenNr=4801 and SB_Zeitstempel > '" & datum.ToShortDateString & " 00:00:00' and Bar=0 ", conn)
+
+ Dim dr = cmd.ExecuteReader()
+ While dr.Read
+ Dim s As New cSpeditionsbuch
+ s.FilialenNr = checkNullInteger(dr.Item("FilialenNr"))
+ s.AbfertigungsNr = checkNullInteger(dr.Item("AbfertigungsNr"))
+ s.UnterNr = checkNullInteger(dr.Item("UnterNr"))
+ s.Abfertigungsdatum = checkNullDateNothing(dr.Item("Abfertigungsdatum"))
+ s.Bar = checkNullBool(dr.Item("Bar"))
+ s.Fakturiert = checkNullBool(dr.Item("Fakturiert"))
+ s.BelegNr = checkNullStr(dr.Item("BelegNr"))
+ s.ErfassungsNr = checkNullStr(dr.Item("ErfassungsNr"))
+ s.LKW_Kennzeichen = checkNullStr(dr.Item("LKW Kennzeichen"))
+ ' s.AvisiererKundenNr = checkNullReturnValue(dr.Item("AvisiererKundenNr"), Nothing)
+ ' s.Avisierer = checkNullStr(dr.Item("Avisierer"))
+ s.AbsenderKundenNr = checkNullReturnValue(dr.Item("AbsenderKundenNr"), Nothing)
+ s.Absender = checkNullStr(dr.Item("Absender"))
+ s.AbsenderOffertenNr = checkNullInteger(dr.Item("AbsenderOffertenNr"))
+ s.EmpfängerKundenNr = checkNullReturnValue(dr.Item("EmpfängerKundenNr"), Nothing)
+ s.Empfänger = checkNullStr(dr.Item("Empfänger"))
+ s.EmpfängerOffertenNr = checkNullInteger(dr.Item("EmpfängerOffertenNr"))
+ s.VermittlerKundenNr = checkNullReturnValue(dr.Item("VermittlerKundenNr"), Nothing)
+ s.Vermittler = checkNullStr(dr.Item("Vermittler"))
+ s.VermittlerOffertenNr = checkNullInteger(dr.Item("VermittlerOffertenNr"))
+ s.FrachtführerKundenNr = checkNullReturnValue(dr.Item("FrachtführerKundenNr"), Nothing)
+ s.Frachtführer = checkNullStr(dr.Item("Frachtführer"))
+ s.AnzahlZA = checkNullIntegerZero(dr.Item("AnzahlZA"))
+ s.AnzahlZAFremd = checkNullIntegerZero(dr.Item("AnzahlZAFremd"))
+ s.AnzahlZnV = checkNullIntegerZero(dr.Item("AnzahlZnV"))
+ s.AnzahlZnVFremd = checkNullIntegerZero(dr.Item("AnzahlZnVFremd"))
+ s.AnzahlT1 = checkNullIntegerZero(dr.Item("AnzahlT1"))
+ s.AnzahlT2 = checkNullIntegerZero(dr.Item("AnzahlT2"))
+ s.AnzahlAE = checkNullStr(dr.Item("AnzahlAE"))
+ s.AnzahlCarnetTIR = checkNullIntegerZero(dr.Item("AnzahlCarnetTIR"))
+ s.AnzahlBarvorlagen = checkNullIntegerZero(dr.Item("AnzahlBarvorlagen"))
+ s.AnzahlSonstiges = checkNullIntegerZero(dr.Item("AnzahlSonstiges"))
+ s.AnzahlGrenzgebühren = checkNullIntegerZero(dr.Item("AnzahlGrenzgebühren"))
+ s.AvisUhrzeit = checkNullStr(dr.Item("AvisUhrzeit"))
+ s.Vermerk = checkNullStr(dr.Item("Vermerk"))
+ s.Bemerkungen = checkNullStr(dr.Item("Bemerkungen"))
+ s.Währungsschlüssel = checkNullInteger(dr.Item("Währungsschlüssel"))
+ s.Rechnungsbetrag = checkNulDbl(dr.Item("Rechnungsbetrag"))
+ s.Umrechnungskurs = checkNullInteger(dr.Item("Umrechnungskurs"))
+ s.Packstücke = checkNullStr(dr.Item("Packstücke"))
+ s.Rohmasse = checkNullInteger(dr.Item("Rohmasse"))
+ s.Zahlungsaufschub = checkNullStr(dr.Item("Zahlungsaufschub"))
+ s.Löschen = checkNullDateNothing(dr.Item("Löschen"))
+ s.Abfertigungsart = checkNullInteger(dr.Item("Abfertigungsart"))
+ s.Abfertigungsanzahl = checkNullIntegerZero(dr.Item("Abfertigungsanzahl"))
+ s.Barzahlungsbetrag = checkNulDbl(dr.Item("Barzahlungsbetrag"))
+ s.Sachbearbeiter = checkNullStr(dr.Item("Sachbearbeiter"))
+ s.Personalnummer = checkNullInteger(dr.Item("Personalnummer"))
+ ' s.PersonalnummerQS = checkNullInteger(dr.Item("PersonalnummerQS"))
+ s.AtlasBezNrEZA = checkNullStr(dr.Item("AtlasBezNrEZA"))
+ s.AtlasBezNrNCTS = checkNullStr(dr.Item("AtlasBezNrNCTS"))
+ s.Versendungsland = checkNullStr(dr.Item("Versendungsland"))
+ s.SB_CMR = checkNullBool(dr.Item("SB_CMR"))
+ s.SB_CMRDatum = checkNullDateNothing(dr.Item("SB_CMRDatum"))
+ s.veoerz_basbtg = checkNulDbl(dr.Item("veoerz_basbtg"))
+ s.Zucker_MRN_Nr = checkNullStr(dr.Item("Zucker_MRN_Nr"))
+ s.Zucker_MRN_Datum = checkNullDateNothing(dr.Item("Zucker_MRN_Datum"))
+ s.Zucker_Aufschub = checkNullStr(dr.Item("Zucker_Aufschub"))
+ s.Zollsystem = checkNullStr(dr.Item("Zollsystem"))
+ s.Bestimmungszollstelle = checkNullStr(dr.Item("Bestimmungszollstelle"))
+ s.Bürgschaft = checkNullStr(dr.Item("Bürgschaft"))
+ s.Sicherheitsbetrag = checkNulDbl(dr.Item("Sicherheitsbetrag"))
+ s.SgutKompl = checkNullStr(dr.Item("SgutKompl"))
+ s.Bestimmungsland = checkNullStr(dr.Item("Bestimmungsland"))
+ s.EuFiskalEmpfänger = checkNullStr(dr.Item("EuFiskalEmpfänger"))
+ s.QKN = checkNullStr(dr.Item("QKN"))
+ s.EndempfängerKundenNr = checkNullReturnValue(dr.Item("EndempfängerKundenNr"), Nothing)
+ s.Endempfänger = checkNullStr(dr.Item("Endempfänger"))
+ s.SB_Zeitstempel = checkNullDateNothing(dr.Item("SB_Zeitstempel"))
+ SPED.Add(s)
+ End While
+ dr.Close()
+ End Using
+ End Using
+ 'Return Nothing
+ Catch ex As Exception
+ MsgBox("Fehler in der Funktion '" & System.Reflection.MethodInfo.GetCurrentMethod.Name & "'" & vbNewLine & vbNewLine & ex.Message & vbNewLine & vbNewLine & ex.StackTrace)
+ End Try
+ ' Return Nothing
+ End Sub
+ Public Function GetNewOpenConnectionFMZOLL(Optional pooling As Boolean = True) As SqlConnection
+ Dim cn As New SqlConnection()
+ cn.ConnectionString = "Data Source=192.168.0.91\SQLFMZOLL;Initial Catalog=VERAG;Integrated Security=false;User ID=sa;Password=BmWr501956;pooling=false"
+ cn.Open()
+ Return cn
+ End Function
+
+ Public Function GetNewOpenConnectionATILLA(Optional pooling As Boolean = True) As SqlConnection
+ Dim cn As New SqlConnection()
+ cn.ConnectionString = "Data Source=D\SQLFMZOLL;Initial Catalog=VERAG;Integrated Security=false;User ID=sa;Password=BmWr501956;pooling=false"
+ cn.Open()
+ Return cn
+ End Function
+
+ Sub INSERT(s As cSpeditionsbuch)
+ Dim list As List(Of cSQLVariable)
+
+ Dim sql = " INSERT INTO [Speditionsbuch] ([FilialenNr],[AbfertigungsNr],[UnterNr],[Abfertigungsdatum],[Bar],[Fakturiert],[BelegNr],[ErfassungsNr],[LKW Kennzeichen],[AbsenderKundenNr],[Absender],[AbsenderOffertenNr],[EmpfängerKundenNr],[Empfänger],[EmpfängerOffertenNr],[VermittlerKundenNr],[Vermittler],[VermittlerOffertenNr],[FrachtführerKundenNr],[Frachtführer],[AnzahlZA],[AnzahlZAFremd],[AnzahlZnV],[AnzahlZnVFremd],[AnzahlT1],[AnzahlT2],[AnzahlAE],[AnzahlCarnetTIR],[AnzahlBarvorlagen],[AnzahlSonstiges],[AnzahlGrenzgebühren],[AvisUhrzeit],[Vermerk],[Bemerkungen],[Währungsschlüssel],[Rechnungsbetrag],[Umrechnungskurs],[Packstücke],[Rohmasse],[Zahlungsaufschub],[Löschen],[Abfertigungsart],[Abfertigungsanzahl],[Barzahlungsbetrag],[Sachbearbeiter],[Personalnummer],[AtlasBezNrEZA],[AtlasBezNrNCTS],[Versendungsland],[SB_CMR],[SB_CMRDatum],[veoerz_basbtg],[Zucker_MRN_Nr],[Zucker_MRN_Datum],[Zucker_Aufschub],[Zollsystem],[Bestimmungszollstelle],[Bürgschaft],[Sicherheitsbetrag],[SgutKompl]) " &
+ " VALUES(@FilialenNr,@AbfertigungsNr,@UnterNr,@Abfertigungsdatum,@Bar,@Fakturiert,@BelegNr,@ErfassungsNr,@LKW Kennzeichen,@AbsenderKundenNr,@Absender,@AbsenderOffertenNr,@EmpfängerKundenNr,@Empfänger,@EmpfängerOffertenNr,@VermittlerKundenNr,@Vermittler,@VermittlerOffertenNr,@FrachtführerKundenNr,@Frachtführer,@AnzahlZA,@AnzahlZAFremd,@AnzahlZnV,@AnzahlZnVFremd,@AnzahlT1,@AnzahlT2,@AnzahlAE,@AnzahlCarnetTIR,@AnzahlBarvorlagen,@AnzahlSonstiges,@AnzahlGrenzgebühren,@AvisUhrzeit,@Vermerk,@Bemerkungen,@Währungsschlüssel,@Rechnungsbetrag,@Umrechnungskurs,@Packstücke,@Rohmasse,@Zahlungsaufschub,@Löschen,@Abfertigungsart,@Abfertigungsanzahl,@Barzahlungsbetrag,@Sachbearbeiter,@Personalnummer,@AtlasBezNrEZA,@AtlasBezNrNCTS,@Versendungsland,@SB_CMR,@SB_CMRDatum,@veoerz_basbtg,@Zucker_MRN_Nr,@Zucker_MRN_Datum,@Zucker_Aufschub,@Zollsystem,@Bestimmungszollstelle,@Bürgschaft,@Sicherheitsbetrag,@SgutKompl) "
+
+ Try
+ Using conn As SqlConnection = GetNewOpenConnectionATILLA()
+ Using cmd As New SqlCommand(sql, conn)
+
+ ' Dim dr = cmd.ExecuteReader()
+
+ cmd.Parameters.AddWithValue("@FilialenNr", s.FilialenNr)
+ cmd.Parameters.AddWithValue("@AbfertigungsNr", s.AbfertigungsNr)
+ cmd.Parameters.AddWithValue("@UnterNr", s.UnterNr)
+ cmd.Parameters.AddWithValue("@Abfertigungsdatum", s.Abfertigungsdatum)
+ cmd.Parameters.AddWithValue("@Bar", s.Bar)
+ cmd.Parameters.AddWithValue("@Fakturiert", s.Fakturiert)
+ cmd.Parameters.AddWithValue("@BelegNr", s.BelegNr)
+ cmd.Parameters.AddWithValue("@ErfassungsNr", s.ErfassungsNr)
+ cmd.Parameters.AddWithValue("@LKW Kennzeichen", s.LKW_Kennzeichen)
+ cmd.Parameters.AddWithValue("@AbsenderKundenNr", s.AbsenderKundenNr)
+ cmd.Parameters.AddWithValue("@Absender", s.Absender)
+ cmd.Parameters.AddWithValue("@AbsenderOffertenNr", s.AbsenderOffertenNr)
+ cmd.Parameters.AddWithValue("@EmpfängerKundenNr", s.EmpfängerKundenNr)
+ cmd.Parameters.AddWithValue("@Empfänger", s.Empfänger)
+ cmd.Parameters.AddWithValue("@EmpfängerOffertenNr", s.EmpfängerOffertenNr)
+ cmd.Parameters.AddWithValue("@VermittlerKundenNr", s.VermittlerKundenNr)
+ cmd.Parameters.AddWithValue("@Vermittler", s.Vermittler)
+ cmd.Parameters.AddWithValue("@VermittlerOffertenNr", s.VermittlerOffertenNr)
+ cmd.Parameters.AddWithValue("@FrachtführerKundenNr", s.FrachtführerKundenNr)
+ cmd.Parameters.AddWithValue("@Frachtführer", s.Frachtführer)
+ cmd.Parameters.AddWithValue("@AnzahlZA", s.AnzahlZA)
+ cmd.Parameters.AddWithValue("@AnzahlZAFremd", s.AnzahlZAFremd)
+ cmd.Parameters.AddWithValue("@AnzahlZnV", s.AnzahlZnV)
+ cmd.Parameters.AddWithValue("@AnzahlZnVFremd", s.AnzahlZnVFremd)
+ cmd.Parameters.AddWithValue("@AnzahlT1", s.AnzahlT1)
+ cmd.Parameters.AddWithValue("@AnzahlT2", s.AnzahlT2)
+ cmd.Parameters.AddWithValue("@AnzahlAE", s.AnzahlAE)
+ cmd.Parameters.AddWithValue("@AnzahlCarnetTIR", s.AnzahlCarnetTIR)
+ cmd.Parameters.AddWithValue("@AnzahlBarvorlagen", s.AnzahlBarvorlagen)
+ cmd.Parameters.AddWithValue("@AnzahlSonstiges", s.AnzahlSonstiges)
+ cmd.Parameters.AddWithValue("@AnzahlGrenzgebühren", s.AnzahlGrenzgebühren)
+ cmd.Parameters.AddWithValue("@AvisUhrzeit", s.AvisUhrzeit)
+ cmd.Parameters.AddWithValue("@Vermerk", s.Vermerk)
+ cmd.Parameters.AddWithValue("@Bemerkungen", s.Bemerkungen)
+ cmd.Parameters.AddWithValue("@Währungsschlüssel", s.Währungsschlüssel)
+ cmd.Parameters.AddWithValue("@Rechnungsbetrag", s.Rechnungsbetrag)
+ cmd.Parameters.AddWithValue("@Umrechnungskurs", s.Umrechnungskurs)
+ cmd.Parameters.AddWithValue("@Packstücke", s.Packstücke)
+ cmd.Parameters.AddWithValue("@Rohmasse", s.Rohmasse)
+ cmd.Parameters.AddWithValue("@Zahlungsaufschub", s.Zahlungsaufschub)
+ cmd.Parameters.AddWithValue("@Löschen", s.Löschen)
+ cmd.Parameters.AddWithValue("@Abfertigungsart", s.Abfertigungsart)
+ cmd.Parameters.AddWithValue("@Abfertigungsanzahl", s.Abfertigungsanzahl)
+ cmd.Parameters.AddWithValue("@Barzahlungsbetrag", s.Barzahlungsbetrag)
+ cmd.Parameters.AddWithValue("@Sachbearbeiter", s.Sachbearbeiter)
+ cmd.Parameters.AddWithValue("@Personalnummer", s.Personalnummer)
+ cmd.Parameters.AddWithValue("@AtlasBezNrEZA", s.AtlasBezNrEZA)
+ cmd.Parameters.AddWithValue("@AtlasBezNrNCTS", s.AtlasBezNrNCTS)
+ cmd.Parameters.AddWithValue("@Versendungsland", s.Versendungsland)
+ cmd.Parameters.AddWithValue("@SB_CMR", s.SB_CMR)
+ cmd.Parameters.AddWithValue("@SB_CMRDatum", s.SB_CMRDatum)
+ cmd.Parameters.AddWithValue("@veoerz_basbtg", s.veoerz_basbtg)
+ cmd.Parameters.AddWithValue("@Zucker_MRN_Nr", s.Zucker_MRN_Nr)
+ cmd.Parameters.AddWithValue("@Zucker_MRN_Datum", s.Zucker_MRN_Datum)
+ cmd.Parameters.AddWithValue("@Zucker_Aufschub", s.Zucker_Aufschub)
+ cmd.Parameters.AddWithValue("@Zollsystem", s.Zollsystem)
+ cmd.Parameters.AddWithValue("@Bestimmungszollstelle", s.Bestimmungszollstelle)
+ cmd.Parameters.AddWithValue("@Bürgschaft", s.Bürgschaft)
+ cmd.Parameters.AddWithValue("@Sicherheitsbetrag", s.Sicherheitsbetrag)
+ cmd.Parameters.AddWithValue("@SgutKompl", s.SgutKompl)
+ cmd.ExecuteNonQuery()
+ End Using
+ End Using
+ 'Return Nothing
+ Catch ex As Exception
+ MsgBox("Fehler in der Funktion '" & System.Reflection.MethodInfo.GetCurrentMethod.Name & "'" & vbNewLine & vbNewLine & ex.Message & vbNewLine & vbNewLine & ex.StackTrace)
+ End Try
+ End Sub
+
+ Public Function checkNullStr(ByVal o As Object) As String
+ If o IsNot Nothing And o IsNot DBNull.Value Then Return CStr(o)
+ Return ""
+ End Function
+ Public Function checkNullInteger(ByVal o As Object) As Integer
+ If o IsNot Nothing And o IsNot DBNull.Value Then Return CInt(o)
+ Return -1
+ End Function
+ Public Function checkNullReturnValue(ByVal o As Object, ByVal returnValue As Object) As Object
+ If o IsNot Nothing And o IsNot DBNull.Value Then Return (o)
+ Return returnValue
+ End Function
+
+ Public Function checkNullIntegerZero(ByVal o As Object) As Integer
+ If o IsNot Nothing And o IsNot DBNull.Value Then Return CInt(o)
+ Return 0
+ End Function
+ Public Function checkNulDbl(ByVal o As Object) As Double
+ If o IsNot Nothing And o IsNot DBNull.Value Then Return CDbl(o)
+ Return -1
+ End Function
+
+ Public Function checkNullBool(ByVal o As Object) As Boolean
+ If o Is Nothing Or o Is DBNull.Value Then Return 0
+ Try
+ Return CBool(o)
+ Catch ex As Exception
+ End Try
+ Return 0
+ End Function
+
+ Public Function checkNullDateNothing(ByVal o As Object) As Object
+ If o Is DBNull.Value Then
+ Return Nothing
+ Else
+ Return CDate(o)
+ End If
+ End Function
+
+End Module
diff --git a/ATILLA_Speditionsbuch/cSQLVariable.vb b/ATILLA_Speditionsbuch/cSQLVariable.vb
new file mode 100644
index 0000000..0173b22
--- /dev/null
+++ b/ATILLA_Speditionsbuch/cSQLVariable.vb
@@ -0,0 +1,25 @@
+Public Class cSQLVariable
+
+ Private TextSQLName As String
+ Private ValueSQLVALUE As Object
+
+ Public Sub New(ByVal Text As String, ByVal Value As Object)
+ Me.TextSQLName = Text
+ Me.ValueSQLVALUE = Value
+
+ End Sub
+
+ Public ReadOnly Property Text() As String
+ Get
+ Return TextSQLName
+ End Get
+ End Property
+
+ Public ReadOnly Property Value() As Object
+ Get
+ Return ValueSQLVALUE
+ End Get
+ End Property
+
+
+End Class
\ No newline at end of file
diff --git a/ATILLA_Speditionsbuch/cSpeditionsbuch.vb b/ATILLA_Speditionsbuch/cSpeditionsbuch.vb
new file mode 100644
index 0000000..2ad9836
--- /dev/null
+++ b/ATILLA_Speditionsbuch/cSpeditionsbuch.vb
@@ -0,0 +1,73 @@
+
+Public Class cSpeditionsbuch
+ Property FilialenNr As Integer = -1
+ Property AbfertigungsNr As Integer = -1
+ Property UnterNr As Integer = -1
+ Property Abfertigungsdatum As Object = Nothing
+ Property Bar As Boolean = False
+ Property Fakturiert As Boolean = False
+ Property BelegNr As String = ""
+ Property ErfassungsNr As String = ""
+ Property LKW_Kennzeichen As String = ""
+ 'Property AvisiererKundenNr As Integer = -1
+ ' Property Avisierer As String = ""
+ Property AbsenderKundenNr As Integer = -1
+ Property Absender As String = ""
+ Property AbsenderOffertenNr As Integer = -1
+ Property EmpfängerKundenNr As Integer = -1
+ Property Empfänger As String = ""
+ Property EmpfängerOffertenNr As Integer = -1
+ Property VermittlerKundenNr As Integer = -1
+ Property Vermittler As String = ""
+ Property VermittlerOffertenNr As Integer = -1
+ Property FrachtführerKundenNr As Integer = -1
+ Property Frachtführer As String = ""
+ Property AnzahlZA As Integer = 0
+ Property AnzahlZAFremd As Integer = 0
+ Property AnzahlZnV As Integer = 0
+ Property AnzahlZnVFremd As Integer = 0
+ Property AnzahlT1 As Integer = 0
+ Property AnzahlT2 As Integer = 0
+ Property AnzahlAE As Integer = 0
+ Property AnzahlCarnetTIR As Integer = 0
+ Property AnzahlBarvorlagen As Integer = 0
+ Property AnzahlSonstiges As Integer = 0
+ Property AnzahlGrenzgebühren As Integer = 0
+ Property AvisUhrzeit As String = ""
+ Property Vermerk As String = ""
+ Property Bemerkungen As String = ""
+ Property Währungsschlüssel As Integer = -1
+ Property Rechnungsbetrag As Double = 0
+ Property Umrechnungskurs As Double = 1
+ Property Packstücke As String = ""
+ Property Rohmasse As Integer = 0
+ Property Zahlungsaufschub As String = ""
+ Property Löschen As Object = Nothing
+ Property Abfertigungsart As Integer = -1
+ Property Abfertigungsanzahl As Integer = 0
+ Property Barzahlungsbetrag As Double = 0
+ Property Sachbearbeiter As String = ""
+ Property Personalnummer As Integer = -1
+ ' Property PersonalnummerQS As Integer = -1
+ Property AtlasBezNrEZA As String = ""
+ Property AtlasBezNrNCTS As String = ""
+ Property Versendungsland As String = ""
+ Property SB_CMR As Boolean = False
+ Property SB_CMRDatum As Object = Nothing
+ Property veoerz_basbtg As Double = 0
+ Property Zucker_MRN_Nr As String = ""
+ Property Zucker_MRN_Datum As Object = Nothing
+ Property Zucker_Aufschub As String = ""
+ Property Zollsystem As String = ""
+ Property Bestimmungszollstelle As String = ""
+ Property Bürgschaft As String = ""
+ Property Sicherheitsbetrag As Double = 0
+ Property SgutKompl As String = ""
+ Property Bestimmungsland As String = ""
+ Property EuFiskalEmpfänger As String = ""
+ Property QKN As String = ""
+ Property EndempfängerKundenNr As Integer = -1
+ Property Endempfänger As String = ""
+ Property SB_Zeitstempel As Object = Now
+
+End Class
diff --git a/DAKOSY_Worker/DAKOSY/ATLAS/AES/ERROR/e_err_nck.Designer.vb b/DAKOSY_Worker/DAKOSY/ATLAS/AES/ERROR/e_err_nck.Designer.vb
new file mode 100644
index 0000000..5005d31
--- /dev/null
+++ b/DAKOSY_Worker/DAKOSY/ATLAS/AES/ERROR/e_err_nck.Designer.vb
@@ -0,0 +1,2317 @@
+'' ------------------------------------------------------------------------------
+''
+'' Generated by Xsd2Code++. Version 4.4.0.7
+'' DEERREListVisualBasicFalseFalseFalseOnlyIfDifferentFalseNet45AllTrueTrueTrueFalseFalseFalseFalseFalseNoneStartWithUnderscoreFalseFalseFalseFalseFalsePublicTrueFalseFalseFalseFalseFalseFalseFalseFalseTrueTrueTrueFalseTrueSerializeDeserializeSaveToFileLoadFromFileFalseTrueIndent2SpaceFalseFalseUTF8XmlSerializerFalseFalseFalseFalseFalseFalseFalseEntityBaseFalseFalse
+''
+'' ------------------------------------------------------------------------------
+Imports System
+Imports System.Diagnostics
+Imports System.Xml.Serialization
+Imports System.Collections
+Imports System.Xml.Schema
+Imports System.ComponentModel
+Imports System.IO
+Imports System.Text
+Imports System.Xml
+Imports System.Collections.Generic
+
+Namespace DEERRE
+
+ _
+ Partial Public Class DEERRE
+
+#Region "Private fields"
+ Private _interchangeSender As DEERREInterchangeSender
+
+ Private _interchangeRecipient As DEERREInterchangeRecipient
+
+ Private _preparation As DEERREPreparation
+
+ Private _interchangeControlReference As String
+
+ Private _messageGroup As DEERREMessageGroup
+
+ Private _messageReferenceNumber As DEERREMessageReferenceNumber
+
+ Private _messageType As DEERREMessageType
+
+ Private _messageIdentifier As String
+
+ Private _header As DEERREHeader
+
+ Private _error As List(Of DEERREError)
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._error = New List(Of DEERREError)()
+ Me._header = New DEERREHeader()
+ Me._preparation = New DEERREPreparation()
+ Me._interchangeRecipient = New DEERREInterchangeRecipient()
+ Me._interchangeSender = New DEERREInterchangeSender()
+ End Sub
+
+ Public Property InterchangeSender() As DEERREInterchangeSender
+ Get
+ Return Me._interchangeSender
+ End Get
+ Set(value As DEERREInterchangeSender)
+ Me._interchangeSender = Value
+ End Set
+ End Property
+
+ Public Property InterchangeRecipient() As DEERREInterchangeRecipient
+ Get
+ Return Me._interchangeRecipient
+ End Get
+ Set(value As DEERREInterchangeRecipient)
+ Me._interchangeRecipient = Value
+ End Set
+ End Property
+
+ Public Property Preparation() As DEERREPreparation
+ Get
+ Return Me._preparation
+ End Get
+ Set(value As DEERREPreparation)
+ Me._preparation = Value
+ End Set
+ End Property
+
+ _
+ Public Property InterchangeControlReference() As String
+ Get
+ Return Me._interchangeControlReference
+ End Get
+ Set(value As String)
+ Me._interchangeControlReference = Value
+ End Set
+ End Property
+
+ Public Property MessageGroup() As DEERREMessageGroup
+ Get
+ Return Me._messageGroup
+ End Get
+ Set(value As DEERREMessageGroup)
+ Me._messageGroup = Value
+ End Set
+ End Property
+
+ Public Property MessageReferenceNumber() As DEERREMessageReferenceNumber
+ Get
+ Return Me._messageReferenceNumber
+ End Get
+ Set(value As DEERREMessageReferenceNumber)
+ Me._messageReferenceNumber = Value
+ End Set
+ End Property
+
+ Public Property MessageType() As DEERREMessageType
+ Get
+ Return Me._messageType
+ End Get
+ Set(value As DEERREMessageType)
+ Me._messageType = Value
+ End Set
+ End Property
+
+ _
+ Public Property MessageIdentifier() As String
+ Get
+ Return Me._messageIdentifier
+ End Get
+ Set(value As String)
+ Me._messageIdentifier = Value
+ End Set
+ End Property
+
+ Public Property Header() As DEERREHeader
+ Get
+ Return Me._header
+ End Get
+ Set(value As DEERREHeader)
+ Me._header = Value
+ End Set
+ End Property
+
+ _
+ Public Property [Error]() As List(Of DEERREError)
+ Get
+ Return Me._error
+ End Get
+ Set(value As List(Of DEERREError))
+ Me._error = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEERRE))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEERRE object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEERRE object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEERRE object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERRE, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERRE)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERRE) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEERRE
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEERRE)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEERRE
+ Return CType(Serializer.Deserialize(s), DEERRE)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEERRE object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEERRE object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEERRE object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERRE, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERRE)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERRE) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEERRE
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEERREInterchangeSender
+
+#Region "Private fields"
+ Private _identification As DEERREInterchangeSenderIdentification
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._identification = New DEERREInterchangeSenderIdentification()
+ End Sub
+
+ Public Property Identification() As DEERREInterchangeSenderIdentification
+ Get
+ Return Me._identification
+ End Get
+ Set(value As DEERREInterchangeSenderIdentification)
+ Me._identification = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEERREInterchangeSender))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEERREInterchangeSender object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEERREInterchangeSender object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEERREInterchangeSender object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREInterchangeSender, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREInterchangeSender)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREInterchangeSender) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEERREInterchangeSender
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEERREInterchangeSender)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEERREInterchangeSender
+ Return CType(Serializer.Deserialize(s), DEERREInterchangeSender)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEERREInterchangeSender object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEERREInterchangeSender object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEERREInterchangeSender object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREInterchangeSender, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREInterchangeSender)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREInterchangeSender) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEERREInterchangeSender
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEERREInterchangeSenderIdentification
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEERREInterchangeSenderIdentification))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEERREInterchangeSenderIdentification object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEERREInterchangeSenderIdentification object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEERREInterchangeSenderIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREInterchangeSenderIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREInterchangeSenderIdentification)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREInterchangeSenderIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEERREInterchangeSenderIdentification
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEERREInterchangeSenderIdentification)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEERREInterchangeSenderIdentification
+ Return CType(Serializer.Deserialize(s), DEERREInterchangeSenderIdentification)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEERREInterchangeSenderIdentification object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEERREInterchangeSenderIdentification object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEERREInterchangeSenderIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREInterchangeSenderIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREInterchangeSenderIdentification)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREInterchangeSenderIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEERREInterchangeSenderIdentification
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEERREInterchangeRecipient
+
+#Region "Private fields"
+ Private _identification As DEERREInterchangeRecipientIdentification
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._identification = New DEERREInterchangeRecipientIdentification()
+ End Sub
+
+ Public Property Identification() As DEERREInterchangeRecipientIdentification
+ Get
+ Return Me._identification
+ End Get
+ Set(value As DEERREInterchangeRecipientIdentification)
+ Me._identification = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEERREInterchangeRecipient))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEERREInterchangeRecipient object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEERREInterchangeRecipient object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEERREInterchangeRecipient object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREInterchangeRecipient, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREInterchangeRecipient)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREInterchangeRecipient) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEERREInterchangeRecipient
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEERREInterchangeRecipient)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEERREInterchangeRecipient
+ Return CType(Serializer.Deserialize(s), DEERREInterchangeRecipient)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEERREInterchangeRecipient object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEERREInterchangeRecipient object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEERREInterchangeRecipient object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREInterchangeRecipient, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREInterchangeRecipient)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREInterchangeRecipient) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEERREInterchangeRecipient
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEERREInterchangeRecipientIdentification
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private _subsidiaryNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property SubsidiaryNumber() As String
+ Get
+ Return Me._subsidiaryNumber
+ End Get
+ Set(value As String)
+ Me._subsidiaryNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEERREInterchangeRecipientIdentification))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEERREInterchangeRecipientIdentification object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEERREInterchangeRecipientIdentification object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEERREInterchangeRecipientIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREInterchangeRecipientIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREInterchangeRecipientIdentification)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREInterchangeRecipientIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEERREInterchangeRecipientIdentification
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEERREInterchangeRecipientIdentification)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEERREInterchangeRecipientIdentification
+ Return CType(Serializer.Deserialize(s), DEERREInterchangeRecipientIdentification)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEERREInterchangeRecipientIdentification object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEERREInterchangeRecipientIdentification object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEERREInterchangeRecipientIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREInterchangeRecipientIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREInterchangeRecipientIdentification)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREInterchangeRecipientIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEERREInterchangeRecipientIdentification
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEERREPreparation
+
+#Region "Private fields"
+ Private _date As Date
+
+ Private _time As Date
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property [Date]() As Date
+ Get
+ Return Me._date
+ End Get
+ Set(value As Date)
+ Me._date = Value
+ End Set
+ End Property
+
+ _
+ Public Property Time() As Date
+ Get
+ Return Me._time
+ End Get
+ Set(value As Date)
+ Me._time = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEERREPreparation))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEERREPreparation object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEERREPreparation object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEERREPreparation object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREPreparation, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREPreparation)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREPreparation) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEERREPreparation
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEERREPreparation)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEERREPreparation
+ Return CType(Serializer.Deserialize(s), DEERREPreparation)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEERREPreparation object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEERREPreparation object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEERREPreparation object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREPreparation, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREPreparation)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREPreparation) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEERREPreparation
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Public Enum DEERREMessageGroup
+
+ '''
+ _
+ Item
+
+ '''
+ EXP
+
+ '''
+ EXQ
+
+ '''
+ EXT
+ End Enum
+
+ _
+ Public Enum DEERREMessageReferenceNumber
+
+ '''
+ _
+ Item1
+ End Enum
+
+ _
+ Public Enum DEERREMessageType
+
+ '''
+ DEERRE
+ End Enum
+
+ _
+ Partial Public Class DEERREHeader
+
+#Region "Private fields"
+ Private _movementReferenceNumber As String
+
+ Private _messageVersion As String
+
+ Private _registrationNumber As String
+
+ Private _referencedMessageIdentifier As String
+
+ Private _localReferenceNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property MovementReferenceNumber() As String
+ Get
+ Return Me._movementReferenceNumber
+ End Get
+ Set(value As String)
+ Me._movementReferenceNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property MessageVersion() As String
+ Get
+ Return Me._messageVersion
+ End Get
+ Set(value As String)
+ Me._messageVersion = Value
+ End Set
+ End Property
+
+ _
+ Public Property RegistrationNumber() As String
+ Get
+ Return Me._registrationNumber
+ End Get
+ Set(value As String)
+ Me._registrationNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property ReferencedMessageIdentifier() As String
+ Get
+ Return Me._referencedMessageIdentifier
+ End Get
+ Set(value As String)
+ Me._referencedMessageIdentifier = Value
+ End Set
+ End Property
+
+ _
+ Public Property LocalReferenceNumber() As String
+ Get
+ Return Me._localReferenceNumber
+ End Get
+ Set(value As String)
+ Me._localReferenceNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEERREHeader))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEERREHeader object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEERREHeader object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEERREHeader object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREHeader, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREHeader)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREHeader) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEERREHeader
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEERREHeader)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEERREHeader
+ Return CType(Serializer.Deserialize(s), DEERREHeader)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEERREHeader object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEERREHeader object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEERREHeader object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREHeader, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREHeader)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREHeader) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEERREHeader
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEERREError
+
+#Region "Private fields"
+ Private _lineNumber As String
+
+ Private _columnNumber As String
+
+ Private _code As String
+
+ Private _pointer As String
+
+ Private _text As String
+
+ Private _originalValue As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property LineNumber() As String
+ Get
+ Return Me._lineNumber
+ End Get
+ Set(value As String)
+ Me._lineNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property ColumnNumber() As String
+ Get
+ Return Me._columnNumber
+ End Get
+ Set(value As String)
+ Me._columnNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property Code() As String
+ Get
+ Return Me._code
+ End Get
+ Set(value As String)
+ Me._code = Value
+ End Set
+ End Property
+
+ _
+ Public Property Pointer() As String
+ Get
+ Return Me._pointer
+ End Get
+ Set(value As String)
+ Me._pointer = Value
+ End Set
+ End Property
+
+ _
+ Public Property Text() As String
+ Get
+ Return Me._text
+ End Get
+ Set(value As String)
+ Me._text = Value
+ End Set
+ End Property
+
+ _
+ Public Property OriginalValue() As String
+ Get
+ Return Me._originalValue
+ End Get
+ Set(value As String)
+ Me._originalValue = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEERREError))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEERREError object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEERREError object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEERREError object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREError, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREError)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEERREError) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEERREError
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEERREError)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEERREError
+ Return CType(Serializer.Deserialize(s), DEERREError)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEERREError object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEERREError object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEERREError object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREError, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEERREError)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEERREError) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEERREError
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class [decimal]
+
+#Region "Private fields"
+ Private _anyAttr As List(Of System.Xml.XmlAttribute)
+
+ Private _value As Decimal
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._anyAttr = New List(Of System.Xml.XmlAttribute)()
+ End Sub
+
+ _
+ Public Property AnyAttr() As List(Of System.Xml.XmlAttribute)
+ Get
+ Return Me._anyAttr
+ End Get
+ Set(value As List(Of System.Xml.XmlAttribute))
+ Me._anyAttr = Value
+ End Set
+ End Property
+
+ _
+ Public Property Value() As Decimal
+ Get
+ Return Me._value
+ End Get
+ Set(value As Decimal)
+ Me._value = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType([decimal]))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current decimal object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an decimal object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output decimal object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [decimal], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [decimal])
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [decimal]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As [decimal]
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), [decimal])
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As [decimal]
+ Return CType(Serializer.Deserialize(s), [decimal])
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current decimal object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an decimal object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output decimal object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [decimal], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [decimal])
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [decimal]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As [decimal]
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class [integer]
+
+#Region "Private fields"
+ Private _anyAttr As List(Of System.Xml.XmlAttribute)
+
+ Private _value As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._anyAttr = New List(Of System.Xml.XmlAttribute)()
+ End Sub
+
+ _
+ Public Property AnyAttr() As List(Of System.Xml.XmlAttribute)
+ Get
+ Return Me._anyAttr
+ End Get
+ Set(value As List(Of System.Xml.XmlAttribute))
+ Me._anyAttr = Value
+ End Set
+ End Property
+
+ _
+ Public Property Value() As String
+ Get
+ Return Me._value
+ End Get
+ Set(value As String)
+ Me._value = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType([integer]))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current integer object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an integer object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output integer object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [integer], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [integer])
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [integer]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As [integer]
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), [integer])
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As [integer]
+ Return CType(Serializer.Deserialize(s), [integer])
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current integer object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an integer object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output integer object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [integer], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [integer])
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [integer]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As [integer]
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class token
+
+#Region "Private fields"
+ Private _anyAttr As List(Of System.Xml.XmlAttribute)
+
+ Private _value As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._anyAttr = New List(Of System.Xml.XmlAttribute)()
+ End Sub
+
+ _
+ Public Property AnyAttr() As List(Of System.Xml.XmlAttribute)
+ Get
+ Return Me._anyAttr
+ End Get
+ Set(value As List(Of System.Xml.XmlAttribute))
+ Me._anyAttr = Value
+ End Set
+ End Property
+
+ _
+ Public Property Value() As String
+ Get
+ Return Me._value
+ End Get
+ Set(value As String)
+ Me._value = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(token))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current token object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an token object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output token object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As token, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, token)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As token) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As token
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), token)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As token
+ Return CType(Serializer.Deserialize(s), token)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current token object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an token object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output token object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As token, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, token)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As token) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As token
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+End Namespace
diff --git a/DAKOSY_Worker/DAKOSY/ATLAS/AES/ERROR/e_err_nck.xsd b/DAKOSY_Worker/DAKOSY/ATLAS/AES/ERROR/e_err_nck.xsd
new file mode 100644
index 0000000..0debcea
--- /dev/null
+++ b/DAKOSY_Worker/DAKOSY/ATLAS/AES/ERROR/e_err_nck.xsd
@@ -0,0 +1,481 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/DAKOSY_Worker/DAKOSY/ATLAS/AES/Statusmeldung/e_exp_sta.Designer.vb b/DAKOSY_Worker/DAKOSY/ATLAS/AES/Statusmeldung/e_exp_sta.Designer.vb
new file mode 100644
index 0000000..ae2209d
--- /dev/null
+++ b/DAKOSY_Worker/DAKOSY/ATLAS/AES/Statusmeldung/e_exp_sta.Designer.vb
@@ -0,0 +1,4076 @@
+'' ------------------------------------------------------------------------------
+''
+'' Generated by Xsd2Code++. Version 4.4.0.7
+'' DEXPSDListVisualBasicFalseFalseFalseOnlyIfDifferentFalseNet45AllTrueTrueTrueFalseFalseFalseFalseFalseNoneStartWithUnderscoreFalseFalseFalseFalseFalsePublicTrueFalseFalseFalseFalseFalseFalseFalseFalseTrueTrueTrueFalseTrueSerializeDeserializeSaveToFileLoadFromFileFalseTrueIndent2SpaceFalseFalseUTF8XmlSerializerFalseFalseFalseFalseFalseFalseFalseEntityBaseFalseFalse
+''
+'' ------------------------------------------------------------------------------
+Imports System
+Imports System.Diagnostics
+Imports System.Xml.Serialization
+Imports System.Collections
+Imports System.Xml.Schema
+Imports System.ComponentModel
+Imports System.IO
+Imports System.Text
+Imports System.Xml
+Imports System.Collections.Generic
+
+Namespace DEXPSD
+
+ _
+ Partial Public Class DEXPSD
+
+#Region "Private fields"
+ Private _interchangeSender As DEXPSDInterchangeSender
+
+ Private _interchangeRecipient As DEXPSDInterchangeRecipient
+
+ Private _preparation As DEXPSDPreparation
+
+ Private _interchangeControlReference As String
+
+ Private _messageGroup As DEXPSDMessageGroup
+
+ Private _messageReferenceNumber As DEXPSDMessageReferenceNumber
+
+ Private _messageType As DEXPSDMessageType
+
+ Private _messageIdentifier As String
+
+ Private _header As DEXPSDHeader
+
+ Private _exportCustomsOffice As DEXPSDExportCustomsOffice
+
+ Private _supplementaryDeclarationCustomsOffice As DEXPSDSupplementaryDeclarationCustomsOffice
+
+ Private _declarant As DEXPSDDeclarant
+
+ Private _representative As DEXPSDRepresentative
+
+ Private _error As List(Of DEXPSDError)
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._error = New List(Of DEXPSDError)()
+ Me._representative = New DEXPSDRepresentative()
+ Me._declarant = New DEXPSDDeclarant()
+ Me._supplementaryDeclarationCustomsOffice = New DEXPSDSupplementaryDeclarationCustomsOffice()
+ Me._exportCustomsOffice = New DEXPSDExportCustomsOffice()
+ Me._header = New DEXPSDHeader()
+ Me._preparation = New DEXPSDPreparation()
+ Me._interchangeRecipient = New DEXPSDInterchangeRecipient()
+ Me._interchangeSender = New DEXPSDInterchangeSender()
+ End Sub
+
+ Public Property InterchangeSender() As DEXPSDInterchangeSender
+ Get
+ Return Me._interchangeSender
+ End Get
+ Set(value As DEXPSDInterchangeSender)
+ Me._interchangeSender = Value
+ End Set
+ End Property
+
+ Public Property InterchangeRecipient() As DEXPSDInterchangeRecipient
+ Get
+ Return Me._interchangeRecipient
+ End Get
+ Set(value As DEXPSDInterchangeRecipient)
+ Me._interchangeRecipient = Value
+ End Set
+ End Property
+
+ Public Property Preparation() As DEXPSDPreparation
+ Get
+ Return Me._preparation
+ End Get
+ Set(value As DEXPSDPreparation)
+ Me._preparation = Value
+ End Set
+ End Property
+
+ _
+ Public Property InterchangeControlReference() As String
+ Get
+ Return Me._interchangeControlReference
+ End Get
+ Set(value As String)
+ Me._interchangeControlReference = Value
+ End Set
+ End Property
+
+ Public Property MessageGroup() As DEXPSDMessageGroup
+ Get
+ Return Me._messageGroup
+ End Get
+ Set(value As DEXPSDMessageGroup)
+ Me._messageGroup = Value
+ End Set
+ End Property
+
+ Public Property MessageReferenceNumber() As DEXPSDMessageReferenceNumber
+ Get
+ Return Me._messageReferenceNumber
+ End Get
+ Set(value As DEXPSDMessageReferenceNumber)
+ Me._messageReferenceNumber = Value
+ End Set
+ End Property
+
+ Public Property MessageType() As DEXPSDMessageType
+ Get
+ Return Me._messageType
+ End Get
+ Set(value As DEXPSDMessageType)
+ Me._messageType = Value
+ End Set
+ End Property
+
+ _
+ Public Property MessageIdentifier() As String
+ Get
+ Return Me._messageIdentifier
+ End Get
+ Set(value As String)
+ Me._messageIdentifier = Value
+ End Set
+ End Property
+
+ Public Property Header() As DEXPSDHeader
+ Get
+ Return Me._header
+ End Get
+ Set(value As DEXPSDHeader)
+ Me._header = Value
+ End Set
+ End Property
+
+ Public Property ExportCustomsOffice() As DEXPSDExportCustomsOffice
+ Get
+ Return Me._exportCustomsOffice
+ End Get
+ Set(value As DEXPSDExportCustomsOffice)
+ Me._exportCustomsOffice = Value
+ End Set
+ End Property
+
+ Public Property SupplementaryDeclarationCustomsOffice() As DEXPSDSupplementaryDeclarationCustomsOffice
+ Get
+ Return Me._supplementaryDeclarationCustomsOffice
+ End Get
+ Set(value As DEXPSDSupplementaryDeclarationCustomsOffice)
+ Me._supplementaryDeclarationCustomsOffice = Value
+ End Set
+ End Property
+
+ Public Property Declarant() As DEXPSDDeclarant
+ Get
+ Return Me._declarant
+ End Get
+ Set(value As DEXPSDDeclarant)
+ Me._declarant = Value
+ End Set
+ End Property
+
+ Public Property Representative() As DEXPSDRepresentative
+ Get
+ Return Me._representative
+ End Get
+ Set(value As DEXPSDRepresentative)
+ Me._representative = Value
+ End Set
+ End Property
+
+ _
+ Public Property [Error]() As List(Of DEXPSDError)
+ Get
+ Return Me._error
+ End Get
+ Set(value As List(Of DEXPSDError))
+ Me._error = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSD))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSD object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSD object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSD object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSD, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSD)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSD) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSD
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSD)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSD
+ Return CType(Serializer.Deserialize(s), DEXPSD)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSD object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSD object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSD object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSD, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSD)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSD) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSD
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDInterchangeSender
+
+#Region "Private fields"
+ Private _identification As DEXPSDInterchangeSenderIdentification
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._identification = New DEXPSDInterchangeSenderIdentification()
+ End Sub
+
+ Public Property Identification() As DEXPSDInterchangeSenderIdentification
+ Get
+ Return Me._identification
+ End Get
+ Set(value As DEXPSDInterchangeSenderIdentification)
+ Me._identification = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDInterchangeSender))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDInterchangeSender object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDInterchangeSender object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDInterchangeSender object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDInterchangeSender, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDInterchangeSender)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDInterchangeSender) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDInterchangeSender
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDInterchangeSender)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDInterchangeSender
+ Return CType(Serializer.Deserialize(s), DEXPSDInterchangeSender)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDInterchangeSender object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDInterchangeSender object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDInterchangeSender object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDInterchangeSender, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDInterchangeSender)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDInterchangeSender) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDInterchangeSender
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDInterchangeSenderIdentification
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDInterchangeSenderIdentification))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDInterchangeSenderIdentification object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDInterchangeSenderIdentification object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDInterchangeSenderIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDInterchangeSenderIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDInterchangeSenderIdentification)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDInterchangeSenderIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDInterchangeSenderIdentification
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDInterchangeSenderIdentification)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDInterchangeSenderIdentification
+ Return CType(Serializer.Deserialize(s), DEXPSDInterchangeSenderIdentification)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDInterchangeSenderIdentification object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDInterchangeSenderIdentification object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDInterchangeSenderIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDInterchangeSenderIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDInterchangeSenderIdentification)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDInterchangeSenderIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDInterchangeSenderIdentification
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDInterchangeRecipient
+
+#Region "Private fields"
+ Private _identification As DEXPSDInterchangeRecipientIdentification
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._identification = New DEXPSDInterchangeRecipientIdentification()
+ End Sub
+
+ Public Property Identification() As DEXPSDInterchangeRecipientIdentification
+ Get
+ Return Me._identification
+ End Get
+ Set(value As DEXPSDInterchangeRecipientIdentification)
+ Me._identification = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDInterchangeRecipient))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDInterchangeRecipient object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDInterchangeRecipient object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDInterchangeRecipient object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDInterchangeRecipient, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDInterchangeRecipient)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDInterchangeRecipient) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDInterchangeRecipient
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDInterchangeRecipient)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDInterchangeRecipient
+ Return CType(Serializer.Deserialize(s), DEXPSDInterchangeRecipient)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDInterchangeRecipient object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDInterchangeRecipient object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDInterchangeRecipient object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDInterchangeRecipient, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDInterchangeRecipient)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDInterchangeRecipient) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDInterchangeRecipient
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDInterchangeRecipientIdentification
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private _subsidiaryNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property SubsidiaryNumber() As String
+ Get
+ Return Me._subsidiaryNumber
+ End Get
+ Set(value As String)
+ Me._subsidiaryNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDInterchangeRecipientIdentification))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDInterchangeRecipientIdentification object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDInterchangeRecipientIdentification object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDInterchangeRecipientIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDInterchangeRecipientIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDInterchangeRecipientIdentification)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDInterchangeRecipientIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDInterchangeRecipientIdentification
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDInterchangeRecipientIdentification)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDInterchangeRecipientIdentification
+ Return CType(Serializer.Deserialize(s), DEXPSDInterchangeRecipientIdentification)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDInterchangeRecipientIdentification object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDInterchangeRecipientIdentification object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDInterchangeRecipientIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDInterchangeRecipientIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDInterchangeRecipientIdentification)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDInterchangeRecipientIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDInterchangeRecipientIdentification
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDPreparation
+
+#Region "Private fields"
+ Private _date As Date
+
+ Private _time As Date
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property [Date]() As Date
+ Get
+ Return Me._date
+ End Get
+ Set(value As Date)
+ Me._date = Value
+ End Set
+ End Property
+
+ _
+ Public Property Time() As Date
+ Get
+ Return Me._time
+ End Get
+ Set(value As Date)
+ Me._time = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDPreparation))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDPreparation object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDPreparation object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDPreparation object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDPreparation, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDPreparation)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDPreparation) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDPreparation
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDPreparation)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDPreparation
+ Return CType(Serializer.Deserialize(s), DEXPSDPreparation)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDPreparation object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDPreparation object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDPreparation object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDPreparation, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDPreparation)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDPreparation) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDPreparation
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Public Enum DEXPSDMessageGroup
+
+ '''
+ EXP
+ End Enum
+
+ _
+ Public Enum DEXPSDMessageReferenceNumber
+
+ '''
+ _
+ Item1
+ End Enum
+
+ _
+ Public Enum DEXPSDMessageType
+
+ '''
+ DEXPSD
+ End Enum
+
+ _
+ Partial Public Class DEXPSDHeader
+
+#Region "Private fields"
+ Private _movementReferenceNumber As String
+
+ Private _messageVersion As String
+
+ Private _priorNotificationDateTime As Date
+
+ Private _priorNotificationRejectionDateTime As Date
+
+ Private _receptionDateTime As Date
+
+ Private _presentationOutsideCustomsAreaRefusalDateTime As Date
+
+ Private _loadingStartDateTime As Date
+
+ Private _loadingEndDateTime As Date
+
+ Private _acceptanceDecisionDateTime As Date
+
+ Private _issuingDecisionDateTime As Date
+
+ Private _cancellationDecisionDateTime As Date
+
+ Private _completionDateTime As Date
+
+ Private _reason As String
+
+ Private _exportStatus As DEXPSDHeaderExportStatus
+
+ Private _referencedMessageIdentifier As String
+
+ Private _localReferenceNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property MovementReferenceNumber() As String
+ Get
+ Return Me._movementReferenceNumber
+ End Get
+ Set(value As String)
+ Me._movementReferenceNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property MessageVersion() As String
+ Get
+ Return Me._messageVersion
+ End Get
+ Set(value As String)
+ Me._messageVersion = Value
+ End Set
+ End Property
+
+ Public Property PriorNotificationDateTime() As Date
+ Get
+ Return Me._priorNotificationDateTime
+ End Get
+ Set(value As Date)
+ Me._priorNotificationDateTime = Value
+ End Set
+ End Property
+
+ Public Property PriorNotificationRejectionDateTime() As Date
+ Get
+ Return Me._priorNotificationRejectionDateTime
+ End Get
+ Set(value As Date)
+ Me._priorNotificationRejectionDateTime = Value
+ End Set
+ End Property
+
+ Public Property ReceptionDateTime() As Date
+ Get
+ Return Me._receptionDateTime
+ End Get
+ Set(value As Date)
+ Me._receptionDateTime = Value
+ End Set
+ End Property
+
+ Public Property PresentationOutsideCustomsAreaRefusalDateTime() As Date
+ Get
+ Return Me._presentationOutsideCustomsAreaRefusalDateTime
+ End Get
+ Set(value As Date)
+ Me._presentationOutsideCustomsAreaRefusalDateTime = Value
+ End Set
+ End Property
+
+ Public Property LoadingStartDateTime() As Date
+ Get
+ Return Me._loadingStartDateTime
+ End Get
+ Set(value As Date)
+ Me._loadingStartDateTime = Value
+ End Set
+ End Property
+
+ Public Property LoadingEndDateTime() As Date
+ Get
+ Return Me._loadingEndDateTime
+ End Get
+ Set(value As Date)
+ Me._loadingEndDateTime = Value
+ End Set
+ End Property
+
+ Public Property AcceptanceDecisionDateTime() As Date
+ Get
+ Return Me._acceptanceDecisionDateTime
+ End Get
+ Set(value As Date)
+ Me._acceptanceDecisionDateTime = Value
+ End Set
+ End Property
+
+ Public Property IssuingDecisionDateTime() As Date
+ Get
+ Return Me._issuingDecisionDateTime
+ End Get
+ Set(value As Date)
+ Me._issuingDecisionDateTime = Value
+ End Set
+ End Property
+
+ Public Property CancellationDecisionDateTime() As Date
+ Get
+ Return Me._cancellationDecisionDateTime
+ End Get
+ Set(value As Date)
+ Me._cancellationDecisionDateTime = Value
+ End Set
+ End Property
+
+ Public Property CompletionDateTime() As Date
+ Get
+ Return Me._completionDateTime
+ End Get
+ Set(value As Date)
+ Me._completionDateTime = Value
+ End Set
+ End Property
+
+ _
+ Public Property Reason() As String
+ Get
+ Return Me._reason
+ End Get
+ Set(value As String)
+ Me._reason = Value
+ End Set
+ End Property
+
+ Public Property ExportStatus() As DEXPSDHeaderExportStatus
+ Get
+ Return Me._exportStatus
+ End Get
+ Set(value As DEXPSDHeaderExportStatus)
+ Me._exportStatus = Value
+ End Set
+ End Property
+
+ _
+ Public Property ReferencedMessageIdentifier() As String
+ Get
+ Return Me._referencedMessageIdentifier
+ End Get
+ Set(value As String)
+ Me._referencedMessageIdentifier = Value
+ End Set
+ End Property
+
+ _
+ Public Property LocalReferenceNumber() As String
+ Get
+ Return Me._localReferenceNumber
+ End Get
+ Set(value As String)
+ Me._localReferenceNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDHeader))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDHeader object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDHeader object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDHeader object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDHeader, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDHeader)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDHeader) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDHeader
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDHeader)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDHeader
+ Return CType(Serializer.Deserialize(s), DEXPSDHeader)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDHeader object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDHeader object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDHeader object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDHeader, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDHeader)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDHeader) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDHeader
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Public Enum DEXPSDHeaderExportStatus
+
+ '''
+ _
+ Item10
+
+ '''
+ _
+ Item11
+
+ '''
+ _
+ Item12
+
+ '''
+ _
+ Item13
+
+ '''
+ _
+ Item15
+
+ '''
+ _
+ Item16
+
+ '''
+ _
+ Item17
+
+ '''
+ _
+ Item18
+
+ '''
+ _
+ Item30
+
+ '''
+ _
+ Item31
+
+ '''
+ _
+ Item32
+
+ '''
+ _
+ Item33
+
+ '''
+ _
+ Item35
+
+ '''
+ _
+ Item36
+
+ '''
+ _
+ Item37
+
+ '''
+ _
+ Item38
+
+ '''
+ _
+ Item39
+ End Enum
+
+ _
+ Partial Public Class DEXPSDExportCustomsOffice
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private _contactPerson As DEXPSDExportCustomsOfficeContactPerson
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._contactPerson = New DEXPSDExportCustomsOfficeContactPerson()
+ End Sub
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ Public Property ContactPerson() As DEXPSDExportCustomsOfficeContactPerson
+ Get
+ Return Me._contactPerson
+ End Get
+ Set(value As DEXPSDExportCustomsOfficeContactPerson)
+ Me._contactPerson = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDExportCustomsOffice))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDExportCustomsOffice object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDExportCustomsOffice object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDExportCustomsOffice object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDExportCustomsOffice, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDExportCustomsOffice)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDExportCustomsOffice) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDExportCustomsOffice
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDExportCustomsOffice)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDExportCustomsOffice
+ Return CType(Serializer.Deserialize(s), DEXPSDExportCustomsOffice)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDExportCustomsOffice object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDExportCustomsOffice object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDExportCustomsOffice object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDExportCustomsOffice, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDExportCustomsOffice)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDExportCustomsOffice) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDExportCustomsOffice
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDExportCustomsOfficeContactPerson
+
+#Region "Private fields"
+ Private _name As String
+
+ Private _phoneNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property Name() As String
+ Get
+ Return Me._name
+ End Get
+ Set(value As String)
+ Me._name = Value
+ End Set
+ End Property
+
+ _
+ Public Property PhoneNumber() As String
+ Get
+ Return Me._phoneNumber
+ End Get
+ Set(value As String)
+ Me._phoneNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDExportCustomsOfficeContactPerson))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDExportCustomsOfficeContactPerson object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDExportCustomsOfficeContactPerson object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDExportCustomsOfficeContactPerson object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDExportCustomsOfficeContactPerson, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDExportCustomsOfficeContactPerson)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDExportCustomsOfficeContactPerson) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDExportCustomsOfficeContactPerson
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDExportCustomsOfficeContactPerson)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDExportCustomsOfficeContactPerson
+ Return CType(Serializer.Deserialize(s), DEXPSDExportCustomsOfficeContactPerson)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDExportCustomsOfficeContactPerson object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDExportCustomsOfficeContactPerson object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDExportCustomsOfficeContactPerson object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDExportCustomsOfficeContactPerson, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDExportCustomsOfficeContactPerson)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDExportCustomsOfficeContactPerson) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDExportCustomsOfficeContactPerson
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDSupplementaryDeclarationCustomsOffice
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private _contactPerson As DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._contactPerson = New DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson()
+ End Sub
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ Public Property ContactPerson() As DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson
+ Get
+ Return Me._contactPerson
+ End Get
+ Set(value As DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson)
+ Me._contactPerson = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDSupplementaryDeclarationCustomsOffice))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDSupplementaryDeclarationCustomsOffice object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDSupplementaryDeclarationCustomsOffice object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDSupplementaryDeclarationCustomsOffice object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDSupplementaryDeclarationCustomsOffice, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDSupplementaryDeclarationCustomsOffice)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDSupplementaryDeclarationCustomsOffice) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDSupplementaryDeclarationCustomsOffice
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDSupplementaryDeclarationCustomsOffice)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDSupplementaryDeclarationCustomsOffice
+ Return CType(Serializer.Deserialize(s), DEXPSDSupplementaryDeclarationCustomsOffice)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDSupplementaryDeclarationCustomsOffice object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDSupplementaryDeclarationCustomsOffice object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDSupplementaryDeclarationCustomsOffice object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDSupplementaryDeclarationCustomsOffice, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDSupplementaryDeclarationCustomsOffice)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDSupplementaryDeclarationCustomsOffice) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDSupplementaryDeclarationCustomsOffice
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson
+
+#Region "Private fields"
+ Private _name As String
+
+ Private _phoneNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property Name() As String
+ Get
+ Return Me._name
+ End Get
+ Set(value As String)
+ Me._name = Value
+ End Set
+ End Property
+
+ _
+ Public Property PhoneNumber() As String
+ Get
+ Return Me._phoneNumber
+ End Get
+ Set(value As String)
+ Me._phoneNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson
+ Return CType(Serializer.Deserialize(s), DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDSupplementaryDeclarationCustomsOfficeContactPerson
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDDeclarant
+
+#Region "Private fields"
+ Private _class As DEXPSDDeclarantClass
+
+ Private _identification As DEXPSDDeclarantIdentification
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._identification = New DEXPSDDeclarantIdentification()
+ End Sub
+
+ Public Property [Class]() As DEXPSDDeclarantClass
+ Get
+ Return Me._class
+ End Get
+ Set(value As DEXPSDDeclarantClass)
+ Me._class = Value
+ End Set
+ End Property
+
+ Public Property Identification() As DEXPSDDeclarantIdentification
+ Get
+ Return Me._identification
+ End Get
+ Set(value As DEXPSDDeclarantIdentification)
+ Me._identification = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDDeclarant))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDDeclarant object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDDeclarant object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDDeclarant object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDDeclarant, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDDeclarant)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDDeclarant) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDDeclarant
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDDeclarant)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDDeclarant
+ Return CType(Serializer.Deserialize(s), DEXPSDDeclarant)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDDeclarant object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDDeclarant object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDDeclarant object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDDeclarant, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDDeclarant)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDDeclarant) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDDeclarant
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Public Enum DEXPSDDeclarantClass
+
+ '''
+ _
+ Item1
+
+ '''
+ _
+ Item2
+ End Enum
+
+ _
+ Partial Public Class DEXPSDDeclarantIdentification
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private _subsidiaryNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property SubsidiaryNumber() As String
+ Get
+ Return Me._subsidiaryNumber
+ End Get
+ Set(value As String)
+ Me._subsidiaryNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDDeclarantIdentification))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDDeclarantIdentification object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDDeclarantIdentification object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDDeclarantIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDDeclarantIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDDeclarantIdentification)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDDeclarantIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDDeclarantIdentification
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDDeclarantIdentification)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDDeclarantIdentification
+ Return CType(Serializer.Deserialize(s), DEXPSDDeclarantIdentification)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDDeclarantIdentification object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDDeclarantIdentification object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDDeclarantIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDDeclarantIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDDeclarantIdentification)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDDeclarantIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDDeclarantIdentification
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDRepresentative
+
+#Region "Private fields"
+ Private _class As DEXPSDRepresentativeClass
+
+ Private _identification As DEXPSDRepresentativeIdentification
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._identification = New DEXPSDRepresentativeIdentification()
+ End Sub
+
+ Public Property [Class]() As DEXPSDRepresentativeClass
+ Get
+ Return Me._class
+ End Get
+ Set(value As DEXPSDRepresentativeClass)
+ Me._class = Value
+ End Set
+ End Property
+
+ Public Property Identification() As DEXPSDRepresentativeIdentification
+ Get
+ Return Me._identification
+ End Get
+ Set(value As DEXPSDRepresentativeIdentification)
+ Me._identification = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDRepresentative))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDRepresentative object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDRepresentative object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDRepresentative object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDRepresentative, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDRepresentative)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDRepresentative) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDRepresentative
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDRepresentative)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDRepresentative
+ Return CType(Serializer.Deserialize(s), DEXPSDRepresentative)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDRepresentative object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDRepresentative object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDRepresentative object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDRepresentative, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDRepresentative)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDRepresentative) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDRepresentative
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Public Enum DEXPSDRepresentativeClass
+
+ '''
+ _
+ Item1
+
+ '''
+ _
+ Item2
+ End Enum
+
+ _
+ Partial Public Class DEXPSDRepresentativeIdentification
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private _subsidiaryNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property SubsidiaryNumber() As String
+ Get
+ Return Me._subsidiaryNumber
+ End Get
+ Set(value As String)
+ Me._subsidiaryNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDRepresentativeIdentification))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDRepresentativeIdentification object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDRepresentativeIdentification object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDRepresentativeIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDRepresentativeIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDRepresentativeIdentification)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDRepresentativeIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDRepresentativeIdentification
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDRepresentativeIdentification)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDRepresentativeIdentification
+ Return CType(Serializer.Deserialize(s), DEXPSDRepresentativeIdentification)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDRepresentativeIdentification object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDRepresentativeIdentification object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDRepresentativeIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDRepresentativeIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDRepresentativeIdentification)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDRepresentativeIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDRepresentativeIdentification
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPSDError
+
+#Region "Private fields"
+ Private _code As String
+
+ Private _pointer As String
+
+ Private _text As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property Code() As String
+ Get
+ Return Me._code
+ End Get
+ Set(value As String)
+ Me._code = Value
+ End Set
+ End Property
+
+ _
+ Public Property Pointer() As String
+ Get
+ Return Me._pointer
+ End Get
+ Set(value As String)
+ Me._pointer = Value
+ End Set
+ End Property
+
+ _
+ Public Property Text() As String
+ Get
+ Return Me._text
+ End Get
+ Set(value As String)
+ Me._text = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPSDError))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPSDError object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPSDError object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPSDError object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDError, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDError)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPSDError) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPSDError
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPSDError)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPSDError
+ Return CType(Serializer.Deserialize(s), DEXPSDError)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPSDError object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPSDError object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPSDError object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDError, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPSDError)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPSDError) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPSDError
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class [decimal]
+
+#Region "Private fields"
+ Private _anyAttr As List(Of System.Xml.XmlAttribute)
+
+ Private _value As Decimal
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._anyAttr = New List(Of System.Xml.XmlAttribute)()
+ End Sub
+
+ _
+ Public Property AnyAttr() As List(Of System.Xml.XmlAttribute)
+ Get
+ Return Me._anyAttr
+ End Get
+ Set(value As List(Of System.Xml.XmlAttribute))
+ Me._anyAttr = Value
+ End Set
+ End Property
+
+ _
+ Public Property Value() As Decimal
+ Get
+ Return Me._value
+ End Get
+ Set(value As Decimal)
+ Me._value = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType([decimal]))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current decimal object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an decimal object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output decimal object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [decimal], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [decimal])
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [decimal]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As [decimal]
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), [decimal])
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As [decimal]
+ Return CType(Serializer.Deserialize(s), [decimal])
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current decimal object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an decimal object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output decimal object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [decimal], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [decimal])
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [decimal]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As [decimal]
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class [integer]
+
+#Region "Private fields"
+ Private _anyAttr As List(Of System.Xml.XmlAttribute)
+
+ Private _value As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._anyAttr = New List(Of System.Xml.XmlAttribute)()
+ End Sub
+
+ _
+ Public Property AnyAttr() As List(Of System.Xml.XmlAttribute)
+ Get
+ Return Me._anyAttr
+ End Get
+ Set(value As List(Of System.Xml.XmlAttribute))
+ Me._anyAttr = Value
+ End Set
+ End Property
+
+ _
+ Public Property Value() As String
+ Get
+ Return Me._value
+ End Get
+ Set(value As String)
+ Me._value = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType([integer]))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current integer object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an integer object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output integer object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [integer], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [integer])
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [integer]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As [integer]
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), [integer])
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As [integer]
+ Return CType(Serializer.Deserialize(s), [integer])
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current integer object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an integer object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output integer object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [integer], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [integer])
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [integer]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As [integer]
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class token
+
+#Region "Private fields"
+ Private _anyAttr As List(Of System.Xml.XmlAttribute)
+
+ Private _value As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._anyAttr = New List(Of System.Xml.XmlAttribute)()
+ End Sub
+
+ _
+ Public Property AnyAttr() As List(Of System.Xml.XmlAttribute)
+ Get
+ Return Me._anyAttr
+ End Get
+ Set(value As List(Of System.Xml.XmlAttribute))
+ Me._anyAttr = Value
+ End Set
+ End Property
+
+ _
+ Public Property Value() As String
+ Get
+ Return Me._value
+ End Get
+ Set(value As String)
+ Me._value = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(token))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current token object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an token object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output token object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As token, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, token)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As token) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As token
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), token)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As token
+ Return CType(Serializer.Deserialize(s), token)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current token object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an token object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output token object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As token, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, token)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As token) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As token
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+End Namespace
diff --git a/DAKOSY_Worker/DAKOSY/ATLAS/AES/Statusmeldung/e_exp_sta.xsd b/DAKOSY_Worker/DAKOSY/ATLAS/AES/Statusmeldung/e_exp_sta.xsd
new file mode 100644
index 0000000..455c4cc
--- /dev/null
+++ b/DAKOSY_Worker/DAKOSY/ATLAS/AES/Statusmeldung/e_exp_sta.xsd
@@ -0,0 +1,950 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/DAKOSY_Worker/DAKOSY/ATLAS/AES/Storno/e_exp_can.Designer.vb b/DAKOSY_Worker/DAKOSY/ATLAS/AES/Storno/e_exp_can.Designer.vb
new file mode 100644
index 0000000..f1242f2
--- /dev/null
+++ b/DAKOSY_Worker/DAKOSY/ATLAS/AES/Storno/e_exp_can.Designer.vb
@@ -0,0 +1,3066 @@
+'' ------------------------------------------------------------------------------
+''
+'' Generated by Xsd2Code++. Version 4.4.0.7
+'' DEXPCCListVisualBasicFalseFalseFalseOnlyIfDifferentFalseNet45AllTrueTrueTrueFalseFalseFalseFalseFalseNoneStartWithUnderscoreFalseFalseFalseFalseFalsePublicTrueFalseFalseFalseFalseFalseFalseFalseFalseTrueTrueTrueFalseTrueSerializeDeserializeSaveToFileLoadFromFileFalseTrueIndent2SpaceFalseFalseUTF8XmlSerializerFalseFalseFalseFalseFalseFalseFalseEntityBaseFalseFalse
+''
+'' ------------------------------------------------------------------------------
+Imports System
+Imports System.Diagnostics
+Imports System.Xml.Serialization
+Imports System.Collections
+Imports System.Xml.Schema
+Imports System.ComponentModel
+Imports System.IO
+Imports System.Text
+Imports System.Xml
+Imports System.Collections.Generic
+
+Namespace DEXPCC
+
+ _
+ Partial Public Class DEXPCC
+
+#Region "Private fields"
+ Private _interchangeSender As DEXPCCInterchangeSender
+
+ Private _interchangeRecipient As DEXPCCInterchangeRecipient
+
+ Private _preparation As DEXPCCPreparation
+
+ Private _interchangeControlReference As String
+
+ Private _messageGroup As DEXPCCMessageGroup
+
+ Private _messageReferenceNumber As String
+
+ Private _messageType As DEXPCCMessageType
+
+ Private _messageIdentifier As String
+
+ Private _header As DEXPCCHeader
+
+ Private _exportCustomsOffice As DEXPCCExportCustomsOffice
+
+ Private _declarant As DEXPCCDeclarant
+
+ Private _representative As DEXPCCRepresentative
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._representative = New DEXPCCRepresentative()
+ Me._declarant = New DEXPCCDeclarant()
+ Me._exportCustomsOffice = New DEXPCCExportCustomsOffice()
+ Me._header = New DEXPCCHeader()
+ Me._preparation = New DEXPCCPreparation()
+ Me._interchangeRecipient = New DEXPCCInterchangeRecipient()
+ Me._interchangeSender = New DEXPCCInterchangeSender()
+ End Sub
+
+ Public Property InterchangeSender() As DEXPCCInterchangeSender
+ Get
+ Return Me._interchangeSender
+ End Get
+ Set(value As DEXPCCInterchangeSender)
+ Me._interchangeSender = Value
+ End Set
+ End Property
+
+ Public Property InterchangeRecipient() As DEXPCCInterchangeRecipient
+ Get
+ Return Me._interchangeRecipient
+ End Get
+ Set(value As DEXPCCInterchangeRecipient)
+ Me._interchangeRecipient = Value
+ End Set
+ End Property
+
+ Public Property Preparation() As DEXPCCPreparation
+ Get
+ Return Me._preparation
+ End Get
+ Set(value As DEXPCCPreparation)
+ Me._preparation = Value
+ End Set
+ End Property
+
+ _
+ Public Property InterchangeControlReference() As String
+ Get
+ Return Me._interchangeControlReference
+ End Get
+ Set(value As String)
+ Me._interchangeControlReference = Value
+ End Set
+ End Property
+
+ Public Property MessageGroup() As DEXPCCMessageGroup
+ Get
+ Return Me._messageGroup
+ End Get
+ Set(value As DEXPCCMessageGroup)
+ Me._messageGroup = Value
+ End Set
+ End Property
+
+ _
+ Public Property MessageReferenceNumber() As String
+ Get
+ Return Me._messageReferenceNumber
+ End Get
+ Set(value As String)
+ Me._messageReferenceNumber = Value
+ End Set
+ End Property
+
+ Public Property MessageType() As DEXPCCMessageType
+ Get
+ Return Me._messageType
+ End Get
+ Set(value As DEXPCCMessageType)
+ Me._messageType = Value
+ End Set
+ End Property
+
+ _
+ Public Property MessageIdentifier() As String
+ Get
+ Return Me._messageIdentifier
+ End Get
+ Set(value As String)
+ Me._messageIdentifier = Value
+ End Set
+ End Property
+
+ Public Property Header() As DEXPCCHeader
+ Get
+ Return Me._header
+ End Get
+ Set(value As DEXPCCHeader)
+ Me._header = Value
+ End Set
+ End Property
+
+ Public Property ExportCustomsOffice() As DEXPCCExportCustomsOffice
+ Get
+ Return Me._exportCustomsOffice
+ End Get
+ Set(value As DEXPCCExportCustomsOffice)
+ Me._exportCustomsOffice = Value
+ End Set
+ End Property
+
+ Public Property Declarant() As DEXPCCDeclarant
+ Get
+ Return Me._declarant
+ End Get
+ Set(value As DEXPCCDeclarant)
+ Me._declarant = Value
+ End Set
+ End Property
+
+ Public Property Representative() As DEXPCCRepresentative
+ Get
+ Return Me._representative
+ End Get
+ Set(value As DEXPCCRepresentative)
+ Me._representative = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCC))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCC object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCC object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCC object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCC, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCC)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCC) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCC
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCC)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCC
+ Return CType(Serializer.Deserialize(s), DEXPCC)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCC object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCC object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCC object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCC, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCC)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCC) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCC
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPCCInterchangeSender
+
+#Region "Private fields"
+ Private _identification As DEXPCCInterchangeSenderIdentification
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._identification = New DEXPCCInterchangeSenderIdentification()
+ End Sub
+
+ Public Property Identification() As DEXPCCInterchangeSenderIdentification
+ Get
+ Return Me._identification
+ End Get
+ Set(value As DEXPCCInterchangeSenderIdentification)
+ Me._identification = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCInterchangeSender))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCInterchangeSender object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCInterchangeSender object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCInterchangeSender object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCInterchangeSender, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCInterchangeSender)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCInterchangeSender) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCInterchangeSender
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCInterchangeSender)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCInterchangeSender
+ Return CType(Serializer.Deserialize(s), DEXPCCInterchangeSender)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCInterchangeSender object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCInterchangeSender object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCInterchangeSender object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCInterchangeSender, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCInterchangeSender)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCInterchangeSender) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCInterchangeSender
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPCCInterchangeSenderIdentification
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private _subsidiaryNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property SubsidiaryNumber() As String
+ Get
+ Return Me._subsidiaryNumber
+ End Get
+ Set(value As String)
+ Me._subsidiaryNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCInterchangeSenderIdentification))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCInterchangeSenderIdentification object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCInterchangeSenderIdentification object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCInterchangeSenderIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCInterchangeSenderIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCInterchangeSenderIdentification)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCInterchangeSenderIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCInterchangeSenderIdentification
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCInterchangeSenderIdentification)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCInterchangeSenderIdentification
+ Return CType(Serializer.Deserialize(s), DEXPCCInterchangeSenderIdentification)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCInterchangeSenderIdentification object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCInterchangeSenderIdentification object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCInterchangeSenderIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCInterchangeSenderIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCInterchangeSenderIdentification)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCInterchangeSenderIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCInterchangeSenderIdentification
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPCCInterchangeRecipient
+
+#Region "Private fields"
+ Private _identification As DEXPCCInterchangeRecipientIdentification
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._identification = New DEXPCCInterchangeRecipientIdentification()
+ End Sub
+
+ Public Property Identification() As DEXPCCInterchangeRecipientIdentification
+ Get
+ Return Me._identification
+ End Get
+ Set(value As DEXPCCInterchangeRecipientIdentification)
+ Me._identification = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCInterchangeRecipient))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCInterchangeRecipient object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCInterchangeRecipient object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCInterchangeRecipient object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCInterchangeRecipient, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCInterchangeRecipient)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCInterchangeRecipient) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCInterchangeRecipient
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCInterchangeRecipient)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCInterchangeRecipient
+ Return CType(Serializer.Deserialize(s), DEXPCCInterchangeRecipient)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCInterchangeRecipient object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCInterchangeRecipient object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCInterchangeRecipient object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCInterchangeRecipient, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCInterchangeRecipient)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCInterchangeRecipient) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCInterchangeRecipient
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPCCInterchangeRecipientIdentification
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCInterchangeRecipientIdentification))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCInterchangeRecipientIdentification object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCInterchangeRecipientIdentification object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCInterchangeRecipientIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCInterchangeRecipientIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCInterchangeRecipientIdentification)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCInterchangeRecipientIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCInterchangeRecipientIdentification
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCInterchangeRecipientIdentification)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCInterchangeRecipientIdentification
+ Return CType(Serializer.Deserialize(s), DEXPCCInterchangeRecipientIdentification)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCInterchangeRecipientIdentification object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCInterchangeRecipientIdentification object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCInterchangeRecipientIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCInterchangeRecipientIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCInterchangeRecipientIdentification)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCInterchangeRecipientIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCInterchangeRecipientIdentification
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPCCPreparation
+
+#Region "Private fields"
+ Private _date As Date
+
+ Private _time As Date
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property [Date]() As Date
+ Get
+ Return Me._date
+ End Get
+ Set(value As Date)
+ Me._date = Value
+ End Set
+ End Property
+
+ _
+ Public Property Time() As Date
+ Get
+ Return Me._time
+ End Get
+ Set(value As Date)
+ Me._time = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCPreparation))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCPreparation object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCPreparation object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCPreparation object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCPreparation, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCPreparation)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCPreparation) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCPreparation
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCPreparation)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCPreparation
+ Return CType(Serializer.Deserialize(s), DEXPCCPreparation)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCPreparation object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCPreparation object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCPreparation object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCPreparation, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCPreparation)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCPreparation) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCPreparation
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Public Enum DEXPCCMessageGroup
+
+ '''
+ EXP
+ End Enum
+
+ _
+ Public Enum DEXPCCMessageType
+
+ '''
+ DEXPCC
+ End Enum
+
+ _
+ Partial Public Class DEXPCCHeader
+
+#Region "Private fields"
+ Private _movementReferenceNumber As String
+
+ Private _messageVersion As String
+
+ Private _cancellationDateTime As Date
+
+ Private _cancellationType As DEXPCCHeaderCancellationType
+
+ Private _cancellationReason As String
+
+ Private _authorizationNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property MovementReferenceNumber() As String
+ Get
+ Return Me._movementReferenceNumber
+ End Get
+ Set(value As String)
+ Me._movementReferenceNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property MessageVersion() As String
+ Get
+ Return Me._messageVersion
+ End Get
+ Set(value As String)
+ Me._messageVersion = Value
+ End Set
+ End Property
+
+ Public Property CancellationDateTime() As Date
+ Get
+ Return Me._cancellationDateTime
+ End Get
+ Set(value As Date)
+ Me._cancellationDateTime = Value
+ End Set
+ End Property
+
+ Public Property CancellationType() As DEXPCCHeaderCancellationType
+ Get
+ Return Me._cancellationType
+ End Get
+ Set(value As DEXPCCHeaderCancellationType)
+ Me._cancellationType = Value
+ End Set
+ End Property
+
+ _
+ Public Property CancellationReason() As String
+ Get
+ Return Me._cancellationReason
+ End Get
+ Set(value As String)
+ Me._cancellationReason = Value
+ End Set
+ End Property
+
+ _
+ Public Property AuthorizationNumber() As String
+ Get
+ Return Me._authorizationNumber
+ End Get
+ Set(value As String)
+ Me._authorizationNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCHeader))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCHeader object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCHeader object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCHeader object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCHeader, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCHeader)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCHeader) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCHeader
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCHeader)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCHeader
+ Return CType(Serializer.Deserialize(s), DEXPCCHeader)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCHeader object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCHeader object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCHeader object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCHeader, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCHeader)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCHeader) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCHeader
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Public Enum DEXPCCHeaderCancellationType
+
+ '''
+ SV
+ End Enum
+
+ _
+ Partial Public Class DEXPCCExportCustomsOffice
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCExportCustomsOffice))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCExportCustomsOffice object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCExportCustomsOffice object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCExportCustomsOffice object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCExportCustomsOffice, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCExportCustomsOffice)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCExportCustomsOffice) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCExportCustomsOffice
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCExportCustomsOffice)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCExportCustomsOffice
+ Return CType(Serializer.Deserialize(s), DEXPCCExportCustomsOffice)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCExportCustomsOffice object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCExportCustomsOffice object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCExportCustomsOffice object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCExportCustomsOffice, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCExportCustomsOffice)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCExportCustomsOffice) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCExportCustomsOffice
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPCCDeclarant
+
+#Region "Private fields"
+ Private _class As DEXPCCDeclarantClass
+
+ Private _identification As DEXPCCDeclarantIdentification
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._identification = New DEXPCCDeclarantIdentification()
+ End Sub
+
+ Public Property [Class]() As DEXPCCDeclarantClass
+ Get
+ Return Me._class
+ End Get
+ Set(value As DEXPCCDeclarantClass)
+ Me._class = Value
+ End Set
+ End Property
+
+ Public Property Identification() As DEXPCCDeclarantIdentification
+ Get
+ Return Me._identification
+ End Get
+ Set(value As DEXPCCDeclarantIdentification)
+ Me._identification = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCDeclarant))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCDeclarant object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCDeclarant object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCDeclarant object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCDeclarant, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCDeclarant)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCDeclarant) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCDeclarant
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCDeclarant)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCDeclarant
+ Return CType(Serializer.Deserialize(s), DEXPCCDeclarant)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCDeclarant object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCDeclarant object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCDeclarant object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCDeclarant, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCDeclarant)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCDeclarant) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCDeclarant
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Public Enum DEXPCCDeclarantClass
+
+ '''
+ _
+ Item2
+ End Enum
+
+ _
+ Partial Public Class DEXPCCDeclarantIdentification
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private _subsidiaryNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property SubsidiaryNumber() As String
+ Get
+ Return Me._subsidiaryNumber
+ End Get
+ Set(value As String)
+ Me._subsidiaryNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCDeclarantIdentification))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCDeclarantIdentification object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCDeclarantIdentification object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCDeclarantIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCDeclarantIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCDeclarantIdentification)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCDeclarantIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCDeclarantIdentification
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCDeclarantIdentification)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCDeclarantIdentification
+ Return CType(Serializer.Deserialize(s), DEXPCCDeclarantIdentification)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCDeclarantIdentification object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCDeclarantIdentification object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCDeclarantIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCDeclarantIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCDeclarantIdentification)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCDeclarantIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCDeclarantIdentification
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class DEXPCCRepresentative
+
+#Region "Private fields"
+ Private _class As DEXPCCRepresentativeClass
+
+ Private _identification As DEXPCCRepresentativeIdentification
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._identification = New DEXPCCRepresentativeIdentification()
+ End Sub
+
+ Public Property [Class]() As DEXPCCRepresentativeClass
+ Get
+ Return Me._class
+ End Get
+ Set(value As DEXPCCRepresentativeClass)
+ Me._class = Value
+ End Set
+ End Property
+
+ Public Property Identification() As DEXPCCRepresentativeIdentification
+ Get
+ Return Me._identification
+ End Get
+ Set(value As DEXPCCRepresentativeIdentification)
+ Me._identification = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCRepresentative))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCRepresentative object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCRepresentative object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCRepresentative object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCRepresentative, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCRepresentative)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCRepresentative) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCRepresentative
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCRepresentative)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCRepresentative
+ Return CType(Serializer.Deserialize(s), DEXPCCRepresentative)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCRepresentative object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCRepresentative object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCRepresentative object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCRepresentative, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCRepresentative)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCRepresentative) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCRepresentative
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Public Enum DEXPCCRepresentativeClass
+
+ '''
+ _
+ Item2
+ End Enum
+
+ _
+ Partial Public Class DEXPCCRepresentativeIdentification
+
+#Region "Private fields"
+ Private _referenceNumber As String
+
+ Private _subsidiaryNumber As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property ReferenceNumber() As String
+ Get
+ Return Me._referenceNumber
+ End Get
+ Set(value As String)
+ Me._referenceNumber = Value
+ End Set
+ End Property
+
+ _
+ Public Property SubsidiaryNumber() As String
+ Get
+ Return Me._subsidiaryNumber
+ End Get
+ Set(value As String)
+ Me._subsidiaryNumber = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(DEXPCCRepresentativeIdentification))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current DEXPCCRepresentativeIdentification object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an DEXPCCRepresentativeIdentification object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output DEXPCCRepresentativeIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCRepresentativeIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCRepresentativeIdentification)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As DEXPCCRepresentativeIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As DEXPCCRepresentativeIdentification
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), DEXPCCRepresentativeIdentification)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As DEXPCCRepresentativeIdentification
+ Return CType(Serializer.Deserialize(s), DEXPCCRepresentativeIdentification)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current DEXPCCRepresentativeIdentification object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an DEXPCCRepresentativeIdentification object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output DEXPCCRepresentativeIdentification object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCRepresentativeIdentification, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, DEXPCCRepresentativeIdentification)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As DEXPCCRepresentativeIdentification) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As DEXPCCRepresentativeIdentification
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class [decimal]
+
+#Region "Private fields"
+ Private _anyAttr As List(Of System.Xml.XmlAttribute)
+
+ Private _value As Decimal
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._anyAttr = New List(Of System.Xml.XmlAttribute)()
+ End Sub
+
+ _
+ Public Property AnyAttr() As List(Of System.Xml.XmlAttribute)
+ Get
+ Return Me._anyAttr
+ End Get
+ Set(value As List(Of System.Xml.XmlAttribute))
+ Me._anyAttr = Value
+ End Set
+ End Property
+
+ _
+ Public Property Value() As Decimal
+ Get
+ Return Me._value
+ End Get
+ Set(value As Decimal)
+ Me._value = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType([decimal]))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current decimal object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an decimal object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output decimal object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [decimal], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [decimal])
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [decimal]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As [decimal]
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), [decimal])
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As [decimal]
+ Return CType(Serializer.Deserialize(s), [decimal])
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current decimal object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an decimal object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output decimal object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [decimal], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [decimal])
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [decimal]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As [decimal]
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class [integer]
+
+#Region "Private fields"
+ Private _anyAttr As List(Of System.Xml.XmlAttribute)
+
+ Private _value As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._anyAttr = New List(Of System.Xml.XmlAttribute)()
+ End Sub
+
+ _
+ Public Property AnyAttr() As List(Of System.Xml.XmlAttribute)
+ Get
+ Return Me._anyAttr
+ End Get
+ Set(value As List(Of System.Xml.XmlAttribute))
+ Me._anyAttr = Value
+ End Set
+ End Property
+
+ _
+ Public Property Value() As String
+ Get
+ Return Me._value
+ End Get
+ Set(value As String)
+ Me._value = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType([integer]))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current integer object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an integer object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output integer object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [integer], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [integer])
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As [integer]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As [integer]
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), [integer])
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As [integer]
+ Return CType(Serializer.Deserialize(s), [integer])
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current integer object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an integer object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output integer object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [integer], ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, [integer])
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As [integer]) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As [integer]
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class token
+
+#Region "Private fields"
+ Private _anyAttr As List(Of System.Xml.XmlAttribute)
+
+ Private _value As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._anyAttr = New List(Of System.Xml.XmlAttribute)()
+ End Sub
+
+ _
+ Public Property AnyAttr() As List(Of System.Xml.XmlAttribute)
+ Get
+ Return Me._anyAttr
+ End Get
+ Set(value As List(Of System.Xml.XmlAttribute))
+ Me._anyAttr = Value
+ End Set
+ End Property
+
+ _
+ Public Property Value() As String
+ Get
+ Return Me._value
+ End Get
+ Set(value As String)
+ Me._value = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(token))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current token object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an token object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output token object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As token, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, token)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As token) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As token
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), token)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As token
+ Return CType(Serializer.Deserialize(s), token)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current token object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an token object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output token object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As token, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, token)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As token) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As token
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+End Namespace
diff --git a/DAKOSY_Worker/DAKOSY/ATLAS/AES/Storno/e_exp_can.xsd b/DAKOSY_Worker/DAKOSY/ATLAS/AES/Storno/e_exp_can.xsd
new file mode 100644
index 0000000..5faaae4
--- /dev/null
+++ b/DAKOSY_Worker/DAKOSY/ATLAS/AES/Storno/e_exp_can.xsd
@@ -0,0 +1,567 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/DAKOSY_Worker/DAKOSY/ATLAS/AES/VollstaendigeAusfuhrAnmeldung_003.Designer.vb b/DAKOSY_Worker/DAKOSY/ATLAS/AES/VollstaendigeAusfuhrAnmeldung_003.Designer.vb
new file mode 100644
index 0000000..a6e0b0c
--- /dev/null
+++ b/DAKOSY_Worker/DAKOSY/ATLAS/AES/VollstaendigeAusfuhrAnmeldung_003.Designer.vb
@@ -0,0 +1,8680 @@
+'' ------------------------------------------------------------------------------
+''
+'' Generated by Xsd2Code++. Version 4.4.0.7
+'' VollstaendigeAusfuhrAnmeldungListVisualBasicFalseFalseFalseOnlyIfDifferentFalseNet45AllTrueTrueTrueFalseFalseFalseFalseFalseNoneStartWithUnderscoreFalseFalseFalseFalseFalsePublicTrueFalseFalseFalseFalseFalseFalseFalseFalseTrueTrueTrueFalseTrueSerializeDeserializeSaveToFileLoadFromFileFalseTrueIndent2SpaceFalseFalseUTF8XmlSerializerFalseFalseFalseFalseFalseFalseFalseEntityBaseFalseFalse
+''
+'' ------------------------------------------------------------------------------
+Imports System
+Imports System.Diagnostics
+Imports System.Xml.Serialization
+Imports System.Collections
+Imports System.Xml.Schema
+Imports System.ComponentModel
+Imports System.IO
+Imports System.Text
+Imports System.Xml
+Imports System.Collections.Generic
+
+Namespace VollstaendigeAusfuhrAnmeldung
+
+ _
+ Partial Public Class VollstaendigeAusfuhrAnmeldungEVTyp
+ Inherits DatenaustauschExportTyp
+
+#Region "Private fields"
+ Private _einzelAnmeldung As List(Of EinzelVollstaendigeAusfuhrAnmeldungTyp)
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._einzelAnmeldung = New List(Of EinzelVollstaendigeAusfuhrAnmeldungTyp)()
+ End Sub
+
+ _
+ Public Property EinzelAnmeldung() As List(Of EinzelVollstaendigeAusfuhrAnmeldungTyp)
+ Get
+ Return Me._einzelAnmeldung
+ End Get
+ Set(value As List(Of EinzelVollstaendigeAusfuhrAnmeldungTyp))
+ Me._einzelAnmeldung = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(VollstaendigeAusfuhrAnmeldungEVTyp))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current VollstaendigeAusfuhrAnmeldungEVTyp object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an VollstaendigeAusfuhrAnmeldungEVTyp object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output VollstaendigeAusfuhrAnmeldungEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VollstaendigeAusfuhrAnmeldungEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, VollstaendigeAusfuhrAnmeldungEVTyp)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As VollstaendigeAusfuhrAnmeldungEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As VollstaendigeAusfuhrAnmeldungEVTyp
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), VollstaendigeAusfuhrAnmeldungEVTyp)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As VollstaendigeAusfuhrAnmeldungEVTyp
+ Return CType(Serializer.Deserialize(s), VollstaendigeAusfuhrAnmeldungEVTyp)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current VollstaendigeAusfuhrAnmeldungEVTyp object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an VollstaendigeAusfuhrAnmeldungEVTyp object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output VollstaendigeAusfuhrAnmeldungEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VollstaendigeAusfuhrAnmeldungEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, VollstaendigeAusfuhrAnmeldungEVTyp)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As VollstaendigeAusfuhrAnmeldungEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As VollstaendigeAusfuhrAnmeldungEVTyp
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class EinzelVollstaendigeAusfuhrAnmeldungTyp
+
+#Region "Private fields"
+ Private _objektIdentifizierung As ObjektIdentifizierungEVTyp
+
+ Private _kopfDaten As KopfDatenVollstaendigeAusfuhranmeldungTyp
+
+ Private _warenPosition As List(Of PositionVollstaendigeAusfuhranmeldungTyp)
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._warenPosition = New List(Of PositionVollstaendigeAusfuhranmeldungTyp)()
+ Me._kopfDaten = New KopfDatenVollstaendigeAusfuhranmeldungTyp()
+ Me._objektIdentifizierung = New ObjektIdentifizierungEVTyp()
+ End Sub
+
+ _
+ Public Property ObjektIdentifizierung() As ObjektIdentifizierungEVTyp
+ Get
+ Return Me._objektIdentifizierung
+ End Get
+ Set(value As ObjektIdentifizierungEVTyp)
+ Me._objektIdentifizierung = Value
+ End Set
+ End Property
+
+ _
+ Public Property KopfDaten() As KopfDatenVollstaendigeAusfuhranmeldungTyp
+ Get
+ Return Me._kopfDaten
+ End Get
+ Set(value As KopfDatenVollstaendigeAusfuhranmeldungTyp)
+ Me._kopfDaten = Value
+ End Set
+ End Property
+
+ _
+ Public Property WarenPosition() As List(Of PositionVollstaendigeAusfuhranmeldungTyp)
+ Get
+ Return Me._warenPosition
+ End Get
+ Set(value As List(Of PositionVollstaendigeAusfuhranmeldungTyp))
+ Me._warenPosition = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(EinzelVollstaendigeAusfuhrAnmeldungTyp))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current EinzelVollstaendigeAusfuhrAnmeldungTyp object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an EinzelVollstaendigeAusfuhrAnmeldungTyp object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output EinzelVollstaendigeAusfuhrAnmeldungTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As EinzelVollstaendigeAusfuhrAnmeldungTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, EinzelVollstaendigeAusfuhrAnmeldungTyp)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As EinzelVollstaendigeAusfuhrAnmeldungTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As EinzelVollstaendigeAusfuhrAnmeldungTyp
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), EinzelVollstaendigeAusfuhrAnmeldungTyp)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As EinzelVollstaendigeAusfuhrAnmeldungTyp
+ Return CType(Serializer.Deserialize(s), EinzelVollstaendigeAusfuhrAnmeldungTyp)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current EinzelVollstaendigeAusfuhrAnmeldungTyp object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an EinzelVollstaendigeAusfuhrAnmeldungTyp object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output EinzelVollstaendigeAusfuhrAnmeldungTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As EinzelVollstaendigeAusfuhrAnmeldungTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, EinzelVollstaendigeAusfuhrAnmeldungTyp)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As EinzelVollstaendigeAusfuhrAnmeldungTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As EinzelVollstaendigeAusfuhrAnmeldungTyp
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class ObjektIdentifizierungEVTyp
+
+#Region "Private fields"
+ Private _objektName As String
+
+ Private _objektAliasname As String
+
+ Private _objektQuittung As String
+
+ Private _bezugsnummerVorblendung As String
+
+ Private _kopieVon As String
+
+ Private _objektAktion As List(Of String)
+
+ Private _compliancePruefung As String
+
+ Private _bearbeiter As String
+
+ Private _absenderSystemName As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._objektAktion = New List(Of String)()
+ End Sub
+
+ _
+ Public Property ObjektName() As String
+ Get
+ Return Me._objektName
+ End Get
+ Set(value As String)
+ Me._objektName = Value
+ End Set
+ End Property
+
+ _
+ Public Property ObjektAliasname() As String
+ Get
+ Return Me._objektAliasname
+ End Get
+ Set(value As String)
+ Me._objektAliasname = Value
+ End Set
+ End Property
+
+ _
+ Public Property ObjektQuittung() As String
+ Get
+ Return Me._objektQuittung
+ End Get
+ Set(value As String)
+ Me._objektQuittung = Value
+ End Set
+ End Property
+
+ _
+ Public Property BezugsnummerVorblendung() As String
+ Get
+ Return Me._bezugsnummerVorblendung
+ End Get
+ Set(value As String)
+ Me._bezugsnummerVorblendung = Value
+ End Set
+ End Property
+
+ _
+ Public Property KopieVon() As String
+ Get
+ Return Me._kopieVon
+ End Get
+ Set(value As String)
+ Me._kopieVon = Value
+ End Set
+ End Property
+
+ _
+ Public Property ObjektAktion() As List(Of String)
+ Get
+ Return Me._objektAktion
+ End Get
+ Set(value As List(Of String))
+ Me._objektAktion = Value
+ End Set
+ End Property
+
+ _
+ Public Property CompliancePruefung() As String
+ Get
+ Return Me._compliancePruefung
+ End Get
+ Set(value As String)
+ Me._compliancePruefung = Value
+ End Set
+ End Property
+
+ _
+ Public Property Bearbeiter() As String
+ Get
+ Return Me._bearbeiter
+ End Get
+ Set(value As String)
+ Me._bearbeiter = Value
+ End Set
+ End Property
+
+ _
+ Public Property AbsenderSystemName() As String
+ Get
+ Return Me._absenderSystemName
+ End Get
+ Set(value As String)
+ Me._absenderSystemName = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(ObjektIdentifizierungEVTyp))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current ObjektIdentifizierungEVTyp object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an ObjektIdentifizierungEVTyp object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output ObjektIdentifizierungEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As ObjektIdentifizierungEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, ObjektIdentifizierungEVTyp)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As ObjektIdentifizierungEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As ObjektIdentifizierungEVTyp
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), ObjektIdentifizierungEVTyp)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As ObjektIdentifizierungEVTyp
+ Return CType(Serializer.Deserialize(s), ObjektIdentifizierungEVTyp)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current ObjektIdentifizierungEVTyp object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an ObjektIdentifizierungEVTyp object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output ObjektIdentifizierungEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As ObjektIdentifizierungEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, ObjektIdentifizierungEVTyp)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As ObjektIdentifizierungEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As ObjektIdentifizierungEVTyp
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class BeendigungPositionAVUVEVTyp
+
+#Region "Private fields"
+ Private _positionsnummer As String
+
+ Private _registriernummer As String
+
+ Private _kzZugangATLAS As String
+
+ Private _warenbezogeneAngaben As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property Positionsnummer() As String
+ Get
+ Return Me._positionsnummer
+ End Get
+ Set(value As String)
+ Me._positionsnummer = Value
+ End Set
+ End Property
+
+ _
+ Public Property Registriernummer() As String
+ Get
+ Return Me._registriernummer
+ End Get
+ Set(value As String)
+ Me._registriernummer = Value
+ End Set
+ End Property
+
+ _
+ Public Property KzZugangATLAS() As String
+ Get
+ Return Me._kzZugangATLAS
+ End Get
+ Set(value As String)
+ Me._kzZugangATLAS = Value
+ End Set
+ End Property
+
+ _
+ Public Property WarenbezogeneAngaben() As String
+ Get
+ Return Me._warenbezogeneAngaben
+ End Get
+ Set(value As String)
+ Me._warenbezogeneAngaben = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(BeendigungPositionAVUVEVTyp))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current BeendigungPositionAVUVEVTyp object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an BeendigungPositionAVUVEVTyp object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output BeendigungPositionAVUVEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As BeendigungPositionAVUVEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, BeendigungPositionAVUVEVTyp)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As BeendigungPositionAVUVEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As BeendigungPositionAVUVEVTyp
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), BeendigungPositionAVUVEVTyp)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As BeendigungPositionAVUVEVTyp
+ Return CType(Serializer.Deserialize(s), BeendigungPositionAVUVEVTyp)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current BeendigungPositionAVUVEVTyp object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an BeendigungPositionAVUVEVTyp object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output BeendigungPositionAVUVEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As BeendigungPositionAVUVEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, BeendigungPositionAVUVEVTyp)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As BeendigungPositionAVUVEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As BeendigungPositionAVUVEVTyp
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class BeendigungAVUVEVTyp
+
+#Region "Private fields"
+ Private _bewilligungsnummer As String
+
+ Private _positionAVUV As List(Of BeendigungPositionAVUVEVTyp)
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._positionAVUV = New List(Of BeendigungPositionAVUVEVTyp)()
+ End Sub
+
+ _
+ Public Property Bewilligungsnummer() As String
+ Get
+ Return Me._bewilligungsnummer
+ End Get
+ Set(value As String)
+ Me._bewilligungsnummer = Value
+ End Set
+ End Property
+
+ _
+ Public Property PositionAVUV() As List(Of BeendigungPositionAVUVEVTyp)
+ Get
+ Return Me._positionAVUV
+ End Get
+ Set(value As List(Of BeendigungPositionAVUVEVTyp))
+ Me._positionAVUV = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(BeendigungAVUVEVTyp))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current BeendigungAVUVEVTyp object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an BeendigungAVUVEVTyp object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output BeendigungAVUVEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As BeendigungAVUVEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, BeendigungAVUVEVTyp)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As BeendigungAVUVEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As BeendigungAVUVEVTyp
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), BeendigungAVUVEVTyp)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As BeendigungAVUVEVTyp
+ Return CType(Serializer.Deserialize(s), BeendigungAVUVEVTyp)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current BeendigungAVUVEVTyp object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an BeendigungAVUVEVTyp object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output BeendigungAVUVEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As BeendigungAVUVEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, BeendigungAVUVEVTyp)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As BeendigungAVUVEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As BeendigungAVUVEVTyp
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class AbgangsHandelsmengeEVTyp
+
+#Region "Private fields"
+ Private _wert As String
+
+ Private _masseinheit As String
+
+ Private _qualifikator As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property Wert() As String
+ Get
+ Return Me._wert
+ End Get
+ Set(value As String)
+ Me._wert = Value
+ End Set
+ End Property
+
+ _
+ Public Property Masseinheit() As String
+ Get
+ Return Me._masseinheit
+ End Get
+ Set(value As String)
+ Me._masseinheit = Value
+ End Set
+ End Property
+
+ _
+ Public Property Qualifikator() As String
+ Get
+ Return Me._qualifikator
+ End Get
+ Set(value As String)
+ Me._qualifikator = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(AbgangsHandelsmengeEVTyp))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current AbgangsHandelsmengeEVTyp object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an AbgangsHandelsmengeEVTyp object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output AbgangsHandelsmengeEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As AbgangsHandelsmengeEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, AbgangsHandelsmengeEVTyp)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As AbgangsHandelsmengeEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As AbgangsHandelsmengeEVTyp
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), AbgangsHandelsmengeEVTyp)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As AbgangsHandelsmengeEVTyp
+ Return CType(Serializer.Deserialize(s), AbgangsHandelsmengeEVTyp)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current AbgangsHandelsmengeEVTyp object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an AbgangsHandelsmengeEVTyp object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output AbgangsHandelsmengeEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As AbgangsHandelsmengeEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, AbgangsHandelsmengeEVTyp)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As AbgangsHandelsmengeEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As AbgangsHandelsmengeEVTyp
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class BeendigungPositionZLEVTyp
+
+#Region "Private fields"
+ Private _positionsnummer As String
+
+ Private _registriernummer As String
+
+ Private _artikelcodeATZL As String
+
+ Private _warennummer As String
+
+ Private _kzUeblicheBehandlung As String
+
+ Private _kzZugangATLAS As String
+
+ Private _zusatz As String
+
+ Private _abgangsmenge As AbgangsHandelsmengeEVTyp
+
+ Private _handelsmenge As AbgangsHandelsmengeEVTyp
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._handelsmenge = New AbgangsHandelsmengeEVTyp()
+ Me._abgangsmenge = New AbgangsHandelsmengeEVTyp()
+ End Sub
+
+ _
+ Public Property Positionsnummer() As String
+ Get
+ Return Me._positionsnummer
+ End Get
+ Set(value As String)
+ Me._positionsnummer = Value
+ End Set
+ End Property
+
+ _
+ Public Property Registriernummer() As String
+ Get
+ Return Me._registriernummer
+ End Get
+ Set(value As String)
+ Me._registriernummer = Value
+ End Set
+ End Property
+
+ _
+ Public Property ArtikelcodeATZL() As String
+ Get
+ Return Me._artikelcodeATZL
+ End Get
+ Set(value As String)
+ Me._artikelcodeATZL = Value
+ End Set
+ End Property
+
+ _
+ Public Property Warennummer() As String
+ Get
+ Return Me._warennummer
+ End Get
+ Set(value As String)
+ Me._warennummer = Value
+ End Set
+ End Property
+
+ _
+ Public Property KzUeblicheBehandlung() As String
+ Get
+ Return Me._kzUeblicheBehandlung
+ End Get
+ Set(value As String)
+ Me._kzUeblicheBehandlung = Value
+ End Set
+ End Property
+
+ _
+ Public Property KzZugangATLAS() As String
+ Get
+ Return Me._kzZugangATLAS
+ End Get
+ Set(value As String)
+ Me._kzZugangATLAS = Value
+ End Set
+ End Property
+
+ _
+ Public Property Zusatz() As String
+ Get
+ Return Me._zusatz
+ End Get
+ Set(value As String)
+ Me._zusatz = Value
+ End Set
+ End Property
+
+ _
+ Public Property Abgangsmenge() As AbgangsHandelsmengeEVTyp
+ Get
+ Return Me._abgangsmenge
+ End Get
+ Set(value As AbgangsHandelsmengeEVTyp)
+ Me._abgangsmenge = Value
+ End Set
+ End Property
+
+ _
+ Public Property Handelsmenge() As AbgangsHandelsmengeEVTyp
+ Get
+ Return Me._handelsmenge
+ End Get
+ Set(value As AbgangsHandelsmengeEVTyp)
+ Me._handelsmenge = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(BeendigungPositionZLEVTyp))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current BeendigungPositionZLEVTyp object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an BeendigungPositionZLEVTyp object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output BeendigungPositionZLEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As BeendigungPositionZLEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, BeendigungPositionZLEVTyp)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As BeendigungPositionZLEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As BeendigungPositionZLEVTyp
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), BeendigungPositionZLEVTyp)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As BeendigungPositionZLEVTyp
+ Return CType(Serializer.Deserialize(s), BeendigungPositionZLEVTyp)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current BeendigungPositionZLEVTyp object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an BeendigungPositionZLEVTyp object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output BeendigungPositionZLEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As BeendigungPositionZLEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, BeendigungPositionZLEVTyp)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As BeendigungPositionZLEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As BeendigungPositionZLEVTyp
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class BeendigungZLEVTyp
+
+#Region "Private fields"
+ Private _bewilligungsnummer As String
+
+ Private _bezugsnummer As String
+
+ Private _positionZL As List(Of BeendigungPositionZLEVTyp)
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ Public Sub New()
+ MyBase.New()
+ Me._positionZL = New List(Of BeendigungPositionZLEVTyp)()
+ End Sub
+
+ _
+ Public Property Bewilligungsnummer() As String
+ Get
+ Return Me._bewilligungsnummer
+ End Get
+ Set(value As String)
+ Me._bewilligungsnummer = Value
+ End Set
+ End Property
+
+ _
+ Public Property Bezugsnummer() As String
+ Get
+ Return Me._bezugsnummer
+ End Get
+ Set(value As String)
+ Me._bezugsnummer = Value
+ End Set
+ End Property
+
+ _
+ Public Property PositionZL() As List(Of BeendigungPositionZLEVTyp)
+ Get
+ Return Me._positionZL
+ End Get
+ Set(value As List(Of BeendigungPositionZLEVTyp))
+ Me._positionZL = Value
+ End Set
+ End Property
+
+ Private Shared ReadOnly Property Serializer() As XmlSerializer
+ Get
+ If (sSerializer Is Nothing) Then
+ sSerializer = New XmlSerializerFactory().CreateSerializer(GetType(BeendigungZLEVTyp))
+ End If
+ Return sSerializer
+ End Get
+ End Property
+
+#Region "Serialize/Deserialize"
+ '''
+ ''' Serializes current BeendigungZLEVTyp object into an XML string
+ '''
+ ''' string XML value
+ Public Overridable Function Serialize() As String
+ Dim streamReader As System.IO.StreamReader = Nothing
+ Dim memoryStream As System.IO.MemoryStream = Nothing
+ Try
+ memoryStream = New System.IO.MemoryStream()
+ Dim xmlWriterSettings As System.Xml.XmlWriterSettings = New System.Xml.XmlWriterSettings()
+ xmlWriterSettings.Indent = True
+ xmlWriterSettings.IndentChars = " "
+ Dim xmlWriter As System.Xml.XmlWriter = xmlWriter.Create(memoryStream, xmlWriterSettings)
+ Serializer.Serialize(xmlWriter, Me)
+ memoryStream.Seek(0, SeekOrigin.Begin)
+ streamReader = New System.IO.StreamReader(memoryStream)
+ Return streamReader.ReadToEnd
+ Finally
+ If (Not (streamReader) Is Nothing) Then
+ streamReader.Dispose()
+ End If
+ If (Not (memoryStream) Is Nothing) Then
+ memoryStream.Dispose()
+ End If
+ End Try
+ End Function
+
+ '''
+ ''' Deserializes workflow markup into an BeendigungZLEVTyp object
+ '''
+ ''' string workflow markup to deserialize
+ ''' Output BeendigungZLEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As BeendigungZLEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, BeendigungZLEVTyp)
+ Try
+ obj = Deserialize(input)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String, ByRef obj As BeendigungZLEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return Deserialize(input, obj, exception)
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal input As String) As BeendigungZLEVTyp
+ Dim stringReader As System.IO.StringReader = Nothing
+ Try
+ stringReader = New System.IO.StringReader(input)
+ Return CType(Serializer.Deserialize(XmlReader.Create(stringReader)), BeendigungZLEVTyp)
+ Finally
+ If (Not (stringReader) Is Nothing) Then
+ stringReader.Dispose()
+ End If
+ End Try
+ End Function
+
+ Public Overloads Shared Function Deserialize(ByVal s As System.IO.Stream) As BeendigungZLEVTyp
+ Return CType(Serializer.Deserialize(s), BeendigungZLEVTyp)
+ End Function
+#End Region
+
+ '''
+ ''' Serializes current BeendigungZLEVTyp object into file
+ '''
+ ''' full path of outupt xml file
+ ''' output Exception value if failed
+ ''' true if can serialize and save into file; otherwise, false
+ Public Overridable Overloads Function SaveToFile(ByVal fileName As String, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ Try
+ SaveToFile(fileName)
+ Return True
+ Catch e As System.Exception
+ exception = e
+ Return False
+ End Try
+ End Function
+
+ Public Overridable Overloads Sub SaveToFile(ByVal fileName As String)
+ Dim streamWriter As System.IO.StreamWriter = Nothing
+ Try
+ Dim xmlString As String = Serialize()
+ Dim xmlFile As System.IO.FileInfo = New System.IO.FileInfo(fileName)
+ streamWriter = xmlFile.CreateText
+ streamWriter.WriteLine(xmlString)
+ streamWriter.Close()
+ Finally
+ If (Not (streamWriter) Is Nothing) Then
+ streamWriter.Dispose()
+ End If
+ End Try
+ End Sub
+
+ '''
+ ''' Deserializes xml markup from file into an BeendigungZLEVTyp object
+ '''
+ ''' string xml file to load and deserialize
+ ''' Output BeendigungZLEVTyp object
+ ''' output Exception value if deserialize failed
+ ''' true if this Serializer can deserialize the object; otherwise, false
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As BeendigungZLEVTyp, ByRef exception As System.Exception) As Boolean
+ exception = Nothing
+ obj = CType(Nothing, BeendigungZLEVTyp)
+ Try
+ obj = LoadFromFile(fileName)
+ Return True
+ Catch ex As System.Exception
+ exception = ex
+ Return False
+ End Try
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String, ByRef obj As BeendigungZLEVTyp) As Boolean
+ Dim exception As System.Exception = Nothing
+ Return LoadFromFile(fileName, obj, exception)
+ End Function
+
+ Public Overloads Shared Function LoadFromFile(ByVal fileName As String) As BeendigungZLEVTyp
+ Dim file As System.IO.FileStream = Nothing
+ Dim sr As System.IO.StreamReader = Nothing
+ Try
+ file = New System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read)
+ sr = New System.IO.StreamReader(file)
+ Dim xmlString As String = sr.ReadToEnd
+ sr.Close()
+ file.Close()
+ Return Deserialize(xmlString)
+ Finally
+ If (Not (file) Is Nothing) Then
+ file.Dispose()
+ End If
+ If (Not (sr) Is Nothing) Then
+ sr.Dispose()
+ End If
+ End Try
+ End Function
+ End Class
+
+ _
+ Partial Public Class EndverwendePositionEVTyp
+
+#Region "Private fields"
+ Private _teilnehmerEORI As String
+
+ Private _teilnehmerNLNR As String
+
+ Private _name As String
+
+ Private _strasse As String
+
+ Private _ort As String
+
+ Private _pLZ As String
+
+ Private _landCode As String
+
+ Private Shared sSerializer As XmlSerializer
+#End Region
+
+ _
+ Public Property TeilnehmerEORI() As String
+ Get
+ Return Me._teilnehmerEORI
+ End Get
+ Set(value As String)
+ Me._teilnehmerEORI = Value
+ End Set
+ End Property
+
+ _
+ Public Property TeilnehmerNLNR() As String
+ Get
+ Return Me._teilnehmerNLNR
+ End Get
+ Set(value As String)
+ Me._teilnehmerNLNR = Value
+ End Set
+ End Property
+
+ _
+ Public Property Name() As String
+ Get
+ Return Me._name
+ End Get
+ Set(value As String)
+ Me._name = Value
+ End Set
+ End Property
+
+ _
+ Public Property Strasse() As String
+ Get
+ Return Me._strasse
+ End Get
+ Set(value As String)
+ Me._strasse = Value
+ End Set
+ End Property
+
+ _
+ Public Property Ort() As String
+ Get
+ Return Me._ort
+ End Get
+ Set(value As String)
+ Me._ort = Value
+ End Set
+ End Property
+
+