Initial commit
This commit is contained in:
289
ThemaPerson/DB/clsConnectionProvider.vb
Normal file
289
ThemaPerson/DB/clsConnectionProvider.vb
Normal file
@@ -0,0 +1,289 @@
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Connection Provider class for Database connection sharing
|
||||
' // Generated by LLBLGen v1.21.2003.712 Final on: Dienstag, 1. Januar 2013, 19:36:38
|
||||
' // This class implements IDisposable.
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
Imports System
|
||||
Imports System.Configuration
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Collections
|
||||
|
||||
Namespace DB
|
||||
' /// <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
|
||||
208
ThemaPerson/DB/clsDBInteractionBase.vb
Normal file
208
ThemaPerson/DB/clsDBInteractionBase.vb
Normal file
@@ -0,0 +1,208 @@
|
||||
' //////////////////////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Base class for Database Interaction.
|
||||
' // Generated by LLBLGen v1.21.2003.712 Final on: Dienstag, 1. Januar 2013, 19:36:38
|
||||
' // 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 DB
|
||||
' /// <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_iRowsAffected As Integer
|
||||
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
|
||||
Public Readonly Property iRowsAffected() As Integer
|
||||
Get
|
||||
Return m_iRowsAffected
|
||||
End Get
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
470
ThemaPerson/DB/clsFunktion.vb
Normal file
470
ThemaPerson/DB/clsFunktion.vb
Normal file
@@ -0,0 +1,470 @@
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Data Access class for the table 'Funktion'
|
||||
' // Generated by LLBLGen v1.21.2003.712 Final on: Montag, 28. Januar 2013, 19:03:29
|
||||
' // 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 DB
|
||||
''' <summary>
|
||||
''' Purpose: Data Access class for the table 'Funktion'.
|
||||
''' </summary>
|
||||
Public Class clsFunktion
|
||||
Inherits clsDBInteractionBase
|
||||
|
||||
#Region " Class Member Declarations "
|
||||
|
||||
Private m_bAktiv As SqlBoolean
|
||||
Private m_daMutiert_am, m_daErstellt_am As SqlDateTime
|
||||
Private m_iMutierer, m_iFunktionNr As SqlInt32
|
||||
Private m_sBezeichnung, m_sBeschreibung 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>iFunktionNr</LI>
|
||||
''' <LI>sBezeichnung. May be SqlString.Null</LI>
|
||||
''' <LI>sBeschreibung. May be SqlString.Null</LI>
|
||||
''' <LI>bAktiv. May be SqlBoolean.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>
|
||||
''' </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_Funktion_Insert]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iFunktionNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iFunktionNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sBezeichnung", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBezeichnung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sBeschreibung", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBeschreibung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@bAktiv", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bAktiv))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daErstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daMutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", 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("@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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Funktion_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("clsFunktion::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>iFunktionNr</LI>
|
||||
''' <LI>sBezeichnung. May be SqlString.Null</LI>
|
||||
''' <LI>sBeschreibung. May be SqlString.Null</LI>
|
||||
''' <LI>bAktiv. May be SqlBoolean.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>
|
||||
''' </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_Funktion_Update]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iFunktionNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iFunktionNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sBezeichnung", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBezeichnung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sBeschreibung", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBeschreibung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@bAktiv", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bAktiv))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daErstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daMutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", 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("@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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Funktion_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("clsFunktion::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>iFunktionNr</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_Funktion_Delete]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iFunktionNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iFunktionNr))
|
||||
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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Funktion_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("clsFunktion::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>iFunktionNr</LI>
|
||||
''' </UL>
|
||||
''' Properties set after a succesful call of this method:
|
||||
''' <UL>
|
||||
''' <LI>iErrorCode</LI>
|
||||
''' <LI>iFunktionNr</LI>
|
||||
''' <LI>sBezeichnung</LI>
|
||||
''' <LI>sBeschreibung</LI>
|
||||
''' <LI>bAktiv</LI>
|
||||
''' <LI>daErstellt_am</LI>
|
||||
''' <LI>daMutiert_am</LI>
|
||||
''' <LI>iMutierer</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_Funktion_SelectOne]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("Funktion")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iFunktionNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iFunktionNr))
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Funktion_SelectOne' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
If dtToReturn.Rows.Count > 0 Then
|
||||
m_iFunktionNr = New SqlInt32(CType(dtToReturn.Rows(0)("FunktionNr"), 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)("Beschreibung") Is System.DBNull.Value Then
|
||||
m_sBeschreibung = SqlString.Null
|
||||
Else
|
||||
m_sBeschreibung = New SqlString(CType(dtToReturn.Rows(0)("Beschreibung"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Aktiv") Is System.DBNull.Value Then
|
||||
m_bAktiv = SqlBoolean.Null
|
||||
Else
|
||||
m_bAktiv = New SqlBoolean(CType(dtToReturn.Rows(0)("Aktiv"), Boolean))
|
||||
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
|
||||
End If
|
||||
Return dtToReturn
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsFunktion::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_Funktion_SelectAll]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("Funktion")
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Funktion_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("clsFunktion::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 [iFunktionNr]() As SqlInt32
|
||||
Get
|
||||
Return m_iFunktionNr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
Dim iFunktionNrTmp As SqlInt32 = Value
|
||||
If iFunktionNrTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("iFunktionNr", "iFunktionNr can't be NULL")
|
||||
End If
|
||||
m_iFunktionNr = 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 [sBeschreibung]() As SqlString
|
||||
Get
|
||||
Return m_sBeschreibung
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sBeschreibung = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [bAktiv]() As SqlBoolean
|
||||
Get
|
||||
Return m_bAktiv
|
||||
End Get
|
||||
Set(ByVal Value As SqlBoolean)
|
||||
m_bAktiv = 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
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
491
ThemaPerson/DB/clsKey_tabelle.vb
Normal file
491
ThemaPerson/DB/clsKey_tabelle.vb
Normal file
@@ -0,0 +1,491 @@
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Data Access class for the table 'key_tabelle'
|
||||
' // Generated by LLBLGen v1.21.2003.712 Final on: Freitag, 4. Januar 2013, 17:02:51
|
||||
' // 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 DB
|
||||
''' <summary>
|
||||
''' Purpose: Data Access class for the table 'key_tabelle'.
|
||||
''' </summary>
|
||||
Public Class clsKey_tabelle
|
||||
Inherits clsDBInteractionBase
|
||||
|
||||
#Region " Class Member Declarations "
|
||||
|
||||
Private m_bAktiv As SqlBoolean
|
||||
Private m_daErstellt_am, m_daMutiert_am As SqlDateTime
|
||||
Private m_iMutierer, m_iKeynr, m_iKey_wert, m_iMandantnr As SqlInt32
|
||||
Private m_sBeschreibung 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>sBeschreibung</LI>
|
||||
''' <LI>iKey_wert</LI>
|
||||
''' <LI>iMandantnr. May be SqlInt32.Null</LI>
|
||||
''' <LI>bAktiv. May be SqlBoolean.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>
|
||||
''' </UL>
|
||||
''' Properties set after a succesful call of this method:
|
||||
''' <UL>
|
||||
''' <LI>iKeynr</LI>
|
||||
''' <LI>iErrorCode</LI>
|
||||
'''</UL>
|
||||
''' </remarks>
|
||||
Overrides Public Function Insert() As Boolean
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_key_tabelle_Insert]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sbeschreibung", SqlDbType.VarChar, 255, ParameterDirection.Input, False, 0, 0, "", DataRowVersion.Proposed, m_sBeschreibung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ikey_wert", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iKey_wert))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@imandantnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iMandantnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@baktiv", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bAktiv))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daerstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@damutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", 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("@ikeynr", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_iKeynr))
|
||||
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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iKeynr = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@ikeynr").Value, Integer))
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_key_tabelle_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("clsKey_tabelle::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>iKeynr</LI>
|
||||
''' <LI>sBeschreibung</LI>
|
||||
''' <LI>iKey_wert</LI>
|
||||
''' <LI>iMandantnr. May be SqlInt32.Null</LI>
|
||||
''' <LI>bAktiv. May be SqlBoolean.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>
|
||||
''' </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_key_tabelle_Update]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ikeynr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iKeynr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sbeschreibung", SqlDbType.VarChar, 255, ParameterDirection.Input, False, 0, 0, "", DataRowVersion.Proposed, m_sBeschreibung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ikey_wert", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iKey_wert))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@imandantnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iMandantnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@baktiv", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bAktiv))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daerstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@damutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", 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("@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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_key_tabelle_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("clsKey_tabelle::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>iKeynr</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_key_tabelle_Delete]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ikeynr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iKeynr))
|
||||
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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_key_tabelle_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("clsKey_tabelle::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>iKeynr</LI>
|
||||
''' </UL>
|
||||
''' Properties set after a succesful call of this method:
|
||||
''' <UL>
|
||||
''' <LI>iErrorCode</LI>
|
||||
''' <LI>iKeynr</LI>
|
||||
''' <LI>sBeschreibung</LI>
|
||||
''' <LI>iKey_wert</LI>
|
||||
''' <LI>iMandantnr</LI>
|
||||
''' <LI>bAktiv</LI>
|
||||
''' <LI>daErstellt_am</LI>
|
||||
''' <LI>daMutiert_am</LI>
|
||||
''' <LI>iMutierer</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_key_tabelle_SelectOne]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("key_tabelle")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@ikeynr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iKeynr))
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_key_tabelle_SelectOne' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
If dtToReturn.Rows.Count > 0 Then
|
||||
m_iKeynr = New SqlInt32(CType(dtToReturn.Rows(0)("keynr"), Integer))
|
||||
m_sBeschreibung = New SqlString(CType(dtToReturn.Rows(0)("beschreibung"), String))
|
||||
m_iKey_wert = New SqlInt32(CType(dtToReturn.Rows(0)("key_wert"), Integer))
|
||||
If dtToReturn.Rows(0)("mandantnr") Is System.DBNull.Value Then
|
||||
m_iMandantnr = SqlInt32.Null
|
||||
Else
|
||||
m_iMandantnr = New SqlInt32(CType(dtToReturn.Rows(0)("mandantnr"), Integer))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("aktiv") Is System.DBNull.Value Then
|
||||
m_bAktiv = SqlBoolean.Null
|
||||
Else
|
||||
m_bAktiv = New SqlBoolean(CType(dtToReturn.Rows(0)("aktiv"), Boolean))
|
||||
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
|
||||
End If
|
||||
Return dtToReturn
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsKey_tabelle::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_key_tabelle_SelectAll]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("key_tabelle")
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_key_tabelle_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("clsKey_tabelle::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 [iKeynr]() As SqlInt32
|
||||
Get
|
||||
Return m_iKeynr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
Dim iKeynrTmp As SqlInt32 = Value
|
||||
If iKeynrTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("iKeynr", "iKeynr can't be NULL")
|
||||
End If
|
||||
m_iKeynr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sBeschreibung]() As SqlString
|
||||
Get
|
||||
Return m_sBeschreibung
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
Dim sBeschreibungTmp As SqlString = Value
|
||||
If sBeschreibungTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("sBeschreibung", "sBeschreibung can't be NULL")
|
||||
End If
|
||||
m_sBeschreibung = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [iKey_wert]() As SqlInt32
|
||||
Get
|
||||
Return m_iKey_wert
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
Dim iKey_wertTmp As SqlInt32 = Value
|
||||
If iKey_wertTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("iKey_wert", "iKey_wert can't be NULL")
|
||||
End If
|
||||
m_iKey_wert = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [iMandantnr]() As SqlInt32
|
||||
Get
|
||||
Return m_iMandantnr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
m_iMandantnr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [bAktiv]() As SqlBoolean
|
||||
Get
|
||||
Return m_bAktiv
|
||||
End Get
|
||||
Set(ByVal Value As SqlBoolean)
|
||||
m_bAktiv = 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
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
61
ThemaPerson/DB/clsMyKey_Tabelle.vb
Normal file
61
ThemaPerson/DB/clsMyKey_Tabelle.vb
Normal file
@@ -0,0 +1,61 @@
|
||||
Imports System
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlTypes
|
||||
Imports System.Data.SqlClient
|
||||
Namespace DB
|
||||
Public Class clsMyKey_Tabelle
|
||||
Inherits db.clsKey_tabelle
|
||||
|
||||
Public Function get_dbkey(ByVal Tablename As String) As Long
|
||||
Dim m_dbkey As Long
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[sp_get_dbkey]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@Tablename", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, Tablename))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@dbkey", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, m_dbkey))
|
||||
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.
|
||||
Try
|
||||
scmCmdToExecute.Connection.Open()
|
||||
Catch ex As Exception
|
||||
Finally
|
||||
End Try
|
||||
|
||||
scmCmdToExecute.ExecuteNonQuery()
|
||||
m_dbkey = scmCmdToExecute.Parameters.Item("@dbkey").Value
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
scmCmdToExecute.Connection.Close()
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'sp_get_dbkey' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
Return m_dbkey
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsKey_tabelle::get_dbkey::Error occured." + ex.Message, ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
670
ThemaPerson/DB/clsPerson.vb
Normal file
670
ThemaPerson/DB/clsPerson.vb
Normal file
@@ -0,0 +1,670 @@
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Data Access class for the table 'Person'
|
||||
' // Generated by LLBLGen v1.21.2003.712 Final on: Montag, 28. Januar 2013, 19:03:29
|
||||
' // 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 DB
|
||||
''' <summary>
|
||||
''' Purpose: Data Access class for the table 'Person'.
|
||||
''' </summary>
|
||||
Public Class clsPerson
|
||||
Inherits clsDBInteractionBase
|
||||
|
||||
#Region " Class Member Declarations "
|
||||
|
||||
Private m_bAktiv As SqlBoolean
|
||||
Private m_daErstellt_am, m_daMutiert_am As SqlDateTime
|
||||
Private m_iMutierer, m_iPersonNr As SqlInt32
|
||||
Private m_sBemerkung, m_sInternet, m_sName, m_sTelefon, m_sFirma, m_sEMail, m_sPlz, m_sPostfach, m_sStrasse, m_sTelefax, m_sVorname, m_sOrt 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>iPersonNr</LI>
|
||||
''' <LI>sFirma. May be SqlString.Null</LI>
|
||||
''' <LI>sName. May be SqlString.Null</LI>
|
||||
''' <LI>sVorname. May be SqlString.Null</LI>
|
||||
''' <LI>sStrasse. May be SqlString.Null</LI>
|
||||
''' <LI>sPostfach. May be SqlString.Null</LI>
|
||||
''' <LI>sPlz. May be SqlString.Null</LI>
|
||||
''' <LI>sOrt. May be SqlString.Null</LI>
|
||||
''' <LI>sTelefon. May be SqlString.Null</LI>
|
||||
''' <LI>sTelefax. May be SqlString.Null</LI>
|
||||
''' <LI>sEMail. May be SqlString.Null</LI>
|
||||
''' <LI>sInternet. May be SqlString.Null</LI>
|
||||
''' <LI>sBemerkung. May be SqlString.Null</LI>
|
||||
''' <LI>bAktiv. May be SqlBoolean.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>
|
||||
''' </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_Person_Insert]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iPersonNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iPersonNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sFirma", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sFirma))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sName", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sName))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sVorname", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sVorname))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sStrasse", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sStrasse))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sPostfach", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sPostfach))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sPlz", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sPlz))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sOrt", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sOrt))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sTelefon", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sTelefon))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sTelefax", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sTelefax))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sEMail", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sEMail))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sInternet", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sInternet))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sBemerkung", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBemerkung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@bAktiv", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bAktiv))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daErstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daMutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", 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("@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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Person_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("clsPerson::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>iPersonNr</LI>
|
||||
''' <LI>sFirma. May be SqlString.Null</LI>
|
||||
''' <LI>sName. May be SqlString.Null</LI>
|
||||
''' <LI>sVorname. May be SqlString.Null</LI>
|
||||
''' <LI>sStrasse. May be SqlString.Null</LI>
|
||||
''' <LI>sPostfach. May be SqlString.Null</LI>
|
||||
''' <LI>sPlz. May be SqlString.Null</LI>
|
||||
''' <LI>sOrt. May be SqlString.Null</LI>
|
||||
''' <LI>sTelefon. May be SqlString.Null</LI>
|
||||
''' <LI>sTelefax. May be SqlString.Null</LI>
|
||||
''' <LI>sEMail. May be SqlString.Null</LI>
|
||||
''' <LI>sInternet. May be SqlString.Null</LI>
|
||||
''' <LI>sBemerkung. May be SqlString.Null</LI>
|
||||
''' <LI>bAktiv. May be SqlBoolean.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>
|
||||
''' </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_Person_Update]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iPersonNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iPersonNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sFirma", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sFirma))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sName", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sName))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sVorname", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sVorname))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sStrasse", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sStrasse))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sPostfach", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sPostfach))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sPlz", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sPlz))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sOrt", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sOrt))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sTelefon", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sTelefon))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sTelefax", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sTelefax))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sEMail", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sEMail))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sInternet", SqlDbType.VarChar, 50, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sInternet))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sBemerkung", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBemerkung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@bAktiv", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bAktiv))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daErstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daMutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", 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("@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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Person_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("clsPerson::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>iPersonNr</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_Person_Delete]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iPersonNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iPersonNr))
|
||||
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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Person_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("clsPerson::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>iPersonNr</LI>
|
||||
''' </UL>
|
||||
''' Properties set after a succesful call of this method:
|
||||
''' <UL>
|
||||
''' <LI>iErrorCode</LI>
|
||||
''' <LI>iPersonNr</LI>
|
||||
''' <LI>sFirma</LI>
|
||||
''' <LI>sName</LI>
|
||||
''' <LI>sVorname</LI>
|
||||
''' <LI>sStrasse</LI>
|
||||
''' <LI>sPostfach</LI>
|
||||
''' <LI>sPlz</LI>
|
||||
''' <LI>sOrt</LI>
|
||||
''' <LI>sTelefon</LI>
|
||||
''' <LI>sTelefax</LI>
|
||||
''' <LI>sEMail</LI>
|
||||
''' <LI>sInternet</LI>
|
||||
''' <LI>sBemerkung</LI>
|
||||
''' <LI>bAktiv</LI>
|
||||
''' <LI>daErstellt_am</LI>
|
||||
''' <LI>daMutiert_am</LI>
|
||||
''' <LI>iMutierer</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_Person_SelectOne]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("Person")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iPersonNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iPersonNr))
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Person_SelectOne' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
If dtToReturn.Rows.Count > 0 Then
|
||||
m_iPersonNr = New SqlInt32(CType(dtToReturn.Rows(0)("PersonNr"), Integer))
|
||||
If dtToReturn.Rows(0)("Firma") Is System.DBNull.Value Then
|
||||
m_sFirma = SqlString.Null
|
||||
Else
|
||||
m_sFirma = New SqlString(CType(dtToReturn.Rows(0)("Firma"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Name") Is System.DBNull.Value Then
|
||||
m_sName = SqlString.Null
|
||||
Else
|
||||
m_sName = New SqlString(CType(dtToReturn.Rows(0)("Name"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Vorname") Is System.DBNull.Value Then
|
||||
m_sVorname = SqlString.Null
|
||||
Else
|
||||
m_sVorname = New SqlString(CType(dtToReturn.Rows(0)("Vorname"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Strasse") Is System.DBNull.Value Then
|
||||
m_sStrasse = SqlString.Null
|
||||
Else
|
||||
m_sStrasse = New SqlString(CType(dtToReturn.Rows(0)("Strasse"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Postfach") Is System.DBNull.Value Then
|
||||
m_sPostfach = SqlString.Null
|
||||
Else
|
||||
m_sPostfach = New SqlString(CType(dtToReturn.Rows(0)("Postfach"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Plz") Is System.DBNull.Value Then
|
||||
m_sPlz = SqlString.Null
|
||||
Else
|
||||
m_sPlz = New SqlString(CType(dtToReturn.Rows(0)("Plz"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Ort") Is System.DBNull.Value Then
|
||||
m_sOrt = SqlString.Null
|
||||
Else
|
||||
m_sOrt = New SqlString(CType(dtToReturn.Rows(0)("Ort"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Telefon") Is System.DBNull.Value Then
|
||||
m_sTelefon = SqlString.Null
|
||||
Else
|
||||
m_sTelefon = New SqlString(CType(dtToReturn.Rows(0)("Telefon"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Telefax") Is System.DBNull.Value Then
|
||||
m_sTelefax = SqlString.Null
|
||||
Else
|
||||
m_sTelefax = New SqlString(CType(dtToReturn.Rows(0)("Telefax"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("EMail") Is System.DBNull.Value Then
|
||||
m_sEMail = SqlString.Null
|
||||
Else
|
||||
m_sEMail = New SqlString(CType(dtToReturn.Rows(0)("EMail"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Internet") Is System.DBNull.Value Then
|
||||
m_sInternet = SqlString.Null
|
||||
Else
|
||||
m_sInternet = New SqlString(CType(dtToReturn.Rows(0)("Internet"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Bemerkung") Is System.DBNull.Value Then
|
||||
m_sBemerkung = SqlString.Null
|
||||
Else
|
||||
m_sBemerkung = New SqlString(CType(dtToReturn.Rows(0)("Bemerkung"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Aktiv") Is System.DBNull.Value Then
|
||||
m_bAktiv = SqlBoolean.Null
|
||||
Else
|
||||
m_bAktiv = New SqlBoolean(CType(dtToReturn.Rows(0)("Aktiv"), Boolean))
|
||||
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
|
||||
End If
|
||||
Return dtToReturn
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsPerson::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_Person_SelectAll]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("Person")
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_Person_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("clsPerson::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 [iPersonNr]() As SqlInt32
|
||||
Get
|
||||
Return m_iPersonNr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
Dim iPersonNrTmp As SqlInt32 = Value
|
||||
If iPersonNrTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("iPersonNr", "iPersonNr can't be NULL")
|
||||
End If
|
||||
m_iPersonNr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sFirma]() As SqlString
|
||||
Get
|
||||
Return m_sFirma
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sFirma = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sName]() As SqlString
|
||||
Get
|
||||
Return m_sName
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sName = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sVorname]() As SqlString
|
||||
Get
|
||||
Return m_sVorname
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sVorname = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sStrasse]() As SqlString
|
||||
Get
|
||||
Return m_sStrasse
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sStrasse = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sPostfach]() As SqlString
|
||||
Get
|
||||
Return m_sPostfach
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sPostfach = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sPlz]() As SqlString
|
||||
Get
|
||||
Return m_sPlz
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sPlz = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sOrt]() As SqlString
|
||||
Get
|
||||
Return m_sOrt
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sOrt = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sTelefon]() As SqlString
|
||||
Get
|
||||
Return m_sTelefon
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sTelefon = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sTelefax]() As SqlString
|
||||
Get
|
||||
Return m_sTelefax
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sTelefax = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sEMail]() As SqlString
|
||||
Get
|
||||
Return m_sEMail
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sEMail = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sInternet]() As SqlString
|
||||
Get
|
||||
Return m_sInternet
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sInternet = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sBemerkung]() As SqlString
|
||||
Get
|
||||
Return m_sBemerkung
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sBemerkung = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [bAktiv]() As SqlBoolean
|
||||
Get
|
||||
Return m_bAktiv
|
||||
End Get
|
||||
Set(ByVal Value As SqlBoolean)
|
||||
m_bAktiv = 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
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
510
ThemaPerson/DB/clsThemaPerson.vb
Normal file
510
ThemaPerson/DB/clsThemaPerson.vb
Normal file
@@ -0,0 +1,510 @@
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Data Access class for the table 'ThemaPerson'
|
||||
' // Generated by LLBLGen v1.21.2003.712 Final on: Dienstag, 29. Januar 2013, 10:25:42
|
||||
' // 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 DB
|
||||
''' <summary>
|
||||
''' Purpose: Data Access class for the table 'ThemaPerson'.
|
||||
''' </summary>
|
||||
Public Class clsThemaPerson
|
||||
Inherits clsDBInteractionBase
|
||||
|
||||
#Region " Class Member Declarations "
|
||||
|
||||
Private m_bAktiv As SqlBoolean
|
||||
Private m_daErstellt_am, m_daMutiert_am As SqlDateTime
|
||||
Private m_iMutierer, m_iThemaNr, m_iThemaPersonNr, m_iFunktionNr, m_iPersonNr As SqlInt32
|
||||
Private m_sBemerkung 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>iThemaPersonNr</LI>
|
||||
''' <LI>iThemaNr. May be SqlInt32.Null</LI>
|
||||
''' <LI>iPersonNr. May be SqlInt32.Null</LI>
|
||||
''' <LI>iFunktionNr. May be SqlInt32.Null</LI>
|
||||
''' <LI>sBemerkung. May be SqlString.Null</LI>
|
||||
''' <LI>bAktiv. May be SqlBoolean.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>
|
||||
''' </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_ThemaPerson_Insert]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iThemaPersonNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iThemaPersonNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iThemaNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iThemaNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iPersonNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iPersonNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iFunktionNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iFunktionNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sBemerkung", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBemerkung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@bAktiv", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bAktiv))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daErstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daMutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", 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("@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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_ThemaPerson_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("clsThemaPerson::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>iThemaPersonNr</LI>
|
||||
''' <LI>iThemaNr. May be SqlInt32.Null</LI>
|
||||
''' <LI>iPersonNr. May be SqlInt32.Null</LI>
|
||||
''' <LI>iFunktionNr. May be SqlInt32.Null</LI>
|
||||
''' <LI>sBemerkung. May be SqlString.Null</LI>
|
||||
''' <LI>bAktiv. May be SqlBoolean.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>
|
||||
''' </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_ThemaPerson_Update]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iThemaPersonNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iThemaPersonNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iThemaNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iThemaNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iPersonNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iPersonNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iFunktionNr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iFunktionNr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sBemerkung", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sBemerkung))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@bAktiv", SqlDbType.Bit, 1, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_bAktiv))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daErstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daMutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", 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("@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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_ThemaPerson_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("clsThemaPerson::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>iThemaPersonNr</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_ThemaPerson_Delete]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iThemaPersonNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iThemaPersonNr))
|
||||
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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_ThemaPerson_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("clsThemaPerson::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>iThemaPersonNr</LI>
|
||||
''' </UL>
|
||||
''' Properties set after a succesful call of this method:
|
||||
''' <UL>
|
||||
''' <LI>iErrorCode</LI>
|
||||
''' <LI>iThemaPersonNr</LI>
|
||||
''' <LI>iThemaNr</LI>
|
||||
''' <LI>iPersonNr</LI>
|
||||
''' <LI>iFunktionNr</LI>
|
||||
''' <LI>sBemerkung</LI>
|
||||
''' <LI>bAktiv</LI>
|
||||
''' <LI>daErstellt_am</LI>
|
||||
''' <LI>daMutiert_am</LI>
|
||||
''' <LI>iMutierer</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_ThemaPerson_SelectOne]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("ThemaPerson")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@iThemaPersonNr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iThemaPersonNr))
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_ThemaPerson_SelectOne' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
If dtToReturn.Rows.Count > 0 Then
|
||||
m_iThemaPersonNr = New SqlInt32(CType(dtToReturn.Rows(0)("ThemaPersonNr"), Integer))
|
||||
If dtToReturn.Rows(0)("ThemaNr") Is System.DBNull.Value Then
|
||||
m_iThemaNr = SqlInt32.Null
|
||||
Else
|
||||
m_iThemaNr = New SqlInt32(CType(dtToReturn.Rows(0)("ThemaNr"), Integer))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("PersonNr") Is System.DBNull.Value Then
|
||||
m_iPersonNr = SqlInt32.Null
|
||||
Else
|
||||
m_iPersonNr = New SqlInt32(CType(dtToReturn.Rows(0)("PersonNr"), Integer))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("FunktionNr") Is System.DBNull.Value Then
|
||||
m_iFunktionNr = SqlInt32.Null
|
||||
Else
|
||||
m_iFunktionNr = New SqlInt32(CType(dtToReturn.Rows(0)("FunktionNr"), Integer))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Bemerkung") Is System.DBNull.Value Then
|
||||
m_sBemerkung = SqlString.Null
|
||||
Else
|
||||
m_sBemerkung = New SqlString(CType(dtToReturn.Rows(0)("Bemerkung"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Aktiv") Is System.DBNull.Value Then
|
||||
m_bAktiv = SqlBoolean.Null
|
||||
Else
|
||||
m_bAktiv = New SqlBoolean(CType(dtToReturn.Rows(0)("Aktiv"), Boolean))
|
||||
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
|
||||
End If
|
||||
Return dtToReturn
|
||||
Catch ex As Exception
|
||||
' // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
Throw New Exception("clsThemaPerson::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_ThemaPerson_SelectAll]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("ThemaPerson")
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_ThemaPerson_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("clsThemaPerson::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 [iThemaPersonNr]() As SqlInt32
|
||||
Get
|
||||
Return m_iThemaPersonNr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
Dim iThemaPersonNrTmp As SqlInt32 = Value
|
||||
If iThemaPersonNrTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("iThemaPersonNr", "iThemaPersonNr can't be NULL")
|
||||
End If
|
||||
m_iThemaPersonNr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [iThemaNr]() As SqlInt32
|
||||
Get
|
||||
Return m_iThemaNr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
m_iThemaNr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [iPersonNr]() As SqlInt32
|
||||
Get
|
||||
Return m_iPersonNr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
m_iPersonNr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [iFunktionNr]() As SqlInt32
|
||||
Get
|
||||
Return m_iFunktionNr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
m_iFunktionNr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sBemerkung]() As SqlString
|
||||
Get
|
||||
Return m_sBemerkung
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sBemerkung = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [bAktiv]() As SqlBoolean
|
||||
Get
|
||||
Return m_bAktiv
|
||||
End Get
|
||||
Set(ByVal Value As SqlBoolean)
|
||||
m_bAktiv = 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
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
8
ThemaPerson/Klassen/Globals.vb
Normal file
8
ThemaPerson/Klassen/Globals.vb
Normal file
@@ -0,0 +1,8 @@
|
||||
Module Globals
|
||||
Public Spaltendaten As New DataTable
|
||||
Public sConnectionString As String
|
||||
Public conn As New DB.clsConnectionProvider
|
||||
Public ConnectionFileName As String = ""
|
||||
Public Mitarbeiternr As Integer
|
||||
Public TmpFilepath As String
|
||||
End Module
|
||||
432
ThemaPerson/Klassen/MySpalten.vb
Normal file
432
ThemaPerson/Klassen/MySpalten.vb
Normal file
@@ -0,0 +1,432 @@
|
||||
Imports System
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlTypes
|
||||
Imports System.Data.SqlClient
|
||||
'*
|
||||
' Object MyspaltenTitel
|
||||
'
|
||||
' Dieses Objekt liest die Daten aus der Tabelle Spalten und speichert diese in spaltendaten
|
||||
' Die Daten werden für die Spaltenbezeichnung der C1Datagrids verwendet
|
||||
'
|
||||
' Autor: Stefan Hutter
|
||||
' Datum: 2.12.2002
|
||||
'*
|
||||
Imports C1.Win.C1TrueDBGrid
|
||||
Namespace Utils
|
||||
|
||||
Public Class Tabellenspalte
|
||||
Private m_table As String
|
||||
Private m_field As String
|
||||
Private m_spaltenname As String
|
||||
Private m_locked As Boolean
|
||||
Private m_Width As Integer
|
||||
Private m_Order As Integer
|
||||
Private m_alsHacken As Boolean
|
||||
Private m_tiptext As String
|
||||
Private m_numberformat As String
|
||||
|
||||
Property ColWith() As Integer
|
||||
Get
|
||||
Return m_Width
|
||||
End Get
|
||||
Set(ByVal Value As Integer)
|
||||
m_Width = Value
|
||||
End Set
|
||||
End Property
|
||||
Property Order() As Integer
|
||||
Get
|
||||
Return m_Order
|
||||
End Get
|
||||
Set(ByVal Value As Integer)
|
||||
m_Order = Value
|
||||
End Set
|
||||
End Property
|
||||
Property Tabelle() As String
|
||||
Get
|
||||
Return m_table
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_table = Value
|
||||
End Set
|
||||
End Property
|
||||
Property Feld() As String
|
||||
Get
|
||||
Return m_field
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_field = Value
|
||||
End Set
|
||||
End Property
|
||||
Property spaltenname() As String
|
||||
Get
|
||||
Return m_spaltenname
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_spaltenname = Value
|
||||
End Set
|
||||
End Property
|
||||
Property locked() As Boolean
|
||||
Get
|
||||
Return m_locked
|
||||
End Get
|
||||
Set(ByVal Value As Boolean)
|
||||
m_locked = Value
|
||||
End Set
|
||||
End Property
|
||||
Property AlsHacken() As Boolean
|
||||
Get
|
||||
Return m_alsHacken
|
||||
End Get
|
||||
Set(ByVal Value As Boolean)
|
||||
m_alsHacken = Value
|
||||
End Set
|
||||
End Property
|
||||
Property TipText() As String
|
||||
Get
|
||||
Return m_tiptext
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
m_tiptext = Value
|
||||
End Set
|
||||
End Property
|
||||
Property Numberformat() As String
|
||||
Get
|
||||
Return m_numberformat
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
m_numberformat = value
|
||||
End Set
|
||||
End Property
|
||||
Public Sub New()
|
||||
|
||||
End Sub
|
||||
Public Sub New(ByRef daten As Object, ByRef tablename As String, ByRef ds As DataSet)
|
||||
Spaltentitel_aktualisieren(daten, tablename, ds)
|
||||
End Sub
|
||||
Public Function getspalte()
|
||||
Try
|
||||
Dim myspalten As New MySpaltenTitel()
|
||||
myspalten.getspalte(Me.Tabelle, Me.Feld, Me.spaltenname, Me.locked, Me.ColWith, Me.Order, Me.AlsHacken, Me.TipText, Me.Numberformat)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message)
|
||||
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Function Spaltentitel_aktualisieren(ByRef daten As Object, ByRef tablename As String, ByRef ds As DataSet)
|
||||
Dim anzcols As Integer
|
||||
Dim i As Integer
|
||||
Dim s As String
|
||||
anzcols = daten.Splits(0).DisplayColumns.Count
|
||||
Me.Tabelle = tablename
|
||||
For i = 0 To daten.Columns.Count - 1
|
||||
s = daten.Columns(i).DataField
|
||||
Me.Feld = s
|
||||
Me.getspalte()
|
||||
daten.Columns(i).Caption = Me.spaltenname
|
||||
|
||||
If Me.ColWith = 0 Then
|
||||
daten.Splits(0).DisplayColumns(i).Width = 0
|
||||
daten.Splits(0).DisplayColumns(i).Visible = False
|
||||
Else
|
||||
daten.Splits(0).DisplayColumns(i).Width = Me.ColWith
|
||||
End If
|
||||
|
||||
If Me.locked Then
|
||||
daten.Splits(0).DisplayColumns(i).Locked = True
|
||||
End If
|
||||
|
||||
If Me.AlsHacken Then
|
||||
daten.Columns(i).ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox
|
||||
End If
|
||||
|
||||
'Präsentation von aktiv
|
||||
If LCase(daten.Columns(i).DataField) = "aktiv" Then
|
||||
daten.Columns(i).ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox
|
||||
daten.Columns(i).ValueItems.DefaultItem = True
|
||||
daten.Columns(i).DefaultValue = True
|
||||
daten.Columns(i).FilterText = True
|
||||
'Dim items As C1.Win.C1TrueDBGrid.ValueItems = daten.Columns("aktiv").ValueItems
|
||||
'items.Values.Clear()
|
||||
'items.Values.Add(New C1.Win.C1TrueDBGrid.ValueItem("False", False)) ' unchecked
|
||||
'items.Values.Add(New C1.Win.C1TrueDBGrid.ValueItem("True", True)) ' checked
|
||||
'items.Values.Add(New C1.Win.C1TrueDBGrid.ValueItem("", "INDETERMINATE")) ' indeterminate state
|
||||
|
||||
|
||||
End If
|
||||
Select Case LCase(daten.Columns(i).DataField)
|
||||
Case "erstellt_am", "erstelltam"
|
||||
daten.Columns(i).DefaultValue = Now
|
||||
End Select
|
||||
If daten.Columns(i).DataType.Name = "DateTime" Then
|
||||
daten.Columns(i).NumberFormat = "dd.MM.yyyy HH:mm:ss"
|
||||
End If
|
||||
If Me.Numberformat <> "" Then
|
||||
daten.columns(i).numberformat = Me.Numberformat
|
||||
End If
|
||||
Next
|
||||
ColumnOrder(tablename, daten)
|
||||
daten.HeadingStyle.WrapText = False
|
||||
End Function
|
||||
|
||||
Public Function Spaltentitel_aktualisieren(ByRef daten As Object, ByRef tablename As String, ByRef dt As DataTable, Optional ByVal Aktiv_Spalte_True_Setzen As Boolean = True)
|
||||
Dim anzcols As Integer
|
||||
Dim i As Integer
|
||||
Dim t As New DataTable()
|
||||
Dim s As String
|
||||
anzcols = daten.Splits(0).DisplayColumns.Count
|
||||
t = dt
|
||||
Me.Tabelle = tablename
|
||||
For i = 0 To daten.Columns.Count - 1
|
||||
s = daten.Columns(i).DataField
|
||||
'If s = "ApplikationNr" Then
|
||||
' MsgBox("Hallo")
|
||||
|
||||
'End If
|
||||
Me.Feld = s
|
||||
Me.getspalte()
|
||||
daten.Columns(i).Caption = Me.spaltenname
|
||||
|
||||
If Me.ColWith = 0 Then
|
||||
daten.Splits(0).DisplayColumns(i).Width = 0
|
||||
daten.Splits(0).DisplayColumns(i).Visible = False
|
||||
Else
|
||||
daten.Splits(0).DisplayColumns(i).Width = Me.ColWith
|
||||
End If
|
||||
|
||||
If Me.locked Then
|
||||
daten.Splits(0).DisplayColumns(i).Locked = True
|
||||
End If
|
||||
|
||||
If Me.AlsHacken Then
|
||||
daten.Columns(i).ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox
|
||||
End If
|
||||
|
||||
'Präsentation von aktiv
|
||||
If LCase(daten.Columns(i).DataField) = "aktiv" And Aktiv_Spalte_True_Setzen = True Then
|
||||
daten.Columns(i).ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox
|
||||
daten.Columns(i).ValueItems.DefaultItem = True
|
||||
daten.Columns(i).DefaultValue = True
|
||||
daten.Columns(i).FilterText = True
|
||||
End If
|
||||
Select Case LCase(daten.Columns(i).DataField)
|
||||
Case "erstellt_am", "erstelltam"
|
||||
daten.Columns(i).DefaultValue = Now
|
||||
End Select
|
||||
If daten.Columns(i).DataType.Name = "DateTime" Then
|
||||
daten.Columns(i).NumberFormat = "dd.MM.yyyy HH:mm:ss"
|
||||
End If
|
||||
If Me.Numberformat <> "" Then
|
||||
daten.columns(i).numberformat = Me.Numberformat
|
||||
End If
|
||||
Next
|
||||
ColumnOrder(tablename, daten)
|
||||
daten.HeadingStyle.WrapText = False
|
||||
End Function
|
||||
|
||||
Public Function Spaltentitel_aktualisieren_Optionaler_Aktiv_Filer(ByRef daten As Object, ByRef tablename As String, ByRef dt As DataTable, Optional ByVal Aktiv_Filter As String = "")
|
||||
Dim anzcols As Integer
|
||||
Dim i As Integer
|
||||
Dim t As New DataTable()
|
||||
Dim s As String
|
||||
anzcols = daten.Splits(0).DisplayColumns.Count
|
||||
t = dt
|
||||
Me.Tabelle = tablename
|
||||
For i = 0 To daten.Columns.Count - 1
|
||||
s = daten.Columns(i).DataField
|
||||
|
||||
Me.Feld = s
|
||||
Me.getspalte()
|
||||
If Me.spaltenname = "" Then
|
||||
daten.Splits(0).DisplayColumns(i).Width = 0
|
||||
Else
|
||||
daten.Columns(i).Caption = Me.spaltenname
|
||||
|
||||
If Me.ColWith = 0 Then
|
||||
daten.Splits(0).DisplayColumns(i).Width = 0
|
||||
daten.Splits(0).DisplayColumns(i).Visible = False
|
||||
Else
|
||||
daten.Splits(0).DisplayColumns(i).Width = Me.ColWith
|
||||
End If
|
||||
|
||||
If Me.locked Then
|
||||
daten.Splits(0).DisplayColumns(i).Locked = True
|
||||
End If
|
||||
|
||||
If Me.AlsHacken Then
|
||||
daten.Columns(i).ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox
|
||||
End If
|
||||
|
||||
'Präsentation von aktiv
|
||||
If LCase(daten.Columns(i).DataField) = "aktiv" And Aktiv_Filter <> "" Then
|
||||
daten.Columns(i).ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox
|
||||
daten.Columns(i).ValueItems.DefaultItem = True
|
||||
daten.Columns(i).DefaultValue = True
|
||||
daten.Columns(i).FilterText = Aktiv_Filter
|
||||
End If
|
||||
Select Case LCase(daten.Columns(i).DataField)
|
||||
Case "erstellt_am", "erstelltam"
|
||||
daten.Columns(i).DefaultValue = Now
|
||||
End Select
|
||||
If daten.Columns(i).DataType.Name = "DateTime" Then
|
||||
daten.Columns(i).NumberFormat = "dd.MM.yyyy HH:mm:ss"
|
||||
End If
|
||||
If Me.Numberformat <> "" Then
|
||||
daten.columns(i).numberformat = Me.Numberformat
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
ColumnOrder(tablename, daten)
|
||||
daten.HeadingStyle.WrapText = False
|
||||
End Function
|
||||
''' <summary>
|
||||
''' Sortierung der in der DB-Tabelle Spalaten festgelegten Reihenfolge
|
||||
''' </summary>
|
||||
''' <param name="Tablename"></param>
|
||||
''' <param name="Data"></param>
|
||||
''' <returns></returns>
|
||||
''' <remarks></remarks>
|
||||
Public Function ColumnOrder(ByVal Tablename As String, ByRef Data As C1TrueDBGrid)
|
||||
Dim spaltendata As DataTable = Globals.Spaltendaten
|
||||
Dim dv() As DataRow
|
||||
Dim dr As DataRow
|
||||
Dim dc As New Collection
|
||||
dv = spaltendata.Select("Tabelle='" & Tablename & "'", "Reihenfolge desc, Eintragnr")
|
||||
For Each c As C1DisplayColumn In Data.Splits(0).DisplayColumns
|
||||
dc.Add(c)
|
||||
Next
|
||||
While Data.Splits(0).DisplayColumns.Count > 0
|
||||
Data.Splits(0).DisplayColumns.RemoveAt(0)
|
||||
End While
|
||||
|
||||
For Each dr In dv
|
||||
For Each e As C1DisplayColumn In dc
|
||||
If e.Name = dr.Item(3) Then
|
||||
Data.Splits(0).DisplayColumns.Insert(0, e)
|
||||
End If
|
||||
Next
|
||||
Next
|
||||
|
||||
End Function
|
||||
End Class
|
||||
|
||||
Public Class MySpaltenTitel
|
||||
Private spaltendata As DataTable = Globals.Spaltendaten
|
||||
Sub New()
|
||||
load_data()
|
||||
End Sub
|
||||
|
||||
Sub dispose()
|
||||
spaltendata.Dispose()
|
||||
Me.dispose()
|
||||
End Sub
|
||||
|
||||
Public Function getspalte(ByVal tabelle As String, ByVal feld As String, ByRef spaltenname As String, ByRef locked As Boolean, _
|
||||
ByRef colwidth As Integer, ByRef order As Integer, ByRef alshacken As Boolean, ByRef tiptext As String, ByRef numberformat As String)
|
||||
If spaltendata.Rows.Count = 0 Then load_data()
|
||||
Dim dv() As DataRow
|
||||
Dim dr As DataRow
|
||||
dv = spaltendata.Select("Tabelle='" & tabelle & "' and tabellenspalte='" & feld & "'", "Reihenfolge, Eintragnr")
|
||||
If dv.Length = 0 Then
|
||||
spaltenname = ""
|
||||
locked = True
|
||||
colwidth = 0
|
||||
order = 0
|
||||
alshacken = False
|
||||
tiptext = ""
|
||||
numberformat = ""
|
||||
End If
|
||||
For Each dr In dv
|
||||
spaltenname = dr.Item(3)
|
||||
locked = dr.Item(4)
|
||||
colwidth = dr.Item(6)
|
||||
order = dr.Item(7)
|
||||
alshacken = dr.Item(5)
|
||||
tiptext = dr.Item(8)
|
||||
numberformat = dr.Item(14).ToString
|
||||
Next
|
||||
'Dim i As Integer
|
||||
'For i = 0 To spaltendata.Rows.Count - 1
|
||||
|
||||
' If UCase(spaltendata.Rows(i).Item(1)) = UCase(tabelle) And UCase(spaltendata.Rows(i).Item(2)) = UCase(feld) Then
|
||||
' spaltenname = spaltendata.Rows(i).Item(3)
|
||||
' locked = spaltendata.Rows(i).Item(4)
|
||||
' colwidth = spaltendata.Rows(i).Item(6)
|
||||
' order = spaltendata.Rows(i).Item(7)
|
||||
' alshacken = spaltendata.Rows(i).Item(5)
|
||||
' tiptext = spaltendata.Rows(i).Item(8)
|
||||
' Exit Function
|
||||
' End If
|
||||
'Next
|
||||
|
||||
End Function
|
||||
|
||||
Public Sub load_data()
|
||||
If Me.spaltendata.Rows.Count > 0 Then Exit Sub
|
||||
Dim spalten As New Utils.clsSpalten()
|
||||
spaltendata.Rows.Clear()
|
||||
spalten.cpMainConnectionProvider = conn
|
||||
spaltendata = spalten.Select_All_Aktiv
|
||||
Globals.Spaltendaten = spaltendata
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
Public Class clsSpalten
|
||||
Inherits DB.clsSpalten
|
||||
''' <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>
|
||||
Public Function Select_All_Aktiv() As DataTable
|
||||
Dim scmCmdToExecute As SqlCommand = New SqlCommand()
|
||||
scmCmdToExecute.CommandText = "dbo.[pr_spalten_SelectAll_Aktiv]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = New DataTable("spalten")
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(0)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_spalten_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("clsSpalten::SelectAll::Error occured.", ex)
|
||||
Finally
|
||||
If m_bMainConnectionIsCreatedLocal Then
|
||||
' // Close connection.
|
||||
m_scoMainConnection.Close()
|
||||
End If
|
||||
scmCmdToExecute.Dispose()
|
||||
sdaAdapter.Dispose()
|
||||
End Try
|
||||
End Function
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
491
ThemaPerson/Klassen/MySysadmin.vb
Normal file
491
ThemaPerson/Klassen/MySysadmin.vb
Normal file
@@ -0,0 +1,491 @@
|
||||
Imports System
|
||||
Imports System.Data
|
||||
Imports System.Data.SqlTypes
|
||||
Imports System.Data.SqlClient
|
||||
|
||||
Namespace TKB.VV.Sysadmin
|
||||
|
||||
Public Class DomainTable
|
||||
|
||||
#Region "Deklarationen"
|
||||
|
||||
Dim UpdateCommand As New SqlCommand
|
||||
Dim InsertCommand As New SqlCommand
|
||||
Dim selectcommand As New SqlCommand
|
||||
Dim BaseData As New DataSet
|
||||
Dim connection As New SqlConnection()
|
||||
Dim da As New SqlDataAdapter("", connection)
|
||||
|
||||
Dim m_tablename As String
|
||||
Property Tablename() As String
|
||||
Get
|
||||
Return m_tablename
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
m_tablename = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Dim m_selectproc As String
|
||||
Property Select_Proc() As String
|
||||
Get
|
||||
Return "pr_" & Tablename & "_selectall"
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
m_selectproc = "pr_" & Tablename & "_selectall"
|
||||
End Set
|
||||
End Property
|
||||
Property Update_Proc() As String
|
||||
Get
|
||||
Return "pr_" & Tablename & "_Update"
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
m_selectproc = "pr_" & Tablename & "_Update"
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property Insert_Proc() As String
|
||||
Get
|
||||
Return "pr_" & Tablename & "_Insert"
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
m_selectproc = "pr_" & Tablename & "_Update"
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property Select_Proc_Bottomtable() As String
|
||||
Get
|
||||
Return "pr_" & Tablename & "_selectall_bottomtable"
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
m_selectproc = "pr_" & Tablename & "_selectall_bottomtable"
|
||||
End Set
|
||||
End Property
|
||||
Property Select_Proc_Bottomtable2() As String
|
||||
Get
|
||||
Return "pr_" & Tablename & "_selectall_bottomtable2"
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
m_selectproc = "pr_" & Tablename & "_selectall_bottomtable2"
|
||||
End Set
|
||||
End Property
|
||||
Property Update_Proc_Bottomtable() As String
|
||||
Get
|
||||
Return "pr_" & Tablename & "_Update_bottomtable"
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
m_selectproc = "pr_" & Tablename & "_Update_bottomtable"
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Property Insert_Proc_Bottomtable() As String
|
||||
Get
|
||||
Return "pr_" & Tablename & "_Insert_bottomtable"
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
m_selectproc = "pr_" & Tablename & "_Update_bottomtable"
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Dim m_Tabledata As New DataSet
|
||||
Property Tabledata() As DataSet
|
||||
Get
|
||||
Return m_Tabledata
|
||||
End Get
|
||||
Set(ByVal value As DataSet)
|
||||
m_Tabledata = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
''' <summary>
|
||||
''' Tabellenname übernehmen und Daten ab DB laden
|
||||
''' </summary>
|
||||
''' <param name="tablename"></param>
|
||||
''' <remarks></remarks>
|
||||
Sub New(ByVal tablename As String, Optional ByVal Fokus As Integer = 0, Optional ByVal Keyvalue As String = "")
|
||||
Me.Tablename = tablename
|
||||
If Keyvalue = "" Then
|
||||
Load_Data()
|
||||
Else
|
||||
Load_Bootom_Table(tablename, Fokus, Keyvalue)
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Sub New(ByVal tablename As String, ByVal Fokus As Integer, ByVal Keyvalue As String, ByVal mitarbeiternr As Integer)
|
||||
Me.Tablename = tablename
|
||||
If Keyvalue = "" Then
|
||||
Load_Data()
|
||||
Else
|
||||
Load_Data_MA_Fokus(tablename, Fokus, Keyvalue, mitarbeiternr)
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
Sub New(ByVal tablename As String, ByVal keyvalue As String, ByVal mitarbeiternr As Integer)
|
||||
Me.Tablename = tablename
|
||||
Load_Data_MA(tablename, keyvalue, mitarbeiternr)
|
||||
End Sub
|
||||
|
||||
Sub New(ByVal tablename As String, ByVal Focus As Integer, ByVal keyvalue As String, ByVal mitarbeiternr As Integer, ByVal Key2 As String)
|
||||
Me.Tablename = tablename
|
||||
Load_Data_2Key(tablename, keyvalue, mitarbeiternr, Key2)
|
||||
End Sub
|
||||
|
||||
|
||||
Public Sub Load_Data_MA(ByVal tablename As String, ByVal KeyValue As String, ByVal mitarbeiternr As Integer)
|
||||
Tabledata.Tables.Clear()
|
||||
Dim sqlcmd As New SqlCommand
|
||||
sqlcmd.CommandText = Me.Select_Proc_Bottomtable
|
||||
sqlcmd.Parameters.Add("@iErrorCode", SqlDbType.Int, 4)
|
||||
sqlcmd.Parameters.Add("@Fokus", SqlDbType.Int, 4)
|
||||
sqlcmd.Parameters.Add("@KeyValue", SqlDbType.VarChar, 255)
|
||||
sqlcmd.Parameters.Add("@mitarbeiternr", SqlDbType.VarChar, 255)
|
||||
sqlcmd.Parameters(0).Value = 0
|
||||
sqlcmd.Parameters(1).Value = 0
|
||||
sqlcmd.Parameters(2).Value = KeyValue
|
||||
sqlcmd.Parameters(3).Value = Globals.Mitarbeiternr
|
||||
|
||||
sqlcmd.CommandType = CommandType.StoredProcedure
|
||||
sqlcmd.Connection = connection
|
||||
Try
|
||||
connection.ConnectionString = Globals.sConnectionString
|
||||
connection.Open()
|
||||
da.SelectCommand = sqlcmd
|
||||
da.Fill(Tabledata, "Domaintable")
|
||||
Catch ex As Exception
|
||||
Finally
|
||||
connection.Close()
|
||||
da.Dispose()
|
||||
sqlcmd.Dispose()
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Public Sub Load_Data_2Key(ByVal tablename As String, ByVal KeyValue As String, ByVal mitarbeiternr As Integer, ByVal KeyValue2 As String)
|
||||
Tabledata.Tables.Clear()
|
||||
Dim sqlcmd As New SqlCommand
|
||||
sqlcmd.CommandText = Me.Select_Proc_Bottomtable2
|
||||
sqlcmd.Parameters.Add("@iErrorCode", SqlDbType.Int, 4)
|
||||
sqlcmd.Parameters.Add("@Fokus", SqlDbType.Int, 4)
|
||||
sqlcmd.Parameters.Add("@KeyValue", SqlDbType.VarChar, 255)
|
||||
sqlcmd.Parameters.Add("@KeyValue2", SqlDbType.VarChar, 255)
|
||||
sqlcmd.Parameters.Add("@mitarbeiternr", SqlDbType.VarChar, 255)
|
||||
sqlcmd.Parameters(0).Value = 0
|
||||
sqlcmd.Parameters(1).Value = 0
|
||||
sqlcmd.Parameters(2).Value = KeyValue
|
||||
sqlcmd.Parameters(3).Value = KeyValue2
|
||||
sqlcmd.Parameters(4).Value = Globals.Mitarbeiternr
|
||||
|
||||
sqlcmd.CommandType = CommandType.StoredProcedure
|
||||
sqlcmd.Connection = connection
|
||||
Try
|
||||
connection.ConnectionString = Globals.sConnectionString
|
||||
connection.Open()
|
||||
da.SelectCommand = sqlcmd
|
||||
da.Fill(Tabledata, "Domaintable")
|
||||
Catch ex As Exception
|
||||
Finally
|
||||
connection.Close()
|
||||
da.Dispose()
|
||||
sqlcmd.Dispose()
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Public Sub Load_Data_MA_Fokus(ByVal tablename As String, ByVal Fokus As Integer, ByVal KeyValue As String, ByVal mitarbeiternr As Integer)
|
||||
Tabledata.Tables.Clear()
|
||||
Dim sqlcmd As New SqlCommand
|
||||
sqlcmd.CommandText = Me.Select_Proc_Bottomtable
|
||||
sqlcmd.Parameters.Add("@iErrorCode", SqlDbType.Int, 4)
|
||||
sqlcmd.Parameters.Add("@Fokus", SqlDbType.Int, 4)
|
||||
sqlcmd.Parameters.Add("@KeyValue", SqlDbType.VarChar, 255)
|
||||
sqlcmd.Parameters.Add("@mitarbeiternr", SqlDbType.VarChar, 255)
|
||||
sqlcmd.Parameters(0).Value = 0
|
||||
sqlcmd.Parameters(1).Value = Fokus
|
||||
sqlcmd.Parameters(2).Value = KeyValue
|
||||
sqlcmd.Parameters(3).Value = Globals.Mitarbeiternr
|
||||
|
||||
sqlcmd.CommandType = CommandType.StoredProcedure
|
||||
sqlcmd.Connection = connection
|
||||
Try
|
||||
connection.ConnectionString = Globals.sConnectionString
|
||||
connection.Open()
|
||||
da.SelectCommand = sqlcmd
|
||||
da.Fill(Tabledata, "Domaintable")
|
||||
Catch ex As Exception
|
||||
Finally
|
||||
connection.Close()
|
||||
da.Dispose()
|
||||
sqlcmd.Dispose()
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'Sub New()
|
||||
'End Sub
|
||||
''' <summary>
|
||||
''' Daten ab Datenbank laden
|
||||
''' </summary>
|
||||
''' <remarks></remarks>
|
||||
Public Overridable Sub Load_Data()
|
||||
Tabledata.Tables.Clear()
|
||||
|
||||
selectcommand.CommandText = Me.Select_Proc
|
||||
selectcommand.Parameters.Add("@iErrorCode", SqlDbType.Int, 4)
|
||||
selectcommand.Parameters(0).Value = 0
|
||||
|
||||
selectcommand.CommandType = CommandType.StoredProcedure
|
||||
selectcommand.Connection = connection
|
||||
Try
|
||||
connection.ConnectionString = Globals.sConnectionString
|
||||
connection.Open()
|
||||
da.SelectCommand = selectcommand
|
||||
da.Fill(Tabledata, "Domaintable")
|
||||
Catch ex As Exception
|
||||
Finally
|
||||
connection.Close()
|
||||
da.Dispose()
|
||||
selectcommand.Dispose()
|
||||
End Try
|
||||
End Sub
|
||||
''' <summary>
|
||||
''' Basis-Datentabelle laden. Diese wird für die dynamische Generierung der Insert- und Update-Statements benötigt
|
||||
''' </summary>
|
||||
''' <remarks></remarks>
|
||||
Private Sub Load_BaseData()
|
||||
BaseData.Tables.Clear()
|
||||
Dim sqlcmd As New SqlCommand
|
||||
|
||||
sqlcmd.CommandText = Me.Select_Proc
|
||||
sqlcmd.Parameters.Add("@iErrorCode", SqlDbType.Int, 4)
|
||||
sqlcmd.Parameters(0).Value = 0
|
||||
|
||||
sqlcmd.CommandType = CommandType.StoredProcedure
|
||||
sqlcmd.Connection = connection
|
||||
Try
|
||||
connection.ConnectionString = Globals.sConnectionString
|
||||
connection.Open()
|
||||
da.SelectCommand = sqlcmd
|
||||
da.Fill(BaseData, "Basedata")
|
||||
Catch ex As Exception
|
||||
Finally
|
||||
connection.Close()
|
||||
da.Dispose()
|
||||
sqlcmd.Dispose()
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Update-Statement dynamisch für das UpdateCommand generieren
|
||||
''' </summary>
|
||||
''' <remarks></remarks>
|
||||
Private Sub Generate_Update_Statement()
|
||||
Dim col As DataColumn
|
||||
Dim col1 As DataColumn
|
||||
Dim UseCol As Boolean = False
|
||||
|
||||
UpdateCommand.CommandText = Me.Update_Proc
|
||||
UpdateCommand.CommandType = System.Data.CommandType.StoredProcedure
|
||||
UpdateCommand.Connection = connection
|
||||
|
||||
UpdateCommand.Parameters.Clear()
|
||||
For Each col In Me.Tabledata.Tables(0).Columns
|
||||
UseCol = False
|
||||
For Each col1 In Me.BaseData.Tables(0).Columns
|
||||
If col.ColumnName = col1.ColumnName Then
|
||||
UseCol = True
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
If UseCol Then UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter(Get_Prefix(col) & col.ColumnName, Get_SqlDBType(col), Get_Data_Fieldlen(col), col.ColumnName))
|
||||
Next
|
||||
UpdateCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@iErrorcode", SqlDbType.Int, 4))
|
||||
UpdateCommand.Parameters("@iErrorcode").Value = 0
|
||||
da.UpdateCommand = UpdateCommand
|
||||
End Sub
|
||||
''' <summary>
|
||||
''' Insert-Statement dynamisch für das InsertCommand generieren
|
||||
''' </summary>
|
||||
''' <remarks></remarks>
|
||||
Private Sub Generate_Insert_Statement()
|
||||
Dim col As DataColumn
|
||||
Dim col1 As DataColumn
|
||||
Dim UseCol As Boolean = False
|
||||
|
||||
InsertCommand.CommandText = Me.Insert_Proc
|
||||
InsertCommand.CommandType = System.Data.CommandType.StoredProcedure
|
||||
InsertCommand.Connection = connection
|
||||
|
||||
InsertCommand.Parameters.Clear()
|
||||
For Each col In Me.Tabledata.Tables(0).Columns
|
||||
UseCol = False
|
||||
For Each col1 In Me.BaseData.Tables(0).Columns
|
||||
If col.ColumnName = col1.ColumnName Then
|
||||
UseCol = True
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
If UseCol Then InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter(Get_Prefix(col) & col.ColumnName, Get_SqlDBType(col), Get_Data_Fieldlen(col), col.ColumnName))
|
||||
Next
|
||||
InsertCommand.Parameters.Add(New System.Data.SqlClient.SqlParameter("@iErrorcode", SqlDbType.Int, 4))
|
||||
InsertCommand.Parameters("@iErrorcode").Value = 0
|
||||
da.InsertCommand = InsertCommand
|
||||
End Sub
|
||||
''' <summary>
|
||||
''' Prefixt für den SP-Übergabeparameter generieren
|
||||
''' </summary>
|
||||
''' <param name="col">Aktuelle Columnt</param>
|
||||
''' <returns>Prefis für SP-Übergabeparameter</returns>
|
||||
''' <remarks></remarks>
|
||||
Private Function Get_Prefix(ByVal col As DataColumn) As String
|
||||
If col.DataType.Name = "DateTime" Then Return "@da"
|
||||
If col.DataType.Name = "Double" Then Return "@f"
|
||||
Return "@" & col.DataType.Name.Substring(0, 1)
|
||||
End Function
|
||||
''' <summary>
|
||||
''' SQL-DB-Type für den SP-Übergabeparameter festlegen
|
||||
''' </summary>
|
||||
''' <param name="col">Aktuelle Column</param>
|
||||
''' <returns>SQLDBType</returns>
|
||||
''' <remarks></remarks>
|
||||
Private Function Get_SqlDBType(ByVal col As DataColumn) As SqlDbType
|
||||
If col.DataType.Name = "Integer" Then Return SqlDbType.Int
|
||||
If col.DataType.Name = "Int32" Then Return SqlDbType.Int
|
||||
If col.DataType.Name = "String" Then Return SqlDbType.VarChar
|
||||
If col.DataType.Name = "Boolean" Then Return SqlDbType.Bit
|
||||
If col.DataType.Name = "DateTime" Then Return SqlDbType.DateTime
|
||||
If col.DataType.Name = "Double" Then Return SqlDbType.Float
|
||||
MsgBox(col.DataType.Name)
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Feldlänge für den SP-Übergabeparemter festlegen
|
||||
''' </summary>
|
||||
''' <param name="col">Aktulle Column</param>
|
||||
''' <returns>Feldlänge</returns>
|
||||
''' <remarks></remarks>
|
||||
Private Function Get_Data_Fieldlen(ByVal col As DataColumn) As Integer
|
||||
Return col.MaxLength
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Datesichern. Dabei wird das Update- sowie das Insert-Statement dynamisch generiert
|
||||
''' </summary>
|
||||
''' <remarks></remarks>
|
||||
Public Sub Save_Data()
|
||||
Load_BaseData()
|
||||
Generate_Update_Statement()
|
||||
Generate_Insert_Statement()
|
||||
Try
|
||||
da.Update(Me.Tabledata, Me.Tabledata.Tables(0).TableName)
|
||||
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message)
|
||||
End Try
|
||||
End Sub
|
||||
''' <summary>
|
||||
''' Dispose von Tabledata
|
||||
''' </summary>
|
||||
''' <remarks></remarks>
|
||||
Public Sub dispose()
|
||||
Me.Tabledata.Dispose()
|
||||
End Sub
|
||||
|
||||
#Region "Verknüpfungseditor"
|
||||
''' <summary>
|
||||
''' Load der Verbindungstabelle
|
||||
''' </summary>
|
||||
''' <param name="tablename"></param>
|
||||
''' <param name="Fokus"></param>
|
||||
''' <param name="KeyValue"></param>
|
||||
''' <remarks></remarks>
|
||||
Public Sub Load_Bootom_Table(ByVal tablename As String, ByVal Fokus As Integer, ByVal KeyValue As String)
|
||||
Tabledata.Tables.Clear()
|
||||
Dim sqlcmd As New SqlCommand
|
||||
sqlcmd.CommandText = Me.Select_Proc_bottomtable
|
||||
sqlcmd.Parameters.Add("@iErrorCode", SqlDbType.Int, 4)
|
||||
sqlcmd.Parameters.Add("@Fokus", SqlDbType.Int, 4)
|
||||
sqlcmd.Parameters.Add("@KeyValue", SqlDbType.VarChar, 255)
|
||||
sqlcmd.Parameters(0).Value = 0
|
||||
sqlcmd.Parameters(1).Value = Fokus
|
||||
sqlcmd.Parameters(2).Value = KeyValue
|
||||
|
||||
sqlcmd.CommandType = CommandType.StoredProcedure
|
||||
sqlcmd.Connection = connection
|
||||
Try
|
||||
connection.ConnectionString = Globals.sConnectionString
|
||||
connection.Open()
|
||||
da.SelectCommand = sqlcmd
|
||||
da.Fill(Tabledata, "Domaintable")
|
||||
Catch ex As Exception
|
||||
Finally
|
||||
connection.Close()
|
||||
da.Dispose()
|
||||
sqlcmd.Dispose()
|
||||
End Try
|
||||
End Sub
|
||||
''' <summary>
|
||||
''' Neuer Eintrag in der Tabelle eintragen. Sind neben den Defaultwerten weitere Attribute vorhanden, werde diese abhängig vom Datentype mit Defaultwerten befüllt.
|
||||
''' </summary>
|
||||
''' <param name="key1"></param>
|
||||
''' <param name="keyvalue1"></param>
|
||||
''' <param name="key2"></param>
|
||||
''' <param name="keyvalue2"></param>
|
||||
''' <remarks></remarks>
|
||||
Public Sub Insert_Bottom_Table(ByVal key1 As String, ByVal keyvalue1 As Integer, ByVal key2 As String, ByVal keyvalue2 As String)
|
||||
Dim dbkey As New db.clsMyKey_Tabelle
|
||||
dbkey.cpMainConnectionProvider = Globals.conn
|
||||
conn.OpenConnection()
|
||||
Dim newkey As Integer = dbkey.get_dbkey(Me.Tablename)
|
||||
conn.CloseConnection(True)
|
||||
dbkey.Dispose()
|
||||
Dim dr As DataRow
|
||||
dr = Me.Tabledata.Tables(0).NewRow
|
||||
dr.Item(0) = newkey
|
||||
Dim i As Integer
|
||||
For i = 1 To Me.Tabledata.Tables(0).Columns.Count - 1
|
||||
Select Case UCase(Me.Tabledata.Tables(0).Columns(i).ColumnName)
|
||||
Case "AKTIV"
|
||||
dr.Item(i) = 1
|
||||
Case "ERSTELLT_AM"
|
||||
dr.Item(i) = Now
|
||||
Case "MUTIERT_AM"
|
||||
dr.Item(i) = Now
|
||||
Case "MUTIERER"
|
||||
dr.Item(i) = Globals.Mitarbeiternr
|
||||
Case "MANDANTNR"
|
||||
dr.Item(i) = Globals.Mitarbeiternr
|
||||
Case "MANDANT"
|
||||
dr.Item(i) = Globals.Mitarbeiternr
|
||||
Case UCase(key1)
|
||||
dr.Item(i) = keyvalue1
|
||||
Case UCase(key2)
|
||||
dr.Item(i) = keyvalue2
|
||||
Case Else
|
||||
Select Case Type.GetTypeCode(Me.Tabledata.Tables(0).Columns(i).DataType)
|
||||
Case TypeCode.DateTime
|
||||
dr.Item(i) = Now
|
||||
Case TypeCode.Double
|
||||
dr.Item(i) = 0
|
||||
Case TypeCode.String
|
||||
dr.Item(i) = ""
|
||||
Case TypeCode.Int32
|
||||
dr.Item(i) = 0
|
||||
Case TypeCode.Boolean
|
||||
dr.Item(i) = True
|
||||
Case TypeCode.Int16
|
||||
dr.Item(i) = 0
|
||||
Case TypeCode.Int32
|
||||
dr.Item(i) = 0
|
||||
Case TypeCode.Int64
|
||||
dr.Item(i) = 0
|
||||
End Select
|
||||
End Select
|
||||
Next
|
||||
Me.Tabledata.Tables(0).Rows.Add(dr)
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
|
||||
End Class
|
||||
|
||||
End Namespace
|
||||
329
ThemaPerson/Klassen/Person.vb
Normal file
329
ThemaPerson/Klassen/Person.vb
Normal file
@@ -0,0 +1,329 @@
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Data.SqlTypes
|
||||
Namespace db
|
||||
Public Class Person
|
||||
Inherits db.clsPerson
|
||||
|
||||
|
||||
#Region "Deklarationen"
|
||||
Public daten As New DataTable
|
||||
Public Neuer_Datensatz As Boolean = False
|
||||
|
||||
Dim mMutierer As String
|
||||
Property MutiererText() As String
|
||||
Get
|
||||
Return mMutierer
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
mMutierer = value
|
||||
End Set
|
||||
End Property
|
||||
#End Region
|
||||
|
||||
Sub New()
|
||||
|
||||
End Sub
|
||||
|
||||
Public Overloads Sub dispose()
|
||||
MyBase.Dispose()
|
||||
Try
|
||||
Catch
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Mutierer auslesen
|
||||
''' </summary>
|
||||
''' <returns></returns>
|
||||
''' <remarks></remarks>
|
||||
|
||||
Public Function Get_Person(ByVal Nr As Integer)
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Me.iPersonNr = New SqlInt32(CType(Nr, Int32))
|
||||
Globals.conn.OpenConnection()
|
||||
Me.daten = Me.SelectOne()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Try
|
||||
Catch ex As Exception
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Function Save_Data() As Integer
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Me.iMutierer = New SqlInt32(CType(Globals.Mitarbeiternr, Int32))
|
||||
Me.daMutiert_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Globals.conn.OpenConnection()
|
||||
Me.Update()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Me.Neuer_Datensatz = False
|
||||
End Function
|
||||
|
||||
Public Function Create_Copy(Optional ByVal Basenr As Integer = 0) As Integer
|
||||
If Basenr <> 0 Then
|
||||
Get_Person(Basenr)
|
||||
End If
|
||||
Dim db As New db.clsMyKey_Tabelle
|
||||
db.cpMainConnectionProvider = Globals.conn
|
||||
Dim newkey = db.get_dbkey("Person")
|
||||
db.Dispose()
|
||||
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Me.iPersonNr = New SqlInt32(CType(newkey, Int32))
|
||||
Me.daErstellt_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Me.daMutiert_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Me.iMutierer = New SqlInt32(CType(Globals.Mitarbeiternr, Int32))
|
||||
Globals.conn.OpenConnection()
|
||||
Me.Insert()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Me.Neuer_Datensatz = True
|
||||
Return newkey
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Löschen eines Datensatzes erstellen.
|
||||
''' </summary>
|
||||
''' <param name="Basenr">Ursprungs-Person: Ist dieser Wert nicht 0, werden die Daten mit BaseNr zuerst gelesen</param>
|
||||
''' <returns></returns>
|
||||
''' <remarks></remarks>
|
||||
Public Function Delete_Thema(Optional ByVal Basenr As Integer = 0) As Integer
|
||||
If Basenr <> 0 Then
|
||||
Get_Person(Basenr)
|
||||
End If
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Me.bAktiv = New SqlBoolean(CType(False, Boolean))
|
||||
Me.daMutiert_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Me.iMutierer = New SqlInt32(CType(Globals.Mitarbeiternr, Int32))
|
||||
Globals.conn.OpenConnection()
|
||||
Me.Update()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Me.Neuer_Datensatz = False
|
||||
End Function
|
||||
|
||||
Public Overloads Function Delete(Optional ByVal Basenr As Integer = 0) As Integer
|
||||
If Basenr <> 0 Then
|
||||
Get_Person(Basenr)
|
||||
End If
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Globals.conn.OpenConnection()
|
||||
MyBase.Delete()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Me.Neuer_Datensatz = False
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Neue Person einfügen
|
||||
''' </summary>
|
||||
''' <returns></returns>
|
||||
''' <remarks></remarks>
|
||||
Public Function Add_New() As Integer
|
||||
Dim db As New db.clsMyKey_Tabelle
|
||||
db.cpMainConnectionProvider = Globals.conn
|
||||
Dim newkey = db.get_dbkey("Person")
|
||||
db.Dispose()
|
||||
Me.iPersonNr = New SqlInt32(CType(newkey, Int32))
|
||||
Me.sName = New SqlString(CType("", String))
|
||||
Me.sVorname = New SqlString(CType("", String))
|
||||
Me.sFirma = New SqlString(CType("", String))
|
||||
Me.sPlz = New SqlString(CType("", String))
|
||||
Me.sOrt = New SqlString(CType("", String))
|
||||
Me.sPostfach = New SqlString(CType("", String))
|
||||
Me.sTelefax = New SqlString(CType("", String))
|
||||
Me.sInternet = New SqlString(CType("", String))
|
||||
Me.sEMail = New SqlString(CType("", String))
|
||||
Me.sTelefon = New SqlString(CType("", String))
|
||||
Me.bAktiv = New SqlBoolean(CType(True, Boolean))
|
||||
Me.daErstellt_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Me.daMutiert_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Me.iMutierer = New SqlInt32(CType(Globals.Mitarbeiternr, Int32))
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Globals.conn.OpenConnection()
|
||||
Me.Insert()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Me.Neuer_Datensatz = True
|
||||
Return newkey
|
||||
End Function
|
||||
|
||||
Public Function Get_Aktive_Personen() As DataTable
|
||||
Dim Eintragsdaten As New DataTable
|
||||
Dim connection As New SqlConnection()
|
||||
Dim da As New SqlDataAdapter("", connection)
|
||||
Eintragsdaten.Rows.Clear()
|
||||
Dim sqlcmd As New SqlCommand
|
||||
sqlcmd.CommandText = "sp_get_Aktive_Personen"
|
||||
sqlcmd.CommandType = CommandType.StoredProcedure
|
||||
sqlcmd.Connection = connection
|
||||
Try
|
||||
connection.ConnectionString = Globals.sConnectionString
|
||||
connection.Open()
|
||||
da.SelectCommand = sqlcmd
|
||||
da.Fill(Eintragsdaten)
|
||||
Catch ex As Exception
|
||||
Finally
|
||||
connection.Close()
|
||||
da.Dispose()
|
||||
sqlcmd.Dispose()
|
||||
End Try
|
||||
Return Eintragsdaten
|
||||
End Function
|
||||
|
||||
Public Function Get_Aktive_Funktionen() As DataTable
|
||||
Dim Eintragsdaten As New DataTable
|
||||
Dim connection As New SqlConnection()
|
||||
Dim da As New SqlDataAdapter("", connection)
|
||||
Eintragsdaten.Rows.Clear()
|
||||
Dim sqlcmd As New SqlCommand
|
||||
sqlcmd.CommandText = "sp_get_Aktive_Funktionen"
|
||||
sqlcmd.CommandType = CommandType.StoredProcedure
|
||||
sqlcmd.Connection = connection
|
||||
Try
|
||||
connection.ConnectionString = Globals.sConnectionString
|
||||
connection.Open()
|
||||
da.SelectCommand = sqlcmd
|
||||
da.Fill(Eintragsdaten)
|
||||
Catch ex As Exception
|
||||
Finally
|
||||
connection.Close()
|
||||
da.Dispose()
|
||||
sqlcmd.Dispose()
|
||||
End Try
|
||||
Return Eintragsdaten
|
||||
End Function
|
||||
|
||||
End Class
|
||||
|
||||
Public Class ThemaPerson
|
||||
Inherits DB.clsThemaPerson
|
||||
|
||||
Public daten As New DataTable
|
||||
Public Neuer_Datensatz As Boolean = False
|
||||
|
||||
|
||||
Public Function Get_ThemaPerson(ByVal Nr As Integer)
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Me.iThemaPersonNr = New SqlInt32(CType(Nr, Int32))
|
||||
Globals.conn.OpenConnection()
|
||||
Me.daten = Me.SelectOne()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Try
|
||||
Catch ex As Exception
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Function Save_Data() As Integer
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Me.iMutierer = New SqlInt32(CType(Globals.Mitarbeiternr, Int32))
|
||||
Me.daMutiert_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Globals.conn.OpenConnection()
|
||||
Me.Update()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Me.Neuer_Datensatz = False
|
||||
End Function
|
||||
|
||||
Public Function Create_Copy(Optional ByVal Basenr As Integer = 0) As Integer
|
||||
If Basenr <> 0 Then
|
||||
Get_ThemaPerson(Basenr)
|
||||
End If
|
||||
Dim db As New DB.clsMyKey_Tabelle
|
||||
db.cpMainConnectionProvider = Globals.conn
|
||||
Dim newkey = db.get_dbkey("ThemaPerson")
|
||||
db.Dispose()
|
||||
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Me.iPersonNr = New SqlInt32(CType(newkey, Int32))
|
||||
Me.daErstellt_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Me.daMutiert_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Me.iMutierer = New SqlInt32(CType(Globals.Mitarbeiternr, Int32))
|
||||
Globals.conn.OpenConnection()
|
||||
Me.Insert()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Me.Neuer_Datensatz = True
|
||||
Return newkey
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Löschen eines Datensatzes erstellen.
|
||||
''' </summary>
|
||||
''' <param name="Basenr">Ursprungs-Person: Ist dieser Wert nicht 0, werden die Daten mit BaseNr zuerst gelesen</param>
|
||||
''' <returns></returns>
|
||||
''' <remarks></remarks>
|
||||
Public Function Delete_Thema(Optional ByVal Basenr As Integer = 0) As Integer
|
||||
If Basenr <> 0 Then
|
||||
Get_ThemaPerson(Basenr)
|
||||
End If
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Me.bAktiv = New SqlBoolean(CType(False, Boolean))
|
||||
Me.daMutiert_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Me.iMutierer = New SqlInt32(CType(Globals.Mitarbeiternr, Int32))
|
||||
Globals.conn.OpenConnection()
|
||||
Me.Update()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Me.Neuer_Datensatz = False
|
||||
End Function
|
||||
|
||||
Public Overloads Function Delete(Optional ByVal Basenr As Integer = 0) As Integer
|
||||
If Basenr <> 0 Then
|
||||
Get_ThemaPerson(Basenr)
|
||||
End If
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Globals.conn.OpenConnection()
|
||||
MyBase.Delete()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Me.Neuer_Datensatz = False
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Neue Person einfügen
|
||||
''' </summary>
|
||||
''' <returns></returns>
|
||||
''' <remarks></remarks>
|
||||
Public Function Add_New(ThemaNr As Integer, Personnr As Integer, Funktionnr As Integer, bemerkung As String) As Integer
|
||||
Dim db As New DB.clsMyKey_Tabelle
|
||||
db.cpMainConnectionProvider = Globals.conn
|
||||
Dim newkey = db.get_dbkey("ThemaPerson")
|
||||
db.Dispose()
|
||||
|
||||
Me.iThemaPersonNr = New SqlInt32(CType(newkey, Int32))
|
||||
Me.iThemaNr = New SqlInt32(CType(ThemaNr, Int32))
|
||||
Me.iPersonNr = New SqlInt32(CType(Personnr, Int32))
|
||||
Me.iFunktionNr = New SqlInt32(CType(Funktionnr, Int32))
|
||||
Me.sBemerkung = New SqlString(CType(bemerkung, String))
|
||||
Me.bAktiv = New SqlBoolean(CType(True, Boolean))
|
||||
Me.daErstellt_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Me.daMutiert_am = New SqlDateTime(CType(Now, DateTime))
|
||||
Me.iMutierer = New SqlInt32(CType(Globals.Mitarbeiternr, Int32))
|
||||
Me.cpMainConnectionProvider = Globals.conn
|
||||
Globals.conn.OpenConnection()
|
||||
Me.Insert()
|
||||
Globals.conn.CloseConnection(True)
|
||||
Me.Neuer_Datensatz = True
|
||||
Return newkey
|
||||
End Function
|
||||
|
||||
Public Function Get_Personen(ByVal ThemaNr As Integer)
|
||||
Dim Eintragsdaten As New DataTable
|
||||
Dim connection As New SqlConnection()
|
||||
Dim da As New SqlDataAdapter("", connection)
|
||||
Eintragsdaten.Rows.Clear()
|
||||
Dim sqlcmd As New SqlCommand
|
||||
sqlcmd.CommandText = "sp_get_Thema_Personen"
|
||||
sqlcmd.CommandType = CommandType.StoredProcedure
|
||||
sqlcmd.Connection = connection
|
||||
sqlcmd.Parameters.Add("@Themanr", SqlDbType.Int, 4)
|
||||
sqlcmd.Parameters(0).Value = ThemaNr
|
||||
Try
|
||||
connection.ConnectionString = Globals.sConnectionString
|
||||
connection.Open()
|
||||
da.SelectCommand = sqlcmd
|
||||
da.Fill(Eintragsdaten)
|
||||
Catch ex As Exception
|
||||
Finally
|
||||
connection.Close()
|
||||
da.Dispose()
|
||||
sqlcmd.Dispose()
|
||||
End Try
|
||||
Return Eintragsdaten
|
||||
End Function
|
||||
|
||||
End Class
|
||||
|
||||
End Namespace
|
||||
630
ThemaPerson/Klassen/clsSpalten.vb
Normal file
630
ThemaPerson/Klassen/clsSpalten.vb
Normal file
@@ -0,0 +1,630 @@
|
||||
' ///////////////////////////////////////////////////////////////////////////
|
||||
' // Description: Data Access class for the table 'spalten'
|
||||
' // Generated by LLBLGen v1.21.2003.712 Final on: Dienstag, 1. Januar 2013, 13:15:45
|
||||
' // 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 db
|
||||
''' <summary>
|
||||
''' Purpose: Data Access class for the table 'spalten'.
|
||||
''' </summary>
|
||||
Public Class clsSpalten
|
||||
Inherits clsDBInteractionBase
|
||||
|
||||
#Region " Class Member Declarations "
|
||||
|
||||
Private m_bReadonly, m_bAlsHacken, m_bAktiv As SqlBoolean
|
||||
Private m_daErstellt_am, m_daMutiert_am As SqlDateTime
|
||||
Private m_iMandantnr, m_iMutierer, m_iReihenfolge, m_iEintragnr, m_iBreite As SqlInt32
|
||||
Private m_sTabelle, m_sNumberFormat, m_sTiptext, m_sSpalte, m_sTabellenspalte 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>iEintragnr</LI>
|
||||
''' <LI>sTabelle. May be SqlString.Null</LI>
|
||||
''' <LI>sTabellenspalte. May be SqlString.Null</LI>
|
||||
''' <LI>sSpalte. May be SqlString.Null</LI>
|
||||
''' <LI>bReadonly</LI>
|
||||
''' <LI>bAlsHacken</LI>
|
||||
''' <LI>iBreite. May be SqlInt32.Null</LI>
|
||||
''' <LI>iReihenfolge. May be SqlInt32.Null</LI>
|
||||
''' <LI>sTiptext. May be SqlString.Null</LI>
|
||||
''' <LI>bAktiv</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>iMandantnr. May be SqlInt32.Null</LI>
|
||||
''' <LI>sNumberFormat. May be SqlString.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_spalten_Insert]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ieintragnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iEintragnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@stabelle", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sTabelle))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@stabellenspalte", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sTabellenspalte))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sspalte", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sSpalte))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@bReadonly", SqlDbType.Bit, 1, ParameterDirection.Input, False, 0, 0, "", DataRowVersion.Proposed, m_bReadonly))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@balsHacken", SqlDbType.Bit, 1, ParameterDirection.Input, False, 0, 0, "", DataRowVersion.Proposed, m_bAlsHacken))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iBreite", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iBreite))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iReihenfolge", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iReihenfolge))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@stiptext", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sTiptext))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@baktiv", SqlDbType.Bit, 1, ParameterDirection.Input, False, 0, 0, "", DataRowVersion.Proposed, m_bAktiv))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daerstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@damutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", 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("@imandantnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iMandantnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sNumberFormat", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sNumberFormat))
|
||||
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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_spalten_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("clsSpalten::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>iEintragnr</LI>
|
||||
''' <LI>sTabelle. May be SqlString.Null</LI>
|
||||
''' <LI>sTabellenspalte. May be SqlString.Null</LI>
|
||||
''' <LI>sSpalte. May be SqlString.Null</LI>
|
||||
''' <LI>bReadonly</LI>
|
||||
''' <LI>bAlsHacken</LI>
|
||||
''' <LI>iBreite. May be SqlInt32.Null</LI>
|
||||
''' <LI>iReihenfolge. May be SqlInt32.Null</LI>
|
||||
''' <LI>sTiptext. May be SqlString.Null</LI>
|
||||
''' <LI>bAktiv</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>iMandantnr. May be SqlInt32.Null</LI>
|
||||
''' <LI>sNumberFormat. 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_spalten_Update]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ieintragnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iEintragnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@stabelle", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sTabelle))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@stabellenspalte", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sTabellenspalte))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sspalte", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sSpalte))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@bReadonly", SqlDbType.Bit, 1, ParameterDirection.Input, False, 0, 0, "", DataRowVersion.Proposed, m_bReadonly))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@balsHacken", SqlDbType.Bit, 1, ParameterDirection.Input, False, 0, 0, "", DataRowVersion.Proposed, m_bAlsHacken))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iBreite", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iBreite))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@iReihenfolge", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iReihenfolge))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@stiptext", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sTiptext))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@baktiv", SqlDbType.Bit, 1, ParameterDirection.Input, False, 0, 0, "", DataRowVersion.Proposed, m_bAktiv))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@daerstellt_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_daErstellt_am))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@damutiert_am", SqlDbType.DateTime, 8, ParameterDirection.Input, True, 0, 0, "", 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("@imandantnr", SqlDbType.Int, 4, ParameterDirection.Input, True, 10, 0, "", DataRowVersion.Proposed, m_iMandantnr))
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@sNumberFormat", SqlDbType.VarChar, 255, ParameterDirection.Input, True, 0, 0, "", DataRowVersion.Proposed, m_sNumberFormat))
|
||||
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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_spalten_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("clsSpalten::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>iEintragnr</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_spalten_Delete]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(New SqlParameter("@ieintragnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iEintragnr))
|
||||
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.
|
||||
m_iRowsAffected = scmCmdToExecute.ExecuteNonQuery()
|
||||
m_iErrorCode = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_spalten_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("clsSpalten::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>iEintragnr</LI>
|
||||
''' </UL>
|
||||
''' Properties set after a succesful call of this method:
|
||||
''' <UL>
|
||||
''' <LI>iErrorCode</LI>
|
||||
''' <LI>iEintragnr</LI>
|
||||
''' <LI>sTabelle</LI>
|
||||
''' <LI>sTabellenspalte</LI>
|
||||
''' <LI>sSpalte</LI>
|
||||
''' <LI>bReadonly</LI>
|
||||
''' <LI>bAlsHacken</LI>
|
||||
''' <LI>iBreite</LI>
|
||||
''' <LI>iReihenfolge</LI>
|
||||
''' <LI>sTiptext</LI>
|
||||
''' <LI>bAktiv</LI>
|
||||
''' <LI>daErstellt_am</LI>
|
||||
''' <LI>daMutiert_am</LI>
|
||||
''' <LI>iMutierer</LI>
|
||||
''' <LI>iMandantnr</LI>
|
||||
''' <LI>sNumberFormat</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_spalten_SelectOne]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("spalten")
|
||||
Dim sdaAdapter As SqlDataAdapter = new SqlDataAdapter(scmCmdToExecute)
|
||||
|
||||
' // Use base class' connection object
|
||||
scmCmdToExecute.Connection = m_scoMainConnection
|
||||
|
||||
Try
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@ieintragnr", SqlDbType.Int, 4, ParameterDirection.Input, False, 10, 0, "", DataRowVersion.Proposed, m_iEintragnr))
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_spalten_SelectOne' reported the ErrorCode: " & m_iErrorCode.ToString())
|
||||
End If
|
||||
|
||||
If dtToReturn.Rows.Count > 0 Then
|
||||
m_iEintragnr = New SqlInt32(CType(dtToReturn.Rows(0)("eintragnr"), Integer))
|
||||
If dtToReturn.Rows(0)("tabelle") Is System.DBNull.Value Then
|
||||
m_sTabelle = SqlString.Null
|
||||
Else
|
||||
m_sTabelle = New SqlString(CType(dtToReturn.Rows(0)("tabelle"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("tabellenspalte") Is System.DBNull.Value Then
|
||||
m_sTabellenspalte = SqlString.Null
|
||||
Else
|
||||
m_sTabellenspalte = New SqlString(CType(dtToReturn.Rows(0)("tabellenspalte"), String))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("spalte") Is System.DBNull.Value Then
|
||||
m_sSpalte = SqlString.Null
|
||||
Else
|
||||
m_sSpalte = New SqlString(CType(dtToReturn.Rows(0)("spalte"), String))
|
||||
End If
|
||||
m_bReadonly = New SqlBoolean(CType(dtToReturn.Rows(0)("Readonly"), Boolean))
|
||||
m_bAlsHacken = New SqlBoolean(CType(dtToReturn.Rows(0)("alsHacken"), Boolean))
|
||||
If dtToReturn.Rows(0)("Breite") Is System.DBNull.Value Then
|
||||
m_iBreite = SqlInt32.Null
|
||||
Else
|
||||
m_iBreite = New SqlInt32(CType(dtToReturn.Rows(0)("Breite"), Integer))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("Reihenfolge") Is System.DBNull.Value Then
|
||||
m_iReihenfolge = SqlInt32.Null
|
||||
Else
|
||||
m_iReihenfolge = New SqlInt32(CType(dtToReturn.Rows(0)("Reihenfolge"), Integer))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("tiptext") Is System.DBNull.Value Then
|
||||
m_sTiptext = SqlString.Null
|
||||
Else
|
||||
m_sTiptext = New SqlString(CType(dtToReturn.Rows(0)("tiptext"), String))
|
||||
End If
|
||||
m_bAktiv = New SqlBoolean(CType(dtToReturn.Rows(0)("aktiv"), Boolean))
|
||||
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)("mandantnr") Is System.DBNull.Value Then
|
||||
m_iMandantnr = SqlInt32.Null
|
||||
Else
|
||||
m_iMandantnr = New SqlInt32(CType(dtToReturn.Rows(0)("mandantnr"), Integer))
|
||||
End If
|
||||
If dtToReturn.Rows(0)("NumberFormat") Is System.DBNull.Value Then
|
||||
m_sNumberFormat = SqlString.Null
|
||||
Else
|
||||
m_sNumberFormat = New SqlString(CType(dtToReturn.Rows(0)("NumberFormat"), 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("clsSpalten::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_spalten_SelectAll]"
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure
|
||||
Dim dtToReturn As DataTable = new DataTable("spalten")
|
||||
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 = New SqlInt32(CType(scmCmdToExecute.Parameters.Item("@iErrorCode").Value, SqlInt32))
|
||||
|
||||
If Not m_iErrorCode.Equals(New SqlInt32(LLBLError.AllOk)) Then
|
||||
' // Throw error.
|
||||
Throw New Exception("Stored Procedure 'pr_spalten_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("clsSpalten::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 [iEintragnr]() As SqlInt32
|
||||
Get
|
||||
Return m_iEintragnr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
Dim iEintragnrTmp As SqlInt32 = Value
|
||||
If iEintragnrTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("iEintragnr", "iEintragnr can't be NULL")
|
||||
End If
|
||||
m_iEintragnr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sTabelle]() As SqlString
|
||||
Get
|
||||
Return m_sTabelle
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sTabelle = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sTabellenspalte]() As SqlString
|
||||
Get
|
||||
Return m_sTabellenspalte
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sTabellenspalte = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sSpalte]() As SqlString
|
||||
Get
|
||||
Return m_sSpalte
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sSpalte = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [bReadonly]() As SqlBoolean
|
||||
Get
|
||||
Return m_bReadonly
|
||||
End Get
|
||||
Set(ByVal Value As SqlBoolean)
|
||||
Dim bReadonlyTmp As SqlBoolean = Value
|
||||
If bReadonlyTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("bReadonly", "bReadonly can't be NULL")
|
||||
End If
|
||||
m_bReadonly = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [bAlsHacken]() As SqlBoolean
|
||||
Get
|
||||
Return m_bAlsHacken
|
||||
End Get
|
||||
Set(ByVal Value As SqlBoolean)
|
||||
Dim bAlsHackenTmp As SqlBoolean = Value
|
||||
If bAlsHackenTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("bAlsHacken", "bAlsHacken can't be NULL")
|
||||
End If
|
||||
m_bAlsHacken = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [iBreite]() As SqlInt32
|
||||
Get
|
||||
Return m_iBreite
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
m_iBreite = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [iReihenfolge]() As SqlInt32
|
||||
Get
|
||||
Return m_iReihenfolge
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
m_iReihenfolge = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sTiptext]() As SqlString
|
||||
Get
|
||||
Return m_sTiptext
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sTiptext = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [bAktiv]() As SqlBoolean
|
||||
Get
|
||||
Return m_bAktiv
|
||||
End Get
|
||||
Set(ByVal Value As SqlBoolean)
|
||||
Dim bAktivTmp As SqlBoolean = Value
|
||||
If bAktivTmp.IsNull Then
|
||||
Throw New ArgumentOutOfRangeException("bAktiv", "bAktiv can't be NULL")
|
||||
End If
|
||||
m_bAktiv = 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 [iMandantnr]() As SqlInt32
|
||||
Get
|
||||
Return m_iMandantnr
|
||||
End Get
|
||||
Set(ByVal Value As SqlInt32)
|
||||
m_iMandantnr = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
|
||||
Public Property [sNumberFormat]() As SqlString
|
||||
Get
|
||||
Return m_sNumberFormat
|
||||
End Get
|
||||
Set(ByVal Value As SqlString)
|
||||
m_sNumberFormat = Value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
#End Region
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
13
ThemaPerson/My Project/Application.Designer.vb
generated
Normal file
13
ThemaPerson/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
ThemaPerson/My Project/Application.myapp
Normal file
10
ThemaPerson/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>1</ApplicationType>
|
||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||
</MyApplicationData>
|
||||
34
ThemaPerson/My Project/AssemblyInfo.vb
Normal file
34
ThemaPerson/My Project/AssemblyInfo.vb
Normal file
@@ -0,0 +1,34 @@
|
||||
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("ThemaPerson")>
|
||||
<Assembly: AssemblyDescription("")>
|
||||
<Assembly: AssemblyCompany("")>
|
||||
<Assembly: AssemblyProduct("ThemaPerson")>
|
||||
<Assembly: AssemblyCopyright("Copyright © 2013")>
|
||||
<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("9568ec23-59d9-4474-af4b-64cc6120c5dc")>
|
||||
|
||||
' 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: AssemblyFileVersion("1.0.0.0")>
|
||||
63
ThemaPerson/My Project/Resources.Designer.vb
generated
Normal file
63
ThemaPerson/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", "4.0.0.0"), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||
Friend Module Resources
|
||||
|
||||
Private resourceMan As Global.System.Resources.ResourceManager
|
||||
|
||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||
|
||||
'''<summary>
|
||||
''' 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("ThemaPerson.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
ThemaPerson/My Project/Resources.resx
Normal file
117
ThemaPerson/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>
|
||||
73
ThemaPerson/My Project/Settings.Designer.vb
generated
Normal file
73
ThemaPerson/My Project/Settings.Designer.vb
generated
Normal file
@@ -0,0 +1,73 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <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", "14.0.0.0"), _
|
||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Partial Friend NotInheritable Class MySettings
|
||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||
|
||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||
|
||||
#Region "Funktion zum automatischen Speichern von My.Settings"
|
||||
#If _MyType = "WindowsForms" Then
|
||||
Private Shared addedHandler As Boolean
|
||||
|
||||
Private Shared addedHandlerLockObject As New Object
|
||||
|
||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
||||
If My.Application.SaveMySettingsOnExit Then
|
||||
My.Settings.Save()
|
||||
End If
|
||||
End Sub
|
||||
#End If
|
||||
#End Region
|
||||
|
||||
Public Shared ReadOnly Property [Default]() As MySettings
|
||||
Get
|
||||
|
||||
#If _MyType = "WindowsForms" Then
|
||||
If Not addedHandler Then
|
||||
SyncLock addedHandlerLockObject
|
||||
If Not addedHandler Then
|
||||
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||
addedHandler = True
|
||||
End If
|
||||
End SyncLock
|
||||
End If
|
||||
#End If
|
||||
Return defaultInstance
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||
Friend Module MySettingsProperty
|
||||
|
||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||
Friend ReadOnly Property Settings() As Global.ThemaPerson.My.MySettings
|
||||
Get
|
||||
Return Global.ThemaPerson.My.MySettings.Default
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
7
ThemaPerson/My Project/Settings.settings
Normal file
7
ThemaPerson/My Project/Settings.settings
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
1
ThemaPerson/My Project/licenses.licx
Normal file
1
ThemaPerson/My Project/licenses.licx
Normal file
@@ -0,0 +1 @@
|
||||
C1.Win.C1TrueDBGrid.C1TrueDBGrid, C1.Win.C1TrueDBGrid.2, Version=2.0.20123.61277, Culture=neutral, PublicKeyToken=75ae3fb0e2b1e0da
|
||||
149
ThemaPerson/ThemaPerson.Designer.vb
generated
Normal file
149
ThemaPerson/ThemaPerson.Designer.vb
generated
Normal file
@@ -0,0 +1,149 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
Partial Class ThemaPerson
|
||||
Inherits System.Windows.Forms.UserControl
|
||||
|
||||
'UserControl1 überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
Try
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
Finally
|
||||
MyBase.Dispose(disposing)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'Wird vom Windows Form-Designer benötigt.
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
|
||||
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
|
||||
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
Me.components = New System.ComponentModel.Container()
|
||||
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(ThemaPerson))
|
||||
Me.ToolStrip1 = New System.Windows.Forms.ToolStrip()
|
||||
Me.ToolStripButton1 = New System.Windows.Forms.ToolStripButton()
|
||||
Me.ToolStripButton4 = New System.Windows.Forms.ToolStripButton()
|
||||
Me.ToolStripButton2 = New System.Windows.Forms.ToolStripButton()
|
||||
Me.C1Personen = New C1.Win.C1TrueDBGrid.C1TrueDBGrid()
|
||||
Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
|
||||
Me.NeuePersonToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
|
||||
Me.PersonBearbeitenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
|
||||
Me.EintragLöschenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
|
||||
Me.ToolStrip1.SuspendLayout()
|
||||
CType(Me.C1Personen, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.ContextMenuStrip1.SuspendLayout()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'ToolStrip1
|
||||
'
|
||||
Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripButton1, Me.ToolStripButton4, Me.ToolStripButton2})
|
||||
Me.ToolStrip1.Location = New System.Drawing.Point(0, 0)
|
||||
Me.ToolStrip1.Name = "ToolStrip1"
|
||||
Me.ToolStrip1.Size = New System.Drawing.Size(744, 25)
|
||||
Me.ToolStrip1.TabIndex = 1
|
||||
Me.ToolStrip1.Text = "ToolStrip1"
|
||||
'
|
||||
'ToolStripButton1
|
||||
'
|
||||
Me.ToolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
|
||||
Me.ToolStripButton1.Image = CType(resources.GetObject("ToolStripButton1.Image"), System.Drawing.Image)
|
||||
Me.ToolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta
|
||||
Me.ToolStripButton1.Name = "ToolStripButton1"
|
||||
Me.ToolStripButton1.Size = New System.Drawing.Size(23, 22)
|
||||
Me.ToolStripButton1.Text = "Neue Person"
|
||||
'
|
||||
'ToolStripButton4
|
||||
'
|
||||
Me.ToolStripButton4.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
|
||||
Me.ToolStripButton4.Image = CType(resources.GetObject("ToolStripButton4.Image"), System.Drawing.Image)
|
||||
Me.ToolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta
|
||||
Me.ToolStripButton4.Name = "ToolStripButton4"
|
||||
Me.ToolStripButton4.Size = New System.Drawing.Size(23, 22)
|
||||
Me.ToolStripButton4.Text = "Person bearbeiten"
|
||||
'
|
||||
'ToolStripButton2
|
||||
'
|
||||
Me.ToolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
|
||||
Me.ToolStripButton2.Image = CType(resources.GetObject("ToolStripButton2.Image"), System.Drawing.Image)
|
||||
Me.ToolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta
|
||||
Me.ToolStripButton2.Name = "ToolStripButton2"
|
||||
Me.ToolStripButton2.Size = New System.Drawing.Size(23, 22)
|
||||
Me.ToolStripButton2.Text = "Person löschen"
|
||||
'
|
||||
'C1Personen
|
||||
'
|
||||
Me.C1Personen.AllowDrop = True
|
||||
Me.C1Personen.AlternatingRows = True
|
||||
Me.C1Personen.ContextMenuStrip = Me.ContextMenuStrip1
|
||||
Me.C1Personen.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.C1Personen.FetchRowStyles = True
|
||||
Me.C1Personen.FilterBar = True
|
||||
Me.C1Personen.GroupByCaption = "Drag a column header here to group by that column"
|
||||
Me.C1Personen.Images.Add(CType(resources.GetObject("C1Personen.Images"), System.Drawing.Image))
|
||||
Me.C1Personen.Location = New System.Drawing.Point(0, 25)
|
||||
Me.C1Personen.Name = "C1Personen"
|
||||
Me.C1Personen.PreviewInfo.Location = New System.Drawing.Point(0, 0)
|
||||
Me.C1Personen.PreviewInfo.Size = New System.Drawing.Size(0, 0)
|
||||
Me.C1Personen.PreviewInfo.ZoomFactor = 75.0R
|
||||
Me.C1Personen.PrintInfo.PageSettings = CType(resources.GetObject("C1Personen.PrintInfo.PageSettings"), System.Drawing.Printing.PageSettings)
|
||||
Me.C1Personen.Size = New System.Drawing.Size(744, 157)
|
||||
Me.C1Personen.TabAction = C1.Win.C1TrueDBGrid.TabActionEnum.ColumnNavigation
|
||||
Me.C1Personen.TabIndex = 10
|
||||
Me.C1Personen.Text = "C1TrueDBGrid1"
|
||||
Me.C1Personen.PropBag = resources.GetString("C1Personen.PropBag")
|
||||
'
|
||||
'ContextMenuStrip1
|
||||
'
|
||||
Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.NeuePersonToolStripMenuItem, Me.PersonBearbeitenToolStripMenuItem, Me.EintragLöschenToolStripMenuItem})
|
||||
Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
|
||||
Me.ContextMenuStrip1.Size = New System.Drawing.Size(170, 70)
|
||||
'
|
||||
'NeuePersonToolStripMenuItem
|
||||
'
|
||||
Me.NeuePersonToolStripMenuItem.Name = "NeuePersonToolStripMenuItem"
|
||||
Me.NeuePersonToolStripMenuItem.Size = New System.Drawing.Size(169, 22)
|
||||
Me.NeuePersonToolStripMenuItem.Text = "&Neue Person"
|
||||
'
|
||||
'PersonBearbeitenToolStripMenuItem
|
||||
'
|
||||
Me.PersonBearbeitenToolStripMenuItem.Name = "PersonBearbeitenToolStripMenuItem"
|
||||
Me.PersonBearbeitenToolStripMenuItem.Size = New System.Drawing.Size(169, 22)
|
||||
Me.PersonBearbeitenToolStripMenuItem.Text = "&Person bearbeiten"
|
||||
'
|
||||
'EintragLöschenToolStripMenuItem
|
||||
'
|
||||
Me.EintragLöschenToolStripMenuItem.Name = "EintragLöschenToolStripMenuItem"
|
||||
Me.EintragLöschenToolStripMenuItem.Size = New System.Drawing.Size(169, 22)
|
||||
Me.EintragLöschenToolStripMenuItem.Text = "&Eintrag löschen"
|
||||
'
|
||||
'ThemaPerson
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.Controls.Add(Me.C1Personen)
|
||||
Me.Controls.Add(Me.ToolStrip1)
|
||||
Me.Name = "ThemaPerson"
|
||||
Me.Size = New System.Drawing.Size(744, 182)
|
||||
Me.ToolStrip1.ResumeLayout(False)
|
||||
Me.ToolStrip1.PerformLayout()
|
||||
CType(Me.C1Personen, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ContextMenuStrip1.ResumeLayout(False)
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
End Sub
|
||||
Friend WithEvents ToolStrip1 As System.Windows.Forms.ToolStrip
|
||||
Friend WithEvents ToolStripButton1 As System.Windows.Forms.ToolStripButton
|
||||
Friend WithEvents ToolStripButton4 As System.Windows.Forms.ToolStripButton
|
||||
Friend WithEvents ToolStripButton2 As System.Windows.Forms.ToolStripButton
|
||||
Friend WithEvents C1Personen As C1.Win.C1TrueDBGrid.C1TrueDBGrid
|
||||
Friend WithEvents ContextMenuStrip1 As System.Windows.Forms.ContextMenuStrip
|
||||
Friend WithEvents NeuePersonToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
|
||||
Friend WithEvents PersonBearbeitenToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
|
||||
Friend WithEvents EintragLöschenToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
|
||||
|
||||
End Class
|
||||
212
ThemaPerson/ThemaPerson.resx
Normal file
212
ThemaPerson/ThemaPerson.resx
Normal file
@@ -0,0 +1,212 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="ToolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="ToolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPY2CgEWAMnOuyv/lw9f0mIPad6riENHtCGZiD
|
||||
lnu+mXtj7v/Z12f/d5tkf45kAzyXu76ZfGXi/wlX+v47TTI/T4YBNm96r7T8777SCDTACI8B9QxM5gu1
|
||||
bHzW2dgHQLFln5qTzybLD11Xy/93XCn57zxP77b9fG0Hn3UW9h5A7LLOxN5gkbIV2FXCBZwmuSeS//dd
|
||||
bfo/8XrD/0k36/5PuVXzv/tG3v+O65n/W6+l/++8nvu/+3rR/7YrBf8bLub9rzyX/T9gr+t/vjh2ZQax
|
||||
XE6LKqBA//VaoOaq/1NuV/yfeqf0f/vNuP9tN6P/t9yM+N91K/l/z82s/+3X0/83XE79X3k++X/YQef/
|
||||
vCFs6gxCGSwWETsE/6cdEv6fe1Lof+EZof8FZwT/11wz+99+x+d/6x3P/+WXdf7nn+b/nwfEWcf5/ycd
|
||||
4Pvvu5ULaACDOgOnE4O0ZDzDZtlkhm2KaQzblNOBNBCn7Rf92fnA9n/7A6v/YZvEP4DEYBikVjyeYQOf
|
||||
BYMQLHYYgQwEtmdgCT/E9KbuMcf/usdc/92XM4FiAVUNhI8DABNS4jmGNx2vGP6DsM8aBtLTQe4FgTcL
|
||||
Psn/n/9R/n/YRl7SDUjaq/tmzkOP/yAcsEidRAMYGJikchl2GLYx3ABhsXiGeaQlZYhqFgYVBnYwZmBg
|
||||
xmUAAK5h8098FV9uAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="ToolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAINSURBVDhPY2AgAuxWUtp4WEOjkgilmEp2+fpOmcDA8H+e
|
||||
oOD/PcrKlw+pqIgSbdC/a9MsLt279X9zTev/HqAhM7m5/6+Vkvp/TknJiyhDflyseP1hu/H/F7dm/b9z
|
||||
8+X/mQpK/yezsPzfJCRUTdCAv3daFr3b7fH/xUb1/0+WMvx/utv1/63nr/9vzc1/QFDzv3st7h8OhP5/
|
||||
sVkbaIDy/ydrhP6/3mb4/9kqtv/3Lq5Ux2vArW257K/2p/x8CbT5zU7H/49X8/5/u9MBaJDK/z+7uXMJ
|
||||
2v73UsGel1u0/7/d5QZ0gQ7QZuP/r3dY/f+0TewoQc3/bhUlvdlm8f/VFoP/7/eH/n8J9ML7fQH/7y1T
|
||||
+3dllSgPQQN+XZv6+OUWw/9fjuf8f73d/P/HA1H/3wBt/3dANYigZpCCnzcW/P9wc8P/D+ea/3/c6w+0
|
||||
3e//rwNGa4jS3N0dw/3/5Yb/n26v+//50f7/Xx7v+f/lqNdnojSDFMnKimuHBzj8/3h38/+fL4/+///r
|
||||
zqpPT8+IEG2AtJycNycXz38ZCYlNbx4dkyZaI0jhwYMHFevr6xsaGxtbFi1dGjpv3sL4ZcuWZa9fv74E
|
||||
hDds2JANxElAnLhp06bgjRs3Ou3YsUMFbsnq1av1li9f7g/UFL948eL8JUuWlADpBiBdD8JQNkisAIiT
|
||||
Fi1aFLxixQp9kAEAsLwkew30wWEAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="ToolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJDSURBVDhPdZPLSxtRFMZn5Suah0oChhiJmlGj8RGfiKIi
|
||||
gouAEPUfcJOliv/HbN3lTxhqkSGPxqadO2mkdVILVu1GaHHT0kUpdPn1nDETkhgHDhly5/d937n3XEmq
|
||||
POWDA+UykVBVl8tt/9f4qwaD7uLOjqpvbyt1a1+SydTj6Sk+7u4iE4mY/OELsHl7cgJ9cRHZ0dGU9Q07
|
||||
W3AiAWN9HWJ1FZos14lUnM3b42OIuTnoMzNWpWVZkTg2O9uwWF6GvrQELRy2RKrw0RFELAYxNVUtbWhI
|
||||
lbhnjs3ONqzPz0OfnYUWCpnFeNy8OzyEQY7G5CSMaBRFKl6rtsovHJudbVgQwG5fk0kUp6ct6ANVaWKi
|
||||
HrY3yxKh2Oxsw+woRkagDwxABIMwqDK1zs12mqPp5FQIBJB3OvGW6p3bDdHTA83na3pCVR1OIba2TDMe
|
||||
x5vOTgt+7/HA6O1FyetFxu9/WYDhAsHl/X3kCLyogS99Pnzq68Pn/n7kAoHnIha8sWGW9/aQJec8VcHl
|
||||
smKXCL7y+3FN/d+EQrgbHkah8QQYNglOOxzIdnTgoqvLis49Zyk2O98MDuKbLOMhEsF32iNRmRNJ39xU
|
||||
r2iQtPZ2pNvakCMR7l3zequDxLHvw2E8jI/jkY70J03jL5qVoiyrUn5hQTlvbYXW0oIMifDmnXd3Pxtl
|
||||
jv2DjpXBPzStf1dWUI5Gny7VmcORsgVeNcC1c2LQsP2mi/RvbQ33sdjTZbKfM6dTee3xqM1uYq1IaWxM
|
||||
vbadaeE/HtVvxHw+chEAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="ContextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>124, 17</value>
|
||||
</metadata>
|
||||
<data name="C1Personen.Images" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA3SURBVChTY2DABP+xiIGFkCVwsVEUwhThNREkiaEAJoiP
|
||||
RnEmskKs7kd3C1YrYTrx+g6bIrAYAKCqHOQvFu6BAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="C1Personen.PrintInfo.PageSettings" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0
|
||||
dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAACRTeXN0ZW0uRHJh
|
||||
d2luZy5QcmludGluZy5QYWdlU2V0dGluZ3MHAAAAD3ByaW50ZXJTZXR0aW5ncwVjb2xvcglwYXBlclNp
|
||||
emULcGFwZXJTb3VyY2URcHJpbnRlclJlc29sdXRpb24JbGFuZHNjYXBlB21hcmdpbnMEBAQEBAQEJ1N5
|
||||
c3RlbS5EcmF3aW5nLlByaW50aW5nLlByaW50ZXJTZXR0aW5ncwIAAAAgU3lzdGVtLkRyYXdpbmcuUHJp
|
||||
bnRpbmcuVHJpU3RhdGUCAAAAIVN5c3RlbS5EcmF3aW5nLlByaW50aW5nLlBhcGVyU2l6ZQIAAAAjU3lz
|
||||
dGVtLkRyYXdpbmcuUHJpbnRpbmcuUGFwZXJTb3VyY2UCAAAAKVN5c3RlbS5EcmF3aW5nLlByaW50aW5n
|
||||
LlByaW50ZXJSZXNvbHV0aW9uAgAAACBTeXN0ZW0uRHJhd2luZy5QcmludGluZy5UcmlTdGF0ZQIAAAAf
|
||||
U3lzdGVtLkRyYXdpbmcuUHJpbnRpbmcuTWFyZ2lucwIAAAACAAAACQMAAAAF/P///yBTeXN0ZW0uRHJh
|
||||
d2luZy5QcmludGluZy5UcmlTdGF0ZQEAAAAFdmFsdWUAAgIAAAAACgoKAfv////8////AAkGAAAABQMA
|
||||
AAAnU3lzdGVtLkRyYXdpbmcuUHJpbnRpbmcuUHJpbnRlclNldHRpbmdzEgAAAAtwcmludGVyTmFtZQpk
|
||||
cml2ZXJOYW1lCm91dHB1dFBvcnQLcHJpbnRUb0ZpbGUUcHJpbnREaWFsb2dEaXNwbGF5ZWQKZXh0cmFi
|
||||
eXRlcwlleHRyYWluZm8GY29waWVzBmR1cGxleAdjb2xsYXRlE2RlZmF1bHRQYWdlU2V0dGluZ3MIZnJv
|
||||
bVBhZ2UGdG9QYWdlB21heFBhZ2UHbWluUGFnZQpwcmludFJhbmdlDGRldm1vZGVieXRlcw1jYWNoZWRE
|
||||
ZXZtb2RlAQEBAAAABwAEBAQAAAAABAAHAQEHAgceU3lzdGVtLkRyYXdpbmcuUHJpbnRpbmcuRHVwbGV4
|
||||
AgAAACBTeXN0ZW0uRHJhd2luZy5QcmludGluZy5UcmlTdGF0ZQIAAAAkU3lzdGVtLkRyYXdpbmcuUHJp
|
||||
bnRpbmcuUGFnZVNldHRpbmdzAgAAAAgICAgiU3lzdGVtLkRyYXdpbmcuUHJpbnRpbmcuUHJpbnRSYW5n
|
||||
ZQIAAAAHAgIAAAAKBgcAAAAACQcAAAAAAAAACv//Bfj///8eU3lzdGVtLkRyYXdpbmcuUHJpbnRpbmcu
|
||||
RHVwbGV4AQAAAAd2YWx1ZV9fAAgCAAAA/////wH3/////P///wAJCgAAAAAAAAAAAAAADycAAAAAAAAF
|
||||
9f///yJTeXN0ZW0uRHJhd2luZy5QcmludGluZy5QcmludFJhbmdlAQAAAAd2YWx1ZV9fAAgCAAAAAAAA
|
||||
AAAACgUGAAAAH1N5c3RlbS5EcmF3aW5nLlByaW50aW5nLk1hcmdpbnMIAAAABGxlZnQFcmlnaHQDdG9w
|
||||
BmJvdHRvbQpkb3VibGVMZWZ0C2RvdWJsZVJpZ2h0CWRvdWJsZVRvcAxkb3VibGVCb3R0b20AAAAAAAAA
|
||||
AAgICAgGBgYGAgAAAGQAAABkAAAAZAAAAGQAAAAAAAAAAABZQAAAAAAAAFlAAAAAAAAAWUAAAAAAAABZ
|
||||
QAEKAAAAAQAAAAkDAAAAAfP////8////AAoKCgHy/////P///wAJDwAAAAEPAAAABgAAAGQAAABkAAAA
|
||||
ZAAAAGQAAAAAAAAAAABZQAAAAAAAAFlAAAAAAAAAWUAAAAAAAABZQAs=
|
||||
</value>
|
||||
</data>
|
||||
<data name="C1Personen.PropBag" xml:space="preserve">
|
||||
<value><?xml version="1.0"?><Blob><Styles type="C1.Win.C1TrueDBGrid.Design.ContextWrapper"><Data>HighlightRow{ForeColor:HighlightText;BackColor:Highlight;}Style8{}Style7{}EvenRow{BackColor:White;}Normal{}RecordSelector{AlignImage:Center;}Inactive{ForeColor:InactiveCaptionText;BackColor:InactiveCaption;}Style4{}OddRow{BackColor:224, 224, 224;}Style3{}Footer{}Style14{}Heading{Wrap:True;Border:Flat,ControlDark,0, 1, 0, 1;AlignVert:Center;BackColor:Control;ForeColor:ControlText;}Style5{}Editor{}Style10{AlignHorz:Near;}Style16{}Selected{ForeColor:HighlightText;BackColor:Highlight;}Style15{}Style13{}Style12{}Style11{}Group{Border:None,,0, 0, 0, 0;AlignVert:Center;BackColor:ControlDark;}Style9{}FilterWatermark{ForeColor:InfoText;BackColor:Info;}Style6{}Style1{}Caption{AlignHorz:Center;}Style2{}FilterBar{BackColor:255, 255, 192;}</Data></Styles><Splits><C1.Win.C1TrueDBGrid.MergeView Name="" AlternatingRowStyle="True" CaptionHeight="17" ColumnCaptionHeight="17" ColumnFooterHeight="17" FetchRowStyles="True" FilterBar="True" MarqueeStyle="DottedCellBorder" RecordSelectorWidth="17" DefRecSelWidth="17" VerticalScrollGroup="1" HorizontalScrollGroup="1"><CaptionStyle parent="Style2" me="Style10" /><EditorStyle parent="Editor" me="Style5" /><EvenRowStyle parent="EvenRow" me="Style8" /><FilterBarStyle parent="FilterBar" me="Style13" /><FilterWatermarkStyle parent="FilterWatermark" me="Style14" /><FooterStyle parent="Footer" me="Style3" /><GroupStyle parent="Group" me="Style12" /><HeadingStyle parent="Heading" me="Style2" /><HighLightRowStyle parent="HighlightRow" me="Style7" /><InactiveStyle parent="Inactive" me="Style4" /><OddRowStyle parent="OddRow" me="Style9" /><RecordSelectorStyle parent="RecordSelector" me="Style11" /><SelectedStyle parent="Selected" me="Style6" /><Style parent="Normal" me="Style1" /><ClientRect>0, 0, 742, 155</ClientRect><BorderSide>0</BorderSide></C1.Win.C1TrueDBGrid.MergeView></Splits><NamedStyles><Style parent="" me="Normal" /><Style parent="Normal" me="Heading" /><Style parent="Heading" me="Footer" /><Style parent="Heading" me="Caption" /><Style parent="Heading" me="Inactive" /><Style parent="Normal" me="Selected" /><Style parent="Normal" me="Editor" /><Style parent="Normal" me="HighlightRow" /><Style parent="Normal" me="EvenRow" /><Style parent="Normal" me="OddRow" /><Style parent="Heading" me="RecordSelector" /><Style parent="Normal" me="FilterBar" /><Style parent="FilterBar" me="FilterWatermark" /><Style parent="Caption" me="Group" /></NamedStyles><vertSplits>1</vertSplits><horzSplits>1</horzSplits><Layout>None</Layout><DefaultRecSelWidth>17</DefaultRecSelWidth><ClientArea>0, 0, 742, 155</ClientArea><PrintPageHeaderStyle parent="" me="Style15" /><PrintPageFooterStyle parent="" me="Style16" /></Blob></value>
|
||||
</data>
|
||||
</root>
|
||||
257
ThemaPerson/ThemaPerson.vb
Normal file
257
ThemaPerson/ThemaPerson.vb
Normal file
@@ -0,0 +1,257 @@
|
||||
Imports System.ComponentModel
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Data.SqlTypes
|
||||
Imports C1.Win.C1TrueDBGrid
|
||||
Public Class ThemaPerson
|
||||
|
||||
|
||||
#Region "Deklarationen"
|
||||
|
||||
Dim SpaltenTitel As New Utils.Tabellenspalte
|
||||
Dim dokumente As New DataTable
|
||||
#End Region
|
||||
|
||||
#Region "Properties"
|
||||
Dim m_ConnectionString As String
|
||||
<DefaultValue("data source=shu00;initial catalog=ThemenManagement;persist security info=False;workstation id=SHU;packet size=4096;user id=sa;password=*shu29"), Description("ConnectionString"), Category("Options")> _
|
||||
Public Property ConnectionString() As String
|
||||
Get
|
||||
ConnectionString = m_ConnectionString
|
||||
End Get
|
||||
Set(ByVal Value As String)
|
||||
If m_ConnectionString <> Value Then
|
||||
m_ConnectionString = Value
|
||||
Globals.conn.sConnectionString = Value
|
||||
Globals.sConnectionString = Value
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Dim m_Themanr As Integer
|
||||
<DefaultValue(1), Description("ThemaNr"), Category("Options")> _
|
||||
Public Property ThemaNr As Integer
|
||||
Get
|
||||
ThemaNr = m_Themanr
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
If m_Themanr <> value Then
|
||||
m_Themanr = value
|
||||
Try
|
||||
Refresh()
|
||||
Catch
|
||||
End Try
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Dim m_Doktype As Integer
|
||||
<DefaultValue(1), Description("Dokumenttype"), Category("Options")> _
|
||||
Public Property Doktype As Integer
|
||||
Get
|
||||
Doktype = m_Doktype
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
If m_Doktype <> value Then
|
||||
m_Doktype = value
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Dim m_Mitarbeiternr As Integer
|
||||
<DefaultValue(1), Description("Mitarbeiternr"), Category("Options")> _
|
||||
Public Property Mitarbeiternr As Integer
|
||||
Get
|
||||
Mitarbeiternr = m_Mitarbeiternr
|
||||
End Get
|
||||
Set(value As Integer)
|
||||
If m_Mitarbeiternr <> value Then
|
||||
m_Mitarbeiternr = value
|
||||
Globals.Mitarbeiternr = value
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Dim m_TempFilePath As String
|
||||
<DefaultValue("h:\tssettings\themenmgmt"), Description("Temp Filepath"), Category("Options")> _
|
||||
Public Property TempFilePath As String
|
||||
Get
|
||||
TempFilePath = m_TempFilePath
|
||||
End Get
|
||||
Set(value As String)
|
||||
If m_TempFilePath <> value Then
|
||||
m_TempFilePath = value
|
||||
Globals.TmpFilepath = value
|
||||
End If
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Dim m_Show_Toolbar As Boolean = True
|
||||
<DefaultValue(True), Description("Dateimenu anzeigen"), Category("Options")> _
|
||||
Public Property Show_Toolbar() As Boolean
|
||||
Get
|
||||
Show_Toolbar = m_Show_Toolbar
|
||||
End Get
|
||||
Set(ByVal Value As Boolean)
|
||||
If m_Show_Toolbar <> Value Then
|
||||
m_Show_Toolbar = Value
|
||||
Set_ShowToolbar()
|
||||
End If
|
||||
|
||||
End Set
|
||||
End Property
|
||||
Dim m_Show_Editfunctions As Boolean = True
|
||||
<DefaultValue(True), Description("Editfunktionen anzeigen"), Category("Options")> _
|
||||
Public Property Show_Editfunctions() As Boolean
|
||||
Get
|
||||
Show_Editfunctions = m_Show_Editfunctions
|
||||
End Get
|
||||
Set(ByVal Value As Boolean)
|
||||
If m_Show_Editfunctions <> Value Then
|
||||
m_Show_Editfunctions = Value
|
||||
Set_Editfunctions()
|
||||
End If
|
||||
|
||||
End Set
|
||||
End Property
|
||||
#End Region
|
||||
|
||||
Sub Set_ShowToolbar()
|
||||
If Me.Show_Toolbar = True Then
|
||||
Me.ToolStrip1.Visible = True
|
||||
Me.ContextMenuStrip1.Enabled = True
|
||||
Else
|
||||
Me.ToolStrip1.Visible = False
|
||||
Me.ContextMenuStrip1.Enabled = False
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Sub Set_Editfunctions()
|
||||
If Me.Show_Editfunctions = True Then
|
||||
Me.ToolStripButton1.Visible = True
|
||||
Me.ToolStripButton2.Visible = True
|
||||
Me.ToolStripButton4.Visible = True
|
||||
Me.NeuePersonToolStripMenuItem.Visible = True
|
||||
Me.PersonBearbeitenToolStripMenuItem.Visible = True
|
||||
Me.EintragLöschenToolStripMenuItem.Visible = True
|
||||
|
||||
|
||||
Else
|
||||
Me.ToolStripButton1.Visible = False
|
||||
Me.ToolStripButton2.Visible = False
|
||||
Me.ToolStripButton4.Visible = False
|
||||
Me.ContextMenuStrip1.Enabled = False
|
||||
Me.NeuePersonToolStripMenuItem.Visible = False
|
||||
Me.PersonBearbeitenToolStripMenuItem.Visible = False
|
||||
Me.EintragLöschenToolStripMenuItem.Visible = False
|
||||
|
||||
|
||||
End If
|
||||
End Sub
|
||||
Sub New()
|
||||
InitializeComponent()
|
||||
'Me.ConnectionString = "data source=shu00;initial catalog=ThemenManagement;persist security info=False;workstation id=SHU;packet size=4096;user id=sa;password=*shu29"
|
||||
'Me.Mitarbeiternr = 1
|
||||
'Me.Doktype = 1
|
||||
'Me.ThemaNr = 1
|
||||
'Me.TempFilePath = "h:\tssettings\themenmgmt"
|
||||
Try
|
||||
Globals.conn.sConnectionString = Me.ConnectionString
|
||||
Globals.sConnectionString = Me.ConnectionString
|
||||
Catch
|
||||
End Try
|
||||
Globals.Mitarbeiternr = Mitarbeiternr
|
||||
Globals.TmpFilepath = TempFilePath
|
||||
Set_ShowToolbar()
|
||||
Set_Editfunctions()
|
||||
End Sub
|
||||
|
||||
Private Sub ThemaPerson_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub ToolStripButton1_Click(sender As Object, e As EventArgs) Handles ToolStripButton1.Click
|
||||
Dim f As New frmThemaPerson
|
||||
f.ShowDialog()
|
||||
If f.DialogResult = DialogResult.OK Then
|
||||
Dim tp As New DB.ThemaPerson
|
||||
tp.Add_New(Me.ThemaNr, f.cbboxperson.SelectedValue, f.cbboxfunktion.SelectedValue, f.txtBemerkung.Text)
|
||||
Me.Refresh()
|
||||
End If
|
||||
f.Dispose()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub Refresh()
|
||||
Dim tp As New db.ThemaPerson
|
||||
Dim dt As New DataTable
|
||||
dt = tp.Get_Personen(Me.ThemaNr)
|
||||
Me.C1Personen.DataSource = dt
|
||||
Me.C1Personen.DataMember = dt.TableName
|
||||
Me.SpaltenTitel.Spaltentitel_aktualisieren(Me.C1Personen, "ThemaPersonen", dt)
|
||||
tp.Dispose()
|
||||
End Sub
|
||||
|
||||
Private Sub C1Personen_DoubleClick(sender As Object, e As EventArgs) Handles C1Personen.DoubleClick
|
||||
Me.ToolStripButton4_Click(sender, e)
|
||||
End Sub
|
||||
|
||||
Private Sub C1Dokumente_MouseDown(sender As Object, e As MouseEventArgs) Handles C1Personen.MouseDown
|
||||
Me.C1Personen.Bookmark = Me.C1Personen.RowContaining(e.Y)
|
||||
End Sub
|
||||
|
||||
Private Sub ToolStripButton4_Click(sender As Object, e As EventArgs) Handles ToolStripButton4.Click
|
||||
Try
|
||||
|
||||
Dim tp As New DB.ThemaPerson
|
||||
tp.Get_ThemaPerson(Me.C1Personen.Columns("ThemaPersonNr").Value)
|
||||
Dim f As New frmThemaPerson
|
||||
f.cbboxfunktion.SelectedValue = tp.iFunktionNr.Value
|
||||
f.cbboxperson.SelectedValue = tp.iPersonNr.Value
|
||||
f.txtBemerkung.Text = tp.sBemerkung.Value
|
||||
If Me.Show_Toolbar = False Then
|
||||
f.cbboxperson.Enabled = False
|
||||
f.cbboxfunktion.Enabled = False
|
||||
f.txtBemerkung.ReadOnly = True
|
||||
f.btnAbbruch.Visible = False
|
||||
End If
|
||||
f.ShowDialog()
|
||||
If f.DialogResult = DialogResult.OK And Me.Show_Toolbar = True Then
|
||||
tp.iFunktionNr = New SqlInt32(CType(f.cbboxfunktion.SelectedValue, Int32))
|
||||
tp.iPersonNr = New SqlInt32(CType(f.cbboxperson.SelectedValue, Int32))
|
||||
tp.sBemerkung = New SqlString(CType(f.txtBemerkung.Text, String))
|
||||
tp.Save_Data()
|
||||
Dim bm As Integer
|
||||
bm = Me.C1Personen.Bookmark
|
||||
Refresh()
|
||||
Me.C1Personen.Bookmark = bm
|
||||
End If
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub ToolStripButton2_Click(sender As Object, e As EventArgs) Handles ToolStripButton2.Click
|
||||
If MsgBox("Beziehung zur Person löschen", vbYesNo + vbQuestion) = MsgBoxResult.Yes Then
|
||||
Dim tp As New DB.ThemaPerson
|
||||
tp.Delete_Thema(Me.C1Personen.Columns("ThemaPersonNr").Value)
|
||||
Me.Refresh()
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub ToolStrip1_ItemClicked(sender As Object, e As ToolStripItemClickedEventArgs) Handles ToolStrip1.ItemClicked
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub NeuePersonToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles NeuePersonToolStripMenuItem.Click
|
||||
Me.ToolStripButton1_Click(sender, e)
|
||||
End Sub
|
||||
|
||||
Private Sub PersonBearbeitenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles PersonBearbeitenToolStripMenuItem.Click
|
||||
Me.ToolStripButton4_Click(sender, e)
|
||||
End Sub
|
||||
|
||||
Private Sub EintragLöschenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles EintragLöschenToolStripMenuItem.Click
|
||||
Me.ToolStripButton2_Click(sender, e)
|
||||
End Sub
|
||||
End Class
|
||||
152
ThemaPerson/ThemaPerson.vbproj
Normal file
152
ThemaPerson/ThemaPerson.vbproj
Normal file
@@ -0,0 +1,152 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.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>{89F7577A-E7B5-41B8-82F1-BA59B9E4EF74}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>ThemaPerson</RootNamespace>
|
||||
<AssemblyName>ThemaPerson</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<MyType>Windows</MyType>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DocumentationFile>ThemaPerson.xml</DocumentationFile>
|
||||
<DefineConstants>_MYFORMS=True</DefineConstants>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>ThemaPerson.xml</DocumentationFile>
|
||||
<DefineConstants>_MYFORMS=True</DefineConstants>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionExplicit>On</OptionExplicit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionCompare>Binary</OptionCompare>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionStrict>Off</OptionStrict>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionInfer>On</OptionInfer>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="C1.Win.C1TrueDBGrid.2, Version=2.0.20123.61277, Culture=neutral, PublicKeyToken=75ae3fb0e2b1e0da, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Design" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Collections.Generic" />
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Drawing" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
<Import Include="System.Windows.Forms" />
|
||||
<Import Include="System.Linq" />
|
||||
<Import Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="DB\clsConnectionProvider.vb" />
|
||||
<Compile Include="DB\clsDBInteractionBase.vb" />
|
||||
<Compile Include="DB\clsFunktion.vb" />
|
||||
<Compile Include="DB\clsKey_tabelle.vb" />
|
||||
<Compile Include="DB\clsMyKey_Tabelle.vb" />
|
||||
<Compile Include="DB\clsPerson.vb" />
|
||||
<Compile Include="DB\clsThemaPerson.vb" />
|
||||
<Compile Include="frmThemaPerson.Designer.vb">
|
||||
<DependentUpon>frmThemaPerson.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmThemaPerson.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Klassen\clsSpalten.vb" />
|
||||
<Compile Include="Klassen\Globals.vb" />
|
||||
<Compile Include="Klassen\MySpalten.vb" />
|
||||
<Compile Include="Klassen\MySysadmin.vb" />
|
||||
<Compile Include="Klassen\Person.vb" />
|
||||
<Compile Include="My Project\Application.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Application.myapp</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ThemaPerson.vb">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ThemaPerson.Designer.vb">
|
||||
<DependentUpon>ThemaPerson.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||
<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="frmThemaPerson.resx">
|
||||
<DependentUpon>frmThemaPerson.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="My Project\licenses.licx" />
|
||||
<EmbeddedResource Include="My Project\Resources.resx">
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ThemaPerson.resx">
|
||||
<DependentUpon>ThemaPerson.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="My Project\Application.myapp">
|
||||
<Generator>MyApplicationCodeGenerator</Generator>
|
||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="My Project\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<CustomToolNamespace>My</CustomToolNamespace>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Service Include="{94E38DFF-614B-4cbd-B67C-F211BB35CE8B}" />
|
||||
</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>
|
||||
BIN
ThemaPerson/bin/Debug/C1.Win.C1TrueDBGrid.2.dll
Normal file
BIN
ThemaPerson/bin/Debug/C1.Win.C1TrueDBGrid.2.dll
Normal file
Binary file not shown.
BIN
ThemaPerson/bin/Debug/ThemaPerson.dll
Normal file
BIN
ThemaPerson/bin/Debug/ThemaPerson.dll
Normal file
Binary file not shown.
BIN
ThemaPerson/bin/Debug/ThemaPerson.pdb
Normal file
BIN
ThemaPerson/bin/Debug/ThemaPerson.pdb
Normal file
Binary file not shown.
763
ThemaPerson/bin/Debug/ThemaPerson.xml
Normal file
763
ThemaPerson/bin/Debug/ThemaPerson.xml
Normal file
@@ -0,0 +1,763 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
ThemaPerson
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:ThemaPerson.My.Resources.Resources">
|
||||
<summary>
|
||||
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ThemaPerson.My.Resources.Resources.ResourceManager">
|
||||
<summary>
|
||||
Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ThemaPerson.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:ThemaPerson.DB.clsFunktion">
|
||||
<summary>
|
||||
Purpose: Data Access class for the table 'Funktion'.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.#ctor">
|
||||
<summary>
|
||||
Purpose: Class constructor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.Insert">
|
||||
<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>iFunktionNr</LI>
|
||||
<LI>sBezeichnung. May be SqlString.Null</LI>
|
||||
<LI>sBeschreibung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.Update">
|
||||
<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>iFunktionNr</LI>
|
||||
<LI>sBezeichnung. May be SqlString.Null</LI>
|
||||
<LI>sBeschreibung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.Delete">
|
||||
<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>iFunktionNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.SelectOne">
|
||||
<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>iFunktionNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
<LI>iFunktionNr</LI>
|
||||
<LI>sBezeichnung</LI>
|
||||
<LI>sBeschreibung</LI>
|
||||
<LI>bAktiv</LI>
|
||||
<LI>daErstellt_am</LI>
|
||||
<LI>daMutiert_am</LI>
|
||||
<LI>iMutierer</LI>
|
||||
</UL>
|
||||
Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.SelectAll">
|
||||
<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>
|
||||
</member>
|
||||
<member name="T:ThemaPerson.DB.clsKey_tabelle">
|
||||
<summary>
|
||||
Purpose: Data Access class for the table 'key_tabelle'.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.#ctor">
|
||||
<summary>
|
||||
Purpose: Class constructor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.Insert">
|
||||
<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>sBeschreibung</LI>
|
||||
<LI>iKey_wert</LI>
|
||||
<LI>iMandantnr. May be SqlInt32.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iKeynr</LI>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.Update">
|
||||
<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>iKeynr</LI>
|
||||
<LI>sBeschreibung</LI>
|
||||
<LI>iKey_wert</LI>
|
||||
<LI>iMandantnr. May be SqlInt32.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.Delete">
|
||||
<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>iKeynr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.SelectOne">
|
||||
<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>iKeynr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
<LI>iKeynr</LI>
|
||||
<LI>sBeschreibung</LI>
|
||||
<LI>iKey_wert</LI>
|
||||
<LI>iMandantnr</LI>
|
||||
<LI>bAktiv</LI>
|
||||
<LI>daErstellt_am</LI>
|
||||
<LI>daMutiert_am</LI>
|
||||
<LI>iMutierer</LI>
|
||||
</UL>
|
||||
Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.SelectAll">
|
||||
<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>
|
||||
</member>
|
||||
<member name="T:ThemaPerson.DB.clsPerson">
|
||||
<summary>
|
||||
Purpose: Data Access class for the table 'Person'.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.#ctor">
|
||||
<summary>
|
||||
Purpose: Class constructor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.Insert">
|
||||
<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>iPersonNr</LI>
|
||||
<LI>sFirma. May be SqlString.Null</LI>
|
||||
<LI>sName. May be SqlString.Null</LI>
|
||||
<LI>sVorname. May be SqlString.Null</LI>
|
||||
<LI>sStrasse. May be SqlString.Null</LI>
|
||||
<LI>sPostfach. May be SqlString.Null</LI>
|
||||
<LI>sPlz. May be SqlString.Null</LI>
|
||||
<LI>sOrt. May be SqlString.Null</LI>
|
||||
<LI>sTelefon. May be SqlString.Null</LI>
|
||||
<LI>sTelefax. May be SqlString.Null</LI>
|
||||
<LI>sEMail. May be SqlString.Null</LI>
|
||||
<LI>sInternet. May be SqlString.Null</LI>
|
||||
<LI>sBemerkung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.Update">
|
||||
<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>iPersonNr</LI>
|
||||
<LI>sFirma. May be SqlString.Null</LI>
|
||||
<LI>sName. May be SqlString.Null</LI>
|
||||
<LI>sVorname. May be SqlString.Null</LI>
|
||||
<LI>sStrasse. May be SqlString.Null</LI>
|
||||
<LI>sPostfach. May be SqlString.Null</LI>
|
||||
<LI>sPlz. May be SqlString.Null</LI>
|
||||
<LI>sOrt. May be SqlString.Null</LI>
|
||||
<LI>sTelefon. May be SqlString.Null</LI>
|
||||
<LI>sTelefax. May be SqlString.Null</LI>
|
||||
<LI>sEMail. May be SqlString.Null</LI>
|
||||
<LI>sInternet. May be SqlString.Null</LI>
|
||||
<LI>sBemerkung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.Delete">
|
||||
<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>iPersonNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.SelectOne">
|
||||
<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>iPersonNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
<LI>iPersonNr</LI>
|
||||
<LI>sFirma</LI>
|
||||
<LI>sName</LI>
|
||||
<LI>sVorname</LI>
|
||||
<LI>sStrasse</LI>
|
||||
<LI>sPostfach</LI>
|
||||
<LI>sPlz</LI>
|
||||
<LI>sOrt</LI>
|
||||
<LI>sTelefon</LI>
|
||||
<LI>sTelefax</LI>
|
||||
<LI>sEMail</LI>
|
||||
<LI>sInternet</LI>
|
||||
<LI>sBemerkung</LI>
|
||||
<LI>bAktiv</LI>
|
||||
<LI>daErstellt_am</LI>
|
||||
<LI>daMutiert_am</LI>
|
||||
<LI>iMutierer</LI>
|
||||
</UL>
|
||||
Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.SelectAll">
|
||||
<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>
|
||||
</member>
|
||||
<member name="T:ThemaPerson.DB.clsThemaPerson">
|
||||
<summary>
|
||||
Purpose: Data Access class for the table 'ThemaPerson'.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.#ctor">
|
||||
<summary>
|
||||
Purpose: Class constructor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.Insert">
|
||||
<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>iThemaPersonNr</LI>
|
||||
<LI>iThemaNr. May be SqlInt32.Null</LI>
|
||||
<LI>iPersonNr. May be SqlInt32.Null</LI>
|
||||
<LI>iFunktionNr. May be SqlInt32.Null</LI>
|
||||
<LI>sBemerkung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.Update">
|
||||
<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>iThemaPersonNr</LI>
|
||||
<LI>iThemaNr. May be SqlInt32.Null</LI>
|
||||
<LI>iPersonNr. May be SqlInt32.Null</LI>
|
||||
<LI>iFunktionNr. May be SqlInt32.Null</LI>
|
||||
<LI>sBemerkung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.Delete">
|
||||
<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>iThemaPersonNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.SelectOne">
|
||||
<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>iThemaPersonNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
<LI>iThemaPersonNr</LI>
|
||||
<LI>iThemaNr</LI>
|
||||
<LI>iPersonNr</LI>
|
||||
<LI>iFunktionNr</LI>
|
||||
<LI>sBemerkung</LI>
|
||||
<LI>bAktiv</LI>
|
||||
<LI>daErstellt_am</LI>
|
||||
<LI>daMutiert_am</LI>
|
||||
<LI>iMutierer</LI>
|
||||
</UL>
|
||||
Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.SelectAll">
|
||||
<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>
|
||||
</member>
|
||||
<member name="T:ThemaPerson.DB.clsSpalten">
|
||||
<summary>
|
||||
Purpose: Data Access class for the table 'spalten'.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.#ctor">
|
||||
<summary>
|
||||
Purpose: Class constructor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.Insert">
|
||||
<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>iEintragnr</LI>
|
||||
<LI>sTabelle. May be SqlString.Null</LI>
|
||||
<LI>sTabellenspalte. May be SqlString.Null</LI>
|
||||
<LI>sSpalte. May be SqlString.Null</LI>
|
||||
<LI>bReadonly</LI>
|
||||
<LI>bAlsHacken</LI>
|
||||
<LI>iBreite. May be SqlInt32.Null</LI>
|
||||
<LI>iReihenfolge. May be SqlInt32.Null</LI>
|
||||
<LI>sTiptext. May be SqlString.Null</LI>
|
||||
<LI>bAktiv</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>iMandantnr. May be SqlInt32.Null</LI>
|
||||
<LI>sNumberFormat. May be SqlString.Null</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.Update">
|
||||
<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>iEintragnr</LI>
|
||||
<LI>sTabelle. May be SqlString.Null</LI>
|
||||
<LI>sTabellenspalte. May be SqlString.Null</LI>
|
||||
<LI>sSpalte. May be SqlString.Null</LI>
|
||||
<LI>bReadonly</LI>
|
||||
<LI>bAlsHacken</LI>
|
||||
<LI>iBreite. May be SqlInt32.Null</LI>
|
||||
<LI>iReihenfolge. May be SqlInt32.Null</LI>
|
||||
<LI>sTiptext. May be SqlString.Null</LI>
|
||||
<LI>bAktiv</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>iMandantnr. May be SqlInt32.Null</LI>
|
||||
<LI>sNumberFormat. May be SqlString.Null</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.Delete">
|
||||
<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>iEintragnr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.SelectOne">
|
||||
<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>iEintragnr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
<LI>iEintragnr</LI>
|
||||
<LI>sTabelle</LI>
|
||||
<LI>sTabellenspalte</LI>
|
||||
<LI>sSpalte</LI>
|
||||
<LI>bReadonly</LI>
|
||||
<LI>bAlsHacken</LI>
|
||||
<LI>iBreite</LI>
|
||||
<LI>iReihenfolge</LI>
|
||||
<LI>sTiptext</LI>
|
||||
<LI>bAktiv</LI>
|
||||
<LI>daErstellt_am</LI>
|
||||
<LI>daMutiert_am</LI>
|
||||
<LI>iMutierer</LI>
|
||||
<LI>iMandantnr</LI>
|
||||
<LI>sNumberFormat</LI>
|
||||
</UL>
|
||||
Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.SelectAll">
|
||||
<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>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.Person.Get_Person(System.Int32)">
|
||||
<summary>
|
||||
Mutierer auslesen
|
||||
</summary>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.Person.Delete_Thema(System.Int32)">
|
||||
<summary>
|
||||
Löschen eines Datensatzes erstellen.
|
||||
</summary>
|
||||
<param name="Basenr">Ursprungs-Person: Ist dieser Wert nicht 0, werden die Daten mit BaseNr zuerst gelesen</param>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.Person.Add_New">
|
||||
<summary>
|
||||
Neue Person einfügen
|
||||
</summary>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.ThemaPerson.Delete_Thema(System.Int32)">
|
||||
<summary>
|
||||
Löschen eines Datensatzes erstellen.
|
||||
</summary>
|
||||
<param name="Basenr">Ursprungs-Person: Ist dieser Wert nicht 0, werden die Daten mit BaseNr zuerst gelesen</param>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.ThemaPerson.Add_New(System.Int32,System.Int32,System.Int32,System.String)">
|
||||
<summary>
|
||||
Neue Person einfügen
|
||||
</summary>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.Utils.Tabellenspalte.ColumnOrder(System.String,C1.Win.C1TrueDBGrid.C1TrueDBGrid@)">
|
||||
<summary>
|
||||
Sortierung der in der DB-Tabelle Spalaten festgelegten Reihenfolge
|
||||
</summary>
|
||||
<param name="Tablename"></param>
|
||||
<param name="Data"></param>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.Utils.clsSpalten.Select_All_Aktiv">
|
||||
<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>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.#ctor(System.String,System.Int32,System.String)">
|
||||
<summary>
|
||||
Tabellenname übernehmen und Daten ab DB laden
|
||||
</summary>
|
||||
<param name="tablename"></param>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Load_Data">
|
||||
<summary>
|
||||
Daten ab Datenbank laden
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Load_BaseData">
|
||||
<summary>
|
||||
Basis-Datentabelle laden. Diese wird für die dynamische Generierung der Insert- und Update-Statements benötigt
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Generate_Update_Statement">
|
||||
<summary>
|
||||
Update-Statement dynamisch für das UpdateCommand generieren
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Generate_Insert_Statement">
|
||||
<summary>
|
||||
Insert-Statement dynamisch für das InsertCommand generieren
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Get_Prefix(System.Data.DataColumn)">
|
||||
<summary>
|
||||
Prefixt für den SP-Übergabeparameter generieren
|
||||
</summary>
|
||||
<param name="col">Aktuelle Columnt</param>
|
||||
<returns>Prefis für SP-Übergabeparameter</returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Get_SqlDBType(System.Data.DataColumn)">
|
||||
<summary>
|
||||
SQL-DB-Type für den SP-Übergabeparameter festlegen
|
||||
</summary>
|
||||
<param name="col">Aktuelle Column</param>
|
||||
<returns>SQLDBType</returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Get_Data_Fieldlen(System.Data.DataColumn)">
|
||||
<summary>
|
||||
Feldlänge für den SP-Übergabeparemter festlegen
|
||||
</summary>
|
||||
<param name="col">Aktulle Column</param>
|
||||
<returns>Feldlänge</returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Save_Data">
|
||||
<summary>
|
||||
Datesichern. Dabei wird das Update- sowie das Insert-Statement dynamisch generiert
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.dispose">
|
||||
<summary>
|
||||
Dispose von Tabledata
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Load_Bootom_Table(System.String,System.Int32,System.String)">
|
||||
<summary>
|
||||
Load der Verbindungstabelle
|
||||
</summary>
|
||||
<param name="tablename"></param>
|
||||
<param name="Fokus"></param>
|
||||
<param name="KeyValue"></param>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Insert_Bottom_Table(System.String,System.Int32,System.String,System.String)">
|
||||
<summary>
|
||||
Neuer Eintrag in der Tabelle eintragen. Sind neben den Defaultwerten weitere Attribute vorhanden, werde diese abhängig vom Datentype mit Defaultwerten befüllt.
|
||||
</summary>
|
||||
<param name="key1"></param>
|
||||
<param name="keyvalue1"></param>
|
||||
<param name="key2"></param>
|
||||
<param name="keyvalue2"></param>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
133
ThemaPerson/frmThemaPerson.Designer.vb
generated
Normal file
133
ThemaPerson/frmThemaPerson.Designer.vb
generated
Normal file
@@ -0,0 +1,133 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
Partial Class frmThemaPerson
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
Try
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
Finally
|
||||
MyBase.Dispose(disposing)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'Wird vom Windows Form-Designer benötigt.
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
|
||||
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
|
||||
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmThemaPerson))
|
||||
Me.cbboxperson = New System.Windows.Forms.ComboBox()
|
||||
Me.cbboxfunktion = New System.Windows.Forms.ComboBox()
|
||||
Me.txtBemerkung = New System.Windows.Forms.TextBox()
|
||||
Me.lblPerson = New System.Windows.Forms.Label()
|
||||
Me.lblFunktion = New System.Windows.Forms.Label()
|
||||
Me.lblBemerkung = New System.Windows.Forms.Label()
|
||||
Me.btnOK = New System.Windows.Forms.Button()
|
||||
Me.btnAbbruch = New System.Windows.Forms.Button()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'cbboxperson
|
||||
'
|
||||
Me.cbboxperson.FormattingEnabled = True
|
||||
Me.cbboxperson.Location = New System.Drawing.Point(79, 21)
|
||||
Me.cbboxperson.Name = "cbboxperson"
|
||||
Me.cbboxperson.Size = New System.Drawing.Size(169, 21)
|
||||
Me.cbboxperson.TabIndex = 0
|
||||
'
|
||||
'cbboxfunktion
|
||||
'
|
||||
Me.cbboxfunktion.FormattingEnabled = True
|
||||
Me.cbboxfunktion.Location = New System.Drawing.Point(79, 49)
|
||||
Me.cbboxfunktion.Name = "cbboxfunktion"
|
||||
Me.cbboxfunktion.Size = New System.Drawing.Size(169, 21)
|
||||
Me.cbboxfunktion.TabIndex = 1
|
||||
'
|
||||
'txtBemerkung
|
||||
'
|
||||
Me.txtBemerkung.Location = New System.Drawing.Point(79, 76)
|
||||
Me.txtBemerkung.Multiline = True
|
||||
Me.txtBemerkung.Name = "txtBemerkung"
|
||||
Me.txtBemerkung.Size = New System.Drawing.Size(232, 104)
|
||||
Me.txtBemerkung.TabIndex = 2
|
||||
'
|
||||
'lblPerson
|
||||
'
|
||||
Me.lblPerson.AutoSize = True
|
||||
Me.lblPerson.Location = New System.Drawing.Point(12, 24)
|
||||
Me.lblPerson.Name = "lblPerson"
|
||||
Me.lblPerson.Size = New System.Drawing.Size(40, 13)
|
||||
Me.lblPerson.TabIndex = 3
|
||||
Me.lblPerson.Text = "Person"
|
||||
'
|
||||
'lblFunktion
|
||||
'
|
||||
Me.lblFunktion.AutoSize = True
|
||||
Me.lblFunktion.Location = New System.Drawing.Point(12, 52)
|
||||
Me.lblFunktion.Name = "lblFunktion"
|
||||
Me.lblFunktion.Size = New System.Drawing.Size(48, 13)
|
||||
Me.lblFunktion.TabIndex = 4
|
||||
Me.lblFunktion.Text = "Funktion"
|
||||
'
|
||||
'lblBemerkung
|
||||
'
|
||||
Me.lblBemerkung.AutoSize = True
|
||||
Me.lblBemerkung.Location = New System.Drawing.Point(12, 79)
|
||||
Me.lblBemerkung.Name = "lblBemerkung"
|
||||
Me.lblBemerkung.Size = New System.Drawing.Size(61, 13)
|
||||
Me.lblBemerkung.TabIndex = 5
|
||||
Me.lblBemerkung.Text = "Bemerkung"
|
||||
'
|
||||
'btnOK
|
||||
'
|
||||
Me.btnOK.Location = New System.Drawing.Point(84, 206)
|
||||
Me.btnOK.Name = "btnOK"
|
||||
Me.btnOK.Size = New System.Drawing.Size(75, 23)
|
||||
Me.btnOK.TabIndex = 6
|
||||
Me.btnOK.Text = "&OK"
|
||||
Me.btnOK.UseVisualStyleBackColor = True
|
||||
'
|
||||
'btnAbbruch
|
||||
'
|
||||
Me.btnAbbruch.Location = New System.Drawing.Point(173, 206)
|
||||
Me.btnAbbruch.Name = "btnAbbruch"
|
||||
Me.btnAbbruch.Size = New System.Drawing.Size(75, 23)
|
||||
Me.btnAbbruch.TabIndex = 7
|
||||
Me.btnAbbruch.Text = "&Abbruch"
|
||||
Me.btnAbbruch.UseVisualStyleBackColor = True
|
||||
'
|
||||
'frmThemaPerson
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(328, 239)
|
||||
Me.Controls.Add(Me.btnAbbruch)
|
||||
Me.Controls.Add(Me.btnOK)
|
||||
Me.Controls.Add(Me.lblBemerkung)
|
||||
Me.Controls.Add(Me.lblFunktion)
|
||||
Me.Controls.Add(Me.lblPerson)
|
||||
Me.Controls.Add(Me.txtBemerkung)
|
||||
Me.Controls.Add(Me.cbboxfunktion)
|
||||
Me.Controls.Add(Me.cbboxperson)
|
||||
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
||||
Me.Name = "frmThemaPerson"
|
||||
Me.Text = "Person"
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
End Sub
|
||||
Friend WithEvents cbboxperson As System.Windows.Forms.ComboBox
|
||||
Friend WithEvents cbboxfunktion As System.Windows.Forms.ComboBox
|
||||
Friend WithEvents txtBemerkung As System.Windows.Forms.TextBox
|
||||
Friend WithEvents lblPerson As System.Windows.Forms.Label
|
||||
Friend WithEvents lblFunktion As System.Windows.Forms.Label
|
||||
Friend WithEvents lblBemerkung As System.Windows.Forms.Label
|
||||
Friend WithEvents btnOK As System.Windows.Forms.Button
|
||||
Friend WithEvents btnAbbruch As System.Windows.Forms.Button
|
||||
End Class
|
||||
7330
ThemaPerson/frmThemaPerson.resx
Normal file
7330
ThemaPerson/frmThemaPerson.resx
Normal file
File diff suppressed because it is too large
Load Diff
34
ThemaPerson/frmThemaPerson.vb
Normal file
34
ThemaPerson/frmThemaPerson.vb
Normal file
@@ -0,0 +1,34 @@
|
||||
Public Class frmThemaPerson
|
||||
|
||||
Dim p As New db.Person
|
||||
Sub New()
|
||||
|
||||
' Dieser Aufruf ist für den Designer erforderlich.
|
||||
InitializeComponent()
|
||||
Dim d As New DataTable
|
||||
d = p.Get_Aktive_Personen()
|
||||
Me.cbboxperson.DataSource = d
|
||||
Me.cbboxperson.ValueMember = "ID"
|
||||
Me.cbboxperson.DisplayMember = "Name"
|
||||
|
||||
d = p.Get_Aktive_Funktionen
|
||||
Me.cbboxfunktion.DataSource = d
|
||||
Me.cbboxfunktion.ValueMember = "ID"
|
||||
Me.cbboxfunktion.DisplayMember = "Bezeichnung"
|
||||
|
||||
' Fügen Sie Initialisierungen nach dem InitializeComponent()-Aufruf hinzu.
|
||||
|
||||
End Sub
|
||||
Private Sub frmThemaPerson_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
End Sub
|
||||
|
||||
Private Sub btnAbbruch_Click(sender As Object, e As EventArgs) Handles btnAbbruch.Click
|
||||
Me.DialogResult = Windows.Forms.DialogResult.Cancel
|
||||
Me.Close()
|
||||
End Sub
|
||||
|
||||
Private Sub btnOK_Click(sender As Object, e As EventArgs) Handles btnOK.Click
|
||||
Me.DialogResult = Windows.Forms.DialogResult.OK
|
||||
Me.Close()
|
||||
End Sub
|
||||
End Class
|
||||
1
ThemaPerson/obj/Debug/CoreCompileInputs.cache
Normal file
1
ThemaPerson/obj/Debug/CoreCompileInputs.cache
Normal file
@@ -0,0 +1 @@
|
||||
ffa125f6154a5ce8b87117f0bbe0a790b8db2ec1
|
||||
BIN
ThemaPerson/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Normal file
BIN
ThemaPerson/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
ThemaPerson/obj/Debug/ThemaPerson.Resources.resources
Normal file
BIN
ThemaPerson/obj/Debug/ThemaPerson.Resources.resources
Normal file
Binary file not shown.
BIN
ThemaPerson/obj/Debug/ThemaPerson.ThemaPerson.resources
Normal file
BIN
ThemaPerson/obj/Debug/ThemaPerson.ThemaPerson.resources
Normal file
Binary file not shown.
BIN
ThemaPerson/obj/Debug/ThemaPerson.dll
Normal file
BIN
ThemaPerson/obj/Debug/ThemaPerson.dll
Normal file
Binary file not shown.
BIN
ThemaPerson/obj/Debug/ThemaPerson.frmThemaPerson.resources
Normal file
BIN
ThemaPerson/obj/Debug/ThemaPerson.frmThemaPerson.resources
Normal file
Binary file not shown.
BIN
ThemaPerson/obj/Debug/ThemaPerson.pdb
Normal file
BIN
ThemaPerson/obj/Debug/ThemaPerson.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\bin\Debug\ThemaPerson.dll
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\bin\Debug\ThemaPerson.pdb
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\bin\Debug\ThemaPerson.xml
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Debug\ThemaPerson.frmThemaPerson.resources
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Debug\ThemaPerson.Resources.resources
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Debug\ThemaPerson.ThemaPerson.resources
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Debug\ThemaPerson.vbproj.GenerateResource.Cache
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Debug\ThemaPerson.dll.licenses
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Debug\ThemaPerson.dll
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Debug\ThemaPerson.xml
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Debug\ThemaPerson.pdb
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Debug\ThemaPerson.vbproj.CopyComplete
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Debug\ThemaPerson.vbprojAssemblyReference.cache
|
||||
BIN
ThemaPerson/obj/Debug/ThemaPerson.vbproj.GenerateResource.cache
Normal file
BIN
ThemaPerson/obj/Debug/ThemaPerson.vbproj.GenerateResource.cache
Normal file
Binary file not shown.
BIN
ThemaPerson/obj/Debug/ThemaPerson.vbprojAssemblyReference.cache
Normal file
BIN
ThemaPerson/obj/Debug/ThemaPerson.vbprojAssemblyReference.cache
Normal file
Binary file not shown.
763
ThemaPerson/obj/Debug/ThemaPerson.xml
Normal file
763
ThemaPerson/obj/Debug/ThemaPerson.xml
Normal file
@@ -0,0 +1,763 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
ThemaPerson
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:ThemaPerson.My.Resources.Resources">
|
||||
<summary>
|
||||
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ThemaPerson.My.Resources.Resources.ResourceManager">
|
||||
<summary>
|
||||
Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:ThemaPerson.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:ThemaPerson.DB.clsFunktion">
|
||||
<summary>
|
||||
Purpose: Data Access class for the table 'Funktion'.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.#ctor">
|
||||
<summary>
|
||||
Purpose: Class constructor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.Insert">
|
||||
<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>iFunktionNr</LI>
|
||||
<LI>sBezeichnung. May be SqlString.Null</LI>
|
||||
<LI>sBeschreibung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.Update">
|
||||
<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>iFunktionNr</LI>
|
||||
<LI>sBezeichnung. May be SqlString.Null</LI>
|
||||
<LI>sBeschreibung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.Delete">
|
||||
<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>iFunktionNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.SelectOne">
|
||||
<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>iFunktionNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
<LI>iFunktionNr</LI>
|
||||
<LI>sBezeichnung</LI>
|
||||
<LI>sBeschreibung</LI>
|
||||
<LI>bAktiv</LI>
|
||||
<LI>daErstellt_am</LI>
|
||||
<LI>daMutiert_am</LI>
|
||||
<LI>iMutierer</LI>
|
||||
</UL>
|
||||
Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsFunktion.SelectAll">
|
||||
<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>
|
||||
</member>
|
||||
<member name="T:ThemaPerson.DB.clsKey_tabelle">
|
||||
<summary>
|
||||
Purpose: Data Access class for the table 'key_tabelle'.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.#ctor">
|
||||
<summary>
|
||||
Purpose: Class constructor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.Insert">
|
||||
<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>sBeschreibung</LI>
|
||||
<LI>iKey_wert</LI>
|
||||
<LI>iMandantnr. May be SqlInt32.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iKeynr</LI>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.Update">
|
||||
<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>iKeynr</LI>
|
||||
<LI>sBeschreibung</LI>
|
||||
<LI>iKey_wert</LI>
|
||||
<LI>iMandantnr. May be SqlInt32.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.Delete">
|
||||
<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>iKeynr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.SelectOne">
|
||||
<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>iKeynr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
<LI>iKeynr</LI>
|
||||
<LI>sBeschreibung</LI>
|
||||
<LI>iKey_wert</LI>
|
||||
<LI>iMandantnr</LI>
|
||||
<LI>bAktiv</LI>
|
||||
<LI>daErstellt_am</LI>
|
||||
<LI>daMutiert_am</LI>
|
||||
<LI>iMutierer</LI>
|
||||
</UL>
|
||||
Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsKey_tabelle.SelectAll">
|
||||
<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>
|
||||
</member>
|
||||
<member name="T:ThemaPerson.DB.clsPerson">
|
||||
<summary>
|
||||
Purpose: Data Access class for the table 'Person'.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.#ctor">
|
||||
<summary>
|
||||
Purpose: Class constructor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.Insert">
|
||||
<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>iPersonNr</LI>
|
||||
<LI>sFirma. May be SqlString.Null</LI>
|
||||
<LI>sName. May be SqlString.Null</LI>
|
||||
<LI>sVorname. May be SqlString.Null</LI>
|
||||
<LI>sStrasse. May be SqlString.Null</LI>
|
||||
<LI>sPostfach. May be SqlString.Null</LI>
|
||||
<LI>sPlz. May be SqlString.Null</LI>
|
||||
<LI>sOrt. May be SqlString.Null</LI>
|
||||
<LI>sTelefon. May be SqlString.Null</LI>
|
||||
<LI>sTelefax. May be SqlString.Null</LI>
|
||||
<LI>sEMail. May be SqlString.Null</LI>
|
||||
<LI>sInternet. May be SqlString.Null</LI>
|
||||
<LI>sBemerkung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.Update">
|
||||
<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>iPersonNr</LI>
|
||||
<LI>sFirma. May be SqlString.Null</LI>
|
||||
<LI>sName. May be SqlString.Null</LI>
|
||||
<LI>sVorname. May be SqlString.Null</LI>
|
||||
<LI>sStrasse. May be SqlString.Null</LI>
|
||||
<LI>sPostfach. May be SqlString.Null</LI>
|
||||
<LI>sPlz. May be SqlString.Null</LI>
|
||||
<LI>sOrt. May be SqlString.Null</LI>
|
||||
<LI>sTelefon. May be SqlString.Null</LI>
|
||||
<LI>sTelefax. May be SqlString.Null</LI>
|
||||
<LI>sEMail. May be SqlString.Null</LI>
|
||||
<LI>sInternet. May be SqlString.Null</LI>
|
||||
<LI>sBemerkung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.Delete">
|
||||
<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>iPersonNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.SelectOne">
|
||||
<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>iPersonNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
<LI>iPersonNr</LI>
|
||||
<LI>sFirma</LI>
|
||||
<LI>sName</LI>
|
||||
<LI>sVorname</LI>
|
||||
<LI>sStrasse</LI>
|
||||
<LI>sPostfach</LI>
|
||||
<LI>sPlz</LI>
|
||||
<LI>sOrt</LI>
|
||||
<LI>sTelefon</LI>
|
||||
<LI>sTelefax</LI>
|
||||
<LI>sEMail</LI>
|
||||
<LI>sInternet</LI>
|
||||
<LI>sBemerkung</LI>
|
||||
<LI>bAktiv</LI>
|
||||
<LI>daErstellt_am</LI>
|
||||
<LI>daMutiert_am</LI>
|
||||
<LI>iMutierer</LI>
|
||||
</UL>
|
||||
Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsPerson.SelectAll">
|
||||
<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>
|
||||
</member>
|
||||
<member name="T:ThemaPerson.DB.clsThemaPerson">
|
||||
<summary>
|
||||
Purpose: Data Access class for the table 'ThemaPerson'.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.#ctor">
|
||||
<summary>
|
||||
Purpose: Class constructor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.Insert">
|
||||
<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>iThemaPersonNr</LI>
|
||||
<LI>iThemaNr. May be SqlInt32.Null</LI>
|
||||
<LI>iPersonNr. May be SqlInt32.Null</LI>
|
||||
<LI>iFunktionNr. May be SqlInt32.Null</LI>
|
||||
<LI>sBemerkung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.Update">
|
||||
<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>iThemaPersonNr</LI>
|
||||
<LI>iThemaNr. May be SqlInt32.Null</LI>
|
||||
<LI>iPersonNr. May be SqlInt32.Null</LI>
|
||||
<LI>iFunktionNr. May be SqlInt32.Null</LI>
|
||||
<LI>sBemerkung. May be SqlString.Null</LI>
|
||||
<LI>bAktiv. May be SqlBoolean.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>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.Delete">
|
||||
<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>iThemaPersonNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.SelectOne">
|
||||
<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>iThemaPersonNr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
<LI>iThemaPersonNr</LI>
|
||||
<LI>iThemaNr</LI>
|
||||
<LI>iPersonNr</LI>
|
||||
<LI>iFunktionNr</LI>
|
||||
<LI>sBemerkung</LI>
|
||||
<LI>bAktiv</LI>
|
||||
<LI>daErstellt_am</LI>
|
||||
<LI>daMutiert_am</LI>
|
||||
<LI>iMutierer</LI>
|
||||
</UL>
|
||||
Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsThemaPerson.SelectAll">
|
||||
<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>
|
||||
</member>
|
||||
<member name="T:ThemaPerson.DB.clsSpalten">
|
||||
<summary>
|
||||
Purpose: Data Access class for the table 'spalten'.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.#ctor">
|
||||
<summary>
|
||||
Purpose: Class constructor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.Insert">
|
||||
<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>iEintragnr</LI>
|
||||
<LI>sTabelle. May be SqlString.Null</LI>
|
||||
<LI>sTabellenspalte. May be SqlString.Null</LI>
|
||||
<LI>sSpalte. May be SqlString.Null</LI>
|
||||
<LI>bReadonly</LI>
|
||||
<LI>bAlsHacken</LI>
|
||||
<LI>iBreite. May be SqlInt32.Null</LI>
|
||||
<LI>iReihenfolge. May be SqlInt32.Null</LI>
|
||||
<LI>sTiptext. May be SqlString.Null</LI>
|
||||
<LI>bAktiv</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>iMandantnr. May be SqlInt32.Null</LI>
|
||||
<LI>sNumberFormat. May be SqlString.Null</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.Update">
|
||||
<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>iEintragnr</LI>
|
||||
<LI>sTabelle. May be SqlString.Null</LI>
|
||||
<LI>sTabellenspalte. May be SqlString.Null</LI>
|
||||
<LI>sSpalte. May be SqlString.Null</LI>
|
||||
<LI>bReadonly</LI>
|
||||
<LI>bAlsHacken</LI>
|
||||
<LI>iBreite. May be SqlInt32.Null</LI>
|
||||
<LI>iReihenfolge. May be SqlInt32.Null</LI>
|
||||
<LI>sTiptext. May be SqlString.Null</LI>
|
||||
<LI>bAktiv</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>iMandantnr. May be SqlInt32.Null</LI>
|
||||
<LI>sNumberFormat. May be SqlString.Null</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.Delete">
|
||||
<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>iEintragnr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
</UL>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.SelectOne">
|
||||
<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>iEintragnr</LI>
|
||||
</UL>
|
||||
Properties set after a succesful call of this method:
|
||||
<UL>
|
||||
<LI>iErrorCode</LI>
|
||||
<LI>iEintragnr</LI>
|
||||
<LI>sTabelle</LI>
|
||||
<LI>sTabellenspalte</LI>
|
||||
<LI>sSpalte</LI>
|
||||
<LI>bReadonly</LI>
|
||||
<LI>bAlsHacken</LI>
|
||||
<LI>iBreite</LI>
|
||||
<LI>iReihenfolge</LI>
|
||||
<LI>sTiptext</LI>
|
||||
<LI>bAktiv</LI>
|
||||
<LI>daErstellt_am</LI>
|
||||
<LI>daMutiert_am</LI>
|
||||
<LI>iMutierer</LI>
|
||||
<LI>iMandantnr</LI>
|
||||
<LI>sNumberFormat</LI>
|
||||
</UL>
|
||||
Will fill all properties corresponding with a field in the table with the value of the row selected.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.clsSpalten.SelectAll">
|
||||
<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>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.Person.Get_Person(System.Int32)">
|
||||
<summary>
|
||||
Mutierer auslesen
|
||||
</summary>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.Person.Delete_Thema(System.Int32)">
|
||||
<summary>
|
||||
Löschen eines Datensatzes erstellen.
|
||||
</summary>
|
||||
<param name="Basenr">Ursprungs-Person: Ist dieser Wert nicht 0, werden die Daten mit BaseNr zuerst gelesen</param>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.Person.Add_New">
|
||||
<summary>
|
||||
Neue Person einfügen
|
||||
</summary>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.ThemaPerson.Delete_Thema(System.Int32)">
|
||||
<summary>
|
||||
Löschen eines Datensatzes erstellen.
|
||||
</summary>
|
||||
<param name="Basenr">Ursprungs-Person: Ist dieser Wert nicht 0, werden die Daten mit BaseNr zuerst gelesen</param>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.DB.ThemaPerson.Add_New(System.Int32,System.Int32,System.Int32,System.String)">
|
||||
<summary>
|
||||
Neue Person einfügen
|
||||
</summary>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.Utils.Tabellenspalte.ColumnOrder(System.String,C1.Win.C1TrueDBGrid.C1TrueDBGrid@)">
|
||||
<summary>
|
||||
Sortierung der in der DB-Tabelle Spalaten festgelegten Reihenfolge
|
||||
</summary>
|
||||
<param name="Tablename"></param>
|
||||
<param name="Data"></param>
|
||||
<returns></returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.Utils.clsSpalten.Select_All_Aktiv">
|
||||
<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>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.#ctor(System.String,System.Int32,System.String)">
|
||||
<summary>
|
||||
Tabellenname übernehmen und Daten ab DB laden
|
||||
</summary>
|
||||
<param name="tablename"></param>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Load_Data">
|
||||
<summary>
|
||||
Daten ab Datenbank laden
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Load_BaseData">
|
||||
<summary>
|
||||
Basis-Datentabelle laden. Diese wird für die dynamische Generierung der Insert- und Update-Statements benötigt
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Generate_Update_Statement">
|
||||
<summary>
|
||||
Update-Statement dynamisch für das UpdateCommand generieren
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Generate_Insert_Statement">
|
||||
<summary>
|
||||
Insert-Statement dynamisch für das InsertCommand generieren
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Get_Prefix(System.Data.DataColumn)">
|
||||
<summary>
|
||||
Prefixt für den SP-Übergabeparameter generieren
|
||||
</summary>
|
||||
<param name="col">Aktuelle Columnt</param>
|
||||
<returns>Prefis für SP-Übergabeparameter</returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Get_SqlDBType(System.Data.DataColumn)">
|
||||
<summary>
|
||||
SQL-DB-Type für den SP-Übergabeparameter festlegen
|
||||
</summary>
|
||||
<param name="col">Aktuelle Column</param>
|
||||
<returns>SQLDBType</returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Get_Data_Fieldlen(System.Data.DataColumn)">
|
||||
<summary>
|
||||
Feldlänge für den SP-Übergabeparemter festlegen
|
||||
</summary>
|
||||
<param name="col">Aktulle Column</param>
|
||||
<returns>Feldlänge</returns>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Save_Data">
|
||||
<summary>
|
||||
Datesichern. Dabei wird das Update- sowie das Insert-Statement dynamisch generiert
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.dispose">
|
||||
<summary>
|
||||
Dispose von Tabledata
|
||||
</summary>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Load_Bootom_Table(System.String,System.Int32,System.String)">
|
||||
<summary>
|
||||
Load der Verbindungstabelle
|
||||
</summary>
|
||||
<param name="tablename"></param>
|
||||
<param name="Fokus"></param>
|
||||
<param name="KeyValue"></param>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
<member name="M:ThemaPerson.TKB.VV.Sysadmin.DomainTable.Insert_Bottom_Table(System.String,System.Int32,System.String,System.String)">
|
||||
<summary>
|
||||
Neuer Eintrag in der Tabelle eintragen. Sind neben den Defaultwerten weitere Attribute vorhanden, werde diese abhängig vom Datentype mit Defaultwerten befüllt.
|
||||
</summary>
|
||||
<param name="key1"></param>
|
||||
<param name="keyvalue1"></param>
|
||||
<param name="key2"></param>
|
||||
<param name="keyvalue2"></param>
|
||||
<remarks></remarks>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
BIN
ThemaPerson/obj/Debug/themaperson.dll.licenses
Normal file
BIN
ThemaPerson/obj/Debug/themaperson.dll.licenses
Normal file
Binary file not shown.
1
ThemaPerson/obj/Release/CoreCompileInputs.cache
Normal file
1
ThemaPerson/obj/Release/CoreCompileInputs.cache
Normal file
@@ -0,0 +1 @@
|
||||
7a412f651f5d455a60827ea05ea32c49dca6c30b
|
||||
Binary file not shown.
Binary file not shown.
BIN
ThemaPerson/obj/Release/ThemaPerson.Resources.resources
Normal file
BIN
ThemaPerson/obj/Release/ThemaPerson.Resources.resources
Normal file
Binary file not shown.
BIN
ThemaPerson/obj/Release/ThemaPerson.ThemaPerson.resources
Normal file
BIN
ThemaPerson/obj/Release/ThemaPerson.ThemaPerson.resources
Normal file
Binary file not shown.
BIN
ThemaPerson/obj/Release/ThemaPerson.frmThemaPerson.resources
Normal file
BIN
ThemaPerson/obj/Release/ThemaPerson.frmThemaPerson.resources
Normal file
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Release\ThemaPerson.vbprojResolveAssemblyReference.cache
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Release\ThemaPerson.frmThemaPerson.resources
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Release\ThemaPerson.Resources.resources
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Release\ThemaPerson.ThemaPerson.resources
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Release\ThemaPerson.vbproj.GenerateResource.Cache
|
||||
E:\Software-Projekte\TKBDiverse\Themenmanagement\ThemaPerson\obj\Release\ThemaPerson.dll.licenses
|
||||
Binary file not shown.
0
ThemaPerson/obj/Release/build.force
Normal file
0
ThemaPerson/obj/Release/build.force
Normal file
Reference in New Issue
Block a user