Initial commit
This commit is contained in:
BIN
EDKB20/.vs/EDKB16/v14/.suo
Normal file
BIN
EDKB20/.vs/EDKB16/v14/.suo
Normal file
Binary file not shown.
BIN
EDKB20/.vs/EDKB16/v15/.suo
Normal file
BIN
EDKB20/.vs/EDKB16/v15/.suo
Normal file
Binary file not shown.
0
EDKB20/.vs/EDKB16/v15/Server/sqlite3/db.lock
Normal file
0
EDKB20/.vs/EDKB16/v15/Server/sqlite3/db.lock
Normal file
BIN
EDKB20/.vs/EDKB16/v15/Server/sqlite3/storage.ide
Normal file
BIN
EDKB20/.vs/EDKB16/v15/Server/sqlite3/storage.ide
Normal file
Binary file not shown.
BIN
EDKB20/.vs/EDKB16/v15/Server/sqlite3/storage.ide-shm
Normal file
BIN
EDKB20/.vs/EDKB16/v15/Server/sqlite3/storage.ide-shm
Normal file
Binary file not shown.
BIN
EDKB20/.vs/EDKB16/v15/Server/sqlite3/storage.ide-wal
Normal file
BIN
EDKB20/.vs/EDKB16/v15/Server/sqlite3/storage.ide-wal
Normal file
Binary file not shown.
BIN
EDKB20/.vs/EDKB16/v16/.suo
Normal file
BIN
EDKB20/.vs/EDKB16/v16/.suo
Normal file
Binary file not shown.
0
EDKB20/.vs/EDKB16/v16/Server/sqlite3/db.lock
Normal file
0
EDKB20/.vs/EDKB16/v16/Server/sqlite3/db.lock
Normal file
BIN
EDKB20/.vs/EDKB16/v16/Server/sqlite3/storage.ide
Normal file
BIN
EDKB20/.vs/EDKB16/v16/Server/sqlite3/storage.ide
Normal file
Binary file not shown.
1
EDKB20/EDKB16.jmconfig
Normal file
1
EDKB20/EDKB16.jmconfig
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DontShowAgainInSolution>false</DontShowAgainInSolution></Configuration>
|
||||
25
EDKB20/EDKB16.sln
Normal file
25
EDKB20/EDKB16.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.29424.173
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "EDKB20", "EDKB16\EDKB20.vbproj", "{F8D2FD48-1136-4EC5-B600-7A0FA3B6E960}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F8D2FD48-1136-4EC5-B600-7A0FA3B6E960}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F8D2FD48-1136-4EC5-B600-7A0FA3B6E960}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F8D2FD48-1136-4EC5-B600-7A0FA3B6E960}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F8D2FD48-1136-4EC5-B600-7A0FA3B6E960}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {1DEB4ADE-DA5D-4D92-822A-60AA45A2FE18}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
EDKB20/EDKB16.v12.suo
Normal file
BIN
EDKB20/EDKB16.v12.suo
Normal file
Binary file not shown.
449
EDKB20/EDKB16/DB/clsApplikation.vb
Normal file
449
EDKB20/EDKB16/DB/clsApplikation.vb
Normal file
@@ -0,0 +1,449 @@
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Data Access class for the table 'Applikation'
|
||||
' // Generated by LLBLGen v1.2.1045.38210 Final on: Sonntag, 15. Juni 2003, 07:59:59
|
||||
' // Because the Base Class already implements IDispose, this class doesn't.
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
Imports System
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlTypes
|
||||
Imports System.Data.SqlClient
|
||||
|
||||
Namespace edokadb
|
||||
' /// <summary>
|
||||
' /// Purpose: Data Access class for the table 'Applikation'.
|
||||
' /// </summary>
|
||||
Public Class clsApplikation
|
||||
Inherits clsDBInteractionBase
|
||||
|
||||
#Region " Class Member Declarations "
|
||||
|
||||
Private m_daMutiert_am, m_daLastrun, m_daErstellt_am As SqlDateTime
|
||||
Private m_iApplikationnr, m_iMutierer As SqlInt32
|
||||
Private m_sBezeichnung As SqlString
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Class constructor.
|
||||
' /// </summary>
|
||||
Public Sub New()
|
||||
' // Nothing for now.
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Insert method. This method will insert one new row into the database.
|
||||
' /// </summary>
|
||||
' /// <returns>True if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iApplikationnr</LI>
|
||||
' /// <LI>sBezeichnung. May be SqlString.Null</LI>
|
||||
' /// <LI>daErstellt_am. May be SqlDateTime.Null</LI>
|
||||
' /// <LI>daMutiert_am. May be SqlDateTime.Null</LI>
|
||||
' /// <LI>iMutierer. May be SqlInt32.Null</LI>
|
||||
' /// <LI>daLastrun. May be SqlDateTime.Null</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function Insert() As Boolean
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Applikation_Insert]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iapplikationnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iApplikationnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sbezeichnung", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBezeichnung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daerstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@damutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daMutiert_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@imutierer", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iMutierer))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@dalastrun", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daLastrun))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Applikation_Insert' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsApplikation::Insert::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Update method. This method will Update one existing row in the database.
|
||||
' /// </summary>
|
||||
' /// <returns>True if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iApplikationnr</LI>
|
||||
' /// <LI>sBezeichnung. May be SqlString.Null</LI>
|
||||
' /// <LI>daErstellt_am. May be SqlDateTime.Null</LI>
|
||||
' /// <LI>daMutiert_am. May be SqlDateTime.Null</LI>
|
||||
' /// <LI>iMutierer. May be SqlInt32.Null</LI>
|
||||
' /// <LI>daLastrun. May be SqlDateTime.Null</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function Update() As Boolean
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Applikation_Update]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iapplikationnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iApplikationnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sbezeichnung", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBezeichnung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daerstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@damutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daMutiert_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@imutierer", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iMutierer))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@dalastrun", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daLastrun))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Applikation_Update' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsApplikation::Update::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Delete method. This method will Delete one existing row in the database, based on the Primary Key.
|
||||
' /// </summary>
|
||||
' /// <returns>True if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iApplikationnr</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function Delete() As Boolean
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Applikation_Delete]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iapplikationnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iApplikationnr))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Applikation_Delete' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsApplikation::Delete::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Select method. This method will Select one existing row from the database, based on the Primary Key.
|
||||
' /// </summary>
|
||||
' /// <returns>DataTable object if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iApplikationnr</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// <LI>iApplikationnr</LI>
|
||||
' /// <LI>sBezeichnung</LI>
|
||||
' /// <LI>daErstellt_am</LI>
|
||||
' /// <LI>daMutiert_am</LI>
|
||||
' /// <LI>iMutierer</LI>
|
||||
' /// <LI>daLastrun</LI>
|
||||
' /// </UL>
|
||||
' /// Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
' /// </remarks>
|
||||
Overrides Public Function SelectOne() As DataTable
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Applikation_SelectOne]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("Applikation")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iapplikationnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iApplikationnr))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
sdaAdapter.Fill(dtToReturn)
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Applikation_SelectOne' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
If dtToReturn.Rows.Count > 0 Then
|
||||
m_iApplikationnr = New SqlInt32(CType(dtToReturn.Rows(0)("applikationnr"), Integer))
|
||||
If dtToReturn.Rows(0)("bezeichnung") Is System.DBNull.Value Then
|
||||
m_sBezeichnung = SqlString.Null
|
||||
Else
|
||||
m_sBezeichnung = New SqlString(CType(dtToReturn.Rows(0)("bezeichnung"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("erstellt_am") Is System.DBNull.Value Then
|
||||
m_daErstellt_am = SqlDateTime.Null
|
||||
Else
|
||||
m_daErstellt_am = New SqlDateTime(CType(dtToReturn.Rows(0)("erstellt_am"), Date))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("mutiert_am") Is System.DBNull.Value Then
|
||||
m_daMutiert_am = SqlDateTime.Null
|
||||
Else
|
||||
m_daMutiert_am = New SqlDateTime(CType(dtToReturn.Rows(0)("mutiert_am"), Date))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("mutierer") Is System.DBNull.Value Then
|
||||
m_iMutierer = SqlInt32.Null
|
||||
Else
|
||||
m_iMutierer = New SqlInt32(CType(dtToReturn.Rows(0)("mutierer"), Integer))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("lastrun") Is System.DBNull.Value Then
|
||||
m_daLastrun = SqlDateTime.Null
|
||||
Else
|
||||
m_daLastrun = New SqlDateTime(CType(dtToReturn.Rows(0)("lastrun"), Date))
|
||||
End If
|
||||
End If
|
||||
Return dtToReturn
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsApplikation::SelectOne::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
sdaAdapter.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: SelectAll method. This method will Select all rows from the table.
|
||||
' /// </summary>
|
||||
' /// <returns>DataTable object if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function SelectAll() As DataTable
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Applikation_SelectAll]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("Applikation")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
sdaAdapter.Fill(dtToReturn)
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Applikation_SelectAll' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return dtToReturn
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsApplikation::SelectAll::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
sdaAdapter.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
#Region " Class Property Declarations "
|
||||
|
||||
Public Property [iApplikationnr]() As SqlInt32
|
||||
Get
|
||||
Return m_iApplikationnr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
Dim iApplikationnrTmp As SqlInt32 = Value
|
||||
If iApplikationnrTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("iApplikationnr", "iApplikationnr can't be NULL")
|
||||
End If
|
||||
m_iApplikationnr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sBezeichnung]() As SqlString
|
||||
Get
|
||||
Return m_sBezeichnung
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sBezeichnung = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [daErstellt_am]() As SqlDateTime
|
||||
Get
|
||||
Return m_daErstellt_am
|
||||
End Get
|
||||
Set(ByVal Value As SqlDateTime)
|
||||
m_daErstellt_am = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [daMutiert_am]() As SqlDateTime
|
||||
Get
|
||||
Return m_daMutiert_am
|
||||
End Get
|
||||
Set(ByVal Value As SqlDateTime)
|
||||
m_daMutiert_am = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [iMutierer]() As SqlInt32
|
||||
Get
|
||||
Return m_iMutierer
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
m_iMutierer = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [daLastrun]() As SqlDateTime
|
||||
Get
|
||||
Return m_daLastrun
|
||||
End Get
|
||||
Set(ByVal Value As SqlDateTime)
|
||||
m_daLastrun = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
289
EDKB20/EDKB16/DB/clsConnectionProvider.vb
Normal file
289
EDKB20/EDKB16/DB/clsConnectionProvider.vb
Normal file
@@ -0,0 +1,289 @@
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Connection Provider class for Database connection sharing
|
||||
' // Generated by LLBLGen v1.2.1045.38210 Final on: Sonntag, 18. Mai 2003, 00:06:25
|
||||
' // This class implements IDisposable.
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
Imports System
|
||||
Imports System.Configuration
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Collections
|
||||
|
||||
Namespace edokadb
|
||||
' /// <summary>
|
||||
' /// Purpose: provides a SqlConnection object which can be shared among data-access tier objects
|
||||
' /// to provide a way to do ADO.NET transaction coding without the hassling with SqlConnection objects
|
||||
' /// on a high level.
|
||||
' /// </summary>
|
||||
Public Class clsConnectionProvider
|
||||
Implements IDisposable
|
||||
|
||||
#Region " Class Member Declarations "
|
||||
|
||||
Private m_scoDBConnection As SqlConnection
|
||||
Private m_bIsTransactionPending, m_bIsDisposed As Boolean
|
||||
Private m_stCurrentTransaction As SqlTransaction
|
||||
Private m_alSavePoints As ArrayList
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
Public Sub New()
|
||||
' // Init the class
|
||||
InitClass()
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Implements the IDispose' method Dispose.
|
||||
' /// </summary>
|
||||
Overloads Public Sub Dispose() Implements IDisposable.Dispose
|
||||
Dispose(True)
|
||||
GC.SuppressFinalize(Me)
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Implements the Dispose functionality.
|
||||
' /// </summary>
|
||||
Overridable Overloads Protected Sub Dispose(ByVal bIsDisposing As Boolean)
|
||||
' // Check to see if Dispose has already been called.
|
||||
If Not m_bIsDisposed Then
|
||||
If bIsDisposing Then
|
||||
' // Dispose managed resources.
|
||||
If Not (m_stCurrentTransaction Is Nothing) Then
|
||||
m_stCurrentTransaction.Dispose()
|
||||
m_stCurrentTransaction = Nothing
|
||||
End If
|
||||
If Not (m_scoDBConnection Is Nothing) Then
|
||||
' // closing the connection will abort (rollback) any pending transactions
|
||||
m_scoDBConnection.Close()
|
||||
m_scoDBConnection.Dispose()
|
||||
m_scoDBConnection = Nothing
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
m_bIsDisposed = True
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Initializes class members.
|
||||
' /// </summary>
|
||||
Private Sub InitClass()
|
||||
' // Create all the objects and initialize other members.
|
||||
m_scoDBConnection = new SqlConnection()
|
||||
m_bIsDisposed = False
|
||||
m_stCurrentTransaction = Nothing
|
||||
m_bIsTransactionPending = False
|
||||
m_alSavePoints = new ArrayList()
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Opens the connection object.
|
||||
' /// </summary>
|
||||
' /// <returns>True, if succeeded, otherwise an Exception exception is thrown.</returns>
|
||||
Public Function OpenConnection() As Boolean
|
||||
Try
|
||||
If (m_scoDBConnection.State And ConnectionState.Open) > 0 Then
|
||||
' // It's already open.
|
||||
Throw New Exception("OpenConnection::Connection is already open.")
|
||||
End If
|
||||
m_scoDBConnection.Open()
|
||||
m_bIsTransactionPending = False
|
||||
m_alSavePoints.Clear()
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // bubble exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Starts a new ADO.NET transaction using the open connection object of this class.
|
||||
' /// </summary>
|
||||
' /// <param name="sTransactionName">Name of the transaction to start</param>
|
||||
' /// <returns>True, if transaction is started correctly, otherwise an Exception exception is thrown</returns>
|
||||
Public Function BeginTransaction(sTransactionName As String) As Boolean
|
||||
Try
|
||||
If m_bIsTransactionPending Then
|
||||
' // no nested transactions allowed.
|
||||
Throw New Exception("BeginTransaction::Already transaction pending. Nesting not allowed")
|
||||
End If
|
||||
If (m_scoDBConnection.State And ConnectionState.Open) = 0 Then
|
||||
' // no open connection
|
||||
Throw New Exception("BeginTransaction::Connection is not open.")
|
||||
End If
|
||||
' // begin the transaction and store the transaction object.
|
||||
m_stCurrentTransaction = m_scoDBConnection.BeginTransaction(IsolationLevel.ReadCommitted, sTransactionName)
|
||||
m_bIsTransactionPending = True
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // bubble exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Commits a pending transaction on the open connection object of this class.
|
||||
' /// </summary>
|
||||
' /// <returns>True, if commit was succesful, or an Exception exception is thrown</returns>
|
||||
Public Function CommitTransaction() As Boolean
|
||||
Try
|
||||
If Not m_bIsTransactionPending Then
|
||||
' // no transaction pending
|
||||
Throw New Exception("CommitTransaction::No transaction pending.")
|
||||
End If
|
||||
If (m_scoDBConnection.State And ConnectionState.Open) = 0 Then
|
||||
' // no open connection
|
||||
Throw New Exception("CommitTransaction::Connection is not open.")
|
||||
End if
|
||||
' // commit the transaction
|
||||
m_stCurrentTransaction.Commit()
|
||||
m_bIsTransactionPending = False
|
||||
m_stCurrentTransaction.Dispose()
|
||||
m_stCurrentTransaction = Nothing
|
||||
m_alSavePoints.Clear()
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // bubble exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Rolls back a pending transaction on the open connection object of this class,
|
||||
' /// or rolls back to the savepoint with the given name. Savepoints are created with SaveTransaction().
|
||||
' /// </summary>
|
||||
' /// <param name="sTransactionToRollback">Name of transaction to roll back. Can be name of savepoint</param>
|
||||
' /// <returns>True, if rollback was succesful, or an Exception exception is thrown</returns>
|
||||
Public Function RollbackTransaction(sTransactionToRollback As String) As Boolean
|
||||
Try
|
||||
If Not m_bIsTransactionPending Then
|
||||
' // no transaction pending
|
||||
Throw New Exception("RollbackTransaction::No transaction pending.")
|
||||
End If
|
||||
If (m_scoDBConnection.State And ConnectionState.Open) = 0 Then
|
||||
' // no open connection
|
||||
Throw New Exception("RollbackTransaction::Connection is not open.")
|
||||
End If
|
||||
' // rollback the transaction
|
||||
m_stCurrentTransaction.Rollback(sTransactionToRollback)
|
||||
' // if this wasn't a savepoint, we've rolled back the complete transaction, so we
|
||||
' // can clean it up.
|
||||
If Not m_alSavePoints.Contains(sTransactionToRollback) Then
|
||||
' // it's not a savepoint
|
||||
m_bIsTransactionPending = False
|
||||
m_stCurrentTransaction.Dispose()
|
||||
m_stCurrentTransaction = Nothing
|
||||
m_alSavePoints.Clear()
|
||||
End If
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // bubble exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Saves a pending transaction on the open connection object of this class to a 'savepoint'
|
||||
' /// with the given name.
|
||||
' /// When a rollback is issued, the caller can rollback to this savepoint or roll back the complete transaction.
|
||||
' /// </summary>
|
||||
' /// <param name="sSavePointName">Name of the savepoint to store the current transaction under.</param>
|
||||
' /// <returns>True, if save was succesful, or an Exception exception is thrown</returns>
|
||||
Public Function SaveTransaction(sSavePointName As String) As Boolean
|
||||
Try
|
||||
If Not m_bIsTransactionPending Then
|
||||
' // no transaction pending
|
||||
Throw New Exception("SaveTransaction::No transaction pending.")
|
||||
End If
|
||||
If (m_scoDBConnection.State And ConnectionState.Open) = 0 Then
|
||||
' // no open connection
|
||||
Throw New Exception("SaveTransaction::Connection is not open.")
|
||||
End If
|
||||
' // save the transaction
|
||||
m_stCurrentTransaction.Save(sSavePointName)
|
||||
' // Store the savepoint in the list.
|
||||
m_alSavePoints.Add(sSavePointName)
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // bubble exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Closes the open connection. Depending on bCommitPendingTransactions, a pending
|
||||
' /// transaction is commited, or aborted.
|
||||
' /// </summary>
|
||||
' /// <param name="bCommitPendingTransaction">Flag for what to do when a transaction is still pending. True
|
||||
' /// will commit the current transaction, False will abort (rollback) the complete current transaction.</param>
|
||||
' /// <returns>True, if close was succesful, False if connection was already closed, or an Exception exception is thrown when
|
||||
' /// an error occurs</returns>
|
||||
Public Function CloseConnection(bCommitPendingTransaction As Boolean) As Boolean
|
||||
Try
|
||||
If (m_scoDBConnection.State And ConnectionState.Open) = 0 Then
|
||||
' // No open connection
|
||||
Return False
|
||||
End If
|
||||
If m_bIsTransactionPending Then
|
||||
If bCommitPendingTransaction Then
|
||||
' // Commit the pending transaction
|
||||
m_stCurrentTransaction.Commit()
|
||||
Else
|
||||
' // Rollback the pending transaction
|
||||
m_stCurrentTransaction.Rollback()
|
||||
End If
|
||||
m_bIsTransactionPending = False
|
||||
m_stCurrentTransaction.Dispose()
|
||||
m_stCurrentTransaction = Nothing
|
||||
m_alSavePoints.Clear()
|
||||
End If
|
||||
' // close the connection
|
||||
m_scoDBConnection.Close()
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // bubble exception
|
||||
Throw ex
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
#Region " Class Property Declarations "
|
||||
|
||||
Public ReadOnly Property stCurrentTransaction() As SqlTransaction
|
||||
Get
|
||||
Return m_stCurrentTransaction
|
||||
End Get
|
||||
End Property
|
||||
|
||||
|
||||
Public ReadOnly Property bIsTransactionPending() As Boolean
|
||||
Get
|
||||
Return m_bIsTransactionPending
|
||||
End Get
|
||||
End Property
|
||||
|
||||
|
||||
Public ReadOnly Property scoDBConnection() As SqlConnection
|
||||
Get
|
||||
Return m_scoDBConnection
|
||||
End Get
|
||||
End Property
|
||||
Public WriteOnly Property sConnectionString() As String
|
||||
Set (ByVal Value As String)
|
||||
m_scoDBConnection.ConnectionString = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
202
EDKB20/EDKB16/DB/clsDBInteractionBase.vb
Normal file
202
EDKB20/EDKB16/DB/clsDBInteractionBase.vb
Normal file
@@ -0,0 +1,202 @@
|
||||
' //////////////////////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Base class for Database Interaction.
|
||||
' // Generated by LLBLGen v1.2.1045.38210 Final on: Sonntag, 18. Mai 2003, 00:06:25
|
||||
' // Because this class implements IDisposable, derived classes shouldn't do so.
|
||||
' //////////////////////////////////////////////////////////////////////////////////////////
|
||||
Imports System
|
||||
Imports System.Configuration
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Data.SqlTypes
|
||||
|
||||
Namespace edokadb
|
||||
' /// <summary>
|
||||
' /// Purpose: Error Enums used by this LLBL library.
|
||||
' /// </summary>
|
||||
Public Enum LLBLError
|
||||
AllOk
|
||||
' // Add more here (check the comma's!)
|
||||
End Enum
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: General interface of the API generated. Contains only common methods of all classes.
|
||||
' /// </summary>
|
||||
Public Interface ICommonDBAccess
|
||||
Function Insert() As Boolean
|
||||
Function Update() As Boolean
|
||||
Function Delete() As Boolean
|
||||
Function SelectOne() As DataTable
|
||||
Function SelectAll() As DataTable
|
||||
End Interface
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Abstract base class for Database Interaction classes.
|
||||
' /// </summary>
|
||||
Public MustInherit Class clsDBInteractionBase
|
||||
Implements IDisposable
|
||||
Implements ICommonDBAccess
|
||||
|
||||
#Region " Class Member Declarations "
|
||||
|
||||
Protected m_scoMainConnection As SqlConnection
|
||||
Protected m_iErrorCode As SqlInt32
|
||||
Protected m_bMainConnectionIsCreatedLocal As Boolean
|
||||
Protected m_cpMainConnectionProvider As clsConnectionProvider
|
||||
Private m_sConnectionString As String
|
||||
Private m_bIsDisposed As Boolean
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Class constructor.
|
||||
' /// </summary>
|
||||
Public Sub New()
|
||||
' // Initialize the class' members.
|
||||
InitClass()
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Initializes class members.
|
||||
' /// </summary>
|
||||
Private Sub InitClass()
|
||||
' // create all the objects and initialize other members.
|
||||
m_scoMainConnection = new SqlConnection()
|
||||
m_bMainConnectionIsCreatedLocal = True
|
||||
m_cpMainConnectionProvider = Nothing
|
||||
m_iErrorCode = New SqlInt32(LLBLError.AllOk)
|
||||
m_bIsDisposed = False
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Implements the IDispose' method Dispose.
|
||||
' /// </summary>
|
||||
Overloads Public Sub Dispose() Implements IDisposable.Dispose
|
||||
Dispose(True)
|
||||
GC.SuppressFinalize(Me)
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Implements the Dispose functionality.
|
||||
' /// </summary>
|
||||
Overridable Overloads Protected Sub Dispose(ByVal bIsDisposing As Boolean)
|
||||
' // Check to see if Dispose has already been called.
|
||||
If Not m_bIsDisposed Then
|
||||
If bIsDisposing Then
|
||||
' // Dispose managed resources.
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Object is created in this class, so destroy it here.
|
||||
m_scoMainConnection.Close()
|
||||
m_scoMainConnection.Dispose()
|
||||
m_bMainConnectionIsCreatedLocal = True
|
||||
End If
|
||||
m_cpMainConnectionProvider = Nothing
|
||||
m_scoMainConnection = Nothing
|
||||
End If
|
||||
End If
|
||||
m_bIsDisposed = True
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Implements the ICommonDBAccess.Insert() method.
|
||||
' /// </summary>
|
||||
Public Overridable Function Insert() As Boolean Implements ICommonDBAccess.Insert
|
||||
' // No implementation, throw exception
|
||||
Throw New NotImplementedException()
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Implements the ICommonDBAccess.Delete() method.
|
||||
' /// </summary>
|
||||
Public Overridable Function Delete() As Boolean Implements ICommonDBAccess.Delete
|
||||
' // No implementation, throw exception
|
||||
Throw New NotImplementedException()
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Implements the ICommonDBAccess.Update() method.
|
||||
' /// </summary>
|
||||
Public Overridable Function Update() As Boolean Implements ICommonDBAccess.Update
|
||||
' // No implementation, throw exception
|
||||
Throw New NotImplementedException()
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Implements the ICommonDBAccess.SelectOne() method.
|
||||
' /// </summary>
|
||||
Public Overridable Function SelectOne() As DataTable Implements ICommonDBAccess.SelectOne
|
||||
' // No implementation, throw exception
|
||||
Throw New NotImplementedException()
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Implements the ICommonDBAccess.SelectAll() method.
|
||||
' /// </summary>
|
||||
Public Overridable Function SelectAll() As DataTable Implements ICommonDBAccess.SelectAll
|
||||
' // No implementation, throw exception
|
||||
Throw New NotImplementedException()
|
||||
End Function
|
||||
|
||||
|
||||
#Region " Class Property Declarations "
|
||||
|
||||
Public WriteOnly Property cpMainConnectionProvider() As clsConnectionProvider
|
||||
Set(ByVal Value As clsConnectionProvider)
|
||||
If Value Is Nothing Then
|
||||
' // Invalid value
|
||||
Throw New ArgumentNullException("cpMainConnectionProvider", "Nothing passed as value to this property which is not allowed.")
|
||||
End If
|
||||
|
||||
' // A connection provider object is passed to this class.
|
||||
' // Retrieve the SqlConnection object, if present and create a
|
||||
' // reference to it. If there is already a MainConnection object
|
||||
' // referenced by the membervar, destroy that one or simply
|
||||
' // remove the reference, based on the flag.
|
||||
If Not (m_scoMainConnection Is Nothing) Then
|
||||
' // First get rid of current connection object. Caller is responsible
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Is local created object, close it and dispose it.
|
||||
m_scoMainConnection.Close()
|
||||
m_scoMainConnection.Dispose()
|
||||
End If
|
||||
' // Remove reference.
|
||||
m_scoMainConnection = Nothing
|
||||
End If
|
||||
m_cpMainConnectionProvider = CType(Value, clsConnectionProvider)
|
||||
m_scoMainConnection = m_cpMainConnectionProvider.scoDBConnection
|
||||
m_bMainConnectionIsCreatedLocal = False
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public ReadOnly Property iErrorCode() As SqlInt32
|
||||
Get
|
||||
Return m_iErrorCode
|
||||
End Get
|
||||
End Property
|
||||
|
||||
|
||||
Public Property sConnectionString() As String
|
||||
Get
|
||||
Return m_sConnectionString
|
||||
End Get
|
||||
Set (ByVal Value As String)
|
||||
m_sConnectionString = Value
|
||||
m_scoMainConnection.ConnectionString = m_sConnectionString
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
451
EDKB20/EDKB16/DB/clsJournal.vb
Normal file
451
EDKB20/EDKB16/DB/clsJournal.vb
Normal file
@@ -0,0 +1,451 @@
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Data Access class for the table 'Journal'
|
||||
' // Generated by LLBLGen v1.2.1045.38210 Final on: Sonntag, 18. Mai 2003, 00:06:24
|
||||
' // Because the Base Class already implements IDispose, this class doesn't.
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
Imports System
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlTypes
|
||||
Imports System.Data.SqlClient
|
||||
|
||||
Namespace edokadb
|
||||
' /// <summary>
|
||||
' /// Purpose: Data Access class for the table 'Journal'.
|
||||
' /// </summary>
|
||||
Public Class clsJournal
|
||||
Inherits clsDBInteractionBase
|
||||
|
||||
#Region " Class Member Declarations "
|
||||
|
||||
Private m_bFehlerhaft As SqlBoolean
|
||||
Private m_daEnde, m_daStart As SqlDateTime
|
||||
Private m_iJournalnr, m_iApplikationnr As SqlInt32
|
||||
Private m_sFehlerbeschreibung As SqlString
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Class constructor.
|
||||
' /// </summary>
|
||||
Public Sub New()
|
||||
' // Nothing for now.
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Insert method. This method will insert one new row into the database.
|
||||
' /// </summary>
|
||||
' /// <returns>True if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iApplikationnr. May be SqlInt32.Null</LI>
|
||||
' /// <LI>daStart. May be SqlDateTime.Null</LI>
|
||||
' /// <LI>daEnde. May be SqlDateTime.Null</LI>
|
||||
' /// <LI>bFehlerhaft. May be SqlBoolean.Null</LI>
|
||||
' /// <LI>sFehlerbeschreibung. May be SqlString.Null</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iJournalnr</LI>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function Insert() As Boolean
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Journal_Insert]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iapplikationnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iApplikationnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@dastart", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daStart))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daende", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daEnde))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@bfehlerhaft", SqlDbType.Bit, 1, ParameterDirection.Input, True, 1, 0, "", DataRowVersion.Proposed, m_bFehlerhaft))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sfehlerbeschreibung", SqlDbType.VarChar, 1024, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sFehlerbeschreibung))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@ijournalnr", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iJournalnr))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iJournalnr = scmCmdToExecute.Parameters.Item("@ijournalnr").Value
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Journal_Insert' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsJournal::Insert::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Update method. This method will Update one existing row in the database.
|
||||
' /// </summary>
|
||||
' /// <returns>True if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iJournalnr</LI>
|
||||
' /// <LI>iApplikationnr. May be SqlInt32.Null</LI>
|
||||
' /// <LI>daStart. May be SqlDateTime.Null</LI>
|
||||
' /// <LI>daEnde. May be SqlDateTime.Null</LI>
|
||||
' /// <LI>bFehlerhaft. May be SqlBoolean.Null</LI>
|
||||
' /// <LI>sFehlerbeschreibung. May be SqlString.Null</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function Update() As Boolean
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Journal_Update]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ijournalnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iJournalnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iapplikationnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iApplikationnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@dastart", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daStart))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daende", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daEnde))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@bfehlerhaft", SqlDbType.Bit, 1, ParameterDirection.Input, True, 1, 0, "", DataRowVersion.Proposed, m_bFehlerhaft))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sfehlerbeschreibung", SqlDbType.VarChar, 1024, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sFehlerbeschreibung))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Journal_Update' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsJournal::Update::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Delete method. This method will Delete one existing row in the database, based on the Primary Key.
|
||||
' /// </summary>
|
||||
' /// <returns>True if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iJournalnr</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function Delete() As Boolean
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Journal_Delete]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ijournalnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iJournalnr))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Journal_Delete' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsJournal::Delete::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Select method. This method will Select one existing row from the database, based on the Primary Key.
|
||||
' /// </summary>
|
||||
' /// <returns>DataTable object if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iJournalnr</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// <LI>iJournalnr</LI>
|
||||
' /// <LI>iApplikationnr</LI>
|
||||
' /// <LI>daStart</LI>
|
||||
' /// <LI>daEnde</LI>
|
||||
' /// <LI>bFehlerhaft</LI>
|
||||
' /// <LI>sFehlerbeschreibung</LI>
|
||||
' /// </UL>
|
||||
' /// Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
' /// </remarks>
|
||||
Overrides Public Function SelectOne() As DataTable
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Journal_SelectOne]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("Journal")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@ijournalnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iJournalnr))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
sdaAdapter.Fill(dtToReturn)
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Journal_SelectOne' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
If dtToReturn.Rows.Count > 0 Then
|
||||
m_iJournalnr = New SqlInt32(CType(dtToReturn.Rows(0)("journalnr"), Integer))
|
||||
If dtToReturn.Rows(0)("applikationnr") Is System.DBNull.Value Then
|
||||
m_iApplikationnr = SqlInt32.Null
|
||||
Else
|
||||
m_iApplikationnr = New SqlInt32(CType(dtToReturn.Rows(0)("applikationnr"), Integer))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("start") Is System.DBNull.Value Then
|
||||
m_daStart = SqlDateTime.Null
|
||||
Else
|
||||
m_daStart = New SqlDateTime(CType(dtToReturn.Rows(0)("start"), Date))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("ende") Is System.DBNull.Value Then
|
||||
m_daEnde = SqlDateTime.Null
|
||||
Else
|
||||
m_daEnde = New SqlDateTime(CType(dtToReturn.Rows(0)("ende"), Date))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("fehlerhaft") Is System.DBNull.Value Then
|
||||
m_bFehlerhaft = SqlBoolean.Null
|
||||
Else
|
||||
m_bFehlerhaft = New SqlBoolean(CType(dtToReturn.Rows(0)("fehlerhaft"), Boolean))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("fehlerbeschreibung") Is System.DBNull.Value Then
|
||||
m_sFehlerbeschreibung = SqlString.Null
|
||||
Else
|
||||
m_sFehlerbeschreibung = New SqlString(CType(dtToReturn.Rows(0)("fehlerbeschreibung"), String))
|
||||
End If
|
||||
End If
|
||||
Return dtToReturn
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsJournal::SelectOne::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
sdaAdapter.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: SelectAll method. This method will Select all rows from the table.
|
||||
' /// </summary>
|
||||
' /// <returns>DataTable object if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function SelectAll() As DataTable
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Journal_SelectAll]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("Journal")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
sdaAdapter.Fill(dtToReturn)
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Journal_SelectAll' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return dtToReturn
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsJournal::SelectAll::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
sdaAdapter.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
#Region " Class Property Declarations "
|
||||
|
||||
Public Property [iJournalnr]() As SqlInt32
|
||||
Get
|
||||
Return m_iJournalnr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
Dim iJournalnrTmp As SqlInt32 = Value
|
||||
If iJournalnrTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("iJournalnr", "iJournalnr can't be NULL")
|
||||
End If
|
||||
m_iJournalnr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [iApplikationnr]() As SqlInt32
|
||||
Get
|
||||
Return m_iApplikationnr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
m_iApplikationnr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [daStart]() As SqlDateTime
|
||||
Get
|
||||
Return m_daStart
|
||||
End Get
|
||||
Set(ByVal Value As SqlDateTime)
|
||||
m_daStart = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [daEnde]() As SqlDateTime
|
||||
Get
|
||||
Return m_daEnde
|
||||
End Get
|
||||
Set(ByVal Value As SqlDateTime)
|
||||
m_daEnde = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [bFehlerhaft]() As SqlBoolean
|
||||
Get
|
||||
Return m_bFehlerhaft
|
||||
End Get
|
||||
Set(ByVal Value As SqlBoolean)
|
||||
m_bFehlerhaft = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sFehlerbeschreibung]() As SqlString
|
||||
Get
|
||||
Return m_sFehlerbeschreibung
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sFehlerbeschreibung = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
410
EDKB20/EDKB16/DB/clsJournaleintrag.vb
Normal file
410
EDKB20/EDKB16/DB/clsJournaleintrag.vb
Normal file
@@ -0,0 +1,410 @@
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Data Access class for the table 'Journaleintrag'
|
||||
' // Generated by LLBLGen v1.2.1045.38210 Final on: Sonntag, 18. Mai 2003, 09:14:59
|
||||
' // Because the Base Class already implements IDispose, this class doesn't.
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
Imports System
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlTypes
|
||||
Imports System.Data.SqlClient
|
||||
|
||||
Namespace edokadb
|
||||
' /// <summary>
|
||||
' /// Purpose: Data Access class for the table 'Journaleintrag'.
|
||||
' /// </summary>
|
||||
Public Class clsJournaleintrag
|
||||
Inherits clsDBInteractionBase
|
||||
|
||||
#Region " Class Member Declarations "
|
||||
|
||||
Private m_daDatumzeit As SqlDateTime
|
||||
Private m_iJournalnr, m_iJournaleintragnr As SqlInt32
|
||||
Private m_sEintrag As SqlString
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Class constructor.
|
||||
' /// </summary>
|
||||
Public Sub New()
|
||||
' // Nothing for now.
|
||||
End Sub
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Insert method. This method will insert one new row into the database.
|
||||
' /// </summary>
|
||||
' /// <returns>True if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iJournalnr. May be SqlInt32.Null</LI>
|
||||
' /// <LI>sEintrag. May be SqlString.Null</LI>
|
||||
' /// <LI>daDatumzeit. May be SqlDateTime.Null</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iJournaleintragnr</LI>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function Insert() As Boolean
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Journaleintrag_Insert]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ijournalnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iJournalnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@seintrag", SqlDbType.VarChar, 2048, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sEintrag))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@dadatumzeit", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daDatumzeit))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@ijournaleintragnr", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iJournaleintragnr))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iJournaleintragnr = scmCmdToExecute.Parameters.Item("@ijournaleintragnr").Value
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Journaleintrag_Insert' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsJournaleintrag::Insert::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Update method. This method will Update one existing row in the database.
|
||||
' /// </summary>
|
||||
' /// <returns>True if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iJournaleintragnr</LI>
|
||||
' /// <LI>iJournalnr. May be SqlInt32.Null</LI>
|
||||
' /// <LI>sEintrag. May be SqlString.Null</LI>
|
||||
' /// <LI>daDatumzeit. May be SqlDateTime.Null</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function Update() As Boolean
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Journaleintrag_Update]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ijournaleintragnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iJournaleintragnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ijournalnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iJournalnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@seintrag", SqlDbType.VarChar, 2048, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sEintrag))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@dadatumzeit", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 23, 3, "", DataRowVersion.Proposed, m_daDatumzeit))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Journaleintrag_Update' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsJournaleintrag::Update::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Delete method. This method will Delete one existing row in the database, based on the Primary Key.
|
||||
' /// </summary>
|
||||
' /// <returns>True if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iJournaleintragnr</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function Delete() As Boolean
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Journaleintrag_Delete]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ijournaleintragnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iJournaleintragnr))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Journaleintrag_Delete' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsJournaleintrag::Delete::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: Select method. This method will Select one existing row from the database, based on the Primary Key.
|
||||
' /// </summary>
|
||||
' /// <returns>DataTable object if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties needed for this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iJournaleintragnr</LI>
|
||||
' /// </UL>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// <LI>iJournaleintragnr</LI>
|
||||
' /// <LI>iJournalnr</LI>
|
||||
' /// <LI>sEintrag</LI>
|
||||
' /// <LI>daDatumzeit</LI>
|
||||
' /// </UL>
|
||||
' /// Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
' /// </remarks>
|
||||
Overrides Public Function SelectOne() As DataTable
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Journaleintrag_SelectOne]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("Journaleintrag")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@ijournaleintragnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iJournaleintragnr))
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
sdaAdapter.Fill(dtToReturn)
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Journaleintrag_SelectOne' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
If dtToReturn.Rows.Count > 0 Then
|
||||
m_iJournaleintragnr = New SqlInt32(CType(dtToReturn.Rows(0)("journaleintragnr"), Integer))
|
||||
If dtToReturn.Rows(0)("journalnr") Is System.DBNull.Value Then
|
||||
m_iJournalnr = SqlInt32.Null
|
||||
Else
|
||||
m_iJournalnr = New SqlInt32(CType(dtToReturn.Rows(0)("journalnr"), Integer))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("eintrag") Is System.DBNull.Value Then
|
||||
m_sEintrag = SqlString.Null
|
||||
Else
|
||||
m_sEintrag = New SqlString(CType(dtToReturn.Rows(0)("eintrag"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("datumzeit") Is System.DBNull.Value Then
|
||||
m_daDatumzeit = SqlDateTime.Null
|
||||
Else
|
||||
m_daDatumzeit = New SqlDateTime(CType(dtToReturn.Rows(0)("datumzeit"), Date))
|
||||
End If
|
||||
End If
|
||||
Return dtToReturn
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsJournaleintrag::SelectOne::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
sdaAdapter.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
' /// <summary>
|
||||
' /// Purpose: SelectAll method. This method will Select all rows from the table.
|
||||
' /// </summary>
|
||||
' /// <returns>DataTable object if succeeded, otherwise an Exception is thrown. </returns>
|
||||
' /// <remarks>
|
||||
' /// Properties set after a succesful call of this method:
|
||||
' /// <UL>
|
||||
' /// <LI>iErrorCode</LI>
|
||||
' /// </UL>
|
||||
' /// </remarks>
|
||||
Overrides Public Function SelectAll() As DataTable
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_Journaleintrag_SelectAll]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("Journaleintrag")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iErrorCode))
|
||||
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Open connection.
|
||||
m_scoMainConnection.Open()
|
||||
Else
|
||||
If m_cpMainConnectionProvider.bIsTransactionPending Then
|
||||
scmCmdToExecute.Transaction = m_cpMainConnectionProvider.stCurrentTransaction
|
||||
End If
|
||||
End If
|
||||
|
||||
' // Execute query.
|
||||
sdaAdapter.Fill(dtToReturn)
|
||||
m_iErrorCode = scmCmdToExecute.Parameters.Item("@iErrorCode").Value
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Journaleintrag_SelectAll' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return dtToReturn
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsJournaleintrag::SelectAll::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
sdaAdapter.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
#Region " Class Property Declarations "
|
||||
|
||||
Public Property [iJournaleintragnr]() As SqlInt32
|
||||
Get
|
||||
Return m_iJournaleintragnr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
Dim iJournaleintragnrTmp As SqlInt32 = Value
|
||||
If iJournaleintragnrTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("iJournaleintragnr", "iJournaleintragnr can't be NULL")
|
||||
End If
|
||||
m_iJournaleintragnr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [iJournalnr]() As SqlInt32
|
||||
Get
|
||||
Return m_iJournalnr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
m_iJournalnr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sEintrag]() As SqlString
|
||||
Get
|
||||
Return m_sEintrag
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sEintrag = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [daDatumzeit]() As SqlDateTime
|
||||
Get
|
||||
Return m_daDatumzeit
|
||||
End Get
|
||||
Set(ByVal Value As SqlDateTime)
|
||||
m_daDatumzeit = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
124
EDKB20/EDKB16/EDKB20.vbproj
Normal file
124
EDKB20/EDKB16/EDKB20.vbproj
Normal file
@@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{F8D2FD48-1136-4EC5-B600-7A0FA3B6E960}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<StartupObject>EDKB20.Module1</StartupObject>
|
||||
<RootNamespace>EDKB20</RootNamespace>
|
||||
<AssemblyName>EDKB20</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<MyType>Console</MyType>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DocumentationFile>EDKB20.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>EDKB20.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionExplicit>On</OptionExplicit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionCompare>Binary</OptionCompare>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionStrict>Off</OptionStrict>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionInfer>On</OptionInfer>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Collections.Generic" />
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
<Import Include="System.Linq" />
|
||||
<Import Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="clsDB.vb" />
|
||||
<Compile Include="clsDivFnkt.vb" />
|
||||
<Compile Include="clsParameter.vb" />
|
||||
<Compile Include="DB\clsApplikation.vb" />
|
||||
<Compile Include="DB\clsConnectionProvider.vb" />
|
||||
<Compile Include="DB\clsDBInteractionBase.vb" />
|
||||
<Compile Include="DB\clsJournal.vb" />
|
||||
<Compile Include="DB\clsJournaleintrag.vb" />
|
||||
<Compile Include="db_connection.vb" />
|
||||
<Compile Include="Globals.vb" />
|
||||
<Compile Include="Module1.vb" />
|
||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||
<Compile Include="My Project\Application.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Application.myapp</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Resources.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Settings.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="My Project\Resources.resx">
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="My Project\Application.myapp">
|
||||
<Generator>MyApplicationCodeGenerator</Generator>
|
||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="My Project\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<CustomToolNamespace>My</CustomToolNamespace>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
84
EDKB20/EDKB16/Globals.vb
Normal file
84
EDKB20/EDKB16/Globals.vb
Normal file
@@ -0,0 +1,84 @@
|
||||
Imports System.IO
|
||||
Imports System.Reflection
|
||||
'''<summary>Globale Variablen und FUnktionen</summary>
|
||||
Module Globals
|
||||
'''<summary>Datentabelle mit den EDOKA-Applikationsdaten</summary>
|
||||
Public Applikationsdaten As DataTable
|
||||
'''<summary>Datensatzzeiger in der Tabelle Applikationsdaten</summary>
|
||||
Public AppldataRow As Integer
|
||||
Public appPath As String = Path.GetDirectoryName([Assembly].GetEntryAssembly().Location) + "\"
|
||||
|
||||
'''<summary>Verbindung zur Daten EDOKA</summary>
|
||||
Public sConnectionString_edoka As String
|
||||
'''<summary>Verbindung zur Daten EDOKA_Journale</summary>
|
||||
|
||||
Public MailBody As String
|
||||
|
||||
|
||||
'''<summary>Befehlszeilenargumente</summary>
|
||||
Public args As String() = Environment.GetCommandLineArgs()
|
||||
|
||||
'''<summary>Connectionprovider für die Datenbank EDOKA</summary>
|
||||
'''<seealso
|
||||
'''cref="edokadb.clsConnectionProvider">edokadb.clsConnectionProvider</seealso>
|
||||
Public conn_edoka As New edokadb.clsConnectionProvider()
|
||||
'''<summary>Connectionprovider für die Datenbank EDOKA_Journale</summary>
|
||||
'''<seealso
|
||||
|
||||
|
||||
'''<summary>Connectionprovider für die Datenbank EDOKA_Journale</summary>
|
||||
'''<seealso
|
||||
'''cref="edokadb.clsConnectionProvider">edokadb.clsConnectionProvider</seealso>
|
||||
Public conn_journale_Mail As New edokadb.clsConnectionProvider()
|
||||
|
||||
'''<summary>Instanz des Objektes DivFnkt</summary>
|
||||
Public DivFnkt As New clsDivFnkt()
|
||||
|
||||
Public xFehler As Integer = 0
|
||||
Public Warning As Integer = 0
|
||||
Public DokumentID As String
|
||||
Public ColdDokumentID As String
|
||||
Public KeyNr As Long
|
||||
Public Params As New ClsParameters()
|
||||
Public temp_indexdaten As DataTable
|
||||
|
||||
|
||||
Public ofile As System.IO.File
|
||||
Public oread As System.IO.StreamReader
|
||||
|
||||
'''<summary>Hält die Applikationsdaten für ein zu importierendes Dokumente
|
||||
'''fest</summary>
|
||||
Public ApplData As New DataTable()
|
||||
|
||||
'''<summary>Ausgabe eines Strings mit vorgestelltem TimeStamp</summary>
|
||||
'''<param name="s"></param>
|
||||
Public Sub PrintOut(ByVal s As String)
|
||||
'Console.WriteLine(Format(Now, "yyyyMMddHHmmss") + ": " + s)
|
||||
PrintLog(Format(Now, "yyyyMMddHHmmss") + ": " + s, EventLogEntryType.Information)
|
||||
End Sub
|
||||
|
||||
Public Sub Printout(ByVal s As String, ByVal LogEntryType As EventLogEntryType)
|
||||
PrintLog(Format(Now, "yyyyMMddHHmmss") + ": " + s, LogEntryType)
|
||||
End Sub
|
||||
|
||||
Dim EVLog As New EventLog("Log_EDKB08")
|
||||
|
||||
'''<summary>Eintrag ins EventLog von EDKB08 schreiben</summary>
|
||||
'''<param name="message"></param>
|
||||
'''<param name="eventmessage"></param>
|
||||
Public Sub PrintLog(ByVal message As String, Optional ByVal eventmessage As EventLogEntryType = EventLogEntryType.Information)
|
||||
#If CONFIG = "Release" Then
|
||||
If Not EventLog.SourceExists("EDKB08") Then
|
||||
EventLog.CreateEventSource("EDKB08", "EDKB08 Log")
|
||||
End If
|
||||
EVLog.Source = "EDKB08 Log"
|
||||
EventLog.WriteEntry(EVLog.Source, message, eventmessage)
|
||||
#Else
|
||||
#End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
|
||||
End Module
|
||||
98
EDKB20/EDKB16/Module1.vb
Normal file
98
EDKB20/EDKB16/Module1.vb
Normal file
@@ -0,0 +1,98 @@
|
||||
Imports System.IO
|
||||
Module Module1
|
||||
|
||||
#Region "Deklarationen"
|
||||
|
||||
Dim db As New clsDB
|
||||
Dim conn As New DB_Connection
|
||||
Dim JobReturn As Integer = 0
|
||||
Dim Counter_Correct As Integer = 0
|
||||
|
||||
#End Region
|
||||
|
||||
Sub Main()
|
||||
write_log("Start EDKB20 - Delete EDKB09-Dateien und Verzeichnisse")
|
||||
write_log("Verzeichnis: " + My.Settings.Path_to_EDKB09)
|
||||
write_log("Daten älter als " + My.Settings.aelter_als.ToString + " Tage")
|
||||
Get_Files()
|
||||
|
||||
db.Sendmail(My.Settings.MailEmpfaenger, JobReturn, Counter_Correct)
|
||||
write_log("EDKB20 Ende")
|
||||
write_log("************")
|
||||
write_log("")
|
||||
write_log("")
|
||||
|
||||
End Sub
|
||||
|
||||
Sub Get_Files()
|
||||
Dim files() As String = IO.Directory.GetFiles(My.Settings.Path_to_EDKB09)
|
||||
Dim debugmode As Boolean = UCase(My.Settings.DebugMode) = "TRUE"
|
||||
For Each ifile As String In files
|
||||
Dim ext As String = System.IO.Path.GetExtension(ifile)
|
||||
If UCase(ext) = ".XML" Then
|
||||
Dim fileCreatedDate As DateTime = File.GetCreationTime(ifile)
|
||||
Dim FileModifeidDate As DateTime = File.GetLastWriteTime(ifile)
|
||||
Dim DoFileAccess As Boolean = False
|
||||
If (UCase(My.Settings.Use_Create_Date) = "TRUE" And fileCreatedDate < DateAdd(DateInterval.Day, My.Settings.aelter_als * -1, Now)) Then
|
||||
DoFileAccess = True
|
||||
End If
|
||||
If (UCase(My.Settings.Use_Modified_Date) = "TRUE" And FileModifeidDate < DateAdd(DateInterval.Day, My.Settings.aelter_als * -1, Now)) Then
|
||||
DoFileAccess = True
|
||||
End If
|
||||
If DoFileAccess = True Then
|
||||
If all_documents_in_edoka(ifile) Then
|
||||
Try
|
||||
If Not debugmode Then System.IO.File.Delete(ifile)
|
||||
write_log("Datei gelöscht:" + ifile)
|
||||
Catch ex As Exception
|
||||
write_log("Datei nicht gelöscht:" + ifile + " " + ex.Message)
|
||||
End Try
|
||||
Dim fn As String = System.IO.Path.GetFileName(ifile)
|
||||
Dim words As String() = fn.Split("_")
|
||||
|
||||
Dim FileLocation As DirectoryInfo = New DirectoryInfo(My.Settings.Path_to_EDKB09)
|
||||
Dim fi As FileInfo() = FileLocation.GetFiles(words(0).ToString + "_*.*")
|
||||
|
||||
For Each f In fi
|
||||
Try
|
||||
If Not debugmode Then System.IO.File.Delete(f.FullName)
|
||||
write_log("Datei gelöscht:" + f.FullName)
|
||||
Catch ex As Exception
|
||||
write_log("Datei nicht gelöscht:" + f.FullName + " " + ex.Message)
|
||||
End Try
|
||||
Next
|
||||
Try
|
||||
If Not debugmode Then System.IO.Directory.Delete(My.Settings.Path_to_EDKB09 + words(0), True)
|
||||
write_log("Directory gelöscht: " + My.Settings.Path_to_EDKB09 + words(0))
|
||||
Catch ex As Exception
|
||||
write_log("Directory nicht gelöscht: " + My.Settings.Path_to_EDKB09 + words(0))
|
||||
|
||||
End Try
|
||||
Else
|
||||
write_log("Nicht alle Dokumente in EDOKA - keine Löschung durchgeführt: " + ifile)
|
||||
End If
|
||||
|
||||
End If
|
||||
End If
|
||||
|
||||
Next
|
||||
End Sub
|
||||
|
||||
Function all_documents_in_edoka(ByVal filename As String) As Boolean
|
||||
Dim all_docs_exists As Boolean = True
|
||||
Dim ds As New DataSet
|
||||
ds.ReadXml(filename)
|
||||
For Each r As DataRow In ds.Tables(0).Rows
|
||||
If db.Check_File(r.Item("Dokumentid")) = False Then all_docs_exists = False
|
||||
Next
|
||||
Return all_docs_exists
|
||||
End Function
|
||||
|
||||
Public Sub write_log(ByVal s As String)
|
||||
If UCase(My.Settings.WriteLog) = "TRUE" Then
|
||||
FileOpen(1, My.Settings.LogFile, OpenMode.Append)
|
||||
WriteLine(1, Now.ToShortDateString + " : " + s)
|
||||
FileClose(1)
|
||||
End If
|
||||
End Sub
|
||||
End Module
|
||||
13
EDKB20/EDKB16/My Project/Application.Designer.vb
generated
Normal file
13
EDKB20/EDKB16/My Project/Application.Designer.vb
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' Dieser Code wurde von einem Tool generiert.
|
||||
' Laufzeitversion:4.0.30319.42000
|
||||
'
|
||||
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
' der Code erneut generiert wird.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
10
EDKB20/EDKB16/My Project/Application.myapp
Normal file
10
EDKB20/EDKB16/My Project/Application.myapp
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<MySubMain>false</MySubMain>
|
||||
<SingleInstance>false</SingleInstance>
|
||||
<ShutdownMode>0</ShutdownMode>
|
||||
<EnableVisualStyles>true</EnableVisualStyles>
|
||||
<AuthenticationMode>0</AuthenticationMode>
|
||||
<ApplicationType>2</ApplicationType>
|
||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||
</MyApplicationData>
|
||||
35
EDKB20/EDKB16/My Project/AssemblyInfo.vb
Normal file
35
EDKB20/EDKB16/My Project/AssemblyInfo.vb
Normal file
@@ -0,0 +1,35 @@
|
||||
Imports System
|
||||
Imports System.Reflection
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
' Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||
' Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
' die mit einer Assembly verknüpft sind.
|
||||
|
||||
' Die Werte der Assemblyattribute überprüfen
|
||||
|
||||
<Assembly: AssemblyTitle("EDKB16")>
|
||||
<Assembly: AssemblyDescription("")>
|
||||
<Assembly: AssemblyCompany("")>
|
||||
<Assembly: AssemblyProduct("EDKB16")>
|
||||
<Assembly: AssemblyCopyright("Copyright © 2015")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
|
||||
<Assembly: ComVisible(False)>
|
||||
|
||||
'Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
<Assembly: Guid("db500746-6965-440f-8f51-fc130c71efcd")>
|
||||
|
||||
' Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
'
|
||||
' Hauptversion
|
||||
' Nebenversion
|
||||
' Buildnummer
|
||||
' Revision
|
||||
'
|
||||
' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
' übernehmen, indem Sie "*" eingeben:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("1.0.0.0")>
|
||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||
63
EDKB20/EDKB16/My Project/Resources.Designer.vb
generated
Normal file
63
EDKB20/EDKB16/My Project/Resources.Designer.vb
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' Dieser Code wurde von einem Tool generiert.
|
||||
' Laufzeitversion:4.0.30319.42000
|
||||
'
|
||||
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
' der Code erneut generiert wird.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
Imports System
|
||||
|
||||
Namespace My.Resources
|
||||
|
||||
'Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
|
||||
'-Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||
'Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||
'mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||
'''<summary>
|
||||
''' Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
'''</summary>
|
||||
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0"), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||
Friend Module Resources
|
||||
|
||||
Private resourceMan As Global.System.Resources.ResourceManager
|
||||
|
||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||
|
||||
'''<summary>
|
||||
''' Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||
Get
|
||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("EDKB20.Resources", GetType(Resources).Assembly)
|
||||
resourceMan = temp
|
||||
End If
|
||||
Return resourceMan
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
''' Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||
Get
|
||||
Return resourceCulture
|
||||
End Get
|
||||
Set
|
||||
resourceCulture = value
|
||||
End Set
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
117
EDKB20/EDKB16/My Project/Resources.resx
Normal file
117
EDKB20/EDKB16/My Project/Resources.resx
Normal file
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
169
EDKB20/EDKB16/My Project/Settings.Designer.vb
generated
Normal file
169
EDKB20/EDKB16/My Project/Settings.Designer.vb
generated
Normal file
@@ -0,0 +1,169 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' Dieser Code wurde von einem Tool generiert.
|
||||
' Laufzeitversion:4.0.30319.42000
|
||||
'
|
||||
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
' der Code erneut generiert wird.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.3.0.0"), _
|
||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Partial Friend NotInheritable Class MySettings
|
||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||
|
||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||
|
||||
#Region "Automatische My.Settings-Speicherfunktion"
|
||||
#If _MyType = "WindowsForms" Then
|
||||
Private Shared addedHandler As Boolean
|
||||
|
||||
Private Shared addedHandlerLockObject As New Object
|
||||
|
||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
|
||||
If My.Application.SaveMySettingsOnExit Then
|
||||
My.Settings.Save()
|
||||
End If
|
||||
End Sub
|
||||
#End If
|
||||
#End Region
|
||||
|
||||
Public Shared ReadOnly Property [Default]() As MySettings
|
||||
Get
|
||||
|
||||
#If _MyType = "WindowsForms" Then
|
||||
If Not addedHandler Then
|
||||
SyncLock addedHandlerLockObject
|
||||
If Not addedHandler Then
|
||||
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||
addedHandler = True
|
||||
End If
|
||||
End SyncLock
|
||||
End If
|
||||
#End If
|
||||
Return defaultInstance
|
||||
End Get
|
||||
End Property
|
||||
|
||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Configuration.DefaultSettingValueAttribute("stefan.hutter@tkb.ch")> _
|
||||
Public Property MailEmpfaenger() As String
|
||||
Get
|
||||
Return CType(Me("MailEmpfaenger"),String)
|
||||
End Get
|
||||
Set
|
||||
Me("MailEmpfaenger") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Configuration.DefaultSettingValueAttribute("True")> _
|
||||
Public Property DebugMode() As String
|
||||
Get
|
||||
Return CType(Me("DebugMode"),String)
|
||||
End Get
|
||||
Set
|
||||
Me("DebugMode") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Configuration.DefaultSettingValueAttribute("k:\edoka\edkb20.log")> _
|
||||
Public Property LogFile() As String
|
||||
Get
|
||||
Return CType(Me("LogFile"),String)
|
||||
End Get
|
||||
Set
|
||||
Me("LogFile") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Configuration.DefaultSettingValueAttribute("k:\edoka\edkb09\")> _
|
||||
Public Property Path_to_EDKB09() As String
|
||||
Get
|
||||
Return CType(Me("Path_to_EDKB09"),String)
|
||||
End Get
|
||||
Set
|
||||
Me("Path_to_EDKB09") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Configuration.DefaultSettingValueAttribute("20")> _
|
||||
Public Property aelter_als() As String
|
||||
Get
|
||||
Return CType(Me("aelter_als"),String)
|
||||
End Get
|
||||
Set
|
||||
Me("aelter_als") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Configuration.DefaultSettingValueAttribute("True")> _
|
||||
Public Property WriteLog() As String
|
||||
Get
|
||||
Return CType(Me("WriteLog"),String)
|
||||
End Get
|
||||
Set
|
||||
Me("WriteLog") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Configuration.DefaultSettingValueAttribute("False")> _
|
||||
Public Property Use_Create_Date() As String
|
||||
Get
|
||||
Return CType(Me("Use_Create_Date"),String)
|
||||
End Get
|
||||
Set
|
||||
Me("Use_Create_Date") = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Configuration.DefaultSettingValueAttribute("True")> _
|
||||
Public Property Use_Modified_Date() As String
|
||||
Get
|
||||
Return CType(Me("Use_Modified_Date"),String)
|
||||
End Get
|
||||
Set
|
||||
Me("Use_Modified_Date") = value
|
||||
End Set
|
||||
End Property
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||
Friend Module MySettingsProperty
|
||||
|
||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||
Friend ReadOnly Property Settings() As Global.EDKB20.My.MySettings
|
||||
Get
|
||||
Return Global.EDKB20.My.MySettings.Default
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
30
EDKB20/EDKB16/My Project/Settings.settings
Normal file
30
EDKB20/EDKB16/My Project/Settings.settings
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="My" GeneratedClassName="MySettings" UseMySettingsClassName="true">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="MailEmpfaenger" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">stefan.hutter@tkb.ch</Value>
|
||||
</Setting>
|
||||
<Setting Name="DebugMode" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="LogFile" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">k:\edoka\edkb20.log</Value>
|
||||
</Setting>
|
||||
<Setting Name="Path_to_EDKB09" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">k:\edoka\edkb09\</Value>
|
||||
</Setting>
|
||||
<Setting Name="aelter_als" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">20</Value>
|
||||
</Setting>
|
||||
<Setting Name="WriteLog" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="Use_Create_Date" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
<Setting Name="Use_Modified_Date" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
58
EDKB20/EDKB16/app.config
Normal file
58
EDKB20/EDKB16/app.config
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||
<section name="EDKB20.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<system.diagnostics>
|
||||
<sources>
|
||||
<!-- Dieser Abschnitt definiert die Protokollierungskonfiguration für My.Application.Log -->
|
||||
<source name="DefaultSource" switchName="DefaultSwitch">
|
||||
<listeners>
|
||||
<add name="FileLog"/>
|
||||
<!-- Auskommentierung des nachfolgenden Abschnitts aufheben, um in das Anwendungsereignisprotokoll zu schreiben -->
|
||||
<!--<add name="EventLog"/>-->
|
||||
</listeners>
|
||||
</source>
|
||||
</sources>
|
||||
<switches>
|
||||
<add name="DefaultSwitch" value="Information" />
|
||||
</switches>
|
||||
<sharedListeners>
|
||||
<add name="FileLog"
|
||||
type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
|
||||
initializeData="FileLogWriter"/>
|
||||
<!-- Auskommentierung des nachfolgenden Abschnitts aufheben und APPLICATION_NAME durch den Namen der Anwendung ersetzen, um in das Anwendungsereignisprotokoll zu schreiben -->
|
||||
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
|
||||
</sharedListeners>
|
||||
</system.diagnostics>
|
||||
<userSettings>
|
||||
<EDKB20.My.MySettings>
|
||||
<setting name="MailEmpfaenger" serializeAs="String">
|
||||
<value>stefan.hutter@tkb.ch</value>
|
||||
</setting>
|
||||
<setting name="DebugMode" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="LogFile" serializeAs="String">
|
||||
<value>k:\edoka\edkb20.log</value>
|
||||
</setting>
|
||||
<setting name="Path_to_EDKB09" serializeAs="String">
|
||||
<value>k:\edoka\edkb09\</value>
|
||||
</setting>
|
||||
<setting name="aelter_als" serializeAs="String">
|
||||
<value>20</value>
|
||||
</setting>
|
||||
<setting name="WriteLog" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="Use_Create_Date" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="Use_Modified_Date" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
</EDKB20.My.MySettings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
BIN
EDKB20/EDKB16/bin/Debug/EDKB20.exe
Normal file
BIN
EDKB20/EDKB16/bin/Debug/EDKB20.exe
Normal file
Binary file not shown.
58
EDKB20/EDKB16/bin/Debug/EDKB20.exe.config
Normal file
58
EDKB20/EDKB16/bin/Debug/EDKB20.exe.config
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||
<section name="EDKB20.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<system.diagnostics>
|
||||
<sources>
|
||||
<!-- Dieser Abschnitt definiert die Protokollierungskonfiguration für My.Application.Log -->
|
||||
<source name="DefaultSource" switchName="DefaultSwitch">
|
||||
<listeners>
|
||||
<add name="FileLog"/>
|
||||
<!-- Auskommentierung des nachfolgenden Abschnitts aufheben, um in das Anwendungsereignisprotokoll zu schreiben -->
|
||||
<!--<add name="EventLog"/>-->
|
||||
</listeners>
|
||||
</source>
|
||||
</sources>
|
||||
<switches>
|
||||
<add name="DefaultSwitch" value="Information" />
|
||||
</switches>
|
||||
<sharedListeners>
|
||||
<add name="FileLog"
|
||||
type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
|
||||
initializeData="FileLogWriter"/>
|
||||
<!-- Auskommentierung des nachfolgenden Abschnitts aufheben und APPLICATION_NAME durch den Namen der Anwendung ersetzen, um in das Anwendungsereignisprotokoll zu schreiben -->
|
||||
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
|
||||
</sharedListeners>
|
||||
</system.diagnostics>
|
||||
<userSettings>
|
||||
<EDKB20.My.MySettings>
|
||||
<setting name="MailEmpfaenger" serializeAs="String">
|
||||
<value>stefan.hutter@tkb.ch</value>
|
||||
</setting>
|
||||
<setting name="DebugMode" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="LogFile" serializeAs="String">
|
||||
<value>k:\edoka\edkb20.log</value>
|
||||
</setting>
|
||||
<setting name="Path_to_EDKB09" serializeAs="String">
|
||||
<value>k:\edoka\edkb09\</value>
|
||||
</setting>
|
||||
<setting name="aelter_als" serializeAs="String">
|
||||
<value>20</value>
|
||||
</setting>
|
||||
<setting name="WriteLog" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="Use_Create_Date" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="Use_Modified_Date" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
</EDKB20.My.MySettings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
BIN
EDKB20/EDKB16/bin/Debug/EDKB20.pdb
Normal file
BIN
EDKB20/EDKB16/bin/Debug/EDKB20.pdb
Normal file
Binary file not shown.
186
EDKB20/EDKB16/bin/Debug/EDKB20.xml
Normal file
186
EDKB20/EDKB16/bin/Debug/EDKB20.xml
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
EDKB20
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:EDKB20.My.Resources.Resources">
|
||||
<summary>
|
||||
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.My.Resources.Resources.ResourceManager">
|
||||
<summary>
|
||||
Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.My.Resources.Resources.Culture">
|
||||
<summary>
|
||||
Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:EDKB20.clsDivFnkt">
|
||||
<summary>Diverse allgemeine Funktionen</summary>
|
||||
<remarks>Diesee Klasse kapselt diverse, allgemeine Funktionen, welche aus
|
||||
diversen anderen Klassen genutzt werden.$EOL$
|
||||
<para>Die Instanzierung der Klasse erfolgt über das Module <see
|
||||
cref="T:EDKB20.Globals">Globals.vb</see></para></remarks>
|
||||
<seealso cref="F:EDKB20.Globals.DivFnkt">Globals.DivFnkt</seealso>
|
||||
</member>
|
||||
<member name="M:EDKB20.clsDivFnkt.ApplicationPath">
|
||||
<summary>Generieren der EDOKA-DokumentID</summary>
|
||||
<remarks>Diese Methode generiert eine neue eindeutige, 22-stellige
|
||||
EDOKA-Dokumentid. $EOL$
|
||||
<para>Die Letzte ziffer ist eine Prüfziffer</para></remarks>
|
||||
<returns>DokumentID für EDOKA</returns>
|
||||
<seealso
|
||||
cref="!:clsDivFnkt.Pruefziffer">Prüfziffer-Berechnung</seealso>
|
||||
</member>
|
||||
<member name="T:EDKB20.ClsParameters">
|
||||
<summary>Klasse zum auselesen der Steuerparameter aus der Datei
|
||||
\bin\parameters.cfg</summary>
|
||||
<author>Stefan Hutter</author>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.ofile">
|
||||
<summary>Interne Variable zum Auslesen der Datei</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.oread">
|
||||
<summary>Interne Variable zum Auslesen der Datei</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_applicationid">
|
||||
<summary>Interne Variable für das Property Application ID</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.ApplicationID">
|
||||
<summary>ApplikationsID für die Journalisierung</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_Inputverzeichnis">
|
||||
<summary>Interne Variable für das Property Inputverzeichnis</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Inputverzeichnis">
|
||||
<summary>Inputverzeichnis, in welchem die Dokumente und Indexdateien gespeichert
|
||||
sind</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_MailadresseOK">
|
||||
<summary>Interne Variable für das Property MailadresseOK</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.MailAdresseOK">
|
||||
<summary>EMail-Adresse, an die ein Mail gesendet wird, sofern die Verarbeitung
|
||||
ordnungsgemäss durchgelaufen ist</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_MailadresseNOK">
|
||||
<summary>Interne Variable für das Property MailadresseNOK</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.MailAdresseNOK">
|
||||
<summary>Mailadresse, an die im Fehlerfall ein Mail gesendet wird</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_meldung">
|
||||
<summary>Interne Variable für das Property Meldung</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Meldung">
|
||||
<summary>Allfälliger Meldungstext, welcher beim Laden der Parameter generiert
|
||||
wird</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_temppfad">
|
||||
<summary>Interne Variable für das Property Temppfad</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.TempPfad">
|
||||
<summary>Pfad für temporäre Dateien</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_mailserver">
|
||||
<summary>Interne Variable für das Property Mailserver</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Mailserver">
|
||||
<summary>SMTP-Mailserver für den Journalversand</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_journaltimer_time">
|
||||
<summary>Interne Variable für das Property Journaltimer_time</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.JournalTimer_Time">
|
||||
<summary>Journaltimer-Zeit in Milisekunden</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_deleteoriginalfiles">
|
||||
<summary>Interne Variable für das Property DeleteOriginalfiles</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.DeleteOriginalfiles">
|
||||
<summary>DeleteOriginalfiles</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_gsf_ConfigPath">
|
||||
<summary>Interne Variable für das Property GSF Config File Path</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Prop_gsf_ConfigPath">
|
||||
<summary>gsf ConfigPath</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_gsf_TimerInterval">
|
||||
<summary>Interne Variable für das Property GSF Timer Intervall</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Prop_gsf_TimerInterval">
|
||||
<summary>gsf Timer Interval</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_gsf_ConfigDateiendung">
|
||||
<summary>Interne Variable für das Property GSF DateiEndung</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Prop_gsf_ConfigDateiendung">
|
||||
<summary>gsf DateiEndung</summary>
|
||||
</member>
|
||||
<member name="M:EDKB20.ClsParameters.Loadparameters">
|
||||
<summary>Laden der Parameterdaten aus parameters.cfg</summary>
|
||||
<remarks>Die Funktion lädt für die Anwendung die notwendigen Parameter aus der
|
||||
Datei "Parameters.cfg"</remarks>
|
||||
<returns>True im OK-Fall
|
||||
False im Fehlerfall</returns>
|
||||
</member>
|
||||
<member name="M:EDKB20.ClsParameters.ParamValue(System.String)">
|
||||
<summary>Parameterbezeichnung und Parameterwert trennen</summary>
|
||||
<param name="sinput">Inputstring mit Parameterbezeichnung und
|
||||
Parameterwert</param>
|
||||
<returns>Parameterwert als String</returns>
|
||||
</member>
|
||||
<member name="T:EDKB20.Globals">
|
||||
<summary>Globale Variablen und FUnktionen</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.Applikationsdaten">
|
||||
<summary>Datentabelle mit den EDOKA-Applikationsdaten</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.AppldataRow">
|
||||
<summary>Datensatzzeiger in der Tabelle Applikationsdaten</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.sConnectionString_edoka">
|
||||
<summary>Verbindung zur Daten EDOKA</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.MailBody">
|
||||
<summary>Verbindung zur Daten EDOKA_Journale</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.args">
|
||||
<summary>Befehlszeilenargumente</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.conn_edoka">
|
||||
<summary>Connectionprovider für die Datenbank EDOKA</summary>
|
||||
<seealso
|
||||
cref="T:EDKB20.edokadb.clsConnectionProvider">edokadb.clsConnectionProvider</seealso>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.conn_journale_Mail">
|
||||
<summary>Connectionprovider für die Datenbank EDOKA_Journale</summary>
|
||||
<seealso
|
||||
cref="T:EDKB20.edokadb.clsConnectionProvider">edokadb.clsConnectionProvider</seealso>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.DivFnkt">
|
||||
<summary>Instanz des Objektes DivFnkt</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.ApplData">
|
||||
<summary>Hält die Applikationsdaten für ein zu importierendes Dokumente
|
||||
fest</summary>
|
||||
</member>
|
||||
<member name="M:EDKB20.Globals.PrintOut(System.String)">
|
||||
<summary>Ausgabe eines Strings mit vorgestelltem TimeStamp</summary>
|
||||
<param name="s"></param>
|
||||
</member>
|
||||
<member name="M:EDKB20.Globals.PrintLog(System.String,System.Diagnostics.EventLogEntryType)">
|
||||
<summary>Eintrag ins EventLog von EDKB08 schreiben</summary>
|
||||
<param name="message"></param>
|
||||
<param name="eventmessage"></param>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
BIN
EDKB20/EDKB16/bin/Debug/EDKB20.zip
Normal file
BIN
EDKB20/EDKB16/bin/Debug/EDKB20.zip
Normal file
Binary file not shown.
1
EDKB20/EDKB16/bin/Debug/edokaconn.cfg
Normal file
1
EDKB20/EDKB16/bin/Debug/edokaconn.cfg
Normal file
@@ -0,0 +1 @@
|
||||
data source=shu00;initial catalog=edoka;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29
|
||||
77
EDKB20/EDKB16/clsDB.vb
Normal file
77
EDKB20/EDKB16/clsDB.vb
Normal file
@@ -0,0 +1,77 @@
|
||||
Imports System.Data.Sql
|
||||
Imports System.Data.SqlTypes
|
||||
Imports System.Data.SqlClient
|
||||
Public Class clsDB
|
||||
Public EDOKA_Data As New DataTable
|
||||
Public AVQ_Data As New DataTable
|
||||
|
||||
|
||||
|
||||
Public Function Check_File(ByVal Dokumentid As String) As Boolean
|
||||
Try
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
'Dim conn As New SqlConnection(My.Settings.EDOKA_Connection)
|
||||
Dim conn As New SqlConnection(Globals.sConnectionString_edoka)
|
||||
Dim i As Integer
|
||||
Dim sdaAdapter As SqlDataAdapter = New SqlDataAdapter(scmCmdToExecute)
|
||||
scmCmdToExecute.CommandText = "select * from dokument where dokumentid='" + Dokumentid + "'"
|
||||
scmCmdToExecute.CommandType = CommandType.Text
|
||||
scmCmdToExecute.Connection = conn
|
||||
sdaAdapter.Fill(EDOKA_Data)
|
||||
If EDOKA_Data.Rows.Count > 0 Then
|
||||
Return True
|
||||
Else
|
||||
Return False
|
||||
End If
|
||||
Catch ex As Exception
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
Public Function Sendmail(ByVal email As String, ByVal msg As Integer, ByVal counter As Integer) As Boolean
|
||||
'Mails im Fehler- bzw. im OK-Fall versenden
|
||||
Dim meldung As String = ""
|
||||
Dim betreff As String = ""
|
||||
Select Case msg
|
||||
Case 0
|
||||
betreff = "EDKB16 - Return 0: EDOKA/DOCM-Generierung durchgeführt / " + Format(Now, "yyyyMMddHHmmss")
|
||||
meldung = "Die Verarbeitung EDKB16 wurde ordnungsgemäss durchgeführt:" + vbCrLf + vbCrLf + _
|
||||
"Anzahl korrekt verarbeitet: " + counter.ToString + vbCrLf + vbCrLf + _
|
||||
"Dieses Mail wurde durch den Job EDKB16 ausgelöst" + vbCrLf + _
|
||||
"------------------------------------------------"
|
||||
Case 1
|
||||
betreff = "EDKB16 - Return 16: Fehler bei der Verarbeitung EDKB16 / " + Format(Now, "yyyyMMddHHmmss")
|
||||
meldung = "Die Verarbeitung EDKB16 wurde nicht ordnungsgemäss durchgeführt:" + vbCrLf + vbCrLf + _
|
||||
"Anzahl korrekt verarbeitet: " + counter.ToString + vbCrLf + vbCrLf + _
|
||||
MailBody + vbCrLf + vbCrLf + _
|
||||
"Dieses Mail wurde durch den Job EDKB16 ausgelöst" + vbCrLf + _
|
||||
"------------------------------------------------"
|
||||
End Select
|
||||
|
||||
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand
|
||||
scmCmdToExecute.CommandText = "dbo.SP_SendMail"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = New DataTable
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@email", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, email))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@betreff", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, betreff))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@meldung", SqlDbType.VarChar, 1024, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, meldung))
|
||||
scmCmdToExecute.Connection = conn_edoka.scoDBConnection
|
||||
Try
|
||||
conn_edoka.OpenConnection()
|
||||
Catch
|
||||
End Try
|
||||
Sendmail = True
|
||||
Try
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
Catch ex As Exception
|
||||
Sendmail = False
|
||||
Finally
|
||||
scmCmdToExecute.Dispose()
|
||||
conn_edoka.CloseConnection(True)
|
||||
End Try
|
||||
End Function
|
||||
|
||||
End Class
|
||||
28
EDKB20/EDKB16/clsDivFnkt.vb
Normal file
28
EDKB20/EDKB16/clsDivFnkt.vb
Normal file
@@ -0,0 +1,28 @@
|
||||
Imports System.IO
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Data.SqlTypes
|
||||
Imports System.Reflection
|
||||
|
||||
'''<summary>Diverse allgemeine Funktionen</summary>
|
||||
'''<remarks>Diesee Klasse kapselt diverse, allgemeine Funktionen, welche aus
|
||||
'''diversen anderen Klassen genutzt werden.$EOL$
|
||||
'''<para>Die Instanzierung der Klasse erfolgt über das Module <see
|
||||
'''cref="Globals">Globals.vb</see></para></remarks>
|
||||
'''<seealso cref="Globals.DivFnkt">Globals.DivFnkt</seealso>
|
||||
Public Class clsDivFnkt
|
||||
'''<summary>Generieren der EDOKA-DokumentID</summary>
|
||||
'''<remarks>Diese Methode generiert eine neue eindeutige, 22-stellige
|
||||
'''EDOKA-Dokumentid. $EOL$
|
||||
'''<para>Die Letzte ziffer ist eine Prüfziffer</para></remarks>
|
||||
'''<returns>DokumentID für EDOKA</returns>
|
||||
'''<seealso
|
||||
'''cref="clsDivFnkt.Pruefziffer">Prüfziffer-Berechnung</seealso>
|
||||
|
||||
|
||||
Public Function ApplicationPath() As String
|
||||
'Return Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)
|
||||
Return Path.GetDirectoryName([Assembly].GetEntryAssembly().Location) + "\"
|
||||
End Function
|
||||
|
||||
End Class
|
||||
|
||||
216
EDKB20/EDKB16/clsParameter.vb
Normal file
216
EDKB20/EDKB16/clsParameter.vb
Normal file
@@ -0,0 +1,216 @@
|
||||
Imports System.IO
|
||||
|
||||
'''<summary>Klasse zum auselesen der Steuerparameter aus der Datei
|
||||
'''\bin\parameters.cfg</summary>
|
||||
'''<author>Stefan Hutter</author>
|
||||
Public Class ClsParameters
|
||||
|
||||
#Region "Deklarationen"
|
||||
|
||||
'''<summary>Interne Variable zum Auslesen der Datei</summary>
|
||||
Dim ofile As System.IO.File
|
||||
'''<summary>Interne Variable zum Auslesen der Datei</summary>
|
||||
Dim oread As System.IO.StreamReader
|
||||
|
||||
'''<summary>Interne Variable für das Property Application ID</summary>
|
||||
Dim m_applicationid As String
|
||||
'''<summary>ApplikationsID für die Journalisierung</summary>
|
||||
Property ApplicationID() As String
|
||||
Get
|
||||
Return m_applicationid
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_applicationid = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property Inputverzeichnis</summary>
|
||||
Dim m_Inputverzeichnis As String
|
||||
'''<summary>Inputverzeichnis, in welchem die Dokumente und Indexdateien gespeichert
|
||||
'''sind</summary>
|
||||
Property Inputverzeichnis() As String
|
||||
Get
|
||||
Return m_Inputverzeichnis
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_Inputverzeichnis = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property MailadresseOK</summary>
|
||||
Dim m_MailadresseOK As String
|
||||
'''<summary>EMail-Adresse, an die ein Mail gesendet wird, sofern die Verarbeitung
|
||||
'''ordnungsgemäss durchgelaufen ist</summary>
|
||||
Property MailAdresseOK() As String
|
||||
Get
|
||||
Return m_MailadresseOK
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_MailadresseOK = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property MailadresseNOK</summary>
|
||||
Dim m_MailadresseNOK As String
|
||||
'''<summary>Mailadresse, an die im Fehlerfall ein Mail gesendet wird</summary>
|
||||
Property MailAdresseNOK() As String
|
||||
Get
|
||||
Return m_MailadresseNOK
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_MailadresseNOK = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property Meldung</summary>
|
||||
Dim m_meldung As String
|
||||
'''<summary>Allfälliger Meldungstext, welcher beim Laden der Parameter generiert
|
||||
'''wird</summary>
|
||||
Property Meldung() As String
|
||||
Get
|
||||
Return m_meldung
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_meldung = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property Temppfad</summary>
|
||||
Dim m_temppfad As String
|
||||
'''<summary>Pfad für temporäre Dateien</summary>
|
||||
Property TempPfad() As String
|
||||
Get
|
||||
Return m_temppfad
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_temppfad = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property Mailserver</summary>
|
||||
Dim m_mailserver As String
|
||||
'''<summary>SMTP-Mailserver für den Journalversand</summary>
|
||||
Property Mailserver() As String
|
||||
Get
|
||||
Return m_mailserver
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_mailserver = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Dim m_mailabsender As String
|
||||
Property Mailabsender() As String
|
||||
Get
|
||||
Return m_mailabsender
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_mailabsender = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property Journaltimer_time</summary>
|
||||
Dim m_journaltimer_time As Integer = 60 * 60 * 1000
|
||||
'''<summary>Journaltimer-Zeit in Milisekunden</summary>
|
||||
Property JournalTimer_Time() As Integer
|
||||
Get
|
||||
Return m_journaltimer_time
|
||||
End Get
|
||||
Set(ByVal Value As Integer)
|
||||
m_journaltimer_time = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property DeleteOriginalfiles</summary>
|
||||
Dim m_deleteoriginalfiles As Integer = 0
|
||||
'''<summary>DeleteOriginalfiles</summary>
|
||||
Property DeleteOriginalfiles() As Integer
|
||||
Get
|
||||
Return m_deleteoriginalfiles
|
||||
End Get
|
||||
Set(ByVal Value As Integer)
|
||||
m_deleteoriginalfiles = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property GSF Config File Path</summary>
|
||||
Dim m_gsf_ConfigPath As String
|
||||
'''<summary>gsf ConfigPath</summary>
|
||||
Property Prop_gsf_ConfigPath() As String
|
||||
Get
|
||||
Return m_gsf_ConfigPath
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_gsf_ConfigPath = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property GSF Timer Intervall</summary>
|
||||
Dim m_gsf_TimerInterval As Integer = 0
|
||||
'''<summary>gsf Timer Interval</summary>
|
||||
Property Prop_gsf_TimerInterval() As Integer
|
||||
Get
|
||||
Return m_gsf_TimerInterval
|
||||
End Get
|
||||
Set(ByVal Value As Integer)
|
||||
m_gsf_TimerInterval = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>Interne Variable für das Property GSF DateiEndung</summary>
|
||||
Dim m_gsf_ConfigDateiendung As String
|
||||
'''<summary>gsf DateiEndung</summary>
|
||||
Property Prop_gsf_ConfigDateiendung() As String
|
||||
Get
|
||||
Return m_gsf_ConfigDateiendung
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_gsf_ConfigDateiendung = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
'''<summary>Laden der Parameterdaten aus parameters.cfg</summary>
|
||||
'''<remarks>Die Funktion lädt für die Anwendung die notwendigen Parameter aus der
|
||||
'''Datei "Parameters.cfg"</remarks>
|
||||
'''<returns>True im OK-Fall
|
||||
'''False im Fehlerfall</returns>
|
||||
Public Function Loadparameters() As Boolean
|
||||
Try
|
||||
oread = System.IO.File.OpenText(DivFnkt.ApplicationPath + "parameters.cfg")
|
||||
'oread = ofile.OpenText(args(1) + "parameters.cfg")
|
||||
Me.ApplicationID = ParamValue(oread.ReadLine)
|
||||
Me.Inputverzeichnis = ParamValue(oread.ReadLine)
|
||||
If Right(Me.Inputverzeichnis, 1) <> "\" Then Me.Inputverzeichnis = Me.Inputverzeichnis + "\"
|
||||
Me.TempPfad = ParamValue(oread.ReadLine)
|
||||
Me.JournalTimer_Time = ParamValue(oread.ReadLine) * 60 * 1000
|
||||
Me.Mailabsender = ParamValue(oread.ReadLine)
|
||||
Me.Mailserver = ParamValue(oread.ReadLine)
|
||||
Me.DeleteOriginalfiles = ParamValue(oread.ReadLine)
|
||||
Me.MailAdresseOK = ParamValue(oread.ReadLine)
|
||||
Me.MailAdresseNOK = ParamValue(oread.ReadLine)
|
||||
Me.Prop_gsf_ConfigPath = ParamValue(oread.ReadLine)
|
||||
Me.Prop_gsf_TimerInterval = ParamValue(oread.ReadLine) * 60 * 1000
|
||||
Me.Prop_gsf_ConfigDateiendung = ParamValue(oread.ReadLine)
|
||||
oread.Close()
|
||||
Me.Meldung = "Parameter auslesen i.O."
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
Me.Meldung = ex.Message
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
'''<summary>Parameterbezeichnung und Parameterwert trennen</summary>
|
||||
'''<param name="sinput">Inputstring mit Parameterbezeichnung und
|
||||
'''Parameterwert</param>
|
||||
'''<returns>Parameterwert als String</returns>
|
||||
Private Function ParamValue(ByVal sinput As String) As String
|
||||
Dim splitter As String()
|
||||
splitter = Split(sinput, "=")
|
||||
ParamValue = splitter(1)
|
||||
End Function
|
||||
End Class
|
||||
28
EDKB20/EDKB16/db_connection.vb
Normal file
28
EDKB20/EDKB16/db_connection.vb
Normal file
@@ -0,0 +1,28 @@
|
||||
Imports System.ComponentModel
|
||||
Imports Microsoft.VisualBasic
|
||||
|
||||
Public Class DB_Connection
|
||||
Shared Sub New()
|
||||
Try
|
||||
'Edoka
|
||||
oread = IO.File.OpenText(appPath + "edokaconn.cfg")
|
||||
sConnectionString_edoka = oread.ReadLine
|
||||
Globals.sConnectionString_edoka = sConnectionString_edoka
|
||||
oread.Close()
|
||||
|
||||
|
||||
''tgdata
|
||||
'oread = IO.File.OpenText(appPath + "tgdataconn.cfg")
|
||||
'sConnectionString_tgdata = oread.ReadLine
|
||||
'Globals.sConnectionString_tgdata = sConnectionString_tgdata
|
||||
'oread.Close()
|
||||
|
||||
Globals.conn_edoka.sConnectionString = sConnectionString_edoka
|
||||
|
||||
'Globals.conn_tgdata.sConnectionString = sConnectionString_tgdata
|
||||
Catch ex As Exception
|
||||
End Try
|
||||
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
ba21b3db875dccf57e00e9f7392931895c242744
|
||||
10
EDKB20/EDKB16/obj/Debug/EDKB16.vbproj.FileListAbsolute.txt
Normal file
10
EDKB20/EDKB16/obj/Debug/EDKB16.vbproj.FileListAbsolute.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB16\EDKB16\obj\Debug\EDKB16.Resources.resources
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB16\EDKB16\obj\Debug\EDKB16.vbproj.GenerateResource.Cache
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB16\EDKB16\bin\Debug\EDKB16.exe
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB16\EDKB16\bin\Debug\EDKB16.pdb
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB16\EDKB16\bin\Debug\EDKB16.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB16\EDKB16\obj\Debug\EDKB16.exe
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB16\EDKB16\obj\Debug\EDKB16.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB16\EDKB16\obj\Debug\EDKB16.pdb
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB16\EDKB16\bin\Debug\EDKB16.exe.config
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB16\EDKB16\bin\Debug\System.Data.OracleClient.dll
|
||||
BIN
EDKB20/EDKB16/obj/Debug/EDKB16.vbproj.GenerateResource.Cache
Normal file
BIN
EDKB20/EDKB16/obj/Debug/EDKB16.vbproj.GenerateResource.Cache
Normal file
Binary file not shown.
BIN
EDKB20/EDKB16/obj/Debug/EDKB16.vbprojAssemblyReference.cache
Normal file
BIN
EDKB20/EDKB16/obj/Debug/EDKB16.vbprojAssemblyReference.cache
Normal file
Binary file not shown.
Binary file not shown.
BIN
EDKB20/EDKB16/obj/Debug/EDKB20.Resources.resources
Normal file
BIN
EDKB20/EDKB16/obj/Debug/EDKB20.Resources.resources
Normal file
Binary file not shown.
BIN
EDKB20/EDKB16/obj/Debug/EDKB20.exe
Normal file
BIN
EDKB20/EDKB16/obj/Debug/EDKB20.exe
Normal file
Binary file not shown.
BIN
EDKB20/EDKB16/obj/Debug/EDKB20.pdb
Normal file
BIN
EDKB20/EDKB16/obj/Debug/EDKB20.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB20\EDKB16\obj\Debug\EDKB20.vbproj.GenerateResource.cache
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB20\EDKB16\obj\Debug\EDKB20.Resources.resources
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB20\EDKB16\bin\Debug\EDKB20.exe.config
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB20\EDKB16\bin\Debug\EDKB20.exe
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB20\EDKB16\bin\Debug\EDKB20.pdb
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB20\EDKB16\bin\Debug\EDKB20.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB20\EDKB16\obj\Debug\EDKB20.exe
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB20\EDKB16\obj\Debug\EDKB20.xml
|
||||
E:\Software-Projekte\EDOKA\batch\EDKB20\EDKB16\obj\Debug\EDKB20.pdb
|
||||
BIN
EDKB20/EDKB16/obj/Debug/EDKB20.vbproj.GenerateResource.cache
Normal file
BIN
EDKB20/EDKB16/obj/Debug/EDKB20.vbproj.GenerateResource.cache
Normal file
Binary file not shown.
186
EDKB20/EDKB16/obj/Debug/EDKB20.xml
Normal file
186
EDKB20/EDKB16/obj/Debug/EDKB20.xml
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
EDKB20
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:EDKB20.My.Resources.Resources">
|
||||
<summary>
|
||||
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.My.Resources.Resources.ResourceManager">
|
||||
<summary>
|
||||
Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.My.Resources.Resources.Culture">
|
||||
<summary>
|
||||
Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:EDKB20.clsDivFnkt">
|
||||
<summary>Diverse allgemeine Funktionen</summary>
|
||||
<remarks>Diesee Klasse kapselt diverse, allgemeine Funktionen, welche aus
|
||||
diversen anderen Klassen genutzt werden.$EOL$
|
||||
<para>Die Instanzierung der Klasse erfolgt über das Module <see
|
||||
cref="T:EDKB20.Globals">Globals.vb</see></para></remarks>
|
||||
<seealso cref="F:EDKB20.Globals.DivFnkt">Globals.DivFnkt</seealso>
|
||||
</member>
|
||||
<member name="M:EDKB20.clsDivFnkt.ApplicationPath">
|
||||
<summary>Generieren der EDOKA-DokumentID</summary>
|
||||
<remarks>Diese Methode generiert eine neue eindeutige, 22-stellige
|
||||
EDOKA-Dokumentid. $EOL$
|
||||
<para>Die Letzte ziffer ist eine Prüfziffer</para></remarks>
|
||||
<returns>DokumentID für EDOKA</returns>
|
||||
<seealso
|
||||
cref="!:clsDivFnkt.Pruefziffer">Prüfziffer-Berechnung</seealso>
|
||||
</member>
|
||||
<member name="T:EDKB20.ClsParameters">
|
||||
<summary>Klasse zum auselesen der Steuerparameter aus der Datei
|
||||
\bin\parameters.cfg</summary>
|
||||
<author>Stefan Hutter</author>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.ofile">
|
||||
<summary>Interne Variable zum Auslesen der Datei</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.oread">
|
||||
<summary>Interne Variable zum Auslesen der Datei</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_applicationid">
|
||||
<summary>Interne Variable für das Property Application ID</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.ApplicationID">
|
||||
<summary>ApplikationsID für die Journalisierung</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_Inputverzeichnis">
|
||||
<summary>Interne Variable für das Property Inputverzeichnis</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Inputverzeichnis">
|
||||
<summary>Inputverzeichnis, in welchem die Dokumente und Indexdateien gespeichert
|
||||
sind</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_MailadresseOK">
|
||||
<summary>Interne Variable für das Property MailadresseOK</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.MailAdresseOK">
|
||||
<summary>EMail-Adresse, an die ein Mail gesendet wird, sofern die Verarbeitung
|
||||
ordnungsgemäss durchgelaufen ist</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_MailadresseNOK">
|
||||
<summary>Interne Variable für das Property MailadresseNOK</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.MailAdresseNOK">
|
||||
<summary>Mailadresse, an die im Fehlerfall ein Mail gesendet wird</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_meldung">
|
||||
<summary>Interne Variable für das Property Meldung</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Meldung">
|
||||
<summary>Allfälliger Meldungstext, welcher beim Laden der Parameter generiert
|
||||
wird</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_temppfad">
|
||||
<summary>Interne Variable für das Property Temppfad</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.TempPfad">
|
||||
<summary>Pfad für temporäre Dateien</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_mailserver">
|
||||
<summary>Interne Variable für das Property Mailserver</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Mailserver">
|
||||
<summary>SMTP-Mailserver für den Journalversand</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_journaltimer_time">
|
||||
<summary>Interne Variable für das Property Journaltimer_time</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.JournalTimer_Time">
|
||||
<summary>Journaltimer-Zeit in Milisekunden</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_deleteoriginalfiles">
|
||||
<summary>Interne Variable für das Property DeleteOriginalfiles</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.DeleteOriginalfiles">
|
||||
<summary>DeleteOriginalfiles</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_gsf_ConfigPath">
|
||||
<summary>Interne Variable für das Property GSF Config File Path</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Prop_gsf_ConfigPath">
|
||||
<summary>gsf ConfigPath</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_gsf_TimerInterval">
|
||||
<summary>Interne Variable für das Property GSF Timer Intervall</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Prop_gsf_TimerInterval">
|
||||
<summary>gsf Timer Interval</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.ClsParameters.m_gsf_ConfigDateiendung">
|
||||
<summary>Interne Variable für das Property GSF DateiEndung</summary>
|
||||
</member>
|
||||
<member name="P:EDKB20.ClsParameters.Prop_gsf_ConfigDateiendung">
|
||||
<summary>gsf DateiEndung</summary>
|
||||
</member>
|
||||
<member name="M:EDKB20.ClsParameters.Loadparameters">
|
||||
<summary>Laden der Parameterdaten aus parameters.cfg</summary>
|
||||
<remarks>Die Funktion lädt für die Anwendung die notwendigen Parameter aus der
|
||||
Datei "Parameters.cfg"</remarks>
|
||||
<returns>True im OK-Fall
|
||||
False im Fehlerfall</returns>
|
||||
</member>
|
||||
<member name="M:EDKB20.ClsParameters.ParamValue(System.String)">
|
||||
<summary>Parameterbezeichnung und Parameterwert trennen</summary>
|
||||
<param name="sinput">Inputstring mit Parameterbezeichnung und
|
||||
Parameterwert</param>
|
||||
<returns>Parameterwert als String</returns>
|
||||
</member>
|
||||
<member name="T:EDKB20.Globals">
|
||||
<summary>Globale Variablen und FUnktionen</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.Applikationsdaten">
|
||||
<summary>Datentabelle mit den EDOKA-Applikationsdaten</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.AppldataRow">
|
||||
<summary>Datensatzzeiger in der Tabelle Applikationsdaten</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.sConnectionString_edoka">
|
||||
<summary>Verbindung zur Daten EDOKA</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.MailBody">
|
||||
<summary>Verbindung zur Daten EDOKA_Journale</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.args">
|
||||
<summary>Befehlszeilenargumente</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.conn_edoka">
|
||||
<summary>Connectionprovider für die Datenbank EDOKA</summary>
|
||||
<seealso
|
||||
cref="T:EDKB20.edokadb.clsConnectionProvider">edokadb.clsConnectionProvider</seealso>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.conn_journale_Mail">
|
||||
<summary>Connectionprovider für die Datenbank EDOKA_Journale</summary>
|
||||
<seealso
|
||||
cref="T:EDKB20.edokadb.clsConnectionProvider">edokadb.clsConnectionProvider</seealso>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.DivFnkt">
|
||||
<summary>Instanz des Objektes DivFnkt</summary>
|
||||
</member>
|
||||
<member name="F:EDKB20.Globals.ApplData">
|
||||
<summary>Hält die Applikationsdaten für ein zu importierendes Dokumente
|
||||
fest</summary>
|
||||
</member>
|
||||
<member name="M:EDKB20.Globals.PrintOut(System.String)">
|
||||
<summary>Ausgabe eines Strings mit vorgestelltem TimeStamp</summary>
|
||||
<param name="s"></param>
|
||||
</member>
|
||||
<member name="M:EDKB20.Globals.PrintLog(System.String,System.Diagnostics.EventLogEntryType)">
|
||||
<summary>Eintrag ins EventLog von EDKB08 schreiben</summary>
|
||||
<param name="message"></param>
|
||||
<param name="eventmessage"></param>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
Reference in New Issue
Block a user