Initial commit
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
Imports System
|
||||
Imports System.Reflection
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
' Allgemeine Informationen über eine Assembly werden über die folgende
|
||||
' Attributgruppe gesteuert. Ändern Sie diese Attributwerte, um Informationen,
|
||||
' die mit einer Assembly verknüpft sind, zu bearbeiten.
|
||||
|
||||
' Die Werte der Assemblyattribute überprüfen
|
||||
|
||||
<Assembly: AssemblyTitle("EDKB05 Common Layer")>
|
||||
<Assembly: AssemblyDescription("Common Layer for EDKB05 Batch")>
|
||||
<Assembly: AssemblyCompany("Zubler & Partner")>
|
||||
<Assembly: AssemblyProduct("EDKB05")>
|
||||
<Assembly: AssemblyCopyright("TKB")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
<Assembly: CLSCompliant(True)>
|
||||
|
||||
'Die folgende GUID ist für die ID der Typbibliothek, wenn dieses Projekt in COM angezeigt wird
|
||||
<Assembly: Guid("ED1758D3-CB82-45A6-9218-98927D8746E4")>
|
||||
|
||||
' Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
'
|
||||
' Haupversion
|
||||
' Nebenversion
|
||||
' Buildnummer
|
||||
' Revisionsnummer
|
||||
'
|
||||
' Sie können alle Werte angeben oder auf die standardmäßigen Build- und Revisionsnummern
|
||||
' zurückgreifen, indem Sie '*' wie unten angezeigt verwenden:
|
||||
|
||||
<Assembly: AssemblyVersion("2.0.*")>
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Common", "Common.vbproj", "{CAAF6490-7A60-4690-A7AC-C056A5D78F89}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{CAAF6490-7A60-4690-A7AC-C056A5D78F89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CAAF6490-7A60-4690-A7AC-C056A5D78F89}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CAAF6490-7A60-4690-A7AC-C056A5D78F89}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CAAF6490-7A60-4690-A7AC-C056A5D78F89}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Binary file not shown.
@@ -0,0 +1,135 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{CAAF6490-7A60-4690-A7AC-C056A5D78F89}</ProjectGuid>
|
||||
<SccProjectName>
|
||||
</SccProjectName>
|
||||
<SccLocalPath>
|
||||
</SccLocalPath>
|
||||
<SccAuxPath>
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>EDKB05.Common</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Library</OutputType>
|
||||
<OptionCompare>Binary</OptionCompare>
|
||||
<OptionExplicit>On</OptionExplicit>
|
||||
<OptionStrict>Off</OptionStrict>
|
||||
<RootNamespace>EDKB05.Common</RootNamespace>
|
||||
<StartupObject>EDKB05.Common.%28Keine%29</StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<MyType>Windows</MyType>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DocumentationFile>EDKB05.Common.xml</DocumentationFile>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>
|
||||
</DefineConstants>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<Optimize>false</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<NoWarn>42016,42017,42018,42019,42032,42353,42354,42355</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DocumentationFile>EDKB05.Common.xml</DocumentationFile>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>
|
||||
</DefineConstants>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<Optimize>true</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<NoWarn>42016,42017,42018,42019,42032,42353,42354,42355</NoWarn>
|
||||
<DebugType>none</DebugType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="BMS, Version=2.0.2950.25628, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\BMS\BMSDll\bin\BMS.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common, Version=2.0.2950.25274, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\BMS\Common\bin\Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System">
|
||||
<Name>System</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Data">
|
||||
<Name>System.Data</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml">
|
||||
<Name>System.XML</Name>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AssemblyInfo.vb">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Crypto.vb">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Datenbank.vb">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Settings.vb">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Tools.vb">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="My Project\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,10 @@
|
||||
""
|
||||
{
|
||||
"FILE_VERSION" = "9237"
|
||||
"ENLISTMENT_CHOICE" = "NEVER"
|
||||
"PROJECT_FILE_RELATIVE_PATH" = "relative:Common"
|
||||
"NUMBER_OF_EXCLUDED_FILES" = "0"
|
||||
"ORIGINAL_PROJECT_FILE_PATH" = ""
|
||||
"NUMBER_OF_NESTED_PROJECTS" = "0"
|
||||
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
'''<summary>Diese klasse beinhaltet Methoden welche für den Kryptografischen Teil verwendet werden</summary>
|
||||
Public Class Crypto
|
||||
|
||||
Const CRYPTO_PASSWORD As String = "HutterundMueller"
|
||||
|
||||
'''<summary>Verschlüsselt einen Text mit dem angegebenen Passwort</summary>
|
||||
'''<param name="strText">Zu verschlüsselnder Text</param>
|
||||
'''<includesource>yes</includesource>
|
||||
Public Shared Function EncryptText(ByVal strText As String) As String
|
||||
Dim i As Integer, c As Integer
|
||||
Dim strBuff As String = ""
|
||||
Dim strPwd As String = CRYPTO_PASSWORD
|
||||
|
||||
strPwd = UCase$(strPwd)
|
||||
If Len(strPwd) Then
|
||||
For i = 1 To Len(strText)
|
||||
c = Asc(Mid$(strText, i, 1))
|
||||
c = c + Asc(Mid$(strPwd, (i Mod Len(strPwd)) + 1, 1))
|
||||
strBuff = strBuff & Chr(c And &HFF)
|
||||
Next i
|
||||
Else
|
||||
strBuff = strText
|
||||
End If
|
||||
EncryptText = strBuff
|
||||
End Function
|
||||
|
||||
'''<summary>Entschlüsselt einen Text</summary>
|
||||
'''<param name="strText">Zu verschlüsselnder Text</param>
|
||||
'''<includesource>yes</includesource>
|
||||
Public Shared Function DecryptText(ByVal strText As String) As String
|
||||
Dim i As Integer, c As Integer
|
||||
Dim strBuff As String = ""
|
||||
Dim strPwd As String = CRYPTO_PASSWORD
|
||||
|
||||
strPwd = UCase$(strPwd)
|
||||
If Len(strPwd) Then
|
||||
For i = 1 To Len(strText)
|
||||
c = Asc(Mid$(strText, i, 1))
|
||||
c = c - Asc(Mid$(strPwd, (i Mod Len(strPwd)) + 1, 1))
|
||||
strBuff = strBuff & Chr(c And &HFF)
|
||||
Next i
|
||||
Else
|
||||
strBuff = strText
|
||||
End If
|
||||
DecryptText = strBuff
|
||||
End Function
|
||||
|
||||
End Class
|
||||
|
||||
'End Namespace
|
||||
@@ -0,0 +1,28 @@
|
||||
Imports System.IO
|
||||
|
||||
'''<summary>Diese klasse beinhaltet Methoden welche für den Datenbank Zugriff im DataAccess verwendet werden</summary>
|
||||
Public Class Datenbank
|
||||
|
||||
'''<summary>Liest aus dem Connection String file edokaconn.cfg aus</summary>
|
||||
'''<returns>Den entschlüsseleten DSN string</returns>
|
||||
Overloads Shared Function GetDSN() As String
|
||||
Try
|
||||
Dim reader As System.IO.StreamReader
|
||||
Dim connectionString As String
|
||||
|
||||
reader = IO.File.OpenText(AppDomain.CurrentDomain.BaseDirectory + "journaleconn.cfg")
|
||||
|
||||
connectionString = reader.ReadLine
|
||||
'connectionString = Crypto.DecryptText(connectionString)
|
||||
'connectionString = Left(connectionString, Len(connectionString) - 1)
|
||||
|
||||
reader.Close()
|
||||
|
||||
GetDSN = connectionString
|
||||
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,70 @@
|
||||
Imports System
|
||||
Imports System.Xml
|
||||
Imports System.Data
|
||||
|
||||
'''<summary>Lädt und schreibt Einstellungen in settings file</summary>
|
||||
Public Class Settings
|
||||
|
||||
#Region "Members"
|
||||
|
||||
Private _settings As XmlDocument
|
||||
|
||||
#End Region
|
||||
|
||||
#Region "Constructor"
|
||||
|
||||
Public Sub New()
|
||||
Try
|
||||
_settings = New XmlDocument
|
||||
_settings.Load(AppDomain.CurrentDomain.BaseDirectory + "settings.xml")
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
#Region "Public methods"
|
||||
|
||||
'''<summary>Lädt ein Wert für ein setting aus dem config file</summary>
|
||||
'''<param name="xPath">Der node xPath</param>
|
||||
'''<param name="attributeName">Attribut name der zurückgegeben werden soll</param>
|
||||
'''<returns>Der Wert des Attributes</returns>
|
||||
Public Function GetValueByXPath(ByVal xPath As String, ByVal attributeName As String) As String
|
||||
Try
|
||||
Dim node As XmlNode = _settings.SelectSingleNode(xPath)
|
||||
|
||||
If Not node Is Nothing Then
|
||||
'node exisitiert
|
||||
Return node.Attributes(attributeName).Value
|
||||
Else
|
||||
Return ""
|
||||
End If
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
|
||||
'''<summary>Gibt eine Liste aller XmlNodes zurück, welche unter dem angegebenen xPath existieren</summary>
|
||||
'''<param name="xPath"></param>
|
||||
'''<returns></returns>
|
||||
Public Function GetNodeByXPath(ByVal xPath As String) As XmlNode
|
||||
Try
|
||||
Return _settings.SelectSingleNode(xPath)
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
|
||||
'''<summary>Gibt das SqlTimeout für queries zurück</summary>
|
||||
'''<returns></returns>
|
||||
Public Function GetSqlTimeout() As Integer
|
||||
Try
|
||||
Return Convert.ToDouble(_settings.SelectSingleNode("root/config/SqlTimeout").Attributes("seconds").InnerText)
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,23 @@
|
||||
Public Class Tools
|
||||
|
||||
#Region "Public methods"
|
||||
|
||||
'''<summary>Überprüft TableCount und RowCount eines DataSet</summary>
|
||||
'''<param name="ds"></param>
|
||||
'''<returns>True wenn table- und rowcount > 0</returns>
|
||||
Public Shared Function IsDataSetValid(ByVal ds As DataSet) As Boolean
|
||||
Try
|
||||
If ds.Tables.Count > 0 Then
|
||||
If ds.Tables(0).Rows.Count > 0 Then
|
||||
Return True
|
||||
End If
|
||||
End If
|
||||
Return False
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type='text/xsl' href='_UpgradeReport_Files/UpgradeReport.xslt'?><UpgradeLog>
|
||||
<Properties><Property Name="Solution" Value="Common">
|
||||
</Property><Property Name="Projektmappendatei" Value="C:\DATA\EDKB05\Common\Common.sln">
|
||||
</Property><Property Name="Date" Value="Dienstag, 30. Oktober 2007">
|
||||
</Property><Property Name="Time" Value="14:28:19">
|
||||
</Property></Properties><Event ErrorLevel="0" Project="Common" Source="Common.vbproj" Description="Projekt erfolgreich konvertiert">
|
||||
</Event><Event ErrorLevel="3" Project="Common" Source="Common.vbproj" Description="Converted">
|
||||
</Event><Event ErrorLevel="0" Project="Common" Source="Common.vbproj" Description="Überprüfung abgeschlossen: Aktualisierung von Projektdateien nicht erforderlich.">
|
||||
</Event></UpgradeLog>
|
||||
@@ -0,0 +1,207 @@
|
||||
BODY
|
||||
{
|
||||
BACKGROUND-COLOR: white;
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-LEFT: 0px;
|
||||
MARGIN-TOP: 0px
|
||||
}
|
||||
P
|
||||
{
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 70%;
|
||||
LINE-HEIGHT: 12pt;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 10px
|
||||
}
|
||||
.note
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
COLOR: #336699;
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-LEFT: 0px;
|
||||
MARGIN-TOP: 0px;
|
||||
PADDING-RIGHT: 10px
|
||||
}
|
||||
.infotable
|
||||
{
|
||||
BACKGROUND-COLOR: #f0f0e0;
|
||||
BORDER-BOTTOM: #ffffff 0px solid;
|
||||
BORDER-COLLAPSE: collapse;
|
||||
BORDER-LEFT: #ffffff 0px solid;
|
||||
BORDER-RIGHT: #ffffff 0px solid;
|
||||
BORDER-TOP: #ffffff 0px solid;
|
||||
FONT-SIZE: 70%;
|
||||
MARGIN-LEFT: 10px
|
||||
}
|
||||
.issuetable
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffe8;
|
||||
BORDER-COLLAPSE: collapse;
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-BOTTOM: 10px;
|
||||
MARGIN-LEFT: 13px;
|
||||
MARGIN-TOP: 0px
|
||||
}
|
||||
.issuetitle
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px;
|
||||
COLOR: #003366;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.header
|
||||
{
|
||||
BACKGROUND-COLOR: #cecf9c;
|
||||
BORDER-BOTTOM: #ffffff 1px solid;
|
||||
BORDER-LEFT: #ffffff 1px solid;
|
||||
BORDER-RIGHT: #ffffff 1px solid;
|
||||
BORDER-TOP: #ffffff 1px solid;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: bold
|
||||
}
|
||||
.issuehdr
|
||||
{
|
||||
BACKGROUND-COLOR: #E0EBF5;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px solid;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.issuenone
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: 0px;
|
||||
BORDER-LEFT: 0px;
|
||||
BORDER-RIGHT: 0px;
|
||||
BORDER-TOP: 0px;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.content
|
||||
{
|
||||
BACKGROUND-COLOR: #e7e7ce;
|
||||
BORDER-BOTTOM: #ffffff 1px solid;
|
||||
BORDER-LEFT: #ffffff 1px solid;
|
||||
BORDER-RIGHT: #ffffff 1px solid;
|
||||
BORDER-TOP: #ffffff 1px solid;
|
||||
PADDING-LEFT: 3px
|
||||
}
|
||||
.issuecontent
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px solid;
|
||||
PADDING-LEFT: 3px
|
||||
}
|
||||
A:link
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
TEXT-DECORATION: underline
|
||||
}
|
||||
A:visited
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
}
|
||||
A:active
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
}
|
||||
A:hover
|
||||
{
|
||||
COLOR: #cc3300;
|
||||
TEXT-DECORATION: underline
|
||||
}
|
||||
H1
|
||||
{
|
||||
BACKGROUND-COLOR: #003366;
|
||||
BORDER-BOTTOM: #336699 6px solid;
|
||||
COLOR: #ffffff;
|
||||
FONT-SIZE: 130%;
|
||||
FONT-WEIGHT: normal;
|
||||
MARGIN: 0em 0em 0em -20px;
|
||||
PADDING-BOTTOM: 8px;
|
||||
PADDING-LEFT: 30px;
|
||||
PADDING-TOP: 16px
|
||||
}
|
||||
H2
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 80%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: 3px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 20px;
|
||||
PADDING-LEFT: 0px
|
||||
}
|
||||
H3
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 80%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: -5px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 20px
|
||||
}
|
||||
H4
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-TOP: 15px;
|
||||
PADDING-BOTTOM: 0px
|
||||
}
|
||||
UL
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
LIST-STYLE: square;
|
||||
MARGIN-BOTTOM: 0pt;
|
||||
MARGIN-TOP: 0pt
|
||||
}
|
||||
OL
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
LIST-STYLE: square;
|
||||
MARGIN-BOTTOM: 0pt;
|
||||
MARGIN-TOP: 0pt
|
||||
}
|
||||
LI
|
||||
{
|
||||
LIST-STYLE: square;
|
||||
MARGIN-LEFT: 0px
|
||||
}
|
||||
.expandable
|
||||
{
|
||||
CURSOR: hand
|
||||
}
|
||||
.expanded
|
||||
{
|
||||
color: black
|
||||
}
|
||||
.collapsed
|
||||
{
|
||||
DISPLAY: none
|
||||
}
|
||||
.foot
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #cecf9c 1px solid;
|
||||
BORDER-TOP: #cecf9c 2px solid
|
||||
}
|
||||
.settings
|
||||
{
|
||||
MARGIN-LEFT: 25PX;
|
||||
}
|
||||
.help
|
||||
{
|
||||
TEXT-ALIGN: right;
|
||||
margin-right: 10px;
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
|
||||
|
||||
<xsl:key name="ProjectKey" match="Event" use="@Project"/>
|
||||
|
||||
<xsl:template match="Events" mode="createProjects">
|
||||
<projects>
|
||||
<xsl:for-each select="Event">
|
||||
<!--xsl:sort select="@Project" order="descending"/-->
|
||||
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Project != @Project)">
|
||||
|
||||
<xsl:variable name="ProjectName" select="@Project"/>
|
||||
|
||||
<project>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@Project"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:if test="@Project=''">
|
||||
<xsl:attribute name="solution">
|
||||
<xsl:value-of select="@Solution"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:for-each select="key('ProjectKey', $ProjectName)">
|
||||
<!--xsl:sort select="@Source" /-->
|
||||
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Source != @Source)">
|
||||
|
||||
<source>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@Source"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:variable name="Source">
|
||||
<xsl:value-of select="@Source"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:for-each select="key('ProjectKey', $ProjectName)[ @Source = $Source ]">
|
||||
|
||||
<event>
|
||||
<xsl:attribute name="error-level">
|
||||
<xsl:value-of select="@ErrorLevel"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="description">
|
||||
<xsl:value-of select="@Description"/>
|
||||
</xsl:attribute>
|
||||
</event>
|
||||
</xsl:for-each>
|
||||
</source>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
</project>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</projects>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="projects">
|
||||
<xsl:for-each select="project">
|
||||
<xsl:sort select="@Name" order="ascending"/>
|
||||
<h2>
|
||||
<xsl:if test="@solution">Projektmappe: <xsl:value-of select="@solution"/></xsl:if>
|
||||
<xsl:if test="not(@solution)">Projekt: <xsl:value-of select="@name"/>
|
||||
<xsl:for-each select="source">
|
||||
<xsl:variable name="Hyperlink" select="@name"/>
|
||||
<xsl:for-each select="event[@error-level='4']">
|
||||
<A class="note"><xsl:attribute name="HREF"><xsl:value-of select="$Hyperlink"/></xsl:attribute><xsl:value-of select="@description"/></A>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</h2>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
|
||||
<tr>
|
||||
<td nowrap="1" class="header" _locID="Filename">Dateiname</td>
|
||||
<td nowrap="1" class="header" _locID="Status">Status</td>
|
||||
<td nowrap="1" class="header" _locID="Errors">Fehler</td>
|
||||
<td nowrap="1" class="header" _locID="Warnings">Warnungen</td>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="source">
|
||||
<xsl:sort select="@name" order="ascending"/>
|
||||
<xsl:variable name="source-id" select="generate-id(.)"/>
|
||||
|
||||
<xsl:if test="count(event)!=count(event[@error-level='4'])">
|
||||
|
||||
<tr class="row">
|
||||
<td class="content">
|
||||
<A HREF="javascript:"><xsl:attribute name="onClick">javascript:document.images['<xsl:value-of select="$source-id"/>'].click()</xsl:attribute><IMG border="0" alt="expand/collapse section" class="expandable" height="11" onclick="changepic()" src="_UpgradeReport_Files/UpgradeReport_Plus.gif" width="9"><xsl:attribute name="name"><xsl:value-of select="$source-id"/></xsl:attribute><xsl:attribute name="child">src<xsl:value-of select="$source-id"/></xsl:attribute></IMG></A> <xsl:value-of select="@name"/>
|
||||
</td>
|
||||
<td class="content">
|
||||
<xsl:if test="count(event[@error-level='3'])=1">
|
||||
<xsl:for-each select="event[@error-level='3']">
|
||||
<xsl:if test="@description='Converted'">Konvertiert</xsl:if>
|
||||
<xsl:if test="@description!='Converted'"><xsl:value-of select="@description"/></xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(event[@error-level='3'])!=1 and count(event[@error-level='3' and @description='Converted'])!=0">Konvertiert
|
||||
</xsl:if>
|
||||
</td>
|
||||
<td class="content"><xsl:value-of select="count(event[@error-level='2'])"/></td>
|
||||
<td class="content"><xsl:value-of select="count(event[@error-level='1'])"/></td>
|
||||
</tr>
|
||||
|
||||
<tr class="collapsed" bgcolor="#ffffff">
|
||||
<xsl:attribute name="id">src<xsl:value-of select="$source-id"/></xsl:attribute>
|
||||
|
||||
<td colspan="7">
|
||||
<table width="97%" border="1" bordercolor="#dcdcdc" rules="cols" class="issuetable">
|
||||
<tr>
|
||||
<td colspan="7" class="issuetitle" _locID="ConversionIssues">Konvertierungsprobleme - <xsl:value-of select="@name"/>:</td>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="event[@error-level!='3']">
|
||||
<xsl:if test="@error-level!='4'">
|
||||
<tr>
|
||||
<td class="issuenone" style="border-bottom:solid 1 lightgray">
|
||||
<xsl:value-of select="@description"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
<tr valign="top">
|
||||
<td class="foot">
|
||||
<xsl:if test="count(source)!=1">
|
||||
<xsl:value-of select="count(source)"/> Dateien
|
||||
</xsl:if>
|
||||
<xsl:if test="count(source)=1">
|
||||
1 Datei
|
||||
</xsl:if>
|
||||
</td>
|
||||
<td class="foot">
|
||||
Konvertiert: <xsl:value-of select="count(source/event[@error-level='3' and @description='Converted'])"/><BR/>
|
||||
Nicht konvertiert <xsl:value-of select="count(source) - count(source/event[@error-level='3' and @description='Converted'])"/>
|
||||
</td>
|
||||
<td class="foot"><xsl:value-of select="count(source/event[@error-level='2'])"/></td>
|
||||
<td class="foot"><xsl:value-of select="count(source/event[@error-level='1'])"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="Property">
|
||||
<xsl:if test="@Name!='Date' and @Name!='Time' and @Name!='LogNumber' and @Name!='Solution'">
|
||||
<tr><td nowrap="1"><b><xsl:value-of select="@Name"/>: </b><xsl:value-of select="@Value"/></td></tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="UpgradeLog">
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" href="_UpgradeReport_Files\UpgradeReport.css"/>
|
||||
<title>Konvertierungsbericht
|
||||
<xsl:if test="Properties/Property[@Name='LogNumber']">
|
||||
<xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/>
|
||||
</xsl:if>
|
||||
</title>
|
||||
<script language="javascript">
|
||||
function outliner () {
|
||||
oMe = window.event.srcElement
|
||||
//get child element
|
||||
var child = document.all[event.srcElement.getAttribute("child",false)];
|
||||
//if child element exists, expand or collapse it.
|
||||
if (null != child)
|
||||
child.className = child.className == "collapsed" ? "expanded" : "collapsed";
|
||||
}
|
||||
|
||||
function changepic() {
|
||||
uMe = window.event.srcElement;
|
||||
var check = uMe.src.toLowerCase();
|
||||
if (check.lastIndexOf("upgradereport_plus.gif") != -1)
|
||||
{
|
||||
uMe.src = "_UpgradeReport_Files/UpgradeReport_Minus.gif"
|
||||
}
|
||||
else
|
||||
{
|
||||
uMe.src = "_UpgradeReport_Files/UpgradeReport_Plus.gif"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body topmargin="0" leftmargin="0" rightmargin="0" onclick="outliner();">
|
||||
<h1 _locID="ConversionReport">Konvertierungsbericht - <xsl:value-of select="Properties/Property[@Name='Solution']/@Value"/></h1>
|
||||
|
||||
<p><span class="note">
|
||||
<b>Konvertierungsdauer:</b> <xsl:value-of select="Properties/Property[@Name='Date']/@Value"/> <xsl:value-of select="Properties/Property[@Name='Time']/@Value"/><br/>
|
||||
</span></p>
|
||||
|
||||
<xsl:variable name="SortedEvents">
|
||||
<Events>
|
||||
<xsl:for-each select="Event">
|
||||
<xsl:sort select="@Project" order="ascending"/>
|
||||
<xsl:sort select="@Source" order="ascending"/>
|
||||
<xsl:sort select="@ErrorLevel" order="ascending"/>
|
||||
<Event>
|
||||
<xsl:attribute name="Project"><xsl:value-of select="@Project"/> </xsl:attribute>
|
||||
<xsl:attribute name="Solution"><xsl:value-of select="/UpgradeLog/Properties/Property[@Name='Solution']/@Value"/> </xsl:attribute>
|
||||
<xsl:attribute name="Source"><xsl:value-of select="@Source"/> </xsl:attribute>
|
||||
<xsl:attribute name="ErrorLevel"><xsl:value-of select="@ErrorLevel"/> </xsl:attribute>
|
||||
<xsl:attribute name="Description"><xsl:value-of select="@Description"/> </xsl:attribute>
|
||||
</Event>
|
||||
</xsl:for-each>
|
||||
</Events>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="Projects">
|
||||
<xsl:apply-templates select="msxsl:node-set($SortedEvents)/*" mode="createProjects"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:apply-templates select="msxsl:node-set($Projects)/*"/>
|
||||
|
||||
<p></p><p>
|
||||
<table class="note">
|
||||
<tr>
|
||||
<td nowrap="1">
|
||||
<b>Konvertierungseinstellungen</b>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:apply-templates select="Properties"/>
|
||||
</table></p>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 69 B |
Binary file not shown.
|
After Width: | Height: | Size: 71 B |
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
BMS
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
Common
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:Common.Settings.GetSettingValue(System.String)">
|
||||
<summary>Gets the first matching value of a property</summary>
|
||||
<param name="propertyName"></param>
|
||||
<returns></returns>
|
||||
</member><member name="M:Common.Settings.SetSettingsValue(System.String,System.String)">
|
||||
<summary>Sets the first matching value of a property</summary>
|
||||
<param name="xpath"></param>
|
||||
<param name="value"></param>
|
||||
</member><member name="M:Common.Settings.GetDecryptedDSN">
|
||||
<summary>Return the descripted dsn string</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
DataAccess
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
EDKB05.Common
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:EDKB05.Common.Settings.GetValueByXPath(System.String,System.String)">
|
||||
<summary>Lädt ein Wert für ein setting aus dem config file</summary>
|
||||
<param name="xPath">Der node xPath</param>
|
||||
<param name="attributeName">Attribut name der zurückgegeben werden soll</param>
|
||||
<returns>Der Wert des Attributes</returns>
|
||||
</member><member name="M:EDKB05.Common.Settings.GetNodeByXPath(System.String)">
|
||||
<summary>Gibt eine Liste aller XmlNodes zurück, welche unter dem angegebenen xPath existieren</summary>
|
||||
<param name="xPath"></param>
|
||||
<returns></returns>
|
||||
</member><member name="M:EDKB05.Common.Settings.GetSqlTimeout">
|
||||
<summary>Gibt das SqlTimeout für queries zurück</summary>
|
||||
<returns></returns>
|
||||
</member><member name="T:EDKB05.Common.Settings">
|
||||
<summary>Lädt und schreibt Einstellungen in settings file</summary>
|
||||
</member><member name="M:EDKB05.Common.Datenbank.GetDSN">
|
||||
<summary>Liest aus dem Connection String file edokaconn.cfg aus</summary>
|
||||
<returns>Den entschlüsseleten DSN string</returns>
|
||||
</member><member name="T:EDKB05.Common.Datenbank">
|
||||
<summary>Diese klasse beinhaltet Methoden welche für den Datenbank Zugriff im DataAccess verwendet werden</summary>
|
||||
</member><member name="M:EDKB05.Common.Crypto.EncryptText(System.String)">
|
||||
<summary>Verschlüsselt einen Text mit dem angegebenen Passwort</summary>
|
||||
<param name="strText">Zu verschlüsselnder Text</param>
|
||||
<includesource>yes</includesource>
|
||||
</member><member name="M:EDKB05.Common.Crypto.DecryptText(System.String)">
|
||||
<summary>Entschlüsselt einen Text</summary>
|
||||
<param name="strText">Zu verschlüsselnder Text</param>
|
||||
<includesource>yes</includesource>
|
||||
</member><member name="T:EDKB05.Common.Crypto">
|
||||
<summary>Diese klasse beinhaltet Methoden welche für den Kryptografischen Teil verwendet werden</summary>
|
||||
</member><member name="M:EDKB05.Common.Tools.IsDataSetValid(System.Data.DataSet)">
|
||||
<summary>Überprüft TableCount und RowCount eines DataSet</summary>
|
||||
<param name="ds"></param>
|
||||
<returns>True wenn table- und rowcount > 0</returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
ZpCryptography
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
|
||||
</members>
|
||||
</doc>
|
||||
@@ -0,0 +1,5 @@
|
||||
SCC = This is a Source Code Control file
|
||||
|
||||
[Common.vbproj]
|
||||
SCC_Aux_Path = "\\SERVER01\DATEN\SourceSave\EDOKA4.0"
|
||||
SCC_Project_Name = "$/EDKB05/Common", LFBAAAAA
|
||||
@@ -0,0 +1,17 @@
|
||||
bin\EDKB05.Common.dll
|
||||
bin\EDKB05.Common.xml
|
||||
bin\BMS.dll
|
||||
bin\Common.dll
|
||||
bin\DataAccess.dll
|
||||
bin\ZpCryptography.dll
|
||||
obj\Debug\ResolveAssemblyReference.cache
|
||||
obj\Debug\EDKB05.Common.dll
|
||||
obj\Debug\EDKB05.Common.xml
|
||||
obj\Debug\EDKB05.Common.pdb
|
||||
obj\Release\ResolveAssemblyReference.cache
|
||||
obj\Release\EDKB05.Common.dll
|
||||
obj\Release\EDKB05.Common.xml
|
||||
bin\BMS.xml
|
||||
bin\DataAccess.xml
|
||||
bin\Common.xml
|
||||
bin\ZpCryptography.xml
|
||||
@@ -0,0 +1,13 @@
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\bin\EDKB05.Common.dll
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\bin\EDKB05.Common.pdb
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\bin\EDKB05.Common.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\bin\DataAccess.dll
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\bin\ZpCryptography.dll
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\bin\BMS.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\bin\DataAccess.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\bin\Common.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\bin\ZpCryptography.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\obj\Debug\ResolveAssemblyReference.cache
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\obj\Debug\EDKB05.Common.dll
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\obj\Debug\EDKB05.Common.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\Common\obj\Debug\EDKB05.Common.pdb
|
||||
@@ -0,0 +1,13 @@
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\bin\EDKB05.Common.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\bin\EDKB05.Common.pdb
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\bin\EDKB05.Common.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\bin\DataAccess.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\bin\ZpCryptography.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\bin\BMS.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\bin\Common.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\bin\DataAccess.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\bin\ZpCryptography.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\obj\Debug\Common.vbprojResolveAssemblyReference.cache
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\obj\Debug\EDKB05.Common.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\obj\Debug\EDKB05.Common.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\Common\obj\Debug\EDKB05.Common.pdb
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
EDKB05.Common
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:EDKB05.Common.Settings.GetValueByXPath(System.String,System.String)">
|
||||
<summary>Lädt ein Wert für ein setting aus dem config file</summary>
|
||||
<param name="xPath">Der node xPath</param>
|
||||
<param name="attributeName">Attribut name der zurückgegeben werden soll</param>
|
||||
<returns>Der Wert des Attributes</returns>
|
||||
</member><member name="M:EDKB05.Common.Settings.GetNodeByXPath(System.String)">
|
||||
<summary>Gibt eine Liste aller XmlNodes zurück, welche unter dem angegebenen xPath existieren</summary>
|
||||
<param name="xPath"></param>
|
||||
<returns></returns>
|
||||
</member><member name="M:EDKB05.Common.Settings.GetSqlTimeout">
|
||||
<summary>Gibt das SqlTimeout für queries zurück</summary>
|
||||
<returns></returns>
|
||||
</member><member name="T:EDKB05.Common.Settings">
|
||||
<summary>Lädt und schreibt Einstellungen in settings file</summary>
|
||||
</member><member name="M:EDKB05.Common.Datenbank.GetDSN">
|
||||
<summary>Liest aus dem Connection String file edokaconn.cfg aus</summary>
|
||||
<returns>Den entschlüsseleten DSN string</returns>
|
||||
</member><member name="T:EDKB05.Common.Datenbank">
|
||||
<summary>Diese klasse beinhaltet Methoden welche für den Datenbank Zugriff im DataAccess verwendet werden</summary>
|
||||
</member><member name="M:EDKB05.Common.Crypto.EncryptText(System.String)">
|
||||
<summary>Verschlüsselt einen Text mit dem angegebenen Passwort</summary>
|
||||
<param name="strText">Zu verschlüsselnder Text</param>
|
||||
<includesource>yes</includesource>
|
||||
</member><member name="M:EDKB05.Common.Crypto.DecryptText(System.String)">
|
||||
<summary>Entschlüsselt einen Text</summary>
|
||||
<param name="strText">Zu verschlüsselnder Text</param>
|
||||
<includesource>yes</includesource>
|
||||
</member><member name="T:EDKB05.Common.Crypto">
|
||||
<summary>Diese klasse beinhaltet Methoden welche für den Kryptografischen Teil verwendet werden</summary>
|
||||
</member><member name="M:EDKB05.Common.Tools.IsDataSetValid(System.Data.DataSet)">
|
||||
<summary>Überprüft TableCount und RowCount eines DataSet</summary>
|
||||
<param name="ds"></param>
|
||||
<returns>True wenn table- und rowcount > 0</returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
EDKB05.Common
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:EDKB05.Common.Crypto.EncryptText(System.String)">
|
||||
<summary>Verschlüsselt einen Text mit dem angegebenen Passwort</summary>
|
||||
<param name="strText">Zu verschlüsselnder Text</param>
|
||||
<includesource>yes</includesource>
|
||||
</member><member name="M:EDKB05.Common.Crypto.DecryptText(System.String)">
|
||||
<summary>Entschlüsselt einen Text</summary>
|
||||
<param name="strText">Zu verschlüsselnder Text</param>
|
||||
<includesource>yes</includesource>
|
||||
</member><member name="T:EDKB05.Common.Crypto">
|
||||
<summary>Diese klasse beinhaltet Methoden welche für den Kryptografischen Teil verwendet werden</summary>
|
||||
</member><member name="M:EDKB05.Common.Tools.IsDataSetValid(System.Data.DataSet)">
|
||||
<summary>Überprüft TableCount und RowCount eines DataSet</summary>
|
||||
<param name="ds"></param>
|
||||
<returns>True wenn table- und rowcount > 0</returns>
|
||||
</member><member name="M:EDKB05.Common.Settings.GetValueByXPath(System.String,System.String)">
|
||||
<summary>Lädt ein Wert für ein setting aus dem config file</summary>
|
||||
<param name="xPath">Der node xPath</param>
|
||||
<param name="attributeName">Attribut name der zurückgegeben werden soll</param>
|
||||
<returns>Der Wert des Attributes</returns>
|
||||
</member><member name="M:EDKB05.Common.Settings.GetNodeByXPath(System.String)">
|
||||
<summary>Gibt eine Liste aller XmlNodes zurück, welche unter dem angegebenen xPath existieren</summary>
|
||||
<param name="xPath"></param>
|
||||
<returns></returns>
|
||||
</member><member name="M:EDKB05.Common.Settings.GetSqlTimeout">
|
||||
<summary>Gibt das SqlTimeout für queries zurück</summary>
|
||||
<returns></returns>
|
||||
</member><member name="T:EDKB05.Common.Settings">
|
||||
<summary>Lädt und schreibt Einstellungen in settings file</summary>
|
||||
</member><member name="M:EDKB05.Common.Datenbank.GetDSN">
|
||||
<summary>Liest aus dem Connection String file edokaconn.cfg aus</summary>
|
||||
<returns>Den entschlüsseleten DSN string</returns>
|
||||
</member><member name="T:EDKB05.Common.Datenbank">
|
||||
<summary>Diese klasse beinhaltet Methoden welche für den Datenbank Zugriff im DataAccess verwendet werden</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
Imports System
|
||||
Imports System.Reflection
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
' Allgemeine Informationen über eine Assembly werden über die folgende
|
||||
' Attributgruppe gesteuert. Ändern Sie diese Attributwerte, um Informationen,
|
||||
' die mit einer Assembly verknüpft sind, zu bearbeiten.
|
||||
|
||||
' Die Werte der Assemblyattribute überprüfen
|
||||
|
||||
<Assembly: AssemblyTitle("EDKB05 ConsoleUI")>
|
||||
<Assembly: AssemblyDescription("ConsoleUI Layer for EDKB05 Batch")>
|
||||
<Assembly: AssemblyCompany("Zubler & Partner")>
|
||||
<Assembly: AssemblyProduct("EDKB05")>
|
||||
<Assembly: AssemblyCopyright("TKB")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
<Assembly: CLSCompliant(True)>
|
||||
|
||||
'Die folgende GUID ist für die ID der Typbibliothek, wenn dieses Projekt in COM angezeigt wird
|
||||
<Assembly: Guid("6AF2C5EC-3687-4ADA-BAE1-F2A79822400B")>
|
||||
|
||||
' Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
'
|
||||
' Haupversion
|
||||
' Nebenversion
|
||||
' Buildnummer
|
||||
' Revisionsnummer
|
||||
'
|
||||
' Sie können alle Werte angeben oder auf die standardmäßigen Build- und Revisionsnummern
|
||||
' zurückgreifen, indem Sie '*' wie unten angezeigt verwenden:
|
||||
|
||||
<Assembly: AssemblyVersion("2.0.*")>
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ConsoleUI", "ConsoleUI.vbproj", "{73A8DFB1-D405-426B-B23A-1D629637B087}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{73A8DFB1-D405-426B-B23A-1D629637B087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{73A8DFB1-D405-426B-B23A-1D629637B087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{73A8DFB1-D405-426B-B23A-1D629637B087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{73A8DFB1-D405-426B-B23A-1D629637B087}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25123.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ConsoleUI", "ConsoleUI.vbproj", "{73A8DFB1-D405-426B-B23A-1D629637B087}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{73A8DFB1-D405-426B-B23A-1D629637B087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{73A8DFB1-D405-426B-B23A-1D629637B087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{73A8DFB1-D405-426B-B23A-1D629637B087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{73A8DFB1-D405-426B-B23A-1D629637B087}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Binary file not shown.
@@ -0,0 +1,159 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{73A8DFB1-D405-426B-B23A-1D629637B087}</ProjectGuid>
|
||||
<SccProjectName>
|
||||
</SccProjectName>
|
||||
<SccLocalPath>
|
||||
</SccLocalPath>
|
||||
<SccAuxPath>
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>
|
||||
</ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>EDKB05.ConsoleUI</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>Exe</OutputType>
|
||||
<OptionCompare>Binary</OptionCompare>
|
||||
<OptionExplicit>On</OptionExplicit>
|
||||
<OptionStrict>Off</OptionStrict>
|
||||
<RootNamespace>ConsoleUI</RootNamespace>
|
||||
<StartupObject>ConsoleUI.Main</StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<MyType>Console</MyType>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationVersion>2.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DocumentationFile>EDKB05.ConsoleUI.xml</DocumentationFile>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>
|
||||
</DefineConstants>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<Optimize>false</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<NoWarn>42016,42017,42018,42019,42032,42353,42354,42355</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DocumentationFile>EDKB05.ConsoleUI.xml</DocumentationFile>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>
|
||||
</DefineConstants>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<Optimize>true</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<NoWarn>42016,42017,42018,42019,42032,42353,42354,42355</NoWarn>
|
||||
<DebugType>none</DebugType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="BMS, Version=1.0.2950.25158, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\BMS\BMSDll\bin\BMS.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common, Version=2.0.2950.25274, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\BMS\BMSDll\bin\Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EDKB05.Common, Version=2.0.2950.26620, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\Common\bin\EDKB05.Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.SharpZipLib, Version=0.85.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\EDKB05\ICSharpCode.SharpZipLib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System">
|
||||
<Name>System</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Data">
|
||||
<Name>System.Data</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml">
|
||||
<Name>System.XML</Name>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AssemblyInfo.vb">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DataAccess.vb">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Main.vb">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Content Include="settings.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 2.0</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="My Project\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
|
||||
<PropertyGroup>
|
||||
<PublishUrlHistory>publish\</PublishUrlHistory>
|
||||
<InstallUrlHistory>
|
||||
</InstallUrlHistory>
|
||||
<SupportUrlHistory>
|
||||
</SupportUrlHistory>
|
||||
<UpdateUrlHistory>
|
||||
</UpdateUrlHistory>
|
||||
<BootstrapperUrlHistory>
|
||||
</BootstrapperUrlHistory>
|
||||
<FallbackCulture>de-DE</FallbackCulture>
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,10 @@
|
||||
""
|
||||
{
|
||||
"FILE_VERSION" = "9237"
|
||||
"ENLISTMENT_CHOICE" = "NEVER"
|
||||
"PROJECT_FILE_RELATIVE_PATH" = "relative:ConsoleUI"
|
||||
"NUMBER_OF_EXCLUDED_FILES" = "0"
|
||||
"ORIGINAL_PROJECT_FILE_PATH" = ""
|
||||
"NUMBER_OF_NESTED_PROJECTS" = "0"
|
||||
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
Imports System.Data.SqlClient
|
||||
|
||||
Public Class DataAccess
|
||||
|
||||
#Region "Public methods"
|
||||
|
||||
'''<summary>Gibt eine Liste mit allen Tabellen welche gesichert werden müssen zurück</summary>
|
||||
'''<param name="ds"></param>
|
||||
Overloads Shared Sub GetTableList(ByRef ds As DataSet)
|
||||
Dim sqlConn As New SqlConnection
|
||||
Dim sqlCmd As New SqlCommand
|
||||
Dim da As New SqlDataAdapter
|
||||
|
||||
Try
|
||||
sqlCmd.CommandText = "EDKB05_ListJournalSaveTabellen"
|
||||
sqlCmd.CommandType = CommandType.StoredProcedure
|
||||
sqlCmd.Connection = sqlConn
|
||||
|
||||
Dim settings As New EDKB05.Common.Settings
|
||||
sqlCmd.CommandTimeout = settings.GetSqlTimeout()
|
||||
|
||||
sqlConn.ConnectionString = EDKB05.Common.Datenbank.GetDSN()
|
||||
|
||||
da.SelectCommand = sqlCmd
|
||||
da.Fill(ds, "JournalSaveTabellenList")
|
||||
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
Finally
|
||||
If sqlCmd Is Nothing Then
|
||||
sqlCmd.Dispose()
|
||||
End If
|
||||
If sqlConn Is Nothing Then
|
||||
sqlConn.Dispose()
|
||||
End If
|
||||
If da Is Nothing Then
|
||||
da.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'''<summary>Gibt alle zu sichernden Daten von einer Tabelle zurück</summary>
|
||||
'''<param name="month">Zu sichernder Monat (Format mm.yyyy)</param>
|
||||
'''<param name="dateField">Das Feld, welches das Vergleichsdatum enthält</param>
|
||||
'''<param name="tableName">Der Name der Tabelle</param>
|
||||
Overloads Shared Function GetTableData(ByVal month As String, ByVal dateField As String, ByVal tableName As String) As SqlDataReader
|
||||
Dim sqlConn As New SqlConnection
|
||||
Dim sqlCmd As New SqlCommand
|
||||
Dim da As New SqlDataAdapter
|
||||
|
||||
Try
|
||||
sqlCmd.CommandText = "EDKB05_GetTableData"
|
||||
sqlCmd.CommandType = CommandType.StoredProcedure
|
||||
sqlCmd.Connection = sqlConn
|
||||
|
||||
Dim settings As New EDKB05.Common.Settings
|
||||
sqlCmd.CommandTimeout = settings.GetSqlTimeout()
|
||||
|
||||
sqlConn.ConnectionString = EDKB05.Common.Datenbank.GetDSN()
|
||||
|
||||
sqlCmd.Parameters.Add(New SqlParameter("@LastMonth", month))
|
||||
sqlCmd.Parameters.Add(New SqlParameter("@DateField", dateField))
|
||||
sqlCmd.Parameters.Add(New SqlParameter("@TableName", tableName))
|
||||
|
||||
'da.SelectCommand = sqlCmd
|
||||
'da.Fill(ds, "TableData")
|
||||
sqlConn.Open()
|
||||
Return sqlCmd.ExecuteReader(CommandBehavior.SingleResult)
|
||||
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
Finally
|
||||
If sqlCmd Is Nothing Then
|
||||
sqlCmd.Dispose()
|
||||
End If
|
||||
If sqlConn Is Nothing Then
|
||||
sqlConn.Dispose()
|
||||
End If
|
||||
If da Is Nothing Then
|
||||
da.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
'''<summary>Erstellt einen neuen Eintrag in der Journal Tabelle</summary>
|
||||
'''<param name="fileName">Name der erstellten Zips</param>
|
||||
'''<param name="month">Verarbeiteter Monat im Format mm.yyyy</param>
|
||||
'''<param name="eintragNr">Gitb die Id des erstellten Journals zurück</param>
|
||||
Overloads Shared Sub InsJounal(ByVal fileName As String, ByVal month As String, ByRef eintragNr As Integer)
|
||||
Dim sqlConn As New SqlConnection
|
||||
Dim sqlCmd As New SqlCommand
|
||||
|
||||
Try
|
||||
sqlCmd.CommandText = "EDKB05_InsJournal"
|
||||
sqlCmd.CommandType = CommandType.StoredProcedure
|
||||
sqlCmd.Connection = sqlConn
|
||||
|
||||
Dim settings As New EDKB05.Common.Settings
|
||||
sqlCmd.CommandTimeout = settings.GetSqlTimeout()
|
||||
|
||||
sqlConn.ConnectionString = EDKB05.Common.Datenbank.GetDSN()
|
||||
|
||||
sqlCmd.Parameters.Add(New SqlParameter("@FileName", fileName))
|
||||
sqlCmd.Parameters.Add(New SqlParameter("@Month", month))
|
||||
sqlCmd.Parameters.Add(New SqlParameter("@EintragNr", 0))
|
||||
sqlCmd.Parameters("@EintragNr").Direction = ParameterDirection.Output
|
||||
|
||||
sqlConn.Open()
|
||||
sqlCmd.ExecuteNonQuery()
|
||||
|
||||
eintragNr = CInt(sqlCmd.Parameters("@EintragNr").Value)
|
||||
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
Finally
|
||||
If sqlCmd Is Nothing Then
|
||||
sqlCmd.Dispose()
|
||||
End If
|
||||
If sqlConn Is Nothing Then
|
||||
sqlConn.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'''<summary>Erstellt einen neuen Eintrag in der Tabelle JournalDetail</summary>
|
||||
'''<param name="journalNr"></param>
|
||||
'''<param name="tableName"></param>
|
||||
'''<param name="rowCount"></param>
|
||||
Overloads Shared Sub InsJounalDetail(ByVal journalNr As Integer, ByVal tableName As String, ByVal rowCount As Integer)
|
||||
Dim sqlConn As New SqlConnection
|
||||
Dim sqlCmd As New SqlCommand
|
||||
|
||||
Try
|
||||
sqlCmd.CommandText = "EDKB05_InsJournalDetail"
|
||||
sqlCmd.CommandType = CommandType.StoredProcedure
|
||||
sqlCmd.Connection = sqlConn
|
||||
|
||||
Dim settings As New EDKB05.Common.Settings
|
||||
sqlCmd.CommandTimeout = settings.GetSqlTimeout()
|
||||
|
||||
sqlConn.ConnectionString = EDKB05.Common.Datenbank.GetDSN()
|
||||
|
||||
sqlCmd.Parameters.Add(New SqlParameter("@JournalNr", journalNr))
|
||||
sqlCmd.Parameters.Add(New SqlParameter("@TableName", tableName))
|
||||
sqlCmd.Parameters.Add(New SqlParameter("@RowCount", rowCount))
|
||||
|
||||
sqlConn.Open()
|
||||
sqlCmd.ExecuteNonQuery()
|
||||
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
Finally
|
||||
If sqlCmd Is Nothing Then
|
||||
sqlCmd.Dispose()
|
||||
End If
|
||||
If sqlConn Is Nothing Then
|
||||
sqlConn.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'''<summary>Löscht alle Journale, welche von der verantwortlichen Person bestätigt wurden</summary>
|
||||
Overloads Shared Sub DelJournale()
|
||||
Dim sqlConn As New SqlConnection
|
||||
Dim sqlCmd As New SqlCommand
|
||||
|
||||
Try
|
||||
sqlCmd.CommandText = "EDKB05_DelJournale"
|
||||
sqlCmd.CommandType = CommandType.StoredProcedure
|
||||
sqlCmd.Connection = sqlConn
|
||||
|
||||
Dim settings As New EDKB05.Common.Settings
|
||||
sqlCmd.CommandTimeout = settings.GetSqlTimeout()
|
||||
|
||||
sqlConn.ConnectionString = EDKB05.Common.Datenbank.GetDSN()
|
||||
|
||||
sqlConn.Open()
|
||||
sqlCmd.ExecuteNonQuery()
|
||||
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
Finally
|
||||
If sqlCmd Is Nothing Then
|
||||
sqlCmd.Dispose()
|
||||
End If
|
||||
If sqlConn Is Nothing Then
|
||||
sqlConn.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'''<summary>Markiert ein Journal als vollständig</summary>
|
||||
'''<param name="journalNr"></param>
|
||||
Overloads Shared Sub UpdJournalSetVollstaendig(ByVal journalNr As Integer)
|
||||
Dim sqlConn As New SqlConnection
|
||||
Dim sqlCmd As New SqlCommand
|
||||
|
||||
Try
|
||||
sqlCmd.CommandText = "EDKB05_UpdJournalSetVollstaendig"
|
||||
sqlCmd.CommandType = CommandType.StoredProcedure
|
||||
sqlCmd.Connection = sqlConn
|
||||
|
||||
Dim settings As New EDKB05.Common.Settings
|
||||
sqlCmd.CommandTimeout = settings.GetSqlTimeout()
|
||||
|
||||
sqlConn.ConnectionString = EDKB05.Common.Datenbank.GetDSN()
|
||||
|
||||
sqlCmd.Parameters.Add(New SqlParameter("@JournalNr", journalNr))
|
||||
|
||||
sqlConn.Open()
|
||||
sqlCmd.ExecuteNonQuery()
|
||||
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
Finally
|
||||
If sqlCmd Is Nothing Then
|
||||
sqlCmd.Dispose()
|
||||
End If
|
||||
If sqlConn Is Nothing Then
|
||||
sqlConn.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'''<summary>Gibt alle zu Löschenden ZipDateinamen zurück</summary>
|
||||
'''<param name="ds"></param>
|
||||
Overloads Shared Function GetFileNameForDeletet(ByRef ds As DataSet) As SqlDataReader
|
||||
Dim sqlConn As New SqlConnection
|
||||
Dim sqlCmd As New SqlCommand
|
||||
Dim da As New SqlDataAdapter
|
||||
GetFileNameForDeletet = Nothing
|
||||
|
||||
Try
|
||||
sqlCmd.CommandText = "EDKB05_GetFileNameForDeletet"
|
||||
sqlCmd.CommandType = CommandType.StoredProcedure
|
||||
sqlCmd.Connection = sqlConn
|
||||
|
||||
Dim settings As New EDKB05.Common.Settings
|
||||
sqlCmd.CommandTimeout = settings.GetSqlTimeout()
|
||||
|
||||
sqlConn.ConnectionString = EDKB05.Common.Datenbank.GetDSN()
|
||||
|
||||
da.SelectCommand = sqlCmd
|
||||
da.Fill(ds, "JournalSaveTabellenList")
|
||||
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
Finally
|
||||
If sqlCmd Is Nothing Then
|
||||
sqlCmd.Dispose()
|
||||
End If
|
||||
If sqlConn Is Nothing Then
|
||||
sqlConn.Dispose()
|
||||
End If
|
||||
If da Is Nothing Then
|
||||
da.Dispose()
|
||||
End If
|
||||
End Try
|
||||
End Function
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,347 @@
|
||||
Imports System.IO
|
||||
Imports System.Xml
|
||||
|
||||
Imports ICSharpCode.SharpZipLib.Zip
|
||||
Imports ICSharpCode.SharpZipLib.Checksums
|
||||
|
||||
Module Main
|
||||
|
||||
Private _edkb10 As bms.Logging
|
||||
Private _settings As EDKB05.Common.Settings
|
||||
Private _month As String
|
||||
|
||||
Sub Main()
|
||||
Try
|
||||
Console.WriteLine("Starte Batch, initialisiere settings und EDKB10...")
|
||||
_settings = New EDKB05.Common.Settings
|
||||
|
||||
'Initialisierung vom EDKB10 Logging
|
||||
Dim programId As Integer = Convert.ToInt32(_settings.GetValueByXPath("root/config/ProgramId", "value"))
|
||||
_edkb10 = New bms.Logging(programId, Common.Common.JobType.StartJob)
|
||||
|
||||
Catch ex As Exception
|
||||
'De Fall setti nie uufträtte -> fatal error in text file schriibe
|
||||
Dim writer As System.IO.StreamWriter
|
||||
writer = IO.File.AppendText("CATASTROPHICAL_ERROR.txt")
|
||||
writer.WriteLine(DateTime.Now + ": " + ex.Message + " " + ex.StackTrace)
|
||||
writer.Close()
|
||||
|
||||
'cancel execution weil ohni edkb10 eee nüüt lauft...
|
||||
Console.WriteLine("CATASTROPHICAL ERROR: settings und EDKB1010 konnten nicht initialisert werden: " & ex.Message & " " & ex.StackTrace)
|
||||
Exit Sub
|
||||
End Try
|
||||
|
||||
Try
|
||||
'erfolgreicher start in edkb10 melden
|
||||
_edkb10.Start()
|
||||
|
||||
Dim runExplicit As Boolean
|
||||
|
||||
runExplicit = Convert.ToBoolean(_settings.GetValueByXPath("root/config/ExplicitRun", "isEnabled"))
|
||||
Console.WriteLine("Explizit ausführen? " & runExplicit.ToString())
|
||||
|
||||
'Check ob normal der letze Monat verwendet werden
|
||||
'soll oder der explizit angegebene vom settings file
|
||||
If runExplicit Then
|
||||
'explicit wert aus den settings nehmen
|
||||
_month = _settings.GetValueByXPath("root/config/ExplicitRun", "month")
|
||||
Else
|
||||
'nötig weil ev year swtich
|
||||
'-3: definiert(gem hutter 2006-11-21) dass logs nach 3 monaten "archiviert" werden
|
||||
'Dim lastMonth As DateTime = DateTime.Today.AddMonths(-3)
|
||||
'MNK - 20081202 Anpassung auf 1 Monat
|
||||
Dim lastMonth As DateTime = DateTime.Today.AddMonths(-1)
|
||||
Dim monthPart As String = lastMonth.Month
|
||||
|
||||
'guggen dass schön zweistellig ist
|
||||
If monthPart.Length = 1 Then
|
||||
monthPart = "0" & monthPart
|
||||
End If
|
||||
|
||||
'muss im format mm.yyyy sein
|
||||
_month = monthPart & "." & lastMonth.Year
|
||||
End If
|
||||
|
||||
Console.WriteLine("Monat: " & _month)
|
||||
|
||||
'Alle Tabellen laden, welche gesichert werden sollen
|
||||
Dim dsJournalSaveTabellen As New DataSet
|
||||
DataAccess.GetTableList(dsJournalSaveTabellen)
|
||||
|
||||
Console.WriteLine("Beginne mit Xml Generierung..." & Environment.NewLine)
|
||||
|
||||
'mindestens eine tabelle muss gesichert werden
|
||||
If EDKB05.Common.Tools.IsDataSetValid(dsJournalSaveTabellen) Then
|
||||
'daten in xml exportieren und in zip verpacken
|
||||
GenerateFiles(dsJournalSaveTabellen)
|
||||
Else
|
||||
_edkb10.Log("Es sind keine Tabellen zum Sichern vorhanden", Common.Common.JournalEntryType.Information)
|
||||
Console.WriteLine("Es sind keine Tabellen zum Sichern vorhanden")
|
||||
End If
|
||||
|
||||
Console.WriteLine(Environment.NewLine & "Xml Generierung abgeschlossen")
|
||||
|
||||
Try
|
||||
'alte Zip File löschen
|
||||
Console.WriteLine("Lösche alte Zip-Dateien...")
|
||||
DeleteOldZipFiles()
|
||||
'alte journale löschen
|
||||
Console.WriteLine("Lösche alte Journale...")
|
||||
DataAccess.DelJournale()
|
||||
Catch ex As Exception
|
||||
_edkb10.Log("Journale löschen: Der Batch wurde ausgeführt, aber die alten Journale konnten nicht gelöscht werden. " & ex.Message & " " & ex.StackTrace, Common.Common.JournalEntryType.Warning)
|
||||
Console.WriteLine("Journale löschen: Der Batch wurde ausgeführt, aber die alten Journale konnten nicht gelöscht werden. " & ex.Message & " " & ex.StackTrace)
|
||||
End Try
|
||||
|
||||
Try
|
||||
'ok mails an konfigurierte receivers schicken
|
||||
Dim receiverList As XmlNode = _settings.GetNodeByXPath("root/config/Mail/Receivers")
|
||||
Dim receiver As XmlNode
|
||||
Dim mailer As New Common.Common
|
||||
|
||||
'subject und message generieren
|
||||
Dim subject As String = _settings.GetValueByXPath("root/config/Mail/Subject", "text") & " Monat: " & _month
|
||||
Dim message As String = "Guten Tag " & vbCrLf & vbCrLf _
|
||||
& "Der Batch EDKB05 wurde am " & DateTime.Now.ToShortDateString() & " " & DateTime.Now.ToShortTimeString() _
|
||||
& " erfolgreich ausgeführt." _
|
||||
& vbCrLf & vbCrLf & "Es wurden die Journaldaten des Monats " & _month & " aufbereitet." _
|
||||
& vbCrLf & vbCrLf & "Wir bitten Sie die CD mit den Journaldaten des Monats " & _month _
|
||||
& " and folgende Adresse zuzustellen: " _
|
||||
& vbCrLf & vbCrLf & "Thurgauer Kantonalbank" & vbCrLf & "Dokumenten Management" & vbCrLf _
|
||||
& "im Roos 6" & vbCrLf & "8570 Weinfelden" _
|
||||
& vbCrLf & vbCrLf & "Vielen Dank." _
|
||||
& vbCrLf & vbCrLf & "Freundliche Grüsse" _
|
||||
& vbCrLf & "EDOKA"
|
||||
|
||||
|
||||
For Each receiver In receiverList.ChildNodes
|
||||
'mails mit edkb10 verschicken
|
||||
mailer.SendMail(receiver.Attributes("email").InnerText, subject, message)
|
||||
Console.WriteLine("Mail an " & receiver.Attributes("email").InnerText & " verschickt")
|
||||
Next
|
||||
Catch ex As Exception
|
||||
_edkb10.Log("Mails senden: Der Batch wurde ausgeführt, aber beim Mails verschicken ist ein Fehler aufgetreten: " & ex.Message & " " & ex.StackTrace, Common.Common.JournalEntryType.Warning)
|
||||
Console.WriteLine("Mails senden: Der Batch wurde ausgeführt, aber beim Mails verschicken ist ein Fehler aufgetreten: " & ex.Message & " " & ex.StackTrace)
|
||||
End Try
|
||||
|
||||
Catch ex As Exception
|
||||
_edkb10.Log("Main.Main:" + ex.Message + " " + ex.StackTrace, Common.Common.JournalEntryType.Error)
|
||||
Console.WriteLine("Main.Main:" + ex.Message + " StackTrace:" + ex.StackTrace)
|
||||
Finally
|
||||
'batch sauber beenden -> ende in edkb10 melden
|
||||
_edkb10.Ende()
|
||||
Console.WriteLine("Ende an EDKB10 gemeldet")
|
||||
End Try
|
||||
|
||||
End Sub
|
||||
|
||||
'''<summary>Holt die Daten aus der DB und generiert XML files, welche danach in ein
|
||||
'''ZIP gepackt werden</summary>
|
||||
'''<remarks>Nachdem die Xml files in das Zip gepackt wurden, werden diese wieder gelöscht</remarks>
|
||||
'''<param name="ds">DataSet mit dem Tabellen, welche gesichert werden sollen</param>
|
||||
Public Sub GenerateFiles(ByVal ds As DataSet)
|
||||
Try
|
||||
Dim row As DataRow
|
||||
'Dim dsData As New DataSet
|
||||
Dim doc As New XmlDocument
|
||||
Dim journalNr As Integer, rowCount As Integer
|
||||
Dim xmlFileName As String, zipFileName As String
|
||||
|
||||
'zielordner erstellen
|
||||
Dim targetFolder As New DirectoryInfo(_settings.GetValueByXPath("root/config/TargetFolder", "path") & _month & "_temp/")
|
||||
|
||||
If Not targetFolder.Exists Then
|
||||
targetFolder.Create()
|
||||
End If
|
||||
|
||||
'zip file erstellen
|
||||
zipFileName = targetFolder.Parent.FullName & "\" & _month & ".zip"
|
||||
If File.Exists(zipFileName) Then
|
||||
'meldung dass file existerit, und nochher ombenänne
|
||||
Dim newZipName As String = zipFileName & "_" & DateTime.Today.Year & DateTime.Today.Month & DateTime.Today.Day & "_" & DateTime.Now.Hour & DateTime.Now.Minute
|
||||
_edkb10.Log("Die Datei " & zipFileName & " existiert bereits. Die bestehende Datei wird in " & newZipName & " umbenannt", Common.Common.JournalEntryType.Warning)
|
||||
|
||||
'existierende datei umbenennen
|
||||
File.Move(zipFileName, newZipName)
|
||||
End If
|
||||
|
||||
Console.WriteLine("Erstelle Zip Datei " & zipFileName)
|
||||
|
||||
'zip object erstellen und compression festlegen
|
||||
Dim zipOutputStream As New ZipOutputStream(File.Create(zipFileName))
|
||||
zipOutputStream.SetLevel(6)
|
||||
|
||||
'journal für diesen sicherungssatz erstellen
|
||||
DataAccess.InsJounal(zipFileName, _month, journalNr)
|
||||
|
||||
Console.WriteLine("Journal mit der Id " & journalNr.ToString() & " erstellt")
|
||||
|
||||
Dim dr As SqlClient.SqlDataReader
|
||||
Dim dtSchema As DataTable
|
||||
Dim sw As StreamWriter
|
||||
Dim columnCount As Integer
|
||||
Dim columnName As String
|
||||
|
||||
'jede row enthält eine tabelle von welcher exportiert werden soll
|
||||
For Each row In ds.Tables(0).Rows
|
||||
|
||||
'Counters resette
|
||||
columnCount = 0
|
||||
columnName = ""
|
||||
rowCount = 0
|
||||
|
||||
Console.WriteLine("Daten von Tabelle " & row("TabellenName") & " laden...")
|
||||
|
||||
'daten für export aus db streamen
|
||||
dr = DataAccess.GetTableData(_month, row("DatumFeld"), row("TabellenName"))
|
||||
|
||||
'schema für column definitionen laden
|
||||
dtSchema = dr.GetSchemaTable()
|
||||
|
||||
'xml spechern
|
||||
xmlFileName = targetFolder.FullName & row("TabellenName") + ".xml"
|
||||
|
||||
'check ob miendestens ein eintrag vorhanden ist
|
||||
If dr.HasRows Then
|
||||
|
||||
Console.WriteLine("Erstelle Xml Datei...")
|
||||
|
||||
If File.Exists(xmlFileName) Then
|
||||
'meldung dass file existerit, und nochher ombenänne
|
||||
Dim newXmlFileName As String = xmlFileName & "_TICKS_" & DateTime.Now.Ticks
|
||||
_edkb10.Log("Die Datei " & xmlFileName & " existiert bereits. Die bestehende Datei wird in " & newXmlFileName & " umbenannt. Die Tabelle " & row("TabellenName") & " ist demnach 2mal in der DB erfasst", Common.Common.JournalEntryType.Warning)
|
||||
|
||||
'existierende datei umbenennen
|
||||
File.Move(xmlFileName, newXmlFileName)
|
||||
End If
|
||||
|
||||
'Neues file erstellen
|
||||
sw = File.AppendText(xmlFileName)
|
||||
|
||||
'xml definitions stuff schriibe
|
||||
sw.WriteLine("<NewDataSet>")
|
||||
|
||||
While dr.Read()
|
||||
'tabledef schriibe
|
||||
sw.WriteLine("<TableData>")
|
||||
|
||||
'alle columns durchgeheb
|
||||
While columnCount < dr.FieldCount
|
||||
|
||||
'name der spalte auslesen
|
||||
columnName = dtSchema.Rows(columnCount)(0)
|
||||
|
||||
'daten als xml in file schreiben
|
||||
sw.WriteLine("<" & columnName & "><![CDATA[" & dr(columnCount) & "]]></" & columnName & ">")
|
||||
|
||||
columnCount = columnCount + 1
|
||||
End While
|
||||
|
||||
'ende des records schreiben
|
||||
sw.WriteLine("</TableData>")
|
||||
columnCount = 0
|
||||
rowCount = rowCount + 1
|
||||
End While
|
||||
|
||||
'ende des ds schreiben und stream schliessen
|
||||
sw.WriteLine("</NewDataSet>")
|
||||
sw.Close()
|
||||
dr.Close()
|
||||
|
||||
'file zu zip archiv hinzufügen
|
||||
AddToZip(xmlFileName, zipOutputStream)
|
||||
Else
|
||||
'es wurden keine daten exportiert
|
||||
_edkb10.Log("Die Tabelle " + row("TabellenName") + " hat keine Einträge welche gesichert werden müssen", Common.Common.JournalEntryType.Information)
|
||||
Console.WriteLine("Tabelle enthält keine Daten welche gesichert werden müssen")
|
||||
End If
|
||||
|
||||
'xml löschen
|
||||
File.Delete(xmlFileName)
|
||||
|
||||
'journalDetail eintrag erstellen
|
||||
DataAccess.InsJounalDetail(journalNr, row("TabellenName"), rowCount.ToString())
|
||||
Next
|
||||
|
||||
'Zip stream klöse
|
||||
zipOutputStream.Finish()
|
||||
zipOutputStream.Close()
|
||||
|
||||
'temp verzeichnis löschen
|
||||
targetFolder.Refresh()
|
||||
If targetFolder.Exists Then
|
||||
Directory.Delete(targetFolder.FullName)
|
||||
Else
|
||||
_edkb10.Log("Der temporäre Ordner " + targetFolder.FullName + " welcher die Xml Output enthält existiert nicht und konnte desshalb nicht gelöscht werden.", Common.Common.JournalEntryType.Warning)
|
||||
End If
|
||||
|
||||
'log zeugs schreiben
|
||||
Console.WriteLine("ZIP Archiv für " + _month + " wurde erstellt.")
|
||||
_edkb10.Log("ZIP Archiv für " + _month + " wurde erstellt.", Common.Common.JournalEntryType.Information)
|
||||
|
||||
'sicherungssatz als vollständig in db markieren
|
||||
DataAccess.UpdJournalSetVollstaendig(journalNr)
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'''<summary>Fügt ein File zu einem zipOuputStream hinzu</summary>
|
||||
'''<param name="fileName"></param>
|
||||
'''<param name="zipOutputStream"></param>
|
||||
Private Sub AddToZip(ByVal fileName As String, ByVal zipOutputStream As ZipOutputStream)
|
||||
Try
|
||||
Dim fileInfo As New FileInfo(fileName)
|
||||
Dim maximumBufferSize As Integer = 4096
|
||||
Dim bytesRead As Integer = 0
|
||||
Dim transferBuffer(maximumBufferSize) As Byte
|
||||
|
||||
'stream öffnen
|
||||
Dim fs As FileStream = File.OpenRead(fileInfo.FullName)
|
||||
|
||||
'buffersize setzen
|
||||
If (fs.Length > maximumBufferSize) Then
|
||||
ReDim transferBuffer(maximumBufferSize)
|
||||
Else
|
||||
ReDim transferBuffer(fs.Length)
|
||||
End If
|
||||
|
||||
'neuen zip eintrag erstellen
|
||||
Dim zipEntry As New ZipEntry(fileInfo.Name)
|
||||
|
||||
'default stuff setzen
|
||||
zipEntry.DateTime = DateTime.Now
|
||||
zipEntry.Size = fs.Length
|
||||
|
||||
zipOutputStream.PutNextEntry(zipEntry)
|
||||
|
||||
'file stream in zip schreiben
|
||||
Do
|
||||
bytesRead = fs.Read(transferBuffer, 0, transferBuffer.Length)
|
||||
zipOutputStream.Write(transferBuffer, 0, bytesRead)
|
||||
Loop While (bytesRead > 0)
|
||||
|
||||
fs.Close()
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'''<summary>Löscht die alten Zip Files welche freigegeben wurden</summary>
|
||||
Private Sub DeleteOldZipFiles()
|
||||
Try
|
||||
Dim dsFileNameForDelete As New DataSet
|
||||
Dim row As DataRow
|
||||
DataAccess.GetFileNameForDeletet(dsFileNameForDelete)
|
||||
For Each row In dsFileNameForDelete.Tables(0).Rows
|
||||
If File.Exists(row("Filename")) Then
|
||||
File.Delete(row("Filename"))
|
||||
Console.WriteLine("Datei " & row("Filename") & " gelöscht.")
|
||||
End If
|
||||
Next
|
||||
Catch ex As Exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
End Module
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type='text/xsl' href='_UpgradeReport_Files/UpgradeReport.xslt'?><UpgradeLog>
|
||||
<Properties><Property Name="Solution" Value="ConsoleUI">
|
||||
</Property><Property Name="Projektmappendatei" Value="C:\DATA\EDKB05\ConsoleUI\ConsoleUI.sln">
|
||||
</Property><Property Name="Date" Value="Dienstag, 30. Oktober 2007">
|
||||
</Property><Property Name="Time" Value="14:28:45">
|
||||
</Property></Properties><Event ErrorLevel="1" Project="C:\DATA\EDKB05\ConsoleUI\ConsoleUI.vbproj" Source="ConsoleUI.vbproj" Description="MSB2013: Der projektübergreifende Verweis mit der GUID {CAAF6490-7A60-4690-A7AC-C056A5D78F89} konnte nicht konvertiert werden, weil keine gültige SLN-Datei gefunden wurde, die alle Projekte enthält.">
|
||||
</Event><Event ErrorLevel="0" Project="ConsoleUI" Source="ConsoleUI.vbproj" Description="Projekt erfolgreich konvertiert">
|
||||
</Event><Event ErrorLevel="3" Project="ConsoleUI" Source="ConsoleUI.vbproj" Description="Converted">
|
||||
</Event><Event ErrorLevel="0" Project="ConsoleUI" Source="ConsoleUI.vbproj" Description="Überprüfung abgeschlossen: Aktualisierung von Projektdateien nicht erforderlich.">
|
||||
</Event></UpgradeLog>
|
||||
Binary file not shown.
@@ -0,0 +1,207 @@
|
||||
BODY
|
||||
{
|
||||
BACKGROUND-COLOR: white;
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-LEFT: 0px;
|
||||
MARGIN-TOP: 0px
|
||||
}
|
||||
P
|
||||
{
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 70%;
|
||||
LINE-HEIGHT: 12pt;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 10px
|
||||
}
|
||||
.note
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
COLOR: #336699;
|
||||
FONT-FAMILY: "Verdana", sans-serif;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-LEFT: 0px;
|
||||
MARGIN-TOP: 0px;
|
||||
PADDING-RIGHT: 10px
|
||||
}
|
||||
.infotable
|
||||
{
|
||||
BACKGROUND-COLOR: #f0f0e0;
|
||||
BORDER-BOTTOM: #ffffff 0px solid;
|
||||
BORDER-COLLAPSE: collapse;
|
||||
BORDER-LEFT: #ffffff 0px solid;
|
||||
BORDER-RIGHT: #ffffff 0px solid;
|
||||
BORDER-TOP: #ffffff 0px solid;
|
||||
FONT-SIZE: 70%;
|
||||
MARGIN-LEFT: 10px
|
||||
}
|
||||
.issuetable
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffe8;
|
||||
BORDER-COLLAPSE: collapse;
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 100%;
|
||||
MARGIN-BOTTOM: 10px;
|
||||
MARGIN-LEFT: 13px;
|
||||
MARGIN-TOP: 0px
|
||||
}
|
||||
.issuetitle
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px;
|
||||
COLOR: #003366;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.header
|
||||
{
|
||||
BACKGROUND-COLOR: #cecf9c;
|
||||
BORDER-BOTTOM: #ffffff 1px solid;
|
||||
BORDER-LEFT: #ffffff 1px solid;
|
||||
BORDER-RIGHT: #ffffff 1px solid;
|
||||
BORDER-TOP: #ffffff 1px solid;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: bold
|
||||
}
|
||||
.issuehdr
|
||||
{
|
||||
BACKGROUND-COLOR: #E0EBF5;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px solid;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.issuenone
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: 0px;
|
||||
BORDER-LEFT: 0px;
|
||||
BORDER-RIGHT: 0px;
|
||||
BORDER-TOP: 0px;
|
||||
COLOR: #000000;
|
||||
FONT-WEIGHT: normal
|
||||
}
|
||||
.content
|
||||
{
|
||||
BACKGROUND-COLOR: #e7e7ce;
|
||||
BORDER-BOTTOM: #ffffff 1px solid;
|
||||
BORDER-LEFT: #ffffff 1px solid;
|
||||
BORDER-RIGHT: #ffffff 1px solid;
|
||||
BORDER-TOP: #ffffff 1px solid;
|
||||
PADDING-LEFT: 3px
|
||||
}
|
||||
.issuecontent
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #dcdcdc 1px solid;
|
||||
BORDER-TOP: #dcdcdc 1px solid;
|
||||
PADDING-LEFT: 3px
|
||||
}
|
||||
A:link
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
TEXT-DECORATION: underline
|
||||
}
|
||||
A:visited
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
}
|
||||
A:active
|
||||
{
|
||||
COLOR: #cc6633;
|
||||
}
|
||||
A:hover
|
||||
{
|
||||
COLOR: #cc3300;
|
||||
TEXT-DECORATION: underline
|
||||
}
|
||||
H1
|
||||
{
|
||||
BACKGROUND-COLOR: #003366;
|
||||
BORDER-BOTTOM: #336699 6px solid;
|
||||
COLOR: #ffffff;
|
||||
FONT-SIZE: 130%;
|
||||
FONT-WEIGHT: normal;
|
||||
MARGIN: 0em 0em 0em -20px;
|
||||
PADDING-BOTTOM: 8px;
|
||||
PADDING-LEFT: 30px;
|
||||
PADDING-TOP: 16px
|
||||
}
|
||||
H2
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 80%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: 3px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 20px;
|
||||
PADDING-LEFT: 0px
|
||||
}
|
||||
H3
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 80%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: -5px;
|
||||
MARGIN-LEFT: 10px;
|
||||
MARGIN-TOP: 20px
|
||||
}
|
||||
H4
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
FONT-WEIGHT: bold;
|
||||
MARGIN-BOTTOM: 0px;
|
||||
MARGIN-TOP: 15px;
|
||||
PADDING-BOTTOM: 0px
|
||||
}
|
||||
UL
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
LIST-STYLE: square;
|
||||
MARGIN-BOTTOM: 0pt;
|
||||
MARGIN-TOP: 0pt
|
||||
}
|
||||
OL
|
||||
{
|
||||
COLOR: #000000;
|
||||
FONT-SIZE: 70%;
|
||||
LIST-STYLE: square;
|
||||
MARGIN-BOTTOM: 0pt;
|
||||
MARGIN-TOP: 0pt
|
||||
}
|
||||
LI
|
||||
{
|
||||
LIST-STYLE: square;
|
||||
MARGIN-LEFT: 0px
|
||||
}
|
||||
.expandable
|
||||
{
|
||||
CURSOR: hand
|
||||
}
|
||||
.expanded
|
||||
{
|
||||
color: black
|
||||
}
|
||||
.collapsed
|
||||
{
|
||||
DISPLAY: none
|
||||
}
|
||||
.foot
|
||||
{
|
||||
BACKGROUND-COLOR: #ffffff;
|
||||
BORDER-BOTTOM: #cecf9c 1px solid;
|
||||
BORDER-TOP: #cecf9c 2px solid
|
||||
}
|
||||
.settings
|
||||
{
|
||||
MARGIN-LEFT: 25PX;
|
||||
}
|
||||
.help
|
||||
{
|
||||
TEXT-ALIGN: right;
|
||||
margin-right: 10px;
|
||||
}
|
||||
@@ -0,0 +1,232 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
|
||||
|
||||
<xsl:key name="ProjectKey" match="Event" use="@Project"/>
|
||||
|
||||
<xsl:template match="Events" mode="createProjects">
|
||||
<projects>
|
||||
<xsl:for-each select="Event">
|
||||
<!--xsl:sort select="@Project" order="descending"/-->
|
||||
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Project != @Project)">
|
||||
|
||||
<xsl:variable name="ProjectName" select="@Project"/>
|
||||
|
||||
<project>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@Project"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:if test="@Project=''">
|
||||
<xsl:attribute name="solution">
|
||||
<xsl:value-of select="@Solution"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:for-each select="key('ProjectKey', $ProjectName)">
|
||||
<!--xsl:sort select="@Source" /-->
|
||||
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Source != @Source)">
|
||||
|
||||
<source>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="@Source"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:variable name="Source">
|
||||
<xsl:value-of select="@Source"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:for-each select="key('ProjectKey', $ProjectName)[ @Source = $Source ]">
|
||||
|
||||
<event>
|
||||
<xsl:attribute name="error-level">
|
||||
<xsl:value-of select="@ErrorLevel"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="description">
|
||||
<xsl:value-of select="@Description"/>
|
||||
</xsl:attribute>
|
||||
</event>
|
||||
</xsl:for-each>
|
||||
</source>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
</project>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</projects>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="projects">
|
||||
<xsl:for-each select="project">
|
||||
<xsl:sort select="@Name" order="ascending"/>
|
||||
<h2>
|
||||
<xsl:if test="@solution">Projektmappe: <xsl:value-of select="@solution"/></xsl:if>
|
||||
<xsl:if test="not(@solution)">Projekt: <xsl:value-of select="@name"/>
|
||||
<xsl:for-each select="source">
|
||||
<xsl:variable name="Hyperlink" select="@name"/>
|
||||
<xsl:for-each select="event[@error-level='4']">
|
||||
<A class="note"><xsl:attribute name="HREF"><xsl:value-of select="$Hyperlink"/></xsl:attribute><xsl:value-of select="@description"/></A>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</h2>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
|
||||
<tr>
|
||||
<td nowrap="1" class="header" _locID="Filename">Dateiname</td>
|
||||
<td nowrap="1" class="header" _locID="Status">Status</td>
|
||||
<td nowrap="1" class="header" _locID="Errors">Fehler</td>
|
||||
<td nowrap="1" class="header" _locID="Warnings">Warnungen</td>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="source">
|
||||
<xsl:sort select="@name" order="ascending"/>
|
||||
<xsl:variable name="source-id" select="generate-id(.)"/>
|
||||
|
||||
<xsl:if test="count(event)!=count(event[@error-level='4'])">
|
||||
|
||||
<tr class="row">
|
||||
<td class="content">
|
||||
<A HREF="javascript:"><xsl:attribute name="onClick">javascript:document.images['<xsl:value-of select="$source-id"/>'].click()</xsl:attribute><IMG border="0" alt="expand/collapse section" class="expandable" height="11" onclick="changepic()" src="_UpgradeReport_Files/UpgradeReport_Plus.gif" width="9"><xsl:attribute name="name"><xsl:value-of select="$source-id"/></xsl:attribute><xsl:attribute name="child">src<xsl:value-of select="$source-id"/></xsl:attribute></IMG></A> <xsl:value-of select="@name"/>
|
||||
</td>
|
||||
<td class="content">
|
||||
<xsl:if test="count(event[@error-level='3'])=1">
|
||||
<xsl:for-each select="event[@error-level='3']">
|
||||
<xsl:if test="@description='Converted'">Konvertiert</xsl:if>
|
||||
<xsl:if test="@description!='Converted'"><xsl:value-of select="@description"/></xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(event[@error-level='3'])!=1 and count(event[@error-level='3' and @description='Converted'])!=0">Konvertiert
|
||||
</xsl:if>
|
||||
</td>
|
||||
<td class="content"><xsl:value-of select="count(event[@error-level='2'])"/></td>
|
||||
<td class="content"><xsl:value-of select="count(event[@error-level='1'])"/></td>
|
||||
</tr>
|
||||
|
||||
<tr class="collapsed" bgcolor="#ffffff">
|
||||
<xsl:attribute name="id">src<xsl:value-of select="$source-id"/></xsl:attribute>
|
||||
|
||||
<td colspan="7">
|
||||
<table width="97%" border="1" bordercolor="#dcdcdc" rules="cols" class="issuetable">
|
||||
<tr>
|
||||
<td colspan="7" class="issuetitle" _locID="ConversionIssues">Konvertierungsprobleme - <xsl:value-of select="@name"/>:</td>
|
||||
</tr>
|
||||
|
||||
<xsl:for-each select="event[@error-level!='3']">
|
||||
<xsl:if test="@error-level!='4'">
|
||||
<tr>
|
||||
<td class="issuenone" style="border-bottom:solid 1 lightgray">
|
||||
<xsl:value-of select="@description"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
<tr valign="top">
|
||||
<td class="foot">
|
||||
<xsl:if test="count(source)!=1">
|
||||
<xsl:value-of select="count(source)"/> Dateien
|
||||
</xsl:if>
|
||||
<xsl:if test="count(source)=1">
|
||||
1 Datei
|
||||
</xsl:if>
|
||||
</td>
|
||||
<td class="foot">
|
||||
Konvertiert: <xsl:value-of select="count(source/event[@error-level='3' and @description='Converted'])"/><BR/>
|
||||
Nicht konvertiert <xsl:value-of select="count(source) - count(source/event[@error-level='3' and @description='Converted'])"/>
|
||||
</td>
|
||||
<td class="foot"><xsl:value-of select="count(source/event[@error-level='2'])"/></td>
|
||||
<td class="foot"><xsl:value-of select="count(source/event[@error-level='1'])"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="Property">
|
||||
<xsl:if test="@Name!='Date' and @Name!='Time' and @Name!='LogNumber' and @Name!='Solution'">
|
||||
<tr><td nowrap="1"><b><xsl:value-of select="@Name"/>: </b><xsl:value-of select="@Value"/></td></tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="UpgradeLog">
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" href="_UpgradeReport_Files\UpgradeReport.css"/>
|
||||
<title>Konvertierungsbericht
|
||||
<xsl:if test="Properties/Property[@Name='LogNumber']">
|
||||
<xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/>
|
||||
</xsl:if>
|
||||
</title>
|
||||
<script language="javascript">
|
||||
function outliner () {
|
||||
oMe = window.event.srcElement
|
||||
//get child element
|
||||
var child = document.all[event.srcElement.getAttribute("child",false)];
|
||||
//if child element exists, expand or collapse it.
|
||||
if (null != child)
|
||||
child.className = child.className == "collapsed" ? "expanded" : "collapsed";
|
||||
}
|
||||
|
||||
function changepic() {
|
||||
uMe = window.event.srcElement;
|
||||
var check = uMe.src.toLowerCase();
|
||||
if (check.lastIndexOf("upgradereport_plus.gif") != -1)
|
||||
{
|
||||
uMe.src = "_UpgradeReport_Files/UpgradeReport_Minus.gif"
|
||||
}
|
||||
else
|
||||
{
|
||||
uMe.src = "_UpgradeReport_Files/UpgradeReport_Plus.gif"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body topmargin="0" leftmargin="0" rightmargin="0" onclick="outliner();">
|
||||
<h1 _locID="ConversionReport">Konvertierungsbericht - <xsl:value-of select="Properties/Property[@Name='Solution']/@Value"/></h1>
|
||||
|
||||
<p><span class="note">
|
||||
<b>Konvertierungsdauer:</b> <xsl:value-of select="Properties/Property[@Name='Date']/@Value"/> <xsl:value-of select="Properties/Property[@Name='Time']/@Value"/><br/>
|
||||
</span></p>
|
||||
|
||||
<xsl:variable name="SortedEvents">
|
||||
<Events>
|
||||
<xsl:for-each select="Event">
|
||||
<xsl:sort select="@Project" order="ascending"/>
|
||||
<xsl:sort select="@Source" order="ascending"/>
|
||||
<xsl:sort select="@ErrorLevel" order="ascending"/>
|
||||
<Event>
|
||||
<xsl:attribute name="Project"><xsl:value-of select="@Project"/> </xsl:attribute>
|
||||
<xsl:attribute name="Solution"><xsl:value-of select="/UpgradeLog/Properties/Property[@Name='Solution']/@Value"/> </xsl:attribute>
|
||||
<xsl:attribute name="Source"><xsl:value-of select="@Source"/> </xsl:attribute>
|
||||
<xsl:attribute name="ErrorLevel"><xsl:value-of select="@ErrorLevel"/> </xsl:attribute>
|
||||
<xsl:attribute name="Description"><xsl:value-of select="@Description"/> </xsl:attribute>
|
||||
</Event>
|
||||
</xsl:for-each>
|
||||
</Events>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="Projects">
|
||||
<xsl:apply-templates select="msxsl:node-set($SortedEvents)/*" mode="createProjects"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:apply-templates select="msxsl:node-set($Projects)/*"/>
|
||||
|
||||
<p></p><p>
|
||||
<table class="note">
|
||||
<tr>
|
||||
<td nowrap="1">
|
||||
<b>Konvertierungseinstellungen</b>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:apply-templates select="Properties"/>
|
||||
</table></p>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 69 B |
Binary file not shown.
|
After Width: | Height: | Size: 71 B |
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
BMS
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
|
||||
</members>
|
||||
</doc>
|
||||
@@ -0,0 +1,10 @@
|
||||
24.01.2015 17:21:26: Die Quelle wurde nicht gefunden, aber einige oder alle Ereignisprotokolle konnten nicht durchsucht werden. Protokolle, auf die kein Zugriff möglich war: Security. bei System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
|
||||
bei System.Diagnostics.EventLog.SourceExists(String source, String machineName)
|
||||
bei System.Diagnostics.EventLog.VerifyAndCreateSource(String sourceName, String currentMachineName)
|
||||
bei System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
|
||||
bei System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type)
|
||||
bei Common.Common.Log(String source, String message, EventLogEntryType eventLogType, LogTarget logTarget)
|
||||
bei Common.Common.Log(String source, String message, EventLogEntryType eventLogType)
|
||||
bei bms.Logging.WriteEventLog(String source, String errorMessage, EventLogEntryType eventLogType)
|
||||
bei bms.Logging..ctor(Int32 programId, JobType jobType)
|
||||
bei ConsoleUI.Main.Main() in E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\Main.vb:Zeile 20.
|
||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
Common
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:Common.Settings.GetSettingValue(System.String)">
|
||||
<summary>Gets the first matching value of a property</summary>
|
||||
<param name="propertyName"></param>
|
||||
<returns></returns>
|
||||
</member><member name="M:Common.Settings.SetSettingsValue(System.String,System.String)">
|
||||
<summary>Sets the first matching value of a property</summary>
|
||||
<param name="xpath"></param>
|
||||
<param name="value"></param>
|
||||
</member><member name="M:Common.Settings.GetDecryptedDSN">
|
||||
<summary>Return the descripted dsn string</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
DataAccess
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
EDKB05.Common
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:EDKB05.Common.Settings.GetValueByXPath(System.String,System.String)">
|
||||
<summary>Lädt ein Wert für ein setting aus dem config file</summary>
|
||||
<param name="xPath">Der node xPath</param>
|
||||
<param name="attributeName">Attribut name der zurückgegeben werden soll</param>
|
||||
<returns>Der Wert des Attributes</returns>
|
||||
</member><member name="M:EDKB05.Common.Settings.GetNodeByXPath(System.String)">
|
||||
<summary>Gibt eine Liste aller XmlNodes zurück, welche unter dem angegebenen xPath existieren</summary>
|
||||
<param name="xPath"></param>
|
||||
<returns></returns>
|
||||
</member><member name="M:EDKB05.Common.Settings.GetSqlTimeout">
|
||||
<summary>Gibt das SqlTimeout für queries zurück</summary>
|
||||
<returns></returns>
|
||||
</member><member name="T:EDKB05.Common.Settings">
|
||||
<summary>Lädt und schreibt Einstellungen in settings file</summary>
|
||||
</member><member name="M:EDKB05.Common.Datenbank.GetDSN">
|
||||
<summary>Liest aus dem Connection String file edokaconn.cfg aus</summary>
|
||||
<returns>Den entschlüsseleten DSN string</returns>
|
||||
</member><member name="T:EDKB05.Common.Datenbank">
|
||||
<summary>Diese klasse beinhaltet Methoden welche für den Datenbank Zugriff im DataAccess verwendet werden</summary>
|
||||
</member><member name="M:EDKB05.Common.Crypto.EncryptText(System.String)">
|
||||
<summary>Verschlüsselt einen Text mit dem angegebenen Passwort</summary>
|
||||
<param name="strText">Zu verschlüsselnder Text</param>
|
||||
<includesource>yes</includesource>
|
||||
</member><member name="M:EDKB05.Common.Crypto.DecryptText(System.String)">
|
||||
<summary>Entschlüsselt einen Text</summary>
|
||||
<param name="strText">Zu verschlüsselnder Text</param>
|
||||
<includesource>yes</includesource>
|
||||
</member><member name="T:EDKB05.Common.Crypto">
|
||||
<summary>Diese klasse beinhaltet Methoden welche für den Kryptografischen Teil verwendet werden</summary>
|
||||
</member><member name="M:EDKB05.Common.Tools.IsDataSetValid(System.Data.DataSet)">
|
||||
<summary>Überprüft TableCount und RowCount eines DataSet</summary>
|
||||
<param name="ds"></param>
|
||||
<returns>True wenn table- und rowcount > 0</returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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>
|
||||
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
EDKB05.ConsoleUI
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:ConsoleUI.DataAccess.GetTableList(System.Data.DataSet@)">
|
||||
<summary>Gibt eine Liste mit allen Tabellen welche gesichert werden müssen zurück</summary>
|
||||
<param name="ds"></param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.GetTableData(System.String,System.String,System.String)">
|
||||
<summary>Gibt alle zu sichernden Daten von einer Tabelle zurück</summary>
|
||||
<param name="month">Zu sichernder Monat (Format mm.yyyy)</param>
|
||||
<param name="dateField">Das Feld, welches das Vergleichsdatum enthält</param>
|
||||
<param name="tableName">Der Name der Tabelle</param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.InsJounal(System.String,System.String,System.Int32@)">
|
||||
<summary>Erstellt einen neuen Eintrag in der Journal Tabelle</summary>
|
||||
<param name="fileName">Name der erstellten Zips</param>
|
||||
<param name="month">Verarbeiteter Monat im Format mm.yyyy</param>
|
||||
<param name="eintragNr">Gitb die Id des erstellten Journals zurück</param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.InsJounalDetail(System.Int32,System.String,System.Int32)">
|
||||
<summary>Erstellt einen neuen Eintrag in der Tabelle JournalDetail</summary>
|
||||
<param name="journalNr"></param>
|
||||
<param name="tableName"></param>
|
||||
<param name="rowCount"></param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.DelJournale">
|
||||
<summary>Löscht alle Journale, welche von der verantwortlichen Person bestätigt wurden</summary>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.UpdJournalSetVollstaendig(System.Int32)">
|
||||
<summary>Markiert ein Journal als vollständig</summary>
|
||||
<param name="journalNr"></param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.GetFileNameForDeletet(System.Data.DataSet@)">
|
||||
<summary>Gibt alle zu Löschenden ZipDateinamen zurück</summary>
|
||||
<param name="ds"></param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.Main.GenerateFiles(System.Data.DataSet)">
|
||||
<summary>Holt die Daten aus der DB und generiert XML files, welche danach in ein
|
||||
ZIP gepackt werden</summary>
|
||||
<remarks>Nachdem die Xml files in das Zip gepackt wurden, werden diese wieder gelöscht</remarks>
|
||||
<param name="ds">DataSet mit dem Tabellen, welche gesichert werden sollen</param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.Main.AddToZip(System.String,ICSharpCode.SharpZipLib.Zip.ZipOutputStream)">
|
||||
<summary>Fügt ein File zu einem zipOuputStream hinzu</summary>
|
||||
<param name="fileName"></param>
|
||||
<param name="zipOutputStream"></param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.Main.DeleteOldZipFiles">
|
||||
<summary>Löscht die alten Zip Files welche freigegeben wurden</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
EDKB05.ConsoleUI.exe
|
||||
pause
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
ZpCryptography
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
|
||||
</members>
|
||||
</doc>
|
||||
@@ -0,0 +1 @@
|
||||
¹µÈ¦rȽ¹¿¸ª‰¿Çx…½³»É·¥¹u¨À¦¾·¼‘–’¥¾©¿È®¿Àeŏɯ®ÆÎn»»´‰’¦¾»ºË´ÄÀÁ¸®É®»ºe»¬’ĦµÀ³¸mȮƱ‚†xŽŠºÅºÀd¶¹‚¿€Â©ÈÇ˴Ĺ‹nÀ½º~…€
|
||||
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<root>
|
||||
<config>
|
||||
<!-- The maximum duration a start job can take before a starter error occures -->
|
||||
<MaximumStartDuration>1</MaximumStartDuration>
|
||||
|
||||
<!-- Check interval in minutes for starter -->
|
||||
<StartJobInterval>2</StartJobInterval>
|
||||
|
||||
<!-- Check interval in minutes for watcher -->
|
||||
<WatchJobInterval>2</WatchJobInterval>
|
||||
|
||||
<!-- The number of Starter-Errors notifications should be activated until the job runs successful next time -->
|
||||
<MaxStarterNotifications>2</MaxStarterNotifications>
|
||||
|
||||
<!-- The number of Watch-Errors notifications should be activated until the job runs successful next time -->
|
||||
<MaxWatcherNotifications>3</MaxWatcherNotifications>
|
||||
|
||||
<!-- Name of the system event log where service should write his entries -->
|
||||
<EventLogName>BMS</EventLogName>
|
||||
|
||||
<!-- The target where messages should be written to.
|
||||
Valid log targets are:
|
||||
- 1: System EventLog
|
||||
- 2: Database EventLog table
|
||||
-->
|
||||
<LogTarget>1</LogTarget>
|
||||
|
||||
<!-- Mail Server to send eMails from BMS -->
|
||||
<MailServer>server01</MailServer>
|
||||
|
||||
<!-- Mail sender name -->
|
||||
<MailFrom>bms@tkb.ch</MailFrom>
|
||||
|
||||
<!-- Mail Server authentication method.
|
||||
Valid methods are:
|
||||
- 0: Anonymous
|
||||
- 1: Basic Authentication (clear text authentication!)
|
||||
-->
|
||||
<MailServerAuth>
|
||||
<Method>0</Method>
|
||||
<UserName>mailUser</UserName>
|
||||
<Password>mailPassword</Password>
|
||||
</MailServerAuth>
|
||||
</config>
|
||||
</root>
|
||||
@@ -0,0 +1 @@
|
||||
Data Source=shu00;Initial Catalog=edoka_journale;Persist Security Info=False;workstation id =;packet size=4096;User ID=sa;Password=*shu29
|
||||
@@ -0,0 +1 @@
|
||||
data source=server02;initial catalog=edoka_journale;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=tgedoka;password=$tgedoka11
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<root>
|
||||
<config>
|
||||
|
||||
<!-- The programId mit welcher sich der Batch beim EDKB10 meldet -->
|
||||
<ProgramId value="7" />
|
||||
|
||||
<!-- Timeout für Sql Queries in sekunden -->
|
||||
<SqlTimeout seconds="60" />
|
||||
|
||||
<!-- Manueller Run starten, Datum im Format mm.yyyy eingeben -->
|
||||
<ExplicitRun isEnabled="false" month="08.2005" />
|
||||
|
||||
<!-- Pfad wo die Daten als XML gespeichert werden sollen
|
||||
Note: Alle Xml files werden in ein zip gepappt und anschliessend wieder gelöscht -->
|
||||
<TargetFolder path="D:\EDOKA\EDKB05" />
|
||||
|
||||
<!-- Config für Mails, welche verschickt werden -->
|
||||
<Mail>
|
||||
<!-- Subject bei Mail wenn Batch normal gelaufen ist -->
|
||||
<Subject text="EDKB05 erfolgreich ausgeführt" />
|
||||
|
||||
<!-- Mailadressen von allen, welche Mails erhalten sollen -->
|
||||
<Receivers>
|
||||
<Receiver email="administrator@test24.ch" />
|
||||
</Receivers>
|
||||
</Mail>
|
||||
</config>
|
||||
</root>
|
||||
@@ -0,0 +1,5 @@
|
||||
SCC = This is a Source Code Control file
|
||||
|
||||
[ConsoleUI.vbproj]
|
||||
SCC_Aux_Path = "\\SERVER01\DATEN\SourceSave\EDOKA4.0"
|
||||
SCC_Project_Name = "$/EDKB05/ConsoleUI", TFBAAAAA
|
||||
@@ -0,0 +1,18 @@
|
||||
bin\EDKB05.ConsoleUI.exe
|
||||
bin\EDKB05.ConsoleUI.xml
|
||||
bin\EDKB05.Common.dll
|
||||
bin\ICSharpCode.SharpZipLib.dll
|
||||
bin\DataAccess.dll
|
||||
bin\ZpCryptography.dll
|
||||
obj\Debug\ResolveAssemblyReference.cache
|
||||
obj\Debug\EDKB05.ConsoleUI.exe
|
||||
obj\Debug\EDKB05.ConsoleUI.xml
|
||||
obj\Debug\EDKB05.ConsoleUI.pdb
|
||||
obj\Release\ResolveAssemblyReference.cache
|
||||
obj\Release\EDKB05.ConsoleUI.exe
|
||||
obj\Release\EDKB05.ConsoleUI.xml
|
||||
bin\Common.xml
|
||||
bin\BMS.xml
|
||||
bin\EDKB05.Common.xml
|
||||
bin\DataAccess.xml
|
||||
bin\ZpCryptography.xml
|
||||
@@ -0,0 +1,22 @@
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Release\EDKB05.ConsoleUI.exe
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Release\EDKB05.ConsoleUI.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.ConsoleUI.exe
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.ConsoleUI.pdb
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.ConsoleUI.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.Common.dll
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\ICSharpCode.SharpZipLib.dll
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\DataAccess.dll
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\ZpCryptography.dll
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\Common.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\BMS.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.Common.pdb
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.Common.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\DataAccess.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\ZpCryptography.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\ResolveAssemblyReference.cache
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\EDKB05.ConsoleUI.exe
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\EDKB05.ConsoleUI.xml
|
||||
C:\Program Files\EDOKA\EDOKA_Entwicklung\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\EDKB05.ConsoleUI.pdb
|
||||
E:\Software-Projekte\EDOKA\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\EDKB05.ConsoleUI.exe
|
||||
E:\Software-Projekte\EDOKA\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\EDKB05.ConsoleUI.xml
|
||||
E:\Software-Projekte\EDOKA\Batches\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\EDKB05.ConsoleUI.pdb
|
||||
@@ -0,0 +1,23 @@
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\EDKB05.ConsoleUI.exe
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\EDKB05.ConsoleUI.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\EDKB05.ConsoleUI.pdb
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.ConsoleUI.exe
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.ConsoleUI.pdb
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.ConsoleUI.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.Common.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\ICSharpCode.SharpZipLib.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\DataAccess.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\ZpCryptography.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\BMS.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\Common.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.Common.pdb
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.Common.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\DataAccess.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\ZpCryptography.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Debug\ConsoleUI.vbprojResolveAssemblyReference.cache
|
||||
C:\WINDOWS\system32\obj\Debug\EDKB05.ConsoleUI.exe
|
||||
C:\WINDOWS\system32\obj\Debug\EDKB05.ConsoleUI.xml
|
||||
C:\WINDOWS\system32\obj\Debug\EDKB05.ConsoleUI.pdb
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\WinUI\obj\Debug\EDKB05.ConsoleUI.exe
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\WinUI\obj\Debug\EDKB05.ConsoleUI.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\WinUI\obj\Debug\EDKB05.ConsoleUI.pdb
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
EDKB05.ConsoleUI
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:ConsoleUI.DataAccess.GetTableList(System.Data.DataSet@)">
|
||||
<summary>Gibt eine Liste mit allen Tabellen welche gesichert werden müssen zurück</summary>
|
||||
<param name="ds"></param>
|
||||
</member><member name="M:ConsoleUI.DataAccess.GetTableData(System.String,System.String,System.String)">
|
||||
<summary>Gibt alle zu sichernden Daten von einer Tabelle zurück</summary>
|
||||
<param name="month">Zu sichernder Monat (Format mm.yyyy)</param>
|
||||
<param name="dateField">Das Feld, welches das Vergleichsdatum enthält</param>
|
||||
<param name="tableName">Der Name der Tabelle</param>
|
||||
</member><member name="M:ConsoleUI.DataAccess.InsJounal(System.String,System.String,System.Int32@)">
|
||||
<summary>Erstellt einen neuen Eintrag in der Journal Tabelle</summary>
|
||||
<param name="fileName">Name der erstellten Zips</param>
|
||||
<param name="month">Verarbeiteter Monat im Format mm.yyyy</param>
|
||||
<param name="eintragNr">Gitb die Id des erstellten Journals zurück</param>
|
||||
</member><member name="M:ConsoleUI.DataAccess.InsJounalDetail(System.Int32,System.String,System.Int32)">
|
||||
<summary>Erstellt einen neuen Eintrag in der Tabelle JournalDetail</summary>
|
||||
<param name="journalNr"></param>
|
||||
<param name="tableName"></param>
|
||||
<param name="rowCount"></param>
|
||||
</member><member name="M:ConsoleUI.DataAccess.DelJournale">
|
||||
<summary>Löscht alle Journale, welche von der verantwortlichen Person bestätigt wurden</summary>
|
||||
</member><member name="M:ConsoleUI.DataAccess.UpdJournalSetVollstaendig(System.Int32)">
|
||||
<summary>Markiert ein Journal als vollständig</summary>
|
||||
<param name="journalNr"></param>
|
||||
</member><member name="M:ConsoleUI.DataAccess.GetFileNameForDeletet(System.Data.DataSet@)">
|
||||
<summary>Gibt alle zu Löschenden ZipDateinamen zurück</summary>
|
||||
<param name="ds"></param>
|
||||
</member><member name="M:ConsoleUI.Main.GenerateFiles(System.Data.DataSet)">
|
||||
<summary>Holt die Daten aus der DB und generiert XML files, welche danach in ein
|
||||
ZIP gepackt werden</summary>
|
||||
<remarks>Nachdem die Xml files in das Zip gepackt wurden, werden diese wieder gelöscht</remarks>
|
||||
<param name="ds">DataSet mit dem Tabellen, welche gesichert werden sollen</param>
|
||||
</member><member name="M:ConsoleUI.Main.AddToZip(System.String,ICSharpCode.SharpZipLib.Zip.ZipOutputStream)">
|
||||
<summary>Fügt ein File zu einem zipOuputStream hinzu</summary>
|
||||
<param name="fileName"></param>
|
||||
<param name="zipOutputStream"></param>
|
||||
</member><member name="M:ConsoleUI.Main.DeleteOldZipFiles">
|
||||
<summary>Löscht die alten Zip Files welche freigegeben wurden</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
+15
@@ -0,0 +1,15 @@
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Release\EDKB05.ConsoleUI.exe
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Release\EDKB05.ConsoleUI.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.ConsoleUI.exe
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.ConsoleUI.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.Common.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\ICSharpCode.SharpZipLib.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\DataAccess.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\ZpCryptography.dll
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\BMS.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\Common.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.Common.pdb
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\EDKB05.Common.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\DataAccess.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\bin\ZpCryptography.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB05\Versionen\2.0\EDKB05\ConsoleUI\obj\Release\ConsoleUI.vbprojResolveAssemblyReference.cache
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
EDKB05.ConsoleUI
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="M:ConsoleUI.DataAccess.GetTableList(System.Data.DataSet@)">
|
||||
<summary>Gibt eine Liste mit allen Tabellen welche gesichert werden müssen zurück</summary>
|
||||
<param name="ds"></param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.GetTableData(System.String,System.String,System.String)">
|
||||
<summary>Gibt alle zu sichernden Daten von einer Tabelle zurück</summary>
|
||||
<param name="month">Zu sichernder Monat (Format mm.yyyy)</param>
|
||||
<param name="dateField">Das Feld, welches das Vergleichsdatum enthält</param>
|
||||
<param name="tableName">Der Name der Tabelle</param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.InsJounal(System.String,System.String,System.Int32@)">
|
||||
<summary>Erstellt einen neuen Eintrag in der Journal Tabelle</summary>
|
||||
<param name="fileName">Name der erstellten Zips</param>
|
||||
<param name="month">Verarbeiteter Monat im Format mm.yyyy</param>
|
||||
<param name="eintragNr">Gitb die Id des erstellten Journals zurück</param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.InsJounalDetail(System.Int32,System.String,System.Int32)">
|
||||
<summary>Erstellt einen neuen Eintrag in der Tabelle JournalDetail</summary>
|
||||
<param name="journalNr"></param>
|
||||
<param name="tableName"></param>
|
||||
<param name="rowCount"></param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.DelJournale">
|
||||
<summary>Löscht alle Journale, welche von der verantwortlichen Person bestätigt wurden</summary>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.UpdJournalSetVollstaendig(System.Int32)">
|
||||
<summary>Markiert ein Journal als vollständig</summary>
|
||||
<param name="journalNr"></param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.DataAccess.GetFileNameForDeletet(System.Data.DataSet@)">
|
||||
<summary>Gibt alle zu Löschenden ZipDateinamen zurück</summary>
|
||||
<param name="ds"></param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.Main.GenerateFiles(System.Data.DataSet)">
|
||||
<summary>Holt die Daten aus der DB und generiert XML files, welche danach in ein
|
||||
ZIP gepackt werden</summary>
|
||||
<remarks>Nachdem die Xml files in das Zip gepackt wurden, werden diese wieder gelöscht</remarks>
|
||||
<param name="ds">DataSet mit dem Tabellen, welche gesichert werden sollen</param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.Main.AddToZip(System.String,ICSharpCode.SharpZipLib.Zip.ZipOutputStream)">
|
||||
<summary>Fügt ein File zu einem zipOuputStream hinzu</summary>
|
||||
<param name="fileName"></param>
|
||||
<param name="zipOutputStream"></param>
|
||||
</member>
|
||||
<member name="M:ConsoleUI.Main.DeleteOldZipFiles">
|
||||
<summary>Löscht die alten Zip Files welche freigegeben wurden</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<root>
|
||||
<config>
|
||||
|
||||
<!-- The programId mit welcher sich der Batch beim EDKB10 meldet -->
|
||||
<ProgramId value="7" />
|
||||
|
||||
<!-- Timeout für Sql Queries in sekunden -->
|
||||
<SqlTimeout seconds="60" />
|
||||
|
||||
<!-- Manueller Run starten, Datum im Format mm.yyyy eingeben -->
|
||||
<ExplicitRun isEnabled="true" month="08.2005" />
|
||||
|
||||
<!-- Pfad wo die Daten als XML gespeichert werden sollen
|
||||
Note: Alle Xml files werden in ein zip gepappt und anschliessend wieder gelöscht -->
|
||||
<TargetFolder path="C:/proj/EDKB05/ConsoleUI/bin/" />
|
||||
|
||||
<!-- Config für Mails, welche verschickt werden -->
|
||||
<Mail>
|
||||
<!-- Subject bei Mail wenn Batch normal gelaufen ist -->
|
||||
<Subject text="EDKB05 erfolgreich ausgeführt" />
|
||||
|
||||
<!-- Mailadressen von allen, welche Mails erhalten sollen -->
|
||||
<Receivers>
|
||||
<Receiver email="production.cold@swisscom.com" />
|
||||
<Receiver email="administrator@test24.ch" />
|
||||
</Receivers>
|
||||
</Mail>
|
||||
</config>
|
||||
</root>
|
||||
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user