Initial commit

This commit is contained in:
2020-10-21 10:43:18 +02:00
commit 56bd02798f
5848 changed files with 2659025 additions and 0 deletions

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DontShowAgainInSolution>false</DontShowAgainInSolution></Configuration>

View File

@@ -0,0 +1,22 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30501.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Test_Serialization_avqwerte", "Test_Serialization_avqwerte\Test_Serialization_avqwerte.vbproj", "{592DB2CA-C462-439D-B770-F75C2DCF48E6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{592DB2CA-C462-439D-B770-F75C2DCF48E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{592DB2CA-C462-439D-B770-F75C2DCF48E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{592DB2CA-C462-439D-B770-F75C2DCF48E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{592DB2CA-C462-439D-B770-F75C2DCF48E6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@@ -0,0 +1,50 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
<System.Diagnostics.DebuggerNonUserCode()> _
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.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.Button1 = New System.Windows.Forms.Button()
Me.SuspendLayout()
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(42, 32)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(75, 23)
Me.Button1.TabIndex = 0
Me.Button1.Text = "Button1"
Me.Button1.UseVisualStyleBackColor = True
'
'Form1
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(284, 261)
Me.Controls.Add(Me.Button1)
Me.Name = "Form1"
Me.Text = "Form1"
Me.ResumeLayout(False)
End Sub
Friend WithEvents Button1 As System.Windows.Forms.Button
End Class

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,72 @@
Imports System.IO
Imports System.Runtime.Serialization.Formatters.Binary
Imports IBM.Data.DB2
Imports IBM.Data.DB2Types
Public Class Form1
Dim avqwerte As New AvaloqDokumentWerte
Sub test()
Dim c As New DB2Connection()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
avqwerte.Dokumentid = "offedk1234"
SerializeObject(avqwerte)
avqwerte.Dokumentid = "offedk"
DeSerializeObject(avqwerte)
MsgBox(avqwerte.Dokumentid)
End Sub
Public Function SerializeObject(ByVal What As Object) As Byte()
Dim MemStream As New MemoryStream
Dim BinWriter As New BinaryWriter(MemStream)
Dim BinFormatter As New BinaryFormatter
Try
BinFormatter.Serialize(BinWriter.BaseStream, What)
Catch ex As Exception
MsgBox(ex.Message)
End Try
Dim s As New FileStream("d:\edk_files\test.strm", FileMode.Create, System.IO.FileAccess.Write)
MemStream.WriteTo(s)
s.Flush()
s.Close()
' ReadAll(MemStream)
BinWriter.Close()
Return MemStream.ToArray
End Function
Public Function DeSerializeObject(ByVal What As Object) As Byte()
Dim FS As New System.IO.FileStream("d:\edk_files\test.strm", IO.FileMode.OpenOrCreate)
Dim BinFormatter As New BinaryFormatter
avqwerte = CType(BinFormatter.Deserialize(FS), AvaloqDokumentWerte)
End Function
Public Function ReadAll(ByVal memStream As MemoryStream) As String
' Reset the stream otherwise you will just get an empty string.
' Remember the position so we can restore it later.
Dim pos = memStream.Position
memStream.Position = 0
Dim reader As New StreamReader(memStream)
Dim str = reader.ReadToEnd()
' Reset the position so that subsequent writes are correct.
memStream.Position = pos
Return str
End Function
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
End Class

View File

@@ -0,0 +1,38 @@
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.34014
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My
'NOTE: This file is auto-generated; do not modify it directly. To make changes,
' or if you encounter build errors in this file, go to the Project Designer
' (go to Project Properties or double-click the My Project node in
' Solution Explorer), and make changes on the Application tab.
'
Partial Friend Class MyApplication
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
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
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
Protected Overrides Sub OnCreateMainForm()
Me.MainForm = Global.Test_Serialization_avqwerte.Form1
End Sub
End Class
End Namespace

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<MySubMain>true</MySubMain>
<MainForm>Form1</MainForm>
<SingleInstance>false</SingleInstance>
<ShutdownMode>0</ShutdownMode>
<EnableVisualStyles>true</EnableVisualStyles>
<AuthenticationMode>0</AuthenticationMode>
<ApplicationType>0</ApplicationType>
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
</MyApplicationData>

View File

@@ -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
<Assembly: AssemblyTitle("Test_Serialization_avqwerte")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("Test_Serialization_avqwerte")>
<Assembly: AssemblyCopyright("Copyright © 2014")>
<Assembly: AssemblyTrademark("")>
<Assembly: ComVisible(False)>
'Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
<Assembly: Guid("40a8692f-1959-49a3-9d30-9a5cb049104c")>
' 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:
' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion("1.0.0.0")>
<Assembly: AssemblyFileVersion("1.0.0.0")>

View File

@@ -0,0 +1,62 @@
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.34014
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
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.
'''<summary>
''' A strongly-typed resource class, for looking up localized strings, etc.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
Friend Module Resources
Private resourceMan As Global.System.Resources.ResourceManager
Private resourceCulture As Global.System.Globalization.CultureInfo
'''<summary>
''' Returns the cached ResourceManager instance used by this class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
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("Test_Serialization_avqwerte.Resources", GetType(Resources).Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' Overrides the current thread's CurrentUICulture property for all
''' resource lookups using this strongly typed resource class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
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

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,73 @@
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.34014
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
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
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
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
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
Friend Module MySettingsProperty
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
Friend ReadOnly Property Settings() As Global.Test_Serialization_avqwerte.My.MySettings
Get
Return Global.Test_Serialization_avqwerte.My.MySettings.Default
End Get
End Property
End Module
End Namespace

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{592DB2CA-C462-439D-B770-F75C2DCF48E6}</ProjectGuid>
<OutputType>WinExe</OutputType>
<StartupObject>Test_Serialization_avqwerte.My.MyApplication</StartupObject>
<RootNamespace>Test_Serialization_avqwerte</RootNamespace>
<AssemblyName>Test_Serialization_avqwerte</AssemblyName>
<FileAlignment>512</FileAlignment>
<MyType>WindowsForms</MyType>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<OutputPath>bin\Debug\</OutputPath>
<DocumentationFile>Test_Serialization_avqwerte.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DocumentationFile>Test_Serialization_avqwerte.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
</PropertyGroup>
<PropertyGroup>
<OptionExplicit>On</OptionExplicit>
</PropertyGroup>
<PropertyGroup>
<OptionCompare>Binary</OptionCompare>
</PropertyGroup>
<PropertyGroup>
<OptionStrict>Off</OptionStrict>
</PropertyGroup>
<PropertyGroup>
<OptionInfer>On</OptionInfer>
</PropertyGroup>
<ItemGroup>
<Reference Include="IBM.Data.DB2">
<HintPath>G:\Installer\DB2\netf40\IBM.Data.DB2.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Drawing" />
<Import Include="System.Diagnostics" />
<Import Include="System.Windows.Forms" />
<Import Include="System.Linq" />
<Import Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="avqw.vb" />
<Compile Include="Form1.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.vb">
<DependentUpon>Form1.vb</DependentUpon>
<SubType>Form</SubType>
</Compile>
<Compile Include="My Project\AssemblyInfo.vb" />
<Compile Include="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Application.myapp</DependentUpon>
</Compile>
<Compile Include="My Project\Resources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="My Project\Settings.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="My Project\Resources.resx">
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
<CustomToolNamespace>My.Resources</CustomToolNamespace>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
</None>
<None Include="My Project\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<CustomToolNamespace>My</CustomToolNamespace>
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,461 @@
Imports System.IO
Imports System.Xml
Imports System.Xml.Schema
<Serializable()> _
Public Class AvaloqDokumentWert
Private strName As String
Private strValue As String
Public Sub New(ByVal name As String, ByVal value As String)
Me.name = name
Me.value = value
End Sub
Public Property name() As String
Get
Return strName
End Get
Set(ByVal Value As String)
strName = Value
End Set
End Property
Public Property value() As String
Get
Return strValue
End Get
Set(ByVal Value As String)
strValue = Value
End Set
End Property
End Class
<Serializable()> _
Public Class AvaloqDokumentWerte
Dim m_Partnernr As Integer
Property Partnernr As Integer
Get
Return m_Partnernr
End Get
Set(value As Integer)
m_Partnernr = value
End Set
End Property
Dim m_Personnr As Integer
Property PersonNr As Integer
Get
Return m_Personnr
End Get
Set(value As Integer)
m_Personnr = value
End Set
End Property
Dim m_fanummer3 As String
Property FANummer3 As String
Get
Return m_fanummer3
End Get
Set(value As String)
m_fanummer3 = value
End Set
End Property
Dim m_ordernr As String
Property Ordernr As String
Get
Return m_ordernr
End Get
Set(value As String)
m_ordernr = value
End Set
End Property
Dim m_dokumenttypnr As String
Property Dokumenttypnr As String
Get
Return m_dokumenttypnr
End Get
Set(value As String)
m_dokumenttypnr = value
End Set
End Property
Dim m_direkteErstellung As String
Property Direkteerstellung As String
Get
Return m_direkteErstellung
End Get
Set(value As String)
m_direkteErstellung = value
End Set
End Property
Dim m_dokumentpaket As String
Property Dokumentpaket As String
Get
Return m_dokumentpaket
End Get
Set(value As String)
m_dokumentpaket = value
End Set
End Property
Dim m_Postzustellung As String
Property Postzustellung As String
Get
Return m_Postzustellung
End Get
Set(value As String)
m_Postzustellung = value
End Set
End Property
Dim m_Zustaendig As String
Property Zustaendig As String
Get
Return m_Zustaendig
End Get
Set(value As String)
m_Zustaendig = value
End Set
End Property
Dim m_uslinks As String
Property USLinks As String
Get
Return m_uslinks
End Get
Set(value As String)
m_uslinks = value
End Set
End Property
Dim m_usrechts As String
Property USRechts As String
Get
Return m_usrechts
End Get
Set(value As String)
m_usrechts = value
End Set
End Property
Dim m_BCFrage As String
Property BCFrage As String
Get
Return m_BCFrage
End Get
Set(value As String)
m_BCFrage = value
End Set
End Property
Dim m_statuswechsel As String
Property Statuswechsel As String
Get
Return m_statuswechsel
End Get
Set(value As String)
m_statuswechsel = value
End Set
End Property
Dim m_dokumentdatum As String
Property Dokumentdatum As String
Get
Return m_dokumentdatum
End Get
Set(value As String)
m_dokumentdatum = value
End Set
End Property
Dim m_Verantwortlich As String
Property Verantwortlich As String
Get
Return m_Verantwortlich
End Get
Set(value As String)
m_Verantwortlich = value
End Set
End Property
Dim m_adokumentwerte As ArrayList
Property ADokumentwerte As ArrayList
Get
Return m_adokumentwerte
End Get
Set(value As ArrayList)
m_adokumentwerte = value
End Set
End Property
Dim m_Dokumentid As String
Property Dokumentid As String
Get
Return m_Dokumentid
End Get
Set(value As String)
m_Dokumentid = value
End Set
End Property
Dim m_Avq_auth_extl_ref1 As String
Property Avq_auth_extl_ref1 As String
Get
Return m_Avq_auth_extl_ref1
End Get
Set(value As String)
m_Avq_auth_extl_ref1 = value
End Set
End Property
Dim m_Avq_auth_extl_ref2 As String
Property Avq_auth_extl_ref2 As String
Get
Return m_Avq_auth_extl_ref2
End Get
Set(value As String)
m_Avq_auth_extl_ref2 = value
End Set
End Property
Dim m_avq_auth_extl_ref_dt As New DataTable
Property Avq_extl_ref_dt As DataTable
Get
Return m_avq_auth_extl_ref_dt
End Get
Set(value As DataTable)
m_avq_auth_extl_ref_dt = value
End Set
End Property
'Dim m_dsdokumentwerte As New DataSet
'Property DS_Dokumentwerte As DataSet
' Get
' Return m_dsdokumentwerte
' End Get
' Set(value As DataSet)
' m_dsdokumentwerte = value
' End Set
'End Property
#Region "Members"
Private arrDoukmentWerte As New ArrayList()
Private objDokumentWert As AvaloqDokumentWert
#End Region
#Region "Public methods"
Public Function HeaderInfo(ByRef doc As XmlDocument, ByVal xmlfile As String)
For Each n As XmlNode In doc.ChildNodes
' MsgBox(n.Name)
For Each N1 As XmlNode In n.ChildNodes
Select Case UCase(N1.Name)
Case "ACTIONID"
Case "CREATORTG"
Case "PARTNERNR"
Me.Partnernr = N1.InnerText
Case "PERSONNR"
Me.PersonNr = N1.InnerText
Case "FANUMMER3"
Me.FANummer3 = N1.InnerText
Case "ORDERNR"
Me.Ordernr = N1.InnerText.ToString
Case "DOKUMENTTYPNR"
Me.Dokumenttypnr = N1.InnerText
Case "DIREKTEERSTELLUNG"
Me.Direkteerstellung = N1.InnerText
Case "DOKUMENTPAKET"
Me.Dokumentpaket = N1.InnerText
Case "POSTZUSTELLUNG"
Me.Postzustellung = N1.InnerText
Case "USLINKS"
Me.USLinks = N1.InnerText
Case "USRECHTS"
Me.USRechts = N1.InnerText
Case "ZUSTAENDIG"
Me.Zustaendig = N1.InnerText
Case "VERANTWORTLICH"
Me.Verantwortlich = N1.InnerText
Case "DOKUMENTDATUM"
Me.Dokumentdatum = N1.InnerText
Case "BC"
Me.BCFrage = N1.InnerText
Case "STATUSWECHSEL"
Me.Statuswechsel = N1.InnerText
Case "DOKUMENTID"
Me.Statuswechsel = N1.InnerText
End Select
Next
Next
End Function
'''<summary>Lädt externes Xml file für automatisierte Aktionen</summary>
'''<param name="xmlImportFile">Das Xml File mit den entsprechenden Parametern</param>
Public Function init(ByVal xmlImportFile As FileInfo)
Try
Dim doc As New XmlDocument()
doc.Load(xmlImportFile.FullName)
HeaderInfo(doc, xmlImportFile.FullName)
'read all parameter nodes
Dim parameterNodes As XmlNodeList
parameterNodes = doc.SelectNodes("action/dokwerte/parameter")
Me.Avq_extl_ref_dt.Rows.Clear()
Me.Avq_extl_ref_dt.Columns.Clear()
Me.Avq_extl_ref_dt.Columns.Add("Doktype")
Me.Avq_extl_ref_dt.Columns.Add("RefNr")
Me.Avq_extl_ref_dt.Columns.Add("avq_auth_extl_ref")
If parameterNodes.Count > 0 Then
Dim node As XmlNode
Dim name, value, dataType As String
Dim parameterCounter As Integer = 0
For Each node In parameterNodes
'Read all Document specified Values
'20080401 RGL zusätzliches TRY wenn node <parameter> leer geliefert wird kein Absturz
Try
name = node.SelectSingleNode("name").InnerText
value = node.SelectSingleNode("value").InnerText
objDokumentWert = New AvaloqDokumentWert(name, value)
arrDoukmentWerte.Add(objDokumentWert)
Dim xname As String
Dim doktyp As String
xname = name
doktyp = ""
If UCase(name).IndexOf("AVQ_AUTH_EXTL_REF_") > -1 Or UCase(name).IndexOf("AVQ_AUTH_EXTL_REF1_") > -1 Or UCase(name).IndexOf("AVQ_AUTH_EXTL_REF2_") > -1 Then
If UCase(name).IndexOf("AVQ_AUTH_EXTL_REF_") > -1 Then
xname = "AVQ_AUTH_EXTL_REF"
doktyp = UCase(name).Substring(18, Len(name) - 18)
End If
If UCase(name).IndexOf("AVQ_AUTH_EXTL_REF1_") > -1 Then
xname = "AVQ_AUTH_EXTL_REF1"
doktyp = UCase(name).Substring(19, Len(name) - 19)
End If
If UCase(name).IndexOf("AVQ_AUTH_EXTL_REF2_") > -1 Then
xname = "AVQ_AUTH_EXTL_REF2"
doktyp = UCase(name).Substring(19, Len(name) - 19)
End If
End If
Select Case UCase(xname)
Case "AVQ_AUTH_EXTL_REF", "AVQ_AUTH_EXTL_REF1"
Dim r As DataRow = Me.Avq_extl_ref_dt.NewRow
r.Item(0) = doktyp
r.Item(1) = 1
r.Item(2) = value
'Me.Avq_auth_extl_ref1 = value
Me.Avq_extl_ref_dt.Rows.Add(r)
Case "AVQ_AUTH_EXTL_REF2"
Dim r As DataRow = Me.Avq_extl_ref_dt.NewRow
r.Item(0) = doktyp
r.Item(1) = 2
r.Item(2) = value
'Me.Avq_auth_extl_ref1 = value
Me.Avq_extl_ref_dt.Rows.Add(r)
End Select
'If UCase(name) = "AVQ_AUTH_EXTL_REF" Then
' Dim r As DataRow = Me.Avq_extl_ref_dt.NewRow
' r.Item(0) = ""
' r.Item(1) = 1
' r.Item(2) = value
' Me.Avq_auth_extl_ref1 = value
' Me.Avq_extl_ref_dt.Rows.Add(r)
'End If
'If UCase(name) = "AVQ_AUTH_EXTL_REF1" Then
' Dim r As DataRow = Me.Avq_extl_ref_dt.NewRow
' r.Item(0) = ""
' r.Item(1) = 1
' r.Item(2) = value
' Me.Avq_auth_extl_ref1 = value
' Me.Avq_extl_ref_dt.Rows.Add(r)
'End If
'If UCase(name) = "AVQ_AUTH_EXTL_REF2" Then
' Dim r As DataRow = Me.Avq_extl_ref_dt.NewRow
' r.Item(0) = ""
' r.Item(1) = 2
' r.Item(2) = value
' Me.Avq_auth_extl_ref1 = value
' Me.Avq_extl_ref_dt.Rows.Add(r)
'End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
parameterCounter = parameterCounter + 1
Next
Me.ADokumentwerte = arrDoukmentWerte
End If
'Dim ds As New DataSet
'ds.ReadXml(xmlImportFile.FullName)
'For Each dt As DataTable In ds.Tables
' If UCase(dt.TableName) = "DOKUMENT" Then
' Me.DS_Dokumentwerte.Tables.Add(dt.Copy)
' End If
' If UCase(dt.TableName) = "PARAMETER" Then
' Me.DS_Dokumentwerte.Tables.Add(dt.Copy)
' End If
'Next
'ds.Dispose()
Catch ex As Exception
MsgBox(ex.Message)
Throw ex
End Try
End Function
Public Function getAvaloqDokumentWertByName(ByVal name As String) As AvaloqDokumentWert
Dim objRet As AvaloqDokumentWert = Nothing
Dim i As Integer
For i = 0 To arrDoukmentWerte.Count - 1
If arrDoukmentWerte(i).name = name Then
objRet = arrDoukmentWerte(i)
End If
Next
Return objRet
End Function
Public Function getAvaloqDokumentWertByName(ByVal aDokumentwerte As ArrayList, ByVal name As String, ByVal Techname As String) As AvaloqDokumentWert
Dim objRet As AvaloqDokumentWert = Nothing
Dim x As AvaloqDokumentWert
Dim i As Integer
Try
For i = 0 To aDokumentwerte.Count - 1
x = aDokumentwerte(i)
If aDokumentwerte(i).name = name Or aDokumentwerte(i).name = Techname Then
Return x
objRet.name = x.name
objRet.value = x.value
End If
Next
Return objRet
Catch
End Try
End Function
'20080401 RGL Funktion zum Löschen der Werte, damit nicht 2x abgefüllt (auch bei manuellem Erstellen)
Public Sub clearAvaloqDokumentWerte()
arrDoukmentWerte.Clear()
End Sub
#End Region
End Class

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>
Test_Serialization_avqwerte
</name>
</assembly>
<members>
<member name="M:Test_Serialization_avqwerte.AvaloqDokumentWerte.init(System.IO.FileInfo)">
<summary>Lädt externes Xml file für automatisierte Aktionen</summary>
<param name="xmlImportFile">Das Xml File mit den entsprechenden Parametern</param>
</member><member name="P:Test_Serialization_avqwerte.My.Resources.Resources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member><member name="P:Test_Serialization_avqwerte.My.Resources.Resources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member><member name="T:Test_Serialization_avqwerte.My.Resources.Resources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
</members>
</doc>

View File

@@ -0,0 +1,9 @@
E:\Software-Projekte\EDOKA\tools\Test_Serialization_avqwerte\Test_Serialization_avqwerte\bin\Debug\Test_Serialization_avqwerte.exe
E:\Software-Projekte\EDOKA\tools\Test_Serialization_avqwerte\Test_Serialization_avqwerte\bin\Debug\Test_Serialization_avqwerte.pdb
E:\Software-Projekte\EDOKA\tools\Test_Serialization_avqwerte\Test_Serialization_avqwerte\bin\Debug\Test_Serialization_avqwerte.xml
E:\Software-Projekte\EDOKA\tools\Test_Serialization_avqwerte\Test_Serialization_avqwerte\obj\Debug\Test_Serialization_avqwerte.Form1.resources
E:\Software-Projekte\EDOKA\tools\Test_Serialization_avqwerte\Test_Serialization_avqwerte\obj\Debug\Test_Serialization_avqwerte.Resources.resources
E:\Software-Projekte\EDOKA\tools\Test_Serialization_avqwerte\Test_Serialization_avqwerte\obj\Debug\Test_Serialization_avqwerte.vbproj.GenerateResource.Cache
E:\Software-Projekte\EDOKA\tools\Test_Serialization_avqwerte\Test_Serialization_avqwerte\obj\Debug\Test_Serialization_avqwerte.exe
E:\Software-Projekte\EDOKA\tools\Test_Serialization_avqwerte\Test_Serialization_avqwerte\obj\Debug\Test_Serialization_avqwerte.xml
E:\Software-Projekte\EDOKA\tools\Test_Serialization_avqwerte\Test_Serialization_avqwerte\obj\Debug\Test_Serialization_avqwerte.pdb

View File

@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>
Test_Serialization_avqwerte
</name>
</assembly>
<members>
<member name="M:Test_Serialization_avqwerte.AvaloqDokumentWerte.init(System.IO.FileInfo)">
<summary>Lädt externes Xml file für automatisierte Aktionen</summary>
<param name="xmlImportFile">Das Xml File mit den entsprechenden Parametern</param>
</member><member name="P:Test_Serialization_avqwerte.My.Resources.Resources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member><member name="P:Test_Serialization_avqwerte.My.Resources.Resources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member><member name="T:Test_Serialization_avqwerte.My.Resources.Resources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
</members>
</doc>