diff --git a/Global_Indexer/App.config b/Global_Indexer/App.config
index abe144e..4971a51 100644
--- a/Global_Indexer/App.config
+++ b/Global_Indexer/App.config
@@ -21,6 +21,12 @@
True
+
+ True
+
+
+ False
+
\ No newline at end of file
diff --git a/Global_Indexer/ClassFolderWatcher.vb b/Global_Indexer/ClassFolderWatcher.vb
index 3c3c629..d04cb28 100644
--- a/Global_Indexer/ClassFolderWatcher.vb
+++ b/Global_Indexer/ClassFolderWatcher.vb
@@ -4,6 +4,7 @@ Imports System.Threading
Public Class ClassFolderWatcher
Public Shared FolderWatcher As FileSystemWatcher
+ Public Shared FolderWatcher_SCAN As FileSystemWatcher
Public Shared Function Restart_FolderWatch()
If FolderWatcher.EnableRaisingEvents = True Then
'Gestartet also Stoppen
@@ -19,6 +20,21 @@ Public Class ClassFolderWatcher
SaveConfigValue("FW_started", "True")
End If
End Function
+ Public Shared Function Restart_FolderWatchSCAN()
+ If FolderWatcher_SCAN.EnableRaisingEvents = True Then
+ 'Gestartet also Stoppen
+ FolderWatcher_SCAN.EnableRaisingEvents = False
+ FWSCAN_started = False
+ 'FolderWatch neu instanzieren
+ FolderWatcher_SCAN = New System.IO.FileSystemWatcher(CURRENT_SCAN_FOLDERWATCH, "*.*")
+ ClassLogger.Add(" >> FolderWatchScan neu instanziert", False)
+ FolderWatcher_SCAN.IncludeSubdirectories = False
+ FolderWatcher_SCAN.EnableRaisingEvents = True
+ AddHandler FolderWatcher_SCAN.Created, AddressOf OnCreated
+ FWSCAN_started = True
+ SaveConfigValue("FWSCAN_started", "True")
+ End If
+ End Function
Public Shared Function StartStop_FolderWatch()
Try
If CURRENT_FOLDERWATCH = "" Then
@@ -71,39 +87,64 @@ Public Class ClassFolderWatcher
Return 99
End Try
End Function
- 'Private Sub folder_watch_Created(ByVal sender As Object, ByVal e As System.IO.FileSystemEventArgs) Handles vFolderWatch.Created
- ' Try
- ' 'ersten Dateinamen übergeben
- ' If LogErrorsOnly = False Then
- ' ClassLogger.Add(" >> vFolderWatch1.Created " & e.Name, False)
- ' End If
- ' CURRENT_FILENAME = e.Name
-
- ' Catch ex As Exception
- ' MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler bei folder_watch_Created")
- ' End Try
-
- 'End Sub
+ Public Shared Function StartStop_FolderWatchSCAN()
+ Try
+ If CURRENT_SCAN_FOLDERWATCH = "" Then
+ MsgBox("Bitte definieren Sie einen Überwachungsordner für Scan-Eingänge:", MsgBoxStyle.Exclamation)
+ Return False
+ End If
+ If FolderWatcher_SCAN Is Nothing Then
+ FolderWatcher_SCAN = New System.IO.FileSystemWatcher(CURRENT_SCAN_FOLDERWATCH, "*.*")
+ ClassLogger.Add(" >> FolderWatch Scan Gestartet", False)
+ FolderWatcher_SCAN.IncludeSubdirectories = False
+ FolderWatcher_SCAN.EnableRaisingEvents = True
+ AddHandler FolderWatcher_SCAN.Created, AddressOf OnCreated
+ FWSCAN_started = True
+ SaveConfigValue("FWSCAN_started", "True")
+ Return 1
+ End If
+ If FolderWatcher_SCAN.EnableRaisingEvents = False Then
+ ' Dim watcher As New FileSystemWatcher()
+ ' watcher.Path = CURRENT_FOLDERWATCH
+ FolderWatcher_SCAN = New System.IO.FileSystemWatcher(CURRENT_SCAN_FOLDERWATCH, "*.*")
+ ClassLogger.Add(" >> FolderWatch Scan Gestartet", False)
+ FolderWatcher_SCAN.IncludeSubdirectories = False
+ FolderWatcher_SCAN.EnableRaisingEvents = True
+ AddHandler FolderWatcher_SCAN.Created, AddressOf OnCreated
+ FWSCAN_started = True
+ SaveConfigValue("FWSCAN_started", "True")
+ Return 1
+ Else
+ 'Gestartet also Stoppen
+ FolderWatcher_SCAN.EnableRaisingEvents = False
+ FWSCAN_started = False
+ ClassLogger.Add(" >> FolderWatch Scan gestoppt", False)
+ SaveConfigValue("FWSCAN_started", "False")
+ Return 0
+ End If
+
+ Catch ex As Exception
+ MsgBox("Error in StartStop_FolderWatchSCAN:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
+ Return 99
+ End Try
+ End Function
Private Shared Sub OnCreated(source As Object, e As FileSystemEventArgs)
Try
If e.FullPath.Contains("Thumbs.") Or e.FullPath.EndsWith(".tmp") Or e.FullPath.Contains("\~$") Then
Exit Sub
End If
- Dim praefix As String
+ Dim handleType As String
If e.FullPath.EndsWith(".msg") Then
- praefix = "@FW_OUTLOOK_MESSAGE@"
+ handleType = "@FW_OUTLOOK_MESSAGE@"
Else
- praefix = "@FW_SIMPLEINDEXER@"
+ handleType = "@FW_SIMPLEINDEXER@"
End If
- 'ersten Dateinamen übergeben
- CURRENT_FILENAME = e.FullPath
- ClassDatabase.Execute_non_Query("DELETE FROM TBGI_FILES_USER WHERE WORKED = 1 AND USER@WORK = '" & Environment.UserName & "'", True)
+ 'Die Datei übergeben
If LogErrorsOnly = False Then ClassLogger.Add(">> OnCreated-File:" & CURRENT_FILENAME, False)
If ClassIndexFunctions.FileExistsinDropTable(CURRENT_FILENAME) = False Then
- Dim ins As String = "INSERT INTO TBGI_FILES_USER (FILENAME2WORK, USER@WORK,HANDLE_TYPE) VALUES ('" & CURRENT_FILENAME & "','" & Environment.UserName & "','" & praefix & "')"
- ClassDatabase.Execute_non_Query(ins, True)
+ ClassFilehandle.Decide_FileHandle(e.FullPath, handleType)
Else
- Console.WriteLine("File existiert bereeits")
+ Console.WriteLine("File existiert bereits")
End If
'frmMain.MyNewTimer()
@@ -145,18 +186,5 @@ Public Class ClassFolderWatcher
End Try
End Sub
- Sub Check_Dropped_Files()
- Try
-
-
- Catch ex As Exception
- MsgBox("Check_Dropped_Files: " & ex.Message, MsgBoxStyle.Critical)
- End Try
-
- End Sub
- _
- Public Shared Sub ShowIndexForm()
- Dim frm As New frmIndex
- frm.ShowDialog()
- End Sub
+
End Class
diff --git a/Global_Indexer/ClassWindream.vb b/Global_Indexer/ClassWindream.vb
index c5a054a..4f0e967 100644
--- a/Global_Indexer/ClassWindream.vb
+++ b/Global_Indexer/ClassWindream.vb
@@ -995,7 +995,7 @@ Public Class ClassWindream
convertValue = value
Case WMObjectVariableValueTypeTimeStamp
If LogErrorsOnly = False Then ClassLogger.Add(" ...Typ des windream-Indexes: WMObjectVariableValueTypeTimeStamp", False)
- convertValue = CDbl(value)
+ convertValue = value
Case WMObjectVariableValueTypeCurrency
If LogErrorsOnly = False Then ClassLogger.Add(" - Typ des windream-Indexes: WMObjectVariableValueTypeCurrency", False)
'Wegen currency muß ein eigenes Objekt vom typ Variant erzeugt werden
diff --git a/Global_Indexer/Global_Indexer.vbproj b/Global_Indexer/Global_Indexer.vbproj
index 3087e9a..1e8ce9a 100644
--- a/Global_Indexer/Global_Indexer.vbproj
+++ b/Global_Indexer/Global_Indexer.vbproj
@@ -125,6 +125,7 @@
+
@@ -154,6 +155,12 @@
Form
+
+ frmHistory.vb
+
+
+ Form
+
frmHotKey_Add.vb
@@ -172,6 +179,12 @@
Form
+
+ frmIndexFileList.vb
+
+
+ Form
+
frmLicense.vb
@@ -257,6 +270,9 @@
frmConnections.vb
+
+ frmHistory.vb
+
frmHotKey_Add.vb
@@ -267,6 +283,9 @@
frmIndex.vb
Designer
+
+ frmIndexFileList.vb
+
frmLicense.vb
@@ -497,6 +516,7 @@
+
diff --git a/Global_Indexer/ModuleCURRENT.vb b/Global_Indexer/ModuleCURRENT.vb
index 5803fc0..e5edfbc 100644
--- a/Global_Indexer/ModuleCURRENT.vb
+++ b/Global_Indexer/ModuleCURRENT.vb
@@ -13,8 +13,10 @@
Public FILE_DELIMITER As String
Public CURRENT_MESSAGEID As String
Public CURRENT_MESSAGEDATE As String
+ Public CURRENT_ISATTACHMENT As Boolean = False
Public CURRENT_USERID As Integer
Public CURRENT_FOLDERWATCH As String = ""
+ Public CURRENT_SCAN_FOLDERWATCH As String = ""
Public CURR_DOKART_WD_DIRECT As Boolean = False
Public CURR_DOKART_OBJECTTYPE As String
Public CURRENT_WD_TEMPSEARCH As String = ""
diff --git a/Global_Indexer/ModuleMySettings.vb b/Global_Indexer/ModuleMySettings.vb
index 725ad1f..3d41c3e 100644
--- a/Global_Indexer/ModuleMySettings.vb
+++ b/Global_Indexer/ModuleMySettings.vb
@@ -10,6 +10,7 @@ Module ModuleMySettings
Public Preview As Boolean = True
Public UniversalViewer As String
Public FW_started As Boolean = False
+ Public FWSCAN_started As Boolean = False
Public Delete_OriginFile As Boolean = False
Public Function LoadMyConfig()
@@ -57,6 +58,8 @@ Module ModuleMySettings
UniversalViewer = Row.Item("Value")
Case "FW_started"
FW_started = CBool(Row.Item("Value"))
+ Case "FWSCAN_started"
+ FWSCAN_started = CBool(Row.Item("Value"))
Case "Delete_OriginFile"
Delete_OriginFile = CBool(Row.Item("Value"))
End Select
@@ -78,6 +81,13 @@ Module ModuleMySettings
DT.Rows.Add(newRow)
DT.WriteXml(ConfigPath)
End If
+ If rowresult.Contains("FWSCAN_started") = False Then
+ Dim newRow As DataRow = DT.NewRow()
+ newRow("ConfigName") = "FWSCAN_started"
+ newRow("Value") = "False"
+ DT.Rows.Add(newRow)
+ DT.WriteXml(ConfigPath)
+ End If
Catch ex As Exception
MsgBox("Error in MySettings-LoadMyConfig" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
Return False
@@ -134,6 +144,10 @@ Module ModuleMySettings
newRow4("ConfigName") = "FW_started"
newRow4("Value") = "False"
table.Rows.Add(newRow4)
+ Dim newRow5 As DataRow = table.NewRow()
+ newRow5("ConfigName") = "FWSCAN_started"
+ newRow5("Value") = "False"
+ table.Rows.Add(newRow5)
table.AcceptChanges()
Return table
Catch ex As Exception
diff --git a/Global_Indexer/My Project/Resources.Designer.vb b/Global_Indexer/My Project/Resources.Designer.vb
index 20807b2..861d866 100644
--- a/Global_Indexer/My Project/Resources.Designer.vb
+++ b/Global_Indexer/My Project/Resources.Designer.vb
@@ -180,6 +180,16 @@ Namespace My.Resources
End Get
End Property
+ '''
+ ''' Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
+ '''
+ Friend ReadOnly Property cancel() As System.Drawing.Bitmap
+ Get
+ Dim obj As Object = ResourceManager.GetObject("cancel", resourceCulture)
+ Return CType(obj,System.Drawing.Bitmap)
+ End Get
+ End Property
+
'''
''' Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
'''
diff --git a/Global_Indexer/My Project/Resources.resx b/Global_Indexer/My Project/Resources.resx
index 10b7db2..6db75b8 100644
--- a/Global_Indexer/My Project/Resources.resx
+++ b/Global_Indexer/My Project/Resources.resx
@@ -139,6 +139,9 @@
..\Resources\bell_delete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\database_save1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\Einstellungen6.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -166,9 +169,6 @@
..\Resources\folder_go.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\save_16xLG.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
..\Resources\handdrawn_arrow_right_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -178,9 +178,6 @@
..\Resources\key.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\Save_6530.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
..\Resources\arrow_refresh.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -205,12 +202,15 @@
..\Resources\CheckOutforEdit_13187_32x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\database_save1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\save_16xLG.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\action_add_16xLG.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\Shortcut_8169_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\arrow_left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -232,6 +232,9 @@
..\Resources\folder_link.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\refresh_16xLG.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\handdrawn_arrow_left_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -241,13 +244,13 @@
..\Resources\gear_32xLG.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\Shortcut_8169_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\Save_6530.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\database_save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\refresh_16xLG.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\cancel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/Global_Indexer/My Project/Settings.Designer.vb b/Global_Indexer/My Project/Settings.Designer.vb
index 5aea6ac..38da9fc 100644
--- a/Global_Indexer/My Project/Settings.Designer.vb
+++ b/Global_Indexer/My Project/Settings.Designer.vb
@@ -88,6 +88,30 @@ Namespace My
Me("WDSearch_maximized") = value
End Set
End Property
+
+ _
+ Public Property Show_IndexResult() As Boolean
+ Get
+ Return CType(Me("Show_IndexResult"),Boolean)
+ End Get
+ Set
+ Me("Show_IndexResult") = value
+ End Set
+ End Property
+
+ _
+ Public Property DoNot_Show_Documents() As Boolean
+ Get
+ Return CType(Me("DoNot_Show_Documents"),Boolean)
+ End Get
+ Set
+ Me("DoNot_Show_Documents") = value
+ End Set
+ End Property
End Class
End Namespace
diff --git a/Global_Indexer/My Project/Settings.settings b/Global_Indexer/My Project/Settings.settings
index 8ab03e3..a821ad5 100644
--- a/Global_Indexer/My Project/Settings.settings
+++ b/Global_Indexer/My Project/Settings.settings
@@ -16,5 +16,11 @@
True
+
+ True
+
+
+ False
+
\ No newline at end of file
diff --git a/Global_Indexer/MyDataset.Designer.vb b/Global_Indexer/MyDataset.Designer.vb
index 70fea0b..539049b 100644
--- a/Global_Indexer/MyDataset.Designer.vb
+++ b/Global_Indexer/MyDataset.Designer.vb
@@ -73,6 +73,10 @@ Partial Public Class MyDataset
Private tableTBHOTKEY_WINDOW_HOOK As TBHOTKEY_WINDOW_HOOKDataTable
+ Private tableTBGI_FILES_USER As TBGI_FILES_USERDataTable
+
+ Private tableTBGI_HISTORY As TBGI_HISTORYDataTable
+
Private tableTBTempFiles2Index As TBTempFiles2IndexDataTable
Private tableTBTEMP_INDEXRESULTS As TBTEMP_INDEXRESULTSDataTable
@@ -208,6 +212,12 @@ Partial Public Class MyDataset
If (Not (ds.Tables("TBHOTKEY_WINDOW_HOOK")) Is Nothing) Then
MyBase.Tables.Add(New TBHOTKEY_WINDOW_HOOKDataTable(ds.Tables("TBHOTKEY_WINDOW_HOOK")))
End If
+ If (Not (ds.Tables("TBGI_FILES_USER")) Is Nothing) Then
+ MyBase.Tables.Add(New TBGI_FILES_USERDataTable(ds.Tables("TBGI_FILES_USER")))
+ End If
+ If (Not (ds.Tables("TBGI_HISTORY")) Is Nothing) Then
+ MyBase.Tables.Add(New TBGI_HISTORYDataTable(ds.Tables("TBGI_HISTORY")))
+ End If
If (Not (ds.Tables("TBTempFiles2Index")) Is Nothing) Then
MyBase.Tables.Add(New TBTempFiles2IndexDataTable(ds.Tables("TBTempFiles2Index")))
End If
@@ -471,6 +481,26 @@ Partial Public Class MyDataset
End Get
End Property
+ _
+ Public ReadOnly Property TBGI_FILES_USER() As TBGI_FILES_USERDataTable
+ Get
+ Return Me.tableTBGI_FILES_USER
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property TBGI_HISTORY() As TBGI_HISTORYDataTable
+ Get
+ Return Me.tableTBGI_HISTORY
+ End Get
+ End Property
+
_
+ Private Function ShouldSerializeTBGI_FILES_USER() As Boolean
+ Return false
+ End Function
+
+ _
+ Private Function ShouldSerializeTBGI_HISTORY() As Boolean
+ Return false
+ End Function
+
_
Private Function ShouldSerializeTBTempFiles2Index() As Boolean
@@ -1219,6 +1283,12 @@ Partial Public Class MyDataset
_
Public Delegate Sub TBHOTKEY_WINDOW_HOOKRowChangeEventHandler(ByVal sender As Object, ByVal e As TBHOTKEY_WINDOW_HOOKRowChangeEvent)
+ _
+ Public Delegate Sub TBGI_FILES_USERRowChangeEventHandler(ByVal sender As Object, ByVal e As TBGI_FILES_USERRowChangeEvent)
+
+ _
+ Public Delegate Sub TBGI_HISTORYRowChangeEventHandler(ByVal sender As Object, ByVal e As TBGI_HISTORYRowChangeEvent)
+
_
Public Delegate Sub TBTempFiles2IndexRowChangeEventHandler(ByVal sender As Object, ByVal e As TBTempFiles2IndexRowChangeEvent)
@@ -10754,6 +10824,681 @@ Partial Public Class MyDataset
End Function
End Class
+ '''
+ '''Represents the strongly named DataTable class.
+ '''
+ _
+ Partial Public Class TBGI_FILES_USERDataTable
+ Inherits Global.System.Data.TypedTableBase(Of TBGI_FILES_USERRow)
+
+ Private columnGUID As Global.System.Data.DataColumn
+
+ Private columnFILENAME2WORK As Global.System.Data.DataColumn
+
+ Private _columnUSER_WORK As Global.System.Data.DataColumn
+
+ Private columnWORKED As Global.System.Data.DataColumn
+
+ Private columnADDED_WHEN As Global.System.Data.DataColumn
+
+ Private columnHANDLE_TYPE As Global.System.Data.DataColumn
+
+ Private columnDelete As Global.System.Data.DataColumn
+
+ Private columnFILENAME_ONLY As Global.System.Data.DataColumn
+
+ _
+ Public Sub New()
+ MyBase.New
+ Me.TableName = "TBGI_FILES_USER"
+ Me.BeginInit
+ Me.InitClass
+ Me.EndInit
+ End Sub
+
+ _
+ Friend Sub New(ByVal table As Global.System.Data.DataTable)
+ MyBase.New
+ Me.TableName = table.TableName
+ If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
+ Me.CaseSensitive = table.CaseSensitive
+ End If
+ If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
+ Me.Locale = table.Locale
+ End If
+ If (table.Namespace <> table.DataSet.Namespace) Then
+ Me.Namespace = table.Namespace
+ End If
+ Me.Prefix = table.Prefix
+ Me.MinimumCapacity = table.MinimumCapacity
+ End Sub
+
+ _
+ Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
+ MyBase.New(info, context)
+ Me.InitVars
+ End Sub
+
+ _
+ Public ReadOnly Property GUIDColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnGUID
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property FILENAME2WORKColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnFILENAME2WORK
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property _USER_WORKColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me._columnUSER_WORK
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property WORKEDColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnWORKED
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property ADDED_WHENColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnADDED_WHEN
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property HANDLE_TYPEColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnHANDLE_TYPE
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property DeleteColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnDelete
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property FILENAME_ONLYColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnFILENAME_ONLY
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property Count() As Integer
+ Get
+ Return Me.Rows.Count
+ End Get
+ End Property
+
+ _
+ Public Default ReadOnly Property Item(ByVal index As Integer) As TBGI_FILES_USERRow
+ Get
+ Return CType(Me.Rows(index),TBGI_FILES_USERRow)
+ End Get
+ End Property
+
+ _
+ Public Event TBGI_FILES_USERRowChanging As TBGI_FILES_USERRowChangeEventHandler
+
+ _
+ Public Event TBGI_FILES_USERRowChanged As TBGI_FILES_USERRowChangeEventHandler
+
+ _
+ Public Event TBGI_FILES_USERRowDeleting As TBGI_FILES_USERRowChangeEventHandler
+
+ _
+ Public Event TBGI_FILES_USERRowDeleted As TBGI_FILES_USERRowChangeEventHandler
+
+ _
+ Public Overloads Sub AddTBGI_FILES_USERRow(ByVal row As TBGI_FILES_USERRow)
+ Me.Rows.Add(row)
+ End Sub
+
+ _
+ Public Overloads Function AddTBGI_FILES_USERRow(ByVal FILENAME2WORK As String, ByVal _USER_WORK As String, ByVal WORKED As Boolean, ByVal ADDED_WHEN As Date, ByVal HANDLE_TYPE As String, ByVal Delete As Boolean, ByVal FILENAME_ONLY As String) As TBGI_FILES_USERRow
+ Dim rowTBGI_FILES_USERRow As TBGI_FILES_USERRow = CType(Me.NewRow,TBGI_FILES_USERRow)
+ Dim columnValuesArray() As Object = New Object() {Nothing, FILENAME2WORK, _USER_WORK, WORKED, ADDED_WHEN, HANDLE_TYPE, Delete, FILENAME_ONLY}
+ rowTBGI_FILES_USERRow.ItemArray = columnValuesArray
+ Me.Rows.Add(rowTBGI_FILES_USERRow)
+ Return rowTBGI_FILES_USERRow
+ End Function
+
+ _
+ Public Function FindByGUID(ByVal GUID As Integer) As TBGI_FILES_USERRow
+ Return CType(Me.Rows.Find(New Object() {GUID}),TBGI_FILES_USERRow)
+ End Function
+
+ _
+ Public Overrides Function Clone() As Global.System.Data.DataTable
+ Dim cln As TBGI_FILES_USERDataTable = CType(MyBase.Clone,TBGI_FILES_USERDataTable)
+ cln.InitVars
+ Return cln
+ End Function
+
+ _
+ Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
+ Return New TBGI_FILES_USERDataTable()
+ End Function
+
+ _
+ Friend Sub InitVars()
+ Me.columnGUID = MyBase.Columns("GUID")
+ Me.columnFILENAME2WORK = MyBase.Columns("FILENAME2WORK")
+ Me._columnUSER_WORK = MyBase.Columns("USER@WORK")
+ Me.columnWORKED = MyBase.Columns("WORKED")
+ Me.columnADDED_WHEN = MyBase.Columns("ADDED_WHEN")
+ Me.columnHANDLE_TYPE = MyBase.Columns("HANDLE_TYPE")
+ Me.columnDelete = MyBase.Columns("Delete")
+ Me.columnFILENAME_ONLY = MyBase.Columns("FILENAME_ONLY")
+ End Sub
+
+ _
+ Private Sub InitClass()
+ Me.columnGUID = New Global.System.Data.DataColumn("GUID", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnGUID)
+ Me.columnFILENAME2WORK = New Global.System.Data.DataColumn("FILENAME2WORK", GetType(String), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnFILENAME2WORK)
+ Me._columnUSER_WORK = New Global.System.Data.DataColumn("USER@WORK", GetType(String), Nothing, Global.System.Data.MappingType.Element)
+ Me._columnUSER_WORK.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnUSER_WORK")
+ Me._columnUSER_WORK.ExtendedProperties.Add("Generator_UserColumnName", "USER@WORK")
+ MyBase.Columns.Add(Me._columnUSER_WORK)
+ Me.columnWORKED = New Global.System.Data.DataColumn("WORKED", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnWORKED)
+ Me.columnADDED_WHEN = New Global.System.Data.DataColumn("ADDED_WHEN", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnADDED_WHEN)
+ Me.columnHANDLE_TYPE = New Global.System.Data.DataColumn("HANDLE_TYPE", GetType(String), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnHANDLE_TYPE)
+ Me.columnDelete = New Global.System.Data.DataColumn("Delete", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnDelete)
+ Me.columnFILENAME_ONLY = New Global.System.Data.DataColumn("FILENAME_ONLY", GetType(String), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnFILENAME_ONLY)
+ Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnGUID}, true))
+ Me.columnGUID.AutoIncrement = true
+ Me.columnGUID.AutoIncrementSeed = -1
+ Me.columnGUID.AutoIncrementStep = -1
+ Me.columnGUID.AllowDBNull = false
+ Me.columnGUID.ReadOnly = true
+ Me.columnGUID.Unique = true
+ Me.columnFILENAME2WORK.AllowDBNull = false
+ Me.columnFILENAME2WORK.MaxLength = 500
+ Me._columnUSER_WORK.AllowDBNull = false
+ Me._columnUSER_WORK.MaxLength = 50
+ Me.columnWORKED.AllowDBNull = false
+ Me.columnADDED_WHEN.AllowDBNull = false
+ Me.columnHANDLE_TYPE.MaxLength = 50
+ Me.columnDelete.DefaultValue = CType(false,Boolean)
+ Me.columnFILENAME_ONLY.AllowDBNull = false
+ Me.columnFILENAME_ONLY.MaxLength = 250
+ End Sub
+
+ _
+ Public Function NewTBGI_FILES_USERRow() As TBGI_FILES_USERRow
+ Return CType(Me.NewRow,TBGI_FILES_USERRow)
+ End Function
+
+ _
+ Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
+ Return New TBGI_FILES_USERRow(builder)
+ End Function
+
+ _
+ Protected Overrides Function GetRowType() As Global.System.Type
+ Return GetType(TBGI_FILES_USERRow)
+ End Function
+
+ _
+ Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
+ MyBase.OnRowChanged(e)
+ If (Not (Me.TBGI_FILES_USERRowChangedEvent) Is Nothing) Then
+ RaiseEvent TBGI_FILES_USERRowChanged(Me, New TBGI_FILES_USERRowChangeEvent(CType(e.Row,TBGI_FILES_USERRow), e.Action))
+ End If
+ End Sub
+
+ _
+ Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
+ MyBase.OnRowChanging(e)
+ If (Not (Me.TBGI_FILES_USERRowChangingEvent) Is Nothing) Then
+ RaiseEvent TBGI_FILES_USERRowChanging(Me, New TBGI_FILES_USERRowChangeEvent(CType(e.Row,TBGI_FILES_USERRow), e.Action))
+ End If
+ End Sub
+
+ _
+ Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
+ MyBase.OnRowDeleted(e)
+ If (Not (Me.TBGI_FILES_USERRowDeletedEvent) Is Nothing) Then
+ RaiseEvent TBGI_FILES_USERRowDeleted(Me, New TBGI_FILES_USERRowChangeEvent(CType(e.Row,TBGI_FILES_USERRow), e.Action))
+ End If
+ End Sub
+
+ _
+ Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
+ MyBase.OnRowDeleting(e)
+ If (Not (Me.TBGI_FILES_USERRowDeletingEvent) Is Nothing) Then
+ RaiseEvent TBGI_FILES_USERRowDeleting(Me, New TBGI_FILES_USERRowChangeEvent(CType(e.Row,TBGI_FILES_USERRow), e.Action))
+ End If
+ End Sub
+
+ _
+ Public Sub RemoveTBGI_FILES_USERRow(ByVal row As TBGI_FILES_USERRow)
+ Me.Rows.Remove(row)
+ End Sub
+
+ _
+ Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
+ Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
+ Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
+ Dim ds As MyDataset = New MyDataset()
+ Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema"
+ any1.MinOccurs = New Decimal(0)
+ any1.MaxOccurs = Decimal.MaxValue
+ any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
+ sequence.Items.Add(any1)
+ Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
+ any2.MinOccurs = New Decimal(1)
+ any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
+ sequence.Items.Add(any2)
+ Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
+ attribute1.Name = "namespace"
+ attribute1.FixedValue = ds.Namespace
+ type.Attributes.Add(attribute1)
+ Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
+ attribute2.Name = "tableTypeName"
+ attribute2.FixedValue = "TBGI_FILES_USERDataTable"
+ type.Attributes.Add(attribute2)
+ type.Particle = sequence
+ Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
+ If xs.Contains(dsSchema.TargetNamespace) Then
+ Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
+ Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
+ Try
+ Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
+ dsSchema.Write(s1)
+ Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
+ Do While schemas.MoveNext
+ schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
+ s2.SetLength(0)
+ schema.Write(s2)
+ If (s1.Length = s2.Length) Then
+ s1.Position = 0
+ s2.Position = 0
+
+ Do While ((s1.Position <> s1.Length) _
+ AndAlso (s1.ReadByte = s2.ReadByte))
+
+
+ Loop
+ If (s1.Position = s1.Length) Then
+ Return type
+ End If
+ End If
+
+ Loop
+ Finally
+ If (Not (s1) Is Nothing) Then
+ s1.Close
+ End If
+ If (Not (s2) Is Nothing) Then
+ s2.Close
+ End If
+ End Try
+ End If
+ xs.Add(dsSchema)
+ Return type
+ End Function
+ End Class
+
+ '''
+ '''Represents the strongly named DataTable class.
+ '''
+ _
+ Partial Public Class TBGI_HISTORYDataTable
+ Inherits Global.System.Data.TypedTableBase(Of TBGI_HISTORYRow)
+
+ Private columnGUID As Global.System.Data.DataColumn
+
+ Private columnFILENAME_ORIGINAL As Global.System.Data.DataColumn
+
+ Private columnFILENAME_NEW As Global.System.Data.DataColumn
+
+ Private columnADDED_WHEN As Global.System.Data.DataColumn
+
+ _
+ Public Sub New()
+ MyBase.New
+ Me.TableName = "TBGI_HISTORY"
+ Me.BeginInit
+ Me.InitClass
+ Me.EndInit
+ End Sub
+
+ _
+ Friend Sub New(ByVal table As Global.System.Data.DataTable)
+ MyBase.New
+ Me.TableName = table.TableName
+ If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
+ Me.CaseSensitive = table.CaseSensitive
+ End If
+ If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
+ Me.Locale = table.Locale
+ End If
+ If (table.Namespace <> table.DataSet.Namespace) Then
+ Me.Namespace = table.Namespace
+ End If
+ Me.Prefix = table.Prefix
+ Me.MinimumCapacity = table.MinimumCapacity
+ End Sub
+
+ _
+ Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
+ MyBase.New(info, context)
+ Me.InitVars
+ End Sub
+
+ _
+ Public ReadOnly Property GUIDColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnGUID
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property FILENAME_ORIGINALColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnFILENAME_ORIGINAL
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property FILENAME_NEWColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnFILENAME_NEW
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property ADDED_WHENColumn() As Global.System.Data.DataColumn
+ Get
+ Return Me.columnADDED_WHEN
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property Count() As Integer
+ Get
+ Return Me.Rows.Count
+ End Get
+ End Property
+
+ _
+ Public Default ReadOnly Property Item(ByVal index As Integer) As TBGI_HISTORYRow
+ Get
+ Return CType(Me.Rows(index),TBGI_HISTORYRow)
+ End Get
+ End Property
+
+ _
+ Public Event TBGI_HISTORYRowChanging As TBGI_HISTORYRowChangeEventHandler
+
+ _
+ Public Event TBGI_HISTORYRowChanged As TBGI_HISTORYRowChangeEventHandler
+
+ _
+ Public Event TBGI_HISTORYRowDeleting As TBGI_HISTORYRowChangeEventHandler
+
+ _
+ Public Event TBGI_HISTORYRowDeleted As TBGI_HISTORYRowChangeEventHandler
+
+ _
+ Public Overloads Sub AddTBGI_HISTORYRow(ByVal row As TBGI_HISTORYRow)
+ Me.Rows.Add(row)
+ End Sub
+
+ _
+ Public Overloads Function AddTBGI_HISTORYRow(ByVal FILENAME_ORIGINAL As String, ByVal FILENAME_NEW As String, ByVal ADDED_WHEN As Date) As TBGI_HISTORYRow
+ Dim rowTBGI_HISTORYRow As TBGI_HISTORYRow = CType(Me.NewRow,TBGI_HISTORYRow)
+ Dim columnValuesArray() As Object = New Object() {Nothing, FILENAME_ORIGINAL, FILENAME_NEW, ADDED_WHEN}
+ rowTBGI_HISTORYRow.ItemArray = columnValuesArray
+ Me.Rows.Add(rowTBGI_HISTORYRow)
+ Return rowTBGI_HISTORYRow
+ End Function
+
+ _
+ Public Function FindByGUID(ByVal GUID As Integer) As TBGI_HISTORYRow
+ Return CType(Me.Rows.Find(New Object() {GUID}),TBGI_HISTORYRow)
+ End Function
+
+ _
+ Public Overrides Function Clone() As Global.System.Data.DataTable
+ Dim cln As TBGI_HISTORYDataTable = CType(MyBase.Clone,TBGI_HISTORYDataTable)
+ cln.InitVars
+ Return cln
+ End Function
+
+ _
+ Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
+ Return New TBGI_HISTORYDataTable()
+ End Function
+
+ _
+ Friend Sub InitVars()
+ Me.columnGUID = MyBase.Columns("GUID")
+ Me.columnFILENAME_ORIGINAL = MyBase.Columns("FILENAME_ORIGINAL")
+ Me.columnFILENAME_NEW = MyBase.Columns("FILENAME_NEW")
+ Me.columnADDED_WHEN = MyBase.Columns("ADDED_WHEN")
+ End Sub
+
+ _
+ Private Sub InitClass()
+ Me.columnGUID = New Global.System.Data.DataColumn("GUID", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnGUID)
+ Me.columnFILENAME_ORIGINAL = New Global.System.Data.DataColumn("FILENAME_ORIGINAL", GetType(String), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnFILENAME_ORIGINAL)
+ Me.columnFILENAME_NEW = New Global.System.Data.DataColumn("FILENAME_NEW", GetType(String), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnFILENAME_NEW)
+ Me.columnADDED_WHEN = New Global.System.Data.DataColumn("ADDED_WHEN", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
+ MyBase.Columns.Add(Me.columnADDED_WHEN)
+ Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnGUID}, true))
+ Me.columnGUID.AutoIncrement = true
+ Me.columnGUID.AutoIncrementSeed = -1
+ Me.columnGUID.AutoIncrementStep = -1
+ Me.columnGUID.AllowDBNull = false
+ Me.columnGUID.ReadOnly = true
+ Me.columnGUID.Unique = true
+ Me.columnFILENAME_ORIGINAL.MaxLength = 250
+ Me.columnFILENAME_NEW.MaxLength = 250
+ Me.columnADDED_WHEN.AllowDBNull = false
+ End Sub
+
+ _
+ Public Function NewTBGI_HISTORYRow() As TBGI_HISTORYRow
+ Return CType(Me.NewRow,TBGI_HISTORYRow)
+ End Function
+
+ _
+ Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
+ Return New TBGI_HISTORYRow(builder)
+ End Function
+
+ _
+ Protected Overrides Function GetRowType() As Global.System.Type
+ Return GetType(TBGI_HISTORYRow)
+ End Function
+
+ _
+ Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
+ MyBase.OnRowChanged(e)
+ If (Not (Me.TBGI_HISTORYRowChangedEvent) Is Nothing) Then
+ RaiseEvent TBGI_HISTORYRowChanged(Me, New TBGI_HISTORYRowChangeEvent(CType(e.Row,TBGI_HISTORYRow), e.Action))
+ End If
+ End Sub
+
+ _
+ Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
+ MyBase.OnRowChanging(e)
+ If (Not (Me.TBGI_HISTORYRowChangingEvent) Is Nothing) Then
+ RaiseEvent TBGI_HISTORYRowChanging(Me, New TBGI_HISTORYRowChangeEvent(CType(e.Row,TBGI_HISTORYRow), e.Action))
+ End If
+ End Sub
+
+ _
+ Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
+ MyBase.OnRowDeleted(e)
+ If (Not (Me.TBGI_HISTORYRowDeletedEvent) Is Nothing) Then
+ RaiseEvent TBGI_HISTORYRowDeleted(Me, New TBGI_HISTORYRowChangeEvent(CType(e.Row,TBGI_HISTORYRow), e.Action))
+ End If
+ End Sub
+
+ _
+ Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
+ MyBase.OnRowDeleting(e)
+ If (Not (Me.TBGI_HISTORYRowDeletingEvent) Is Nothing) Then
+ RaiseEvent TBGI_HISTORYRowDeleting(Me, New TBGI_HISTORYRowChangeEvent(CType(e.Row,TBGI_HISTORYRow), e.Action))
+ End If
+ End Sub
+
+ _
+ Public Sub RemoveTBGI_HISTORYRow(ByVal row As TBGI_HISTORYRow)
+ Me.Rows.Remove(row)
+ End Sub
+
+ _
+ Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
+ Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
+ Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
+ Dim ds As MyDataset = New MyDataset()
+ Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema"
+ any1.MinOccurs = New Decimal(0)
+ any1.MaxOccurs = Decimal.MaxValue
+ any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
+ sequence.Items.Add(any1)
+ Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
+ any2.MinOccurs = New Decimal(1)
+ any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
+ sequence.Items.Add(any2)
+ Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
+ attribute1.Name = "namespace"
+ attribute1.FixedValue = ds.Namespace
+ type.Attributes.Add(attribute1)
+ Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
+ attribute2.Name = "tableTypeName"
+ attribute2.FixedValue = "TBGI_HISTORYDataTable"
+ type.Attributes.Add(attribute2)
+ type.Particle = sequence
+ Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
+ If xs.Contains(dsSchema.TargetNamespace) Then
+ Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
+ Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
+ Try
+ Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
+ dsSchema.Write(s1)
+ Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
+ Do While schemas.MoveNext
+ schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
+ s2.SetLength(0)
+ schema.Write(s2)
+ If (s1.Length = s2.Length) Then
+ s1.Position = 0
+ s2.Position = 0
+
+ Do While ((s1.Position <> s1.Length) _
+ AndAlso (s1.ReadByte = s2.ReadByte))
+
+
+ Loop
+ If (s1.Position = s1.Length) Then
+ Return type
+ End If
+ End If
+
+ Loop
+ Finally
+ If (Not (s1) Is Nothing) Then
+ s1.Close
+ End If
+ If (Not (s2) Is Nothing) Then
+ s2.Close
+ End If
+ End Try
+ End If
+ xs.Add(dsSchema)
+ Return type
+ End Function
+ End Class
+
'''
'''Represents the strongly named DataTable class.
'''
@@ -16556,6 +17301,234 @@ Partial Public Class MyDataset
End Sub
End Class
+ '''
+ '''Represents strongly named DataRow class.
+ '''
+ Partial Public Class TBGI_FILES_USERRow
+ Inherits Global.System.Data.DataRow
+
+ Private tableTBGI_FILES_USER As TBGI_FILES_USERDataTable
+
+ _
+ Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
+ MyBase.New(rb)
+ Me.tableTBGI_FILES_USER = CType(Me.Table,TBGI_FILES_USERDataTable)
+ End Sub
+
+ _
+ Public Property GUID() As Integer
+ Get
+ Return CType(Me(Me.tableTBGI_FILES_USER.GUIDColumn),Integer)
+ End Get
+ Set
+ Me(Me.tableTBGI_FILES_USER.GUIDColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Property FILENAME2WORK() As String
+ Get
+ Return CType(Me(Me.tableTBGI_FILES_USER.FILENAME2WORKColumn),String)
+ End Get
+ Set
+ Me(Me.tableTBGI_FILES_USER.FILENAME2WORKColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Property _USER_WORK() As String
+ Get
+ Return CType(Me(Me.tableTBGI_FILES_USER._USER_WORKColumn),String)
+ End Get
+ Set
+ Me(Me.tableTBGI_FILES_USER._USER_WORKColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Property WORKED() As Boolean
+ Get
+ Return CType(Me(Me.tableTBGI_FILES_USER.WORKEDColumn),Boolean)
+ End Get
+ Set
+ Me(Me.tableTBGI_FILES_USER.WORKEDColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Property ADDED_WHEN() As Date
+ Get
+ Return CType(Me(Me.tableTBGI_FILES_USER.ADDED_WHENColumn),Date)
+ End Get
+ Set
+ Me(Me.tableTBGI_FILES_USER.ADDED_WHENColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Property HANDLE_TYPE() As String
+ Get
+ Try
+ Return CType(Me(Me.tableTBGI_FILES_USER.HANDLE_TYPEColumn),String)
+ Catch e As Global.System.InvalidCastException
+ Throw New Global.System.Data.StrongTypingException("Der Wert für Spalte HANDLE_TYPE in Tabelle TBGI_FILES_USER ist DBNull.", e)
+ End Try
+ End Get
+ Set
+ Me(Me.tableTBGI_FILES_USER.HANDLE_TYPEColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Property Delete() As Boolean
+ Get
+ Try
+ Return CType(Me(Me.tableTBGI_FILES_USER.DeleteColumn),Boolean)
+ Catch e As Global.System.InvalidCastException
+ Throw New Global.System.Data.StrongTypingException("Der Wert für Spalte Delete in Tabelle TBGI_FILES_USER ist DBNull.", e)
+ End Try
+ End Get
+ Set
+ Me(Me.tableTBGI_FILES_USER.DeleteColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Property FILENAME_ONLY() As String
+ Get
+ Return CType(Me(Me.tableTBGI_FILES_USER.FILENAME_ONLYColumn),String)
+ End Get
+ Set
+ Me(Me.tableTBGI_FILES_USER.FILENAME_ONLYColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Function IsHANDLE_TYPENull() As Boolean
+ Return Me.IsNull(Me.tableTBGI_FILES_USER.HANDLE_TYPEColumn)
+ End Function
+
+ _
+ Public Sub SetHANDLE_TYPENull()
+ Me(Me.tableTBGI_FILES_USER.HANDLE_TYPEColumn) = Global.System.Convert.DBNull
+ End Sub
+
+ _
+ Public Function IsDeleteNull() As Boolean
+ Return Me.IsNull(Me.tableTBGI_FILES_USER.DeleteColumn)
+ End Function
+
+ _
+ Public Sub SetDeleteNull()
+ Me(Me.tableTBGI_FILES_USER.DeleteColumn) = Global.System.Convert.DBNull
+ End Sub
+ End Class
+
+ '''
+ '''Represents strongly named DataRow class.
+ '''
+ Partial Public Class TBGI_HISTORYRow
+ Inherits Global.System.Data.DataRow
+
+ Private tableTBGI_HISTORY As TBGI_HISTORYDataTable
+
+ _
+ Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
+ MyBase.New(rb)
+ Me.tableTBGI_HISTORY = CType(Me.Table,TBGI_HISTORYDataTable)
+ End Sub
+
+ _
+ Public Property GUID() As Integer
+ Get
+ Return CType(Me(Me.tableTBGI_HISTORY.GUIDColumn),Integer)
+ End Get
+ Set
+ Me(Me.tableTBGI_HISTORY.GUIDColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Property FILENAME_ORIGINAL() As String
+ Get
+ Try
+ Return CType(Me(Me.tableTBGI_HISTORY.FILENAME_ORIGINALColumn),String)
+ Catch e As Global.System.InvalidCastException
+ Throw New Global.System.Data.StrongTypingException("Der Wert für Spalte FILENAME_ORIGINAL in Tabelle TBGI_HISTORY ist DBNull.", e)
+ End Try
+ End Get
+ Set
+ Me(Me.tableTBGI_HISTORY.FILENAME_ORIGINALColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Property FILENAME_NEW() As String
+ Get
+ Try
+ Return CType(Me(Me.tableTBGI_HISTORY.FILENAME_NEWColumn),String)
+ Catch e As Global.System.InvalidCastException
+ Throw New Global.System.Data.StrongTypingException("Der Wert für Spalte FILENAME_NEW in Tabelle TBGI_HISTORY ist DBNull.", e)
+ End Try
+ End Get
+ Set
+ Me(Me.tableTBGI_HISTORY.FILENAME_NEWColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Property ADDED_WHEN() As Date
+ Get
+ Return CType(Me(Me.tableTBGI_HISTORY.ADDED_WHENColumn),Date)
+ End Get
+ Set
+ Me(Me.tableTBGI_HISTORY.ADDED_WHENColumn) = value
+ End Set
+ End Property
+
+ _
+ Public Function IsFILENAME_ORIGINALNull() As Boolean
+ Return Me.IsNull(Me.tableTBGI_HISTORY.FILENAME_ORIGINALColumn)
+ End Function
+
+ _
+ Public Sub SetFILENAME_ORIGINALNull()
+ Me(Me.tableTBGI_HISTORY.FILENAME_ORIGINALColumn) = Global.System.Convert.DBNull
+ End Sub
+
+ _
+ Public Function IsFILENAME_NEWNull() As Boolean
+ Return Me.IsNull(Me.tableTBGI_HISTORY.FILENAME_NEWColumn)
+ End Function
+
+ _
+ Public Sub SetFILENAME_NEWNull()
+ Me(Me.tableTBGI_HISTORY.FILENAME_NEWColumn) = Global.System.Convert.DBNull
+ End Sub
+ End Class
+
'''
'''Represents strongly named DataRow class.
'''
@@ -17587,6 +18560,78 @@ Partial Public Class MyDataset
End Property
End Class
+ '''
+ '''Row event argument class
+ '''
+ _
+ Public Class TBGI_FILES_USERRowChangeEvent
+ Inherits Global.System.EventArgs
+
+ Private eventRow As TBGI_FILES_USERRow
+
+ Private eventAction As Global.System.Data.DataRowAction
+
+ _
+ Public Sub New(ByVal row As TBGI_FILES_USERRow, ByVal action As Global.System.Data.DataRowAction)
+ MyBase.New
+ Me.eventRow = row
+ Me.eventAction = action
+ End Sub
+
+ _
+ Public ReadOnly Property Row() As TBGI_FILES_USERRow
+ Get
+ Return Me.eventRow
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property Action() As Global.System.Data.DataRowAction
+ Get
+ Return Me.eventAction
+ End Get
+ End Property
+ End Class
+
+ '''
+ '''Row event argument class
+ '''
+ _
+ Public Class TBGI_HISTORYRowChangeEvent
+ Inherits Global.System.EventArgs
+
+ Private eventRow As TBGI_HISTORYRow
+
+ Private eventAction As Global.System.Data.DataRowAction
+
+ _
+ Public Sub New(ByVal row As TBGI_HISTORYRow, ByVal action As Global.System.Data.DataRowAction)
+ MyBase.New
+ Me.eventRow = row
+ Me.eventAction = action
+ End Sub
+
+ _
+ Public ReadOnly Property Row() As TBGI_HISTORYRow
+ Get
+ Return Me.eventRow
+ End Get
+ End Property
+
+ _
+ Public ReadOnly Property Action() As Global.System.Data.DataRowAction
+ Get
+ Return Me.eventAction
+ End Get
+ End Property
+ End Class
+
'''
'''Row event argument class
'''
@@ -19494,298 +20539,298 @@ Namespace MyDatasetTableAdapters
Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
Me._commandCollection(0).Connection = Me.Connection
- Me._commandCollection(0).CommandText = "SELECT GUID, DOK_ID, NAME, WD_INDEX, COMMENT, DATATYPE, SUGGESTION, DEFAUL"& _
- "T_VALUE, CONNECTION_ID, SEQUENCE, SQL_RESULT, SQL_CHECK, ACTIVE, ADDED_WHO, ADDE"& _
- "D_WHEN, CHANGED_WHO, "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" CHANGED_WHEN, OPTIONAL"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM "& _
- " TBDD_INDEX_MAN"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (DOK_ID = @DOK_ID)"
+ Me._commandCollection(0).CommandText = "SELECT GUID, DOK_ID, NAME, WD_INDEX, COMMENT, DATATYPE, SUGGESTION, DEFAUL" & _
+ "T_VALUE, CONNECTION_ID, SEQUENCE, SQL_RESULT, SQL_CHECK, ACTIVE, ADDED_WHO, ADDE" & _
+ "D_WHEN, CHANGED_WHO, " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & " CHANGED_WHEN, OPTIONAL" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "FROM " & _
+ " TBDD_INDEX_MAN" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "WHERE (DOK_ID = @DOK_ID)" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "ORDER BY SEQUENCE"
Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
- Me._commandCollection(0).Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DOK_ID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOK_ID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
+ Me._commandCollection(0).Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DOK_ID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOK_ID", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
End Sub
-
- _
- Public Overloads Overridable Function Fill(ByVal dataTable As MyDataset.TBDD_INDEX_MANDataTable, ByVal DOK_ID As Integer) As Integer
+
+ _
+ Public Overridable Overloads Function Fill(ByVal dataTable As MyDataset.TBDD_INDEX_MANDataTable, ByVal DOK_ID As Integer) As Integer
Me.Adapter.SelectCommand = Me.CommandCollection(0)
- Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOK_ID,Integer)
- If (Me.ClearBeforeFill = true) Then
- dataTable.Clear
+ Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOK_ID, Integer)
+ If (Me.ClearBeforeFill = True) Then
+ dataTable.Clear()
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
-
- _
- Public Overloads Overridable Function GetData(ByVal DOK_ID As Integer) As MyDataset.TBDD_INDEX_MANDataTable
+
+ _
+ Public Overridable Overloads Function GetData(ByVal DOK_ID As Integer) As MyDataset.TBDD_INDEX_MANDataTable
Me.Adapter.SelectCommand = Me.CommandCollection(0)
- Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOK_ID,Integer)
+ Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOK_ID, Integer)
Dim dataTable As MyDataset.TBDD_INDEX_MANDataTable = New MyDataset.TBDD_INDEX_MANDataTable()
Me.Adapter.Fill(dataTable)
Return dataTable
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataTable As MyDataset.TBDD_INDEX_MANDataTable) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataTable As MyDataset.TBDD_INDEX_MANDataTable) As Integer
Return Me.Adapter.Update(dataTable)
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataSet As MyDataset) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataSet As MyDataset) As Integer
Return Me.Adapter.Update(dataSet, "TBDD_INDEX_MAN")
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
Return Me.Adapter.Update(dataRows)
End Function
-
- _
- Public Overloads Overridable Function Delete(ByVal Original_GUID As Integer) As Integer
- Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_GUID,Integer)
+
+ _
+ Public Overridable Overloads Function Delete(ByVal Original_GUID As Integer) As Integer
+ Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_GUID, Integer)
Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
- If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
+ If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
<> Global.System.Data.ConnectionState.Open) Then
- Me.Adapter.DeleteCommand.Connection.Open
+ Me.Adapter.DeleteCommand.Connection.Open()
End If
- Try
+ Try
Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
Return returnValue
Finally
If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
- Me.Adapter.DeleteCommand.Connection.Close
+ Me.Adapter.DeleteCommand.Connection.Close()
End If
End Try
End Function
-
- _
- Public Overloads Overridable Function Insert(ByVal DOK_ID As Integer, ByVal NAME As String, ByVal WD_INDEX As String, ByVal COMMENT As String, ByVal DATATYPE As String, ByVal SUGGESTION As Boolean, ByVal DEFAULT_VALUE As String, ByVal CONNECTION_ID As Global.System.Nullable(Of Short), ByVal SEQUENCE As Integer, ByVal SQL_RESULT As String, ByVal SQL_CHECK As String, ByVal ACTIVE As Boolean, ByVal ADDED_WHO As String, ByVal _OPTIONAL As Boolean) As Integer
- Me.Adapter.InsertCommand.Parameters(0).Value = CType(DOK_ID,Integer)
+
+ _
+ Public Overridable Overloads Function Insert(ByVal DOK_ID As Integer, ByVal NAME As String, ByVal WD_INDEX As String, ByVal COMMENT As String, ByVal DATATYPE As String, ByVal SUGGESTION As Boolean, ByVal DEFAULT_VALUE As String, ByVal CONNECTION_ID As Global.System.Nullable(Of Short), ByVal SEQUENCE As Integer, ByVal SQL_RESULT As String, ByVal SQL_CHECK As String, ByVal ACTIVE As Boolean, ByVal ADDED_WHO As String, ByVal _OPTIONAL As Boolean) As Integer
+ Me.Adapter.InsertCommand.Parameters(0).Value = CType(DOK_ID, Integer)
If (NAME Is Nothing) Then
Throw New Global.System.ArgumentNullException("NAME")
Else
- Me.Adapter.InsertCommand.Parameters(1).Value = CType(NAME,String)
+ Me.Adapter.InsertCommand.Parameters(1).Value = CType(NAME, String)
End If
If (WD_INDEX Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(2).Value = CType(WD_INDEX,String)
+ Me.Adapter.InsertCommand.Parameters(2).Value = CType(WD_INDEX, String)
End If
If (COMMENT Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(3).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(3).Value = CType(COMMENT,String)
+ Me.Adapter.InsertCommand.Parameters(3).Value = CType(COMMENT, String)
End If
If (DATATYPE Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(4).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(4).Value = CType(DATATYPE,String)
+ Me.Adapter.InsertCommand.Parameters(4).Value = CType(DATATYPE, String)
End If
- Me.Adapter.InsertCommand.Parameters(5).Value = CType(SUGGESTION,Boolean)
+ Me.Adapter.InsertCommand.Parameters(5).Value = CType(SUGGESTION, Boolean)
If (DEFAULT_VALUE Is Nothing) Then
Throw New Global.System.ArgumentNullException("DEFAULT_VALUE")
Else
- Me.Adapter.InsertCommand.Parameters(6).Value = CType(DEFAULT_VALUE,String)
+ Me.Adapter.InsertCommand.Parameters(6).Value = CType(DEFAULT_VALUE, String)
End If
- If (CONNECTION_ID.HasValue = true) Then
- Me.Adapter.InsertCommand.Parameters(7).Value = CType(CONNECTION_ID.Value,Short)
+ If (CONNECTION_ID.HasValue = True) Then
+ Me.Adapter.InsertCommand.Parameters(7).Value = CType(CONNECTION_ID.Value, Short)
Else
Me.Adapter.InsertCommand.Parameters(7).Value = Global.System.DBNull.Value
End If
- Me.Adapter.InsertCommand.Parameters(8).Value = CType(SEQUENCE,Integer)
+ Me.Adapter.InsertCommand.Parameters(8).Value = CType(SEQUENCE, Integer)
If (SQL_RESULT Is Nothing) Then
Throw New Global.System.ArgumentNullException("SQL_RESULT")
Else
- Me.Adapter.InsertCommand.Parameters(9).Value = CType(SQL_RESULT,String)
+ Me.Adapter.InsertCommand.Parameters(9).Value = CType(SQL_RESULT, String)
End If
If (SQL_CHECK Is Nothing) Then
Throw New Global.System.ArgumentNullException("SQL_CHECK")
Else
- Me.Adapter.InsertCommand.Parameters(10).Value = CType(SQL_CHECK,String)
+ Me.Adapter.InsertCommand.Parameters(10).Value = CType(SQL_CHECK, String)
End If
- Me.Adapter.InsertCommand.Parameters(11).Value = CType(ACTIVE,Boolean)
+ Me.Adapter.InsertCommand.Parameters(11).Value = CType(ACTIVE, Boolean)
If (ADDED_WHO Is Nothing) Then
Throw New Global.System.ArgumentNullException("ADDED_WHO")
Else
- Me.Adapter.InsertCommand.Parameters(12).Value = CType(ADDED_WHO,String)
+ Me.Adapter.InsertCommand.Parameters(12).Value = CType(ADDED_WHO, String)
End If
- Me.Adapter.InsertCommand.Parameters(13).Value = CType(_OPTIONAL,Boolean)
+ Me.Adapter.InsertCommand.Parameters(13).Value = CType(_OPTIONAL, Boolean)
Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
- If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
+ If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
<> Global.System.Data.ConnectionState.Open) Then
- Me.Adapter.InsertCommand.Connection.Open
+ Me.Adapter.InsertCommand.Connection.Open()
End If
- Try
+ Try
Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
Return returnValue
Finally
If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
- Me.Adapter.InsertCommand.Connection.Close
+ Me.Adapter.InsertCommand.Connection.Close()
End If
End Try
End Function
-
- _
- Public Overloads Overridable Function Update( _
- ByVal DOK_ID As Integer, _
- ByVal NAME As String, _
- ByVal WD_INDEX As String, _
- ByVal COMMENT As String, _
- ByVal DATATYPE As String, _
- ByVal SUGGESTION As Boolean, _
- ByVal DEFAULT_VALUE As String, _
- ByVal CONNECTION_ID As Global.System.Nullable(Of Short), _
- ByVal SEQUENCE As Integer, _
- ByVal SQL_RESULT As String, _
- ByVal SQL_CHECK As String, _
- ByVal ACTIVE As Boolean, _
- ByVal CHANGED_WHO As String, _
- ByVal _OPTIONAL As Boolean, _
- ByVal Original_GUID As Integer, _
+
+ _
+ Public Overridable Overloads Function Update( _
+ ByVal DOK_ID As Integer, _
+ ByVal NAME As String, _
+ ByVal WD_INDEX As String, _
+ ByVal COMMENT As String, _
+ ByVal DATATYPE As String, _
+ ByVal SUGGESTION As Boolean, _
+ ByVal DEFAULT_VALUE As String, _
+ ByVal CONNECTION_ID As Global.System.Nullable(Of Short), _
+ ByVal SEQUENCE As Integer, _
+ ByVal SQL_RESULT As String, _
+ ByVal SQL_CHECK As String, _
+ ByVal ACTIVE As Boolean, _
+ ByVal CHANGED_WHO As String, _
+ ByVal _OPTIONAL As Boolean, _
+ ByVal Original_GUID As Integer, _
ByVal GUID As Integer) As Integer
- Me.Adapter.UpdateCommand.Parameters(0).Value = CType(DOK_ID,Integer)
+ Me.Adapter.UpdateCommand.Parameters(0).Value = CType(DOK_ID, Integer)
If (NAME Is Nothing) Then
Throw New Global.System.ArgumentNullException("NAME")
Else
- Me.Adapter.UpdateCommand.Parameters(1).Value = CType(NAME,String)
+ Me.Adapter.UpdateCommand.Parameters(1).Value = CType(NAME, String)
End If
If (WD_INDEX Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(2).Value = CType(WD_INDEX,String)
+ Me.Adapter.UpdateCommand.Parameters(2).Value = CType(WD_INDEX, String)
End If
If (COMMENT Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(3).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(3).Value = CType(COMMENT,String)
+ Me.Adapter.UpdateCommand.Parameters(3).Value = CType(COMMENT, String)
End If
If (DATATYPE Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(4).Value = CType(DATATYPE,String)
+ Me.Adapter.UpdateCommand.Parameters(4).Value = CType(DATATYPE, String)
End If
- Me.Adapter.UpdateCommand.Parameters(5).Value = CType(SUGGESTION,Boolean)
+ Me.Adapter.UpdateCommand.Parameters(5).Value = CType(SUGGESTION, Boolean)
If (DEFAULT_VALUE Is Nothing) Then
Throw New Global.System.ArgumentNullException("DEFAULT_VALUE")
Else
- Me.Adapter.UpdateCommand.Parameters(6).Value = CType(DEFAULT_VALUE,String)
+ Me.Adapter.UpdateCommand.Parameters(6).Value = CType(DEFAULT_VALUE, String)
End If
- If (CONNECTION_ID.HasValue = true) Then
- Me.Adapter.UpdateCommand.Parameters(7).Value = CType(CONNECTION_ID.Value,Short)
+ If (CONNECTION_ID.HasValue = True) Then
+ Me.Adapter.UpdateCommand.Parameters(7).Value = CType(CONNECTION_ID.Value, Short)
Else
Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
End If
- Me.Adapter.UpdateCommand.Parameters(8).Value = CType(SEQUENCE,Integer)
+ Me.Adapter.UpdateCommand.Parameters(8).Value = CType(SEQUENCE, Integer)
If (SQL_RESULT Is Nothing) Then
Throw New Global.System.ArgumentNullException("SQL_RESULT")
Else
- Me.Adapter.UpdateCommand.Parameters(9).Value = CType(SQL_RESULT,String)
+ Me.Adapter.UpdateCommand.Parameters(9).Value = CType(SQL_RESULT, String)
End If
If (SQL_CHECK Is Nothing) Then
Throw New Global.System.ArgumentNullException("SQL_CHECK")
Else
- Me.Adapter.UpdateCommand.Parameters(10).Value = CType(SQL_CHECK,String)
+ Me.Adapter.UpdateCommand.Parameters(10).Value = CType(SQL_CHECK, String)
End If
- Me.Adapter.UpdateCommand.Parameters(11).Value = CType(ACTIVE,Boolean)
+ Me.Adapter.UpdateCommand.Parameters(11).Value = CType(ACTIVE, Boolean)
If (CHANGED_WHO Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(12).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(12).Value = CType(CHANGED_WHO,String)
+ Me.Adapter.UpdateCommand.Parameters(12).Value = CType(CHANGED_WHO, String)
End If
- Me.Adapter.UpdateCommand.Parameters(13).Value = CType(_OPTIONAL,Boolean)
- Me.Adapter.UpdateCommand.Parameters(14).Value = CType(Original_GUID,Integer)
- Me.Adapter.UpdateCommand.Parameters(15).Value = CType(GUID,Integer)
+ Me.Adapter.UpdateCommand.Parameters(13).Value = CType(_OPTIONAL, Boolean)
+ Me.Adapter.UpdateCommand.Parameters(14).Value = CType(Original_GUID, Integer)
+ Me.Adapter.UpdateCommand.Parameters(15).Value = CType(GUID, Integer)
Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
- If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
+ If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
<> Global.System.Data.ConnectionState.Open) Then
- Me.Adapter.UpdateCommand.Connection.Open
+ Me.Adapter.UpdateCommand.Connection.Open()
End If
- Try
+ Try
Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
Return returnValue
Finally
If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
- Me.Adapter.UpdateCommand.Connection.Close
+ Me.Adapter.UpdateCommand.Connection.Close()
End If
End Try
End Function
End Class
-
+
'''
'''Represents the connection and commands used to retrieve and save data.
'''
- _
+ _
Partial Public Class TBDD_CONNECTIONTableAdapter
Inherits Global.System.ComponentModel.Component
-
+
Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
-
+
Private _connection As Global.System.Data.SqlClient.SqlConnection
-
+
Private _transaction As Global.System.Data.SqlClient.SqlTransaction
-
+
Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
-
+
Private _clearBeforeFill As Boolean
-
- _
+
+ _
Public Sub New()
- MyBase.New
- Me.ClearBeforeFill = true
+ MyBase.New()
+ Me.ClearBeforeFill = True
End Sub
-
- _
+
+ _
Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
Get
If (Me._adapter Is Nothing) Then
- Me.InitAdapter
+ Me.InitAdapter()
End If
Return Me._adapter
End Get
End Property
-
- _
+
+ _
Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
Get
If (Me._connection Is Nothing) Then
- Me.InitConnection
+ Me.InitConnection()
End If
Return Me._connection
End Get
- Set
+ Set(value As Global.System.Data.SqlClient.SqlConnection)
Me._connection = value
If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
Me.Adapter.InsertCommand.Connection = value
@@ -19799,65 +20844,65 @@ Namespace MyDatasetTableAdapters
Dim i As Integer = 0
Do While (i < Me.CommandCollection.Length)
If (Not (Me.CommandCollection(i)) Is Nothing) Then
- CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
+ CType(Me.CommandCollection(i), Global.System.Data.SqlClient.SqlCommand).Connection = value
End If
i = (i + 1)
Loop
End Set
End Property
-
- _
+
+ _
Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
Get
Return Me._transaction
End Get
- Set
+ Set(value As Global.System.Data.SqlClient.SqlTransaction)
Me._transaction = value
Dim i As Integer = 0
Do While (i < Me.CommandCollection.Length)
Me.CommandCollection(i).Transaction = Me._transaction
i = (i + 1)
Loop
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
Me.Adapter.DeleteCommand.Transaction = Me._transaction
End If
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
Me.Adapter.InsertCommand.Transaction = Me._transaction
End If
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
Me.Adapter.UpdateCommand.Transaction = Me._transaction
End If
End Set
End Property
-
- _
+
+ _
Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
Get
If (Me._commandCollection Is Nothing) Then
- Me.InitCommandCollection
+ Me.InitCommandCollection()
End If
Return Me._commandCollection
End Get
End Property
-
- _
+
+ _
Public Property ClearBeforeFill() As Boolean
Get
Return Me._clearBeforeFill
End Get
- Set
+ Set(value As Boolean)
Me._clearBeforeFill = value
End Set
End Property
-
- _
+
+ _
Private Sub InitAdapter()
Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
@@ -19879,315 +20924,315 @@ Namespace MyDatasetTableAdapters
Me._adapter.TableMappings.Add(tableMapping)
Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
Me._adapter.DeleteCommand.Connection = Me.Connection
- Me._adapter.DeleteCommand.CommandText = "DELETE FROM TBDD_CONNECTION"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (GUID = @Original_GUID)"
+ Me._adapter.DeleteCommand.CommandText = "DELETE FROM TBDD_CONNECTION" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "WHERE (GUID = @Original_GUID)"
Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
- Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_GUID", Global.System.Data.SqlDbType.SmallInt, 2, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
+ Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_GUID", Global.System.Data.SqlDbType.SmallInt, 2, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, False, Nothing, "", "", ""))
Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
Me._adapter.InsertCommand.Connection = Me.Connection
- Me._adapter.InsertCommand.CommandText = "INSERT INTO TBDD_CONNECTION"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" (BEZEICHNUNG, SQL_PROVIDER,"& _
- " SERVER, DATENBANK, USERNAME, PASSWORD, BEMERKUNG, AKTIV, ERSTELLTWER)"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"VALUES "& _
- " (@BEZEICHNUNG,@SQL_PROVIDER,@SERVER,@DATENBANK,@USERNAME,@PASSWORD,@BEMERK"& _
- "UNG,@AKTIV,@ERSTELLTWER); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT GUID, BEZEICHNUNG, SQL_PROVIDER, SERVER, DATE"& _
- "NBANK, USERNAME, PASSWORD, BEMERKUNG, AKTIV, ERSTELLTWER, ERSTELLTWANN, GEANDERT"& _
+ Me._adapter.InsertCommand.CommandText = "INSERT INTO TBDD_CONNECTION" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & " (BEZEICHNUNG, SQL_PROVIDER," & _
+ " SERVER, DATENBANK, USERNAME, PASSWORD, BEMERKUNG, AKTIV, ERSTELLTWER)" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "VALUES " & _
+ " (@BEZEICHNUNG,@SQL_PROVIDER,@SERVER,@DATENBANK,@USERNAME,@PASSWORD,@BEMERK" & _
+ "UNG,@AKTIV,@ERSTELLTWER); " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "SELECT GUID, BEZEICHNUNG, SQL_PROVIDER, SERVER, DATE" & _
+ "NBANK, USERNAME, PASSWORD, BEMERKUNG, AKTIV, ERSTELLTWER, ERSTELLTWANN, GEANDERT" & _
"WER, GEAENDERTWANN FROM TBDD_CONNECTION WHERE (GUID = SCOPE_IDENTITY())"
Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@BEZEICHNUNG", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "BEZEICHNUNG", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_PROVIDER", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_PROVIDER", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SERVER", Global.System.Data.SqlDbType.VarChar, 150, Global.System.Data.ParameterDirection.Input, 0, 0, "SERVER", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DATENBANK", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "DATENBANK", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@USERNAME", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "USERNAME", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@PASSWORD", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "PASSWORD", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@BEMERKUNG", Global.System.Data.SqlDbType.VarChar, 400, Global.System.Data.ParameterDirection.Input, 0, 0, "BEMERKUNG", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@AKTIV", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "AKTIV", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@ERSTELLTWER", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "ERSTELLTWER", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@BEZEICHNUNG", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "BEZEICHNUNG", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_PROVIDER", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_PROVIDER", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SERVER", Global.System.Data.SqlDbType.VarChar, 150, Global.System.Data.ParameterDirection.Input, 0, 0, "SERVER", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DATENBANK", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "DATENBANK", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@USERNAME", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "USERNAME", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@PASSWORD", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "PASSWORD", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@BEMERKUNG", Global.System.Data.SqlDbType.VarChar, 400, Global.System.Data.ParameterDirection.Input, 0, 0, "BEMERKUNG", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@AKTIV", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "AKTIV", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@ERSTELLTWER", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "ERSTELLTWER", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
Me._adapter.UpdateCommand.Connection = Me.Connection
- Me._adapter.UpdateCommand.CommandText = "UPDATE TBDD_CONNECTION"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SET BEZEICHNUNG = @BEZEICHNUNG, SQL_"& _
- "PROVIDER = @SQL_PROVIDER, SERVER = @SERVER, DATENBANK = @DATENBANK, USERNAME = @"& _
- "USERNAME, PASSWORD = @PASSWORD, "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" BEMERKUNG = @BEMERKUN"& _
- "G, AKTIV = @AKTIV, GEANDERTWER = @GEANDERTWER"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (GUID = @Original_GU"& _
- "ID); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT GUID, BEZEICHNUNG, SQL_PROVIDER, SERVER, DATENBANK, USERNAME, PASS"& _
- "WORD, BEMERKUNG, AKTIV, ERSTELLTWER, ERSTELLTWANN, GEANDERTWER, GEAENDERTWANN FR"& _
+ Me._adapter.UpdateCommand.CommandText = "UPDATE TBDD_CONNECTION" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "SET BEZEICHNUNG = @BEZEICHNUNG, SQL_" & _
+ "PROVIDER = @SQL_PROVIDER, SERVER = @SERVER, DATENBANK = @DATENBANK, USERNAME = @" & _
+ "USERNAME, PASSWORD = @PASSWORD, " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & " BEMERKUNG = @BEMERKUN" & _
+ "G, AKTIV = @AKTIV, GEANDERTWER = @GEANDERTWER" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "WHERE (GUID = @Original_GU" & _
+ "ID); " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "SELECT GUID, BEZEICHNUNG, SQL_PROVIDER, SERVER, DATENBANK, USERNAME, PASS" & _
+ "WORD, BEMERKUNG, AKTIV, ERSTELLTWER, ERSTELLTWANN, GEANDERTWER, GEAENDERTWANN FR" & _
"OM TBDD_CONNECTION WHERE (GUID = @GUID)"
Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@BEZEICHNUNG", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "BEZEICHNUNG", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_PROVIDER", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_PROVIDER", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SERVER", Global.System.Data.SqlDbType.VarChar, 150, Global.System.Data.ParameterDirection.Input, 0, 0, "SERVER", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DATENBANK", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "DATENBANK", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@USERNAME", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "USERNAME", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@PASSWORD", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "PASSWORD", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@BEMERKUNG", Global.System.Data.SqlDbType.VarChar, 400, Global.System.Data.ParameterDirection.Input, 0, 0, "BEMERKUNG", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@AKTIV", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "AKTIV", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@GEANDERTWER", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "GEANDERTWER", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_GUID", Global.System.Data.SqlDbType.SmallInt, 2, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@GUID", Global.System.Data.SqlDbType.SmallInt, 2, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@BEZEICHNUNG", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "BEZEICHNUNG", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_PROVIDER", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_PROVIDER", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SERVER", Global.System.Data.SqlDbType.VarChar, 150, Global.System.Data.ParameterDirection.Input, 0, 0, "SERVER", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DATENBANK", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "DATENBANK", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@USERNAME", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "USERNAME", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@PASSWORD", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "PASSWORD", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@BEMERKUNG", Global.System.Data.SqlDbType.VarChar, 400, Global.System.Data.ParameterDirection.Input, 0, 0, "BEMERKUNG", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@AKTIV", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "AKTIV", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@GEANDERTWER", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "GEANDERTWER", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_GUID", Global.System.Data.SqlDbType.SmallInt, 2, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@GUID", Global.System.Data.SqlDbType.SmallInt, 2, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, False, Nothing, "", "", ""))
End Sub
-
- _
+
+ _
Private Sub InitConnection()
Me._connection = New Global.System.Data.SqlClient.SqlConnection()
Me._connection.ConnectionString = Global.Global_Indexer.My.MySettings.Default.DD_ECMConnectionString
End Sub
-
- _
+
+ _
Private Sub InitCommandCollection()
Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
Me._commandCollection(0).Connection = Me.Connection
- Me._commandCollection(0).CommandText = "SELECT TBDD_CONNECTION.*"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM TBDD_CONNECTION"
+ Me._commandCollection(0).CommandText = "SELECT TBDD_CONNECTION.*" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "FROM TBDD_CONNECTION"
Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
End Sub
-
- _
- Public Overloads Overridable Function Fill(ByVal dataTable As MyDataset.TBDD_CONNECTIONDataTable) As Integer
+
+ _
+ Public Overridable Overloads Function Fill(ByVal dataTable As MyDataset.TBDD_CONNECTIONDataTable) As Integer
Me.Adapter.SelectCommand = Me.CommandCollection(0)
- If (Me.ClearBeforeFill = true) Then
- dataTable.Clear
+ If (Me.ClearBeforeFill = True) Then
+ dataTable.Clear()
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
-
- _
- Public Overloads Overridable Function GetData() As MyDataset.TBDD_CONNECTIONDataTable
+
+ _
+ Public Overridable Overloads Function GetData() As MyDataset.TBDD_CONNECTIONDataTable
Me.Adapter.SelectCommand = Me.CommandCollection(0)
Dim dataTable As MyDataset.TBDD_CONNECTIONDataTable = New MyDataset.TBDD_CONNECTIONDataTable()
Me.Adapter.Fill(dataTable)
Return dataTable
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataTable As MyDataset.TBDD_CONNECTIONDataTable) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataTable As MyDataset.TBDD_CONNECTIONDataTable) As Integer
Return Me.Adapter.Update(dataTable)
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataSet As MyDataset) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataSet As MyDataset) As Integer
Return Me.Adapter.Update(dataSet, "TBDD_CONNECTION")
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
Return Me.Adapter.Update(dataRows)
End Function
-
- _
- Public Overloads Overridable Function Delete(ByVal Original_GUID As Short) As Integer
- Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_GUID,Short)
+
+ _
+ Public Overridable Overloads Function Delete(ByVal Original_GUID As Short) As Integer
+ Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_GUID, Short)
Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
- If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
+ If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
<> Global.System.Data.ConnectionState.Open) Then
- Me.Adapter.DeleteCommand.Connection.Open
+ Me.Adapter.DeleteCommand.Connection.Open()
End If
- Try
+ Try
Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
Return returnValue
Finally
If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
- Me.Adapter.DeleteCommand.Connection.Close
+ Me.Adapter.DeleteCommand.Connection.Close()
End If
End Try
End Function
-
- _
- Public Overloads Overridable Function Insert(ByVal BEZEICHNUNG As String, ByVal SQL_PROVIDER As String, ByVal SERVER As String, ByVal DATENBANK As String, ByVal USERNAME As String, ByVal PASSWORD As String, ByVal BEMERKUNG As String, ByVal AKTIV As Boolean, ByVal ERSTELLTWER As String) As Integer
+
+ _
+ Public Overridable Overloads Function Insert(ByVal BEZEICHNUNG As String, ByVal SQL_PROVIDER As String, ByVal SERVER As String, ByVal DATENBANK As String, ByVal USERNAME As String, ByVal PASSWORD As String, ByVal BEMERKUNG As String, ByVal AKTIV As Boolean, ByVal ERSTELLTWER As String) As Integer
If (BEZEICHNUNG Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(0).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(0).Value = CType(BEZEICHNUNG,String)
+ Me.Adapter.InsertCommand.Parameters(0).Value = CType(BEZEICHNUNG, String)
End If
If (SQL_PROVIDER Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(1).Value = CType(SQL_PROVIDER,String)
+ Me.Adapter.InsertCommand.Parameters(1).Value = CType(SQL_PROVIDER, String)
End If
If (SERVER Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(2).Value = CType(SERVER,String)
+ Me.Adapter.InsertCommand.Parameters(2).Value = CType(SERVER, String)
End If
If (DATENBANK Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(3).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(3).Value = CType(DATENBANK,String)
+ Me.Adapter.InsertCommand.Parameters(3).Value = CType(DATENBANK, String)
End If
If (USERNAME Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(4).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(4).Value = CType(USERNAME,String)
+ Me.Adapter.InsertCommand.Parameters(4).Value = CType(USERNAME, String)
End If
If (PASSWORD Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(5).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(5).Value = CType(PASSWORD,String)
+ Me.Adapter.InsertCommand.Parameters(5).Value = CType(PASSWORD, String)
End If
If (BEMERKUNG Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(6).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(6).Value = CType(BEMERKUNG,String)
+ Me.Adapter.InsertCommand.Parameters(6).Value = CType(BEMERKUNG, String)
End If
- Me.Adapter.InsertCommand.Parameters(7).Value = CType(AKTIV,Boolean)
+ Me.Adapter.InsertCommand.Parameters(7).Value = CType(AKTIV, Boolean)
If (ERSTELLTWER Is Nothing) Then
Throw New Global.System.ArgumentNullException("ERSTELLTWER")
Else
- Me.Adapter.InsertCommand.Parameters(8).Value = CType(ERSTELLTWER,String)
+ Me.Adapter.InsertCommand.Parameters(8).Value = CType(ERSTELLTWER, String)
End If
Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
- If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
+ If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
<> Global.System.Data.ConnectionState.Open) Then
- Me.Adapter.InsertCommand.Connection.Open
+ Me.Adapter.InsertCommand.Connection.Open()
End If
- Try
+ Try
Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
Return returnValue
Finally
If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
- Me.Adapter.InsertCommand.Connection.Close
+ Me.Adapter.InsertCommand.Connection.Close()
End If
End Try
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal BEZEICHNUNG As String, ByVal SQL_PROVIDER As String, ByVal SERVER As String, ByVal DATENBANK As String, ByVal USERNAME As String, ByVal PASSWORD As String, ByVal BEMERKUNG As String, ByVal AKTIV As Boolean, ByVal GEANDERTWER As String, ByVal Original_GUID As Short, ByVal GUID As Short) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal BEZEICHNUNG As String, ByVal SQL_PROVIDER As String, ByVal SERVER As String, ByVal DATENBANK As String, ByVal USERNAME As String, ByVal PASSWORD As String, ByVal BEMERKUNG As String, ByVal AKTIV As Boolean, ByVal GEANDERTWER As String, ByVal Original_GUID As Short, ByVal GUID As Short) As Integer
If (BEZEICHNUNG Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(0).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(0).Value = CType(BEZEICHNUNG,String)
+ Me.Adapter.UpdateCommand.Parameters(0).Value = CType(BEZEICHNUNG, String)
End If
If (SQL_PROVIDER Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(1).Value = CType(SQL_PROVIDER,String)
+ Me.Adapter.UpdateCommand.Parameters(1).Value = CType(SQL_PROVIDER, String)
End If
If (SERVER Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(2).Value = CType(SERVER,String)
+ Me.Adapter.UpdateCommand.Parameters(2).Value = CType(SERVER, String)
End If
If (DATENBANK Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(3).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(3).Value = CType(DATENBANK,String)
+ Me.Adapter.UpdateCommand.Parameters(3).Value = CType(DATENBANK, String)
End If
If (USERNAME Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(4).Value = CType(USERNAME,String)
+ Me.Adapter.UpdateCommand.Parameters(4).Value = CType(USERNAME, String)
End If
If (PASSWORD Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(5).Value = CType(PASSWORD,String)
+ Me.Adapter.UpdateCommand.Parameters(5).Value = CType(PASSWORD, String)
End If
If (BEMERKUNG Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(6).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(6).Value = CType(BEMERKUNG,String)
+ Me.Adapter.UpdateCommand.Parameters(6).Value = CType(BEMERKUNG, String)
End If
- Me.Adapter.UpdateCommand.Parameters(7).Value = CType(AKTIV,Boolean)
+ Me.Adapter.UpdateCommand.Parameters(7).Value = CType(AKTIV, Boolean)
If (GEANDERTWER Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(8).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(8).Value = CType(GEANDERTWER,String)
+ Me.Adapter.UpdateCommand.Parameters(8).Value = CType(GEANDERTWER, String)
End If
- Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Original_GUID,Short)
- Me.Adapter.UpdateCommand.Parameters(10).Value = CType(GUID,Short)
+ Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Original_GUID, Short)
+ Me.Adapter.UpdateCommand.Parameters(10).Value = CType(GUID, Short)
Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
- If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
+ If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
<> Global.System.Data.ConnectionState.Open) Then
- Me.Adapter.UpdateCommand.Connection.Open
+ Me.Adapter.UpdateCommand.Connection.Open()
End If
- Try
+ Try
Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
Return returnValue
Finally
If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
- Me.Adapter.UpdateCommand.Connection.Close
+ Me.Adapter.UpdateCommand.Connection.Close()
End If
End Try
End Function
End Class
-
+
'''
'''Represents the connection and commands used to retrieve and save data.
'''
- _
+ _
Partial Public Class VWDDINDEX_MANTableAdapter
Inherits Global.System.ComponentModel.Component
-
+
Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
-
+
Private _connection As Global.System.Data.SqlClient.SqlConnection
-
+
Private _transaction As Global.System.Data.SqlClient.SqlTransaction
-
+
Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
-
+
Private _clearBeforeFill As Boolean
-
- _
+
+ _
Public Sub New()
- MyBase.New
- Me.ClearBeforeFill = true
+ MyBase.New()
+ Me.ClearBeforeFill = True
End Sub
-
- _
+
+ _
Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
Get
If (Me._adapter Is Nothing) Then
- Me.InitAdapter
+ Me.InitAdapter()
End If
Return Me._adapter
End Get
End Property
-
- _
+
+ _
Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
Get
If (Me._connection Is Nothing) Then
- Me.InitConnection
+ Me.InitConnection()
End If
Return Me._connection
End Get
- Set
+ Set(value As Global.System.Data.SqlClient.SqlConnection)
Me._connection = value
If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
Me.Adapter.InsertCommand.Connection = value
@@ -20201,65 +21246,65 @@ Namespace MyDatasetTableAdapters
Dim i As Integer = 0
Do While (i < Me.CommandCollection.Length)
If (Not (Me.CommandCollection(i)) Is Nothing) Then
- CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
+ CType(Me.CommandCollection(i), Global.System.Data.SqlClient.SqlCommand).Connection = value
End If
i = (i + 1)
Loop
End Set
End Property
-
- _
+
+ _
Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
Get
Return Me._transaction
End Get
- Set
+ Set(value As Global.System.Data.SqlClient.SqlTransaction)
Me._transaction = value
Dim i As Integer = 0
Do While (i < Me.CommandCollection.Length)
Me.CommandCollection(i).Transaction = Me._transaction
i = (i + 1)
Loop
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
Me.Adapter.DeleteCommand.Transaction = Me._transaction
End If
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
Me.Adapter.InsertCommand.Transaction = Me._transaction
End If
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
Me.Adapter.UpdateCommand.Transaction = Me._transaction
End If
End Set
End Property
-
- _
+
+ _
Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
Get
If (Me._commandCollection Is Nothing) Then
- Me.InitCommandCollection
+ Me.InitCommandCollection()
End If
Return Me._commandCollection
End Get
End Property
-
- _
+
+ _
Public Property ClearBeforeFill() As Boolean
Get
Return Me._clearBeforeFill
End Get
- Set
+ Set(value As Boolean)
Me._clearBeforeFill = value
End Set
End Property
-
- _
+
+ _
Private Sub InitAdapter()
Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
@@ -20286,105 +21331,105 @@ Namespace MyDatasetTableAdapters
tableMapping.ColumnMappings.Add("OPTIONAL", "OPTIONAL")
Me._adapter.TableMappings.Add(tableMapping)
End Sub
-
- _
+
+ _
Private Sub InitConnection()
Me._connection = New Global.System.Data.SqlClient.SqlConnection()
Me._connection.ConnectionString = Global.Global_Indexer.My.MySettings.Default.DD_ECMConnectionString
End Sub
-
- _
+
+ _
Private Sub InitCommandCollection()
Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
Me._commandCollection(0).Connection = Me.Connection
- Me._commandCollection(0).CommandText = "SELECT GUID, INDEXNAME, WD_INDEX, COMMENT, DATATYPE, DOK_ID, DOKUMENTART, "& _
- "KURZNAME, SUGGESTION, CONNECTION_ID, CONNECTION, SQL_PROVIDER, SERVER, DATENBANK"& _
- ", USERNAME, "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" PASSWORD, SQL_RESULT, SQL_CHECK, OPTIONAL"& _
- ""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM VWDDINDEX_MAN"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (DOK_ID = @DokID)"
+ Me._commandCollection(0).CommandText = "SELECT GUID, INDEXNAME, WD_INDEX, COMMENT, DATATYPE, DOK_ID, DOKUMENTART, " & _
+ "KURZNAME, SUGGESTION, CONNECTION_ID, CONNECTION, SQL_PROVIDER, SERVER, DATENBANK" & _
+ ", USERNAME, " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & " PASSWORD, SQL_RESULT, SQL_CHECK, OPTIONAL" & _
+ "" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "FROM VWDDINDEX_MAN" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "WHERE (DOK_ID = @DokID)"
Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
- Me._commandCollection(0).Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DokID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOK_ID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
+ Me._commandCollection(0).Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DokID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOK_ID", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
End Sub
-
- _
- Public Overloads Overridable Function Fill(ByVal dataTable As MyDataset.VWDDINDEX_MANDataTable, ByVal DokID As Integer) As Integer
+
+ _
+ Public Overridable Overloads Function Fill(ByVal dataTable As MyDataset.VWDDINDEX_MANDataTable, ByVal DokID As Integer) As Integer
Me.Adapter.SelectCommand = Me.CommandCollection(0)
- Me.Adapter.SelectCommand.Parameters(0).Value = CType(DokID,Integer)
- If (Me.ClearBeforeFill = true) Then
- dataTable.Clear
+ Me.Adapter.SelectCommand.Parameters(0).Value = CType(DokID, Integer)
+ If (Me.ClearBeforeFill = True) Then
+ dataTable.Clear()
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
-
- _
- Public Overloads Overridable Function GetData(ByVal DokID As Integer) As MyDataset.VWDDINDEX_MANDataTable
+
+ _
+ Public Overridable Overloads Function GetData(ByVal DokID As Integer) As MyDataset.VWDDINDEX_MANDataTable
Me.Adapter.SelectCommand = Me.CommandCollection(0)
- Me.Adapter.SelectCommand.Parameters(0).Value = CType(DokID,Integer)
+ Me.Adapter.SelectCommand.Parameters(0).Value = CType(DokID, Integer)
Dim dataTable As MyDataset.VWDDINDEX_MANDataTable = New MyDataset.VWDDINDEX_MANDataTable()
Me.Adapter.Fill(dataTable)
Return dataTable
End Function
End Class
-
+
'''
'''Represents the connection and commands used to retrieve and save data.
'''
- _
+ _
Partial Public Class VWDDINDEX_AUTOMTableAdapter
Inherits Global.System.ComponentModel.Component
-
+
Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
-
+
Private _connection As Global.System.Data.SqlClient.SqlConnection
-
+
Private _transaction As Global.System.Data.SqlClient.SqlTransaction
-
+
Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
-
+
Private _clearBeforeFill As Boolean
-
- _
+
+ _
Public Sub New()
- MyBase.New
- Me.ClearBeforeFill = true
+ MyBase.New()
+ Me.ClearBeforeFill = True
End Sub
-
- _
+
+ _
Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
Get
If (Me._adapter Is Nothing) Then
- Me.InitAdapter
+ Me.InitAdapter()
End If
Return Me._adapter
End Get
End Property
-
- _
+
+ _
Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
Get
If (Me._connection Is Nothing) Then
- Me.InitConnection
+ Me.InitConnection()
End If
Return Me._connection
End Get
- Set
+ Set(value As Global.System.Data.SqlClient.SqlConnection)
Me._connection = value
If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
Me.Adapter.InsertCommand.Connection = value
@@ -20398,65 +21443,65 @@ Namespace MyDatasetTableAdapters
Dim i As Integer = 0
Do While (i < Me.CommandCollection.Length)
If (Not (Me.CommandCollection(i)) Is Nothing) Then
- CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
+ CType(Me.CommandCollection(i), Global.System.Data.SqlClient.SqlCommand).Connection = value
End If
i = (i + 1)
Loop
End Set
End Property
-
- _
+
+ _
Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
Get
Return Me._transaction
End Get
- Set
+ Set(value As Global.System.Data.SqlClient.SqlTransaction)
Me._transaction = value
Dim i As Integer = 0
Do While (i < Me.CommandCollection.Length)
Me.CommandCollection(i).Transaction = Me._transaction
i = (i + 1)
Loop
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
Me.Adapter.DeleteCommand.Transaction = Me._transaction
End If
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
Me.Adapter.InsertCommand.Transaction = Me._transaction
End If
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
Me.Adapter.UpdateCommand.Transaction = Me._transaction
End If
End Set
End Property
-
- _
+
+ _
Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
Get
If (Me._commandCollection Is Nothing) Then
- Me.InitCommandCollection
+ Me.InitCommandCollection()
End If
Return Me._commandCollection
End Get
End Property
-
- _
+
+ _
Public Property ClearBeforeFill() As Boolean
Get
Return Me._clearBeforeFill
End Get
- Set
+ Set(value As Boolean)
Me._clearBeforeFill = value
End Set
End Property
-
- _
+
+ _
Private Sub InitAdapter()
Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
@@ -20479,105 +21524,105 @@ Namespace MyDatasetTableAdapters
tableMapping.ColumnMappings.Add("VALUE", "VALUE")
Me._adapter.TableMappings.Add(tableMapping)
End Sub
-
- _
+
+ _
Private Sub InitConnection()
Me._connection = New Global.System.Data.SqlClient.SqlConnection()
Me._connection.ConnectionString = Global.Global_Indexer.My.MySettings.Default.DD_ECMConnectionString
End Sub
-
- _
+
+ _
Private Sub InitCommandCollection()
Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
Me._commandCollection(0).Connection = Me.Connection
- Me._commandCollection(0).CommandText = "SELECT GUID, INDEXNAME, COMMENT, DOCTYPE_ID, DOKUMENTART, KURZNAME, CONNEC"& _
- "TION_ID, CONNECTION, SQL_PROVIDER, SERVER, DATENBANK, USERNAME, PASSWORD, SQL_RE"& _
- "SULT,VALUE"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM VWDDINDEX_AUTOM"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (DOCTYPE_ID = @DOCTYPE"& _
+ Me._commandCollection(0).CommandText = "SELECT GUID, INDEXNAME, COMMENT, DOCTYPE_ID, DOKUMENTART, KURZNAME, CONNEC" & _
+ "TION_ID, CONNECTION, SQL_PROVIDER, SERVER, DATENBANK, USERNAME, PASSWORD, SQL_RE" & _
+ "SULT,VALUE" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "FROM VWDDINDEX_AUTOM" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "WHERE (DOCTYPE_ID = @DOCTYPE" & _
")"
Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
- Me._commandCollection(0).Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DOCTYPE", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOCTYPE_ID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
+ Me._commandCollection(0).Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DOCTYPE", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOCTYPE_ID", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
End Sub
-
- _
- Public Overloads Overridable Function Fill(ByVal dataTable As MyDataset.VWDDINDEX_AUTOMDataTable, ByVal DOCTYPE As Integer) As Integer
+
+ _
+ Public Overridable Overloads Function Fill(ByVal dataTable As MyDataset.VWDDINDEX_AUTOMDataTable, ByVal DOCTYPE As Integer) As Integer
Me.Adapter.SelectCommand = Me.CommandCollection(0)
- Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOCTYPE,Integer)
- If (Me.ClearBeforeFill = true) Then
- dataTable.Clear
+ Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOCTYPE, Integer)
+ If (Me.ClearBeforeFill = True) Then
+ dataTable.Clear()
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
-
- _
- Public Overloads Overridable Function GetData(ByVal DOCTYPE As Integer) As MyDataset.VWDDINDEX_AUTOMDataTable
+
+ _
+ Public Overridable Overloads Function GetData(ByVal DOCTYPE As Integer) As MyDataset.VWDDINDEX_AUTOMDataTable
Me.Adapter.SelectCommand = Me.CommandCollection(0)
- Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOCTYPE,Integer)
+ Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOCTYPE, Integer)
Dim dataTable As MyDataset.VWDDINDEX_AUTOMDataTable = New MyDataset.VWDDINDEX_AUTOMDataTable()
Me.Adapter.Fill(dataTable)
Return dataTable
End Function
End Class
-
+
'''
'''Represents the connection and commands used to retrieve and save data.
'''
- _
+ _
Partial Public Class TBDD_INDEX_AUTOMTableAdapter
Inherits Global.System.ComponentModel.Component
-
+
Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
-
+
Private _connection As Global.System.Data.SqlClient.SqlConnection
-
+
Private _transaction As Global.System.Data.SqlClient.SqlTransaction
-
+
Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
-
+
Private _clearBeforeFill As Boolean
-
- _
+
+ _
Public Sub New()
- MyBase.New
- Me.ClearBeforeFill = true
+ MyBase.New()
+ Me.ClearBeforeFill = True
End Sub
-
- _
+
+ _
Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
Get
If (Me._adapter Is Nothing) Then
- Me.InitAdapter
+ Me.InitAdapter()
End If
Return Me._adapter
End Get
End Property
-
- _
+
+ _
Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
Get
If (Me._connection Is Nothing) Then
- Me.InitConnection
+ Me.InitConnection()
End If
Return Me._connection
End Get
- Set
+ Set(value As Global.System.Data.SqlClient.SqlConnection)
Me._connection = value
If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
Me.Adapter.InsertCommand.Connection = value
@@ -20591,65 +21636,65 @@ Namespace MyDatasetTableAdapters
Dim i As Integer = 0
Do While (i < Me.CommandCollection.Length)
If (Not (Me.CommandCollection(i)) Is Nothing) Then
- CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
+ CType(Me.CommandCollection(i), Global.System.Data.SqlClient.SqlCommand).Connection = value
End If
i = (i + 1)
Loop
End Set
End Property
-
- _
+
+ _
Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
Get
Return Me._transaction
End Get
- Set
+ Set(value As Global.System.Data.SqlClient.SqlTransaction)
Me._transaction = value
Dim i As Integer = 0
Do While (i < Me.CommandCollection.Length)
Me.CommandCollection(i).Transaction = Me._transaction
i = (i + 1)
Loop
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
Me.Adapter.DeleteCommand.Transaction = Me._transaction
End If
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
Me.Adapter.InsertCommand.Transaction = Me._transaction
End If
- If ((Not (Me.Adapter) Is Nothing) _
+ If ((Not (Me.Adapter) Is Nothing) _
AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
Me.Adapter.UpdateCommand.Transaction = Me._transaction
End If
End Set
End Property
-
- _
+
+ _
Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
Get
If (Me._commandCollection Is Nothing) Then
- Me.InitCommandCollection
+ Me.InitCommandCollection()
End If
Return Me._commandCollection
End Get
End Property
-
- _
+
+ _
Public Property ClearBeforeFill() As Boolean
Get
Return Me._clearBeforeFill
End Get
- Set
+ Set(value As Boolean)
Me._clearBeforeFill = value
End Set
End Property
-
- _
+
+ _
Private Sub InitAdapter()
Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
@@ -20671,304 +21716,304 @@ Namespace MyDatasetTableAdapters
Me._adapter.TableMappings.Add(tableMapping)
Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
Me._adapter.DeleteCommand.Connection = Me.Connection
- Me._adapter.DeleteCommand.CommandText = "DELETE FROM TBDD_INDEX_AUTOM"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (GUID = @Original_GUID)"
+ Me._adapter.DeleteCommand.CommandText = "DELETE FROM TBDD_INDEX_AUTOM" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "WHERE (GUID = @Original_GUID)"
Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
- Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_GUID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
+ Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_GUID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, False, Nothing, "", "", ""))
Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
Me._adapter.InsertCommand.Connection = Me.Connection
- Me._adapter.InsertCommand.CommandText = "INSERT INTO TBDD_INDEX_AUTOM"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" (DOCTYPE_ID, INDEXNAME, VA"& _
- "LUE, CONNECTION_ID, COMMENT, ACTIVE, ADDED_WHO, SQL_RESULT, SQL_ACTIVE)"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"VALUES "& _
- " (@DOCTYPE_ID,@INDEXNAME,@VALUE,@CONNECTION_ID,@COMMENT,@ACTIVE,@ADDED_WHO"& _
- ",@SQL_RESULT,@SQL_ACTIVE); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT GUID, DOCTYPE_ID, INDEXNAME, VALUE, CONNECT"& _
- "ION_ID, COMMENT, ACTIVE, ADDED_WHO, ADDED_WHEN, CHANGED_WHO, CHANGED_WHEN, SQL_R"& _
+ Me._adapter.InsertCommand.CommandText = "INSERT INTO TBDD_INDEX_AUTOM" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & " (DOCTYPE_ID, INDEXNAME, VA" & _
+ "LUE, CONNECTION_ID, COMMENT, ACTIVE, ADDED_WHO, SQL_RESULT, SQL_ACTIVE)" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "VALUES " & _
+ " (@DOCTYPE_ID,@INDEXNAME,@VALUE,@CONNECTION_ID,@COMMENT,@ACTIVE,@ADDED_WHO" & _
+ ",@SQL_RESULT,@SQL_ACTIVE); " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "SELECT GUID, DOCTYPE_ID, INDEXNAME, VALUE, CONNECT" & _
+ "ION_ID, COMMENT, ACTIVE, ADDED_WHO, ADDED_WHEN, CHANGED_WHO, CHANGED_WHEN, SQL_R" & _
"ESULT FROM TBDD_INDEX_AUTOM WHERE (GUID = SCOPE_IDENTITY())"
Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DOCTYPE_ID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOCTYPE_ID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@INDEXNAME", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "INDEXNAME", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@VALUE", Global.System.Data.SqlDbType.VarChar, 2000, Global.System.Data.ParameterDirection.Input, 0, 0, "VALUE", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CONNECTION_ID", Global.System.Data.SqlDbType.SmallInt, 2, Global.System.Data.ParameterDirection.Input, 0, 0, "CONNECTION_ID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@COMMENT", Global.System.Data.SqlDbType.VarChar, 400, Global.System.Data.ParameterDirection.Input, 0, 0, "COMMENT", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@ACTIVE", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "ACTIVE", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@ADDED_WHO", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "ADDED_WHO", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_RESULT", Global.System.Data.SqlDbType.VarChar, 2000, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_RESULT", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_ACTIVE", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_ACTIVE", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DOCTYPE_ID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOCTYPE_ID", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@INDEXNAME", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "INDEXNAME", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@VALUE", Global.System.Data.SqlDbType.VarChar, 2000, Global.System.Data.ParameterDirection.Input, 0, 0, "VALUE", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CONNECTION_ID", Global.System.Data.SqlDbType.SmallInt, 2, Global.System.Data.ParameterDirection.Input, 0, 0, "CONNECTION_ID", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@COMMENT", Global.System.Data.SqlDbType.VarChar, 400, Global.System.Data.ParameterDirection.Input, 0, 0, "COMMENT", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@ACTIVE", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "ACTIVE", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@ADDED_WHO", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "ADDED_WHO", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_RESULT", Global.System.Data.SqlDbType.VarChar, 2000, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_RESULT", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_ACTIVE", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_ACTIVE", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
Me._adapter.UpdateCommand.Connection = Me.Connection
- Me._adapter.UpdateCommand.CommandText = "UPDATE TBDD_INDEX_AUTOM"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SET DOCTYPE_ID = @DOCTYPE_ID, INDEX"& _
- "NAME = @INDEXNAME, VALUE = @VALUE, CONNECTION_ID = @CONNECTION_ID, COMMENT = @CO"& _
- "MMENT, ACTIVE = @ACTIVE, CHANGED_WHO = @CHANGED_WHO, "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" "& _
- "SQL_RESULT = @SQL_RESULT, SQL_ACTIVE = @SQL_ACTIVE"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (GUID = @Origin"& _
- "al_GUID); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT GUID, DOCTYPE_ID, INDEXNAME, VALUE, CONNECTION_ID, COMMENT, "& _
- "ACTIVE, ADDED_WHO, ADDED_WHEN, CHANGED_WHO, CHANGED_WHEN, SQL_RESULT FROM TBDD_I"& _
+ Me._adapter.UpdateCommand.CommandText = "UPDATE TBDD_INDEX_AUTOM" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "SET DOCTYPE_ID = @DOCTYPE_ID, INDEX" & _
+ "NAME = @INDEXNAME, VALUE = @VALUE, CONNECTION_ID = @CONNECTION_ID, COMMENT = @CO" & _
+ "MMENT, ACTIVE = @ACTIVE, CHANGED_WHO = @CHANGED_WHO, " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & " " & _
+ "SQL_RESULT = @SQL_RESULT, SQL_ACTIVE = @SQL_ACTIVE" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "WHERE (GUID = @Origin" & _
+ "al_GUID); " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "SELECT GUID, DOCTYPE_ID, INDEXNAME, VALUE, CONNECTION_ID, COMMENT, " & _
+ "ACTIVE, ADDED_WHO, ADDED_WHEN, CHANGED_WHO, CHANGED_WHEN, SQL_RESULT FROM TBDD_I" & _
"NDEX_AUTOM WHERE (GUID = @GUID)"
Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DOCTYPE_ID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOCTYPE_ID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@INDEXNAME", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "INDEXNAME", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@VALUE", Global.System.Data.SqlDbType.VarChar, 2000, Global.System.Data.ParameterDirection.Input, 0, 0, "VALUE", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CONNECTION_ID", Global.System.Data.SqlDbType.SmallInt, 2, Global.System.Data.ParameterDirection.Input, 0, 0, "CONNECTION_ID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@COMMENT", Global.System.Data.SqlDbType.VarChar, 400, Global.System.Data.ParameterDirection.Input, 0, 0, "COMMENT", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@ACTIVE", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "ACTIVE", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CHANGED_WHO", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "CHANGED_WHO", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_RESULT", Global.System.Data.SqlDbType.VarChar, 2000, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_RESULT", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_ACTIVE", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_ACTIVE", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_GUID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
- Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@GUID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DOCTYPE_ID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOCTYPE_ID", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@INDEXNAME", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "INDEXNAME", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@VALUE", Global.System.Data.SqlDbType.VarChar, 2000, Global.System.Data.ParameterDirection.Input, 0, 0, "VALUE", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CONNECTION_ID", Global.System.Data.SqlDbType.SmallInt, 2, Global.System.Data.ParameterDirection.Input, 0, 0, "CONNECTION_ID", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@COMMENT", Global.System.Data.SqlDbType.VarChar, 400, Global.System.Data.ParameterDirection.Input, 0, 0, "COMMENT", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@ACTIVE", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "ACTIVE", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CHANGED_WHO", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "CHANGED_WHO", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_RESULT", Global.System.Data.SqlDbType.VarChar, 2000, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_RESULT", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SQL_ACTIVE", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "SQL_ACTIVE", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_GUID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, False, Nothing, "", "", ""))
+ Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@GUID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "GUID", Global.System.Data.DataRowVersion.Original, False, Nothing, "", "", ""))
End Sub
-
- _
+
+ _
Private Sub InitConnection()
Me._connection = New Global.System.Data.SqlClient.SqlConnection()
Me._connection.ConnectionString = Global.Global_Indexer.My.MySettings.Default.DD_ECMConnectionString
End Sub
-
- _
+
+ _
Private Sub InitCommandCollection()
Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
Me._commandCollection(0).Connection = Me.Connection
- Me._commandCollection(0).CommandText = "SELECT GUID, DOCTYPE_ID, INDEXNAME, VALUE, CONNECTION_ID, COMMENT, ACTIVE,"& _
- " ADDED_WHO, ADDED_WHEN, CHANGED_WHO, CHANGED_WHEN, SQL_RESULT, SQL_ACTIVE"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM "& _
- " TBDD_INDEX_AUTOM"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (DOCTYPE_ID = @DOCTYPE_ID)"
+ Me._commandCollection(0).CommandText = "SELECT GUID, DOCTYPE_ID, INDEXNAME, VALUE, CONNECTION_ID, COMMENT, ACTIVE," & _
+ " ADDED_WHO, ADDED_WHEN, CHANGED_WHO, CHANGED_WHEN, SQL_RESULT, SQL_ACTIVE" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "FROM " & _
+ " TBDD_INDEX_AUTOM" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "WHERE (DOCTYPE_ID = @DOCTYPE_ID)"
Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
- Me._commandCollection(0).Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DOCTYPE_ID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOCTYPE_ID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
+ Me._commandCollection(0).Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DOCTYPE_ID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DOCTYPE_ID", Global.System.Data.DataRowVersion.Current, False, Nothing, "", "", ""))
End Sub
-
- _
- Public Overloads Overridable Function Fill(ByVal dataTable As MyDataset.TBDD_INDEX_AUTOMDataTable, ByVal DOCTYPE_ID As Integer) As Integer
+
+ _
+ Public Overridable Overloads Function Fill(ByVal dataTable As MyDataset.TBDD_INDEX_AUTOMDataTable, ByVal DOCTYPE_ID As Integer) As Integer
Me.Adapter.SelectCommand = Me.CommandCollection(0)
- Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOCTYPE_ID,Integer)
- If (Me.ClearBeforeFill = true) Then
- dataTable.Clear
+ Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOCTYPE_ID, Integer)
+ If (Me.ClearBeforeFill = True) Then
+ dataTable.Clear()
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
-
- _
- Public Overloads Overridable Function GetData(ByVal DOCTYPE_ID As Integer) As MyDataset.TBDD_INDEX_AUTOMDataTable
+
+ _
+ Public Overridable Overloads Function GetData(ByVal DOCTYPE_ID As Integer) As MyDataset.TBDD_INDEX_AUTOMDataTable
Me.Adapter.SelectCommand = Me.CommandCollection(0)
- Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOCTYPE_ID,Integer)
+ Me.Adapter.SelectCommand.Parameters(0).Value = CType(DOCTYPE_ID, Integer)
Dim dataTable As MyDataset.TBDD_INDEX_AUTOMDataTable = New MyDataset.TBDD_INDEX_AUTOMDataTable()
Me.Adapter.Fill(dataTable)
Return dataTable
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataTable As MyDataset.TBDD_INDEX_AUTOMDataTable) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataTable As MyDataset.TBDD_INDEX_AUTOMDataTable) As Integer
Return Me.Adapter.Update(dataTable)
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataSet As MyDataset) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataSet As MyDataset) As Integer
Return Me.Adapter.Update(dataSet, "TBDD_INDEX_AUTOM")
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
+
+ _
+ Public Overridable Overloads Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
Return Me.Adapter.Update(dataRows)
End Function
-
- _
- Public Overloads Overridable Function Delete(ByVal Original_GUID As Integer) As Integer
- Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_GUID,Integer)
+
+ _
+ Public Overridable Overloads Function Delete(ByVal Original_GUID As Integer) As Integer
+ Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_GUID, Integer)
Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
- If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
+ If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
<> Global.System.Data.ConnectionState.Open) Then
- Me.Adapter.DeleteCommand.Connection.Open
+ Me.Adapter.DeleteCommand.Connection.Open()
End If
- Try
+ Try
Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
Return returnValue
Finally
If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
- Me.Adapter.DeleteCommand.Connection.Close
+ Me.Adapter.DeleteCommand.Connection.Close()
End If
End Try
End Function
-
- _
- Public Overloads Overridable Function Insert(ByVal DOCTYPE_ID As Integer, ByVal INDEXNAME As String, ByVal VALUE As String, ByVal CONNECTION_ID As Global.System.Nullable(Of Short), ByVal COMMENT As String, ByVal ACTIVE As Boolean, ByVal ADDED_WHO As String, ByVal SQL_RESULT As String, ByVal SQL_ACTIVE As Boolean) As Integer
- Me.Adapter.InsertCommand.Parameters(0).Value = CType(DOCTYPE_ID,Integer)
+
+ _
+ Public Overridable Overloads Function Insert(ByVal DOCTYPE_ID As Integer, ByVal INDEXNAME As String, ByVal VALUE As String, ByVal CONNECTION_ID As Global.System.Nullable(Of Short), ByVal COMMENT As String, ByVal ACTIVE As Boolean, ByVal ADDED_WHO As String, ByVal SQL_RESULT As String, ByVal SQL_ACTIVE As Boolean) As Integer
+ Me.Adapter.InsertCommand.Parameters(0).Value = CType(DOCTYPE_ID, Integer)
If (INDEXNAME Is Nothing) Then
Throw New Global.System.ArgumentNullException("INDEXNAME")
Else
- Me.Adapter.InsertCommand.Parameters(1).Value = CType(INDEXNAME,String)
+ Me.Adapter.InsertCommand.Parameters(1).Value = CType(INDEXNAME, String)
End If
If (VALUE Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(2).Value = CType(VALUE,String)
+ Me.Adapter.InsertCommand.Parameters(2).Value = CType(VALUE, String)
End If
- If (CONNECTION_ID.HasValue = true) Then
- Me.Adapter.InsertCommand.Parameters(3).Value = CType(CONNECTION_ID.Value,Short)
+ If (CONNECTION_ID.HasValue = True) Then
+ Me.Adapter.InsertCommand.Parameters(3).Value = CType(CONNECTION_ID.Value, Short)
Else
Me.Adapter.InsertCommand.Parameters(3).Value = Global.System.DBNull.Value
End If
If (COMMENT Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(4).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(4).Value = CType(COMMENT,String)
+ Me.Adapter.InsertCommand.Parameters(4).Value = CType(COMMENT, String)
End If
- Me.Adapter.InsertCommand.Parameters(5).Value = CType(ACTIVE,Boolean)
+ Me.Adapter.InsertCommand.Parameters(5).Value = CType(ACTIVE, Boolean)
If (ADDED_WHO Is Nothing) Then
Throw New Global.System.ArgumentNullException("ADDED_WHO")
Else
- Me.Adapter.InsertCommand.Parameters(6).Value = CType(ADDED_WHO,String)
+ Me.Adapter.InsertCommand.Parameters(6).Value = CType(ADDED_WHO, String)
End If
If (SQL_RESULT Is Nothing) Then
Me.Adapter.InsertCommand.Parameters(7).Value = Global.System.DBNull.Value
Else
- Me.Adapter.InsertCommand.Parameters(7).Value = CType(SQL_RESULT,String)
+ Me.Adapter.InsertCommand.Parameters(7).Value = CType(SQL_RESULT, String)
End If
- Me.Adapter.InsertCommand.Parameters(8).Value = CType(SQL_ACTIVE,Boolean)
+ Me.Adapter.InsertCommand.Parameters(8).Value = CType(SQL_ACTIVE, Boolean)
Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
- If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
+ If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
<> Global.System.Data.ConnectionState.Open) Then
- Me.Adapter.InsertCommand.Connection.Open
+ Me.Adapter.InsertCommand.Connection.Open()
End If
- Try
+ Try
Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
Return returnValue
Finally
If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
- Me.Adapter.InsertCommand.Connection.Close
+ Me.Adapter.InsertCommand.Connection.Close()
End If
End Try
End Function
-
- _
- Public Overloads Overridable Function Update(ByVal DOCTYPE_ID As Integer, ByVal INDEXNAME As String, ByVal VALUE As String, ByVal CONNECTION_ID As Global.System.Nullable(Of Short), ByVal COMMENT As String, ByVal ACTIVE As Boolean, ByVal CHANGED_WHO As String, ByVal SQL_RESULT As String, ByVal SQL_ACTIVE As Boolean, ByVal Original_GUID As Integer, ByVal GUID As Integer) As Integer
- Me.Adapter.UpdateCommand.Parameters(0).Value = CType(DOCTYPE_ID,Integer)
+
+ _
+ Public Overridable Overloads Function Update(ByVal DOCTYPE_ID As Integer, ByVal INDEXNAME As String, ByVal VALUE As String, ByVal CONNECTION_ID As Global.System.Nullable(Of Short), ByVal COMMENT As String, ByVal ACTIVE As Boolean, ByVal CHANGED_WHO As String, ByVal SQL_RESULT As String, ByVal SQL_ACTIVE As Boolean, ByVal Original_GUID As Integer, ByVal GUID As Integer) As Integer
+ Me.Adapter.UpdateCommand.Parameters(0).Value = CType(DOCTYPE_ID, Integer)
If (INDEXNAME Is Nothing) Then
Throw New Global.System.ArgumentNullException("INDEXNAME")
Else
- Me.Adapter.UpdateCommand.Parameters(1).Value = CType(INDEXNAME,String)
+ Me.Adapter.UpdateCommand.Parameters(1).Value = CType(INDEXNAME, String)
End If
If (VALUE Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(2).Value = CType(VALUE,String)
+ Me.Adapter.UpdateCommand.Parameters(2).Value = CType(VALUE, String)
End If
- If (CONNECTION_ID.HasValue = true) Then
- Me.Adapter.UpdateCommand.Parameters(3).Value = CType(CONNECTION_ID.Value,Short)
+ If (CONNECTION_ID.HasValue = True) Then
+ Me.Adapter.UpdateCommand.Parameters(3).Value = CType(CONNECTION_ID.Value, Short)
Else
Me.Adapter.UpdateCommand.Parameters(3).Value = Global.System.DBNull.Value
End If
If (COMMENT Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(4).Value = CType(COMMENT,String)
+ Me.Adapter.UpdateCommand.Parameters(4).Value = CType(COMMENT, String)
End If
- Me.Adapter.UpdateCommand.Parameters(5).Value = CType(ACTIVE,Boolean)
+ Me.Adapter.UpdateCommand.Parameters(5).Value = CType(ACTIVE, Boolean)
If (CHANGED_WHO Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(6).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(6).Value = CType(CHANGED_WHO,String)
+ Me.Adapter.UpdateCommand.Parameters(6).Value = CType(CHANGED_WHO, String)
End If
If (SQL_RESULT Is Nothing) Then
Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
Else
- Me.Adapter.UpdateCommand.Parameters(7).Value = CType(SQL_RESULT,String)
+ Me.Adapter.UpdateCommand.Parameters(7).Value = CType(SQL_RESULT, String)
End If
- Me.Adapter.UpdateCommand.Parameters(8).Value = CType(SQL_ACTIVE,Boolean)
- Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Original_GUID,Integer)
- Me.Adapter.UpdateCommand.Parameters(10).Value = CType(GUID,Integer)
+ Me.Adapter.UpdateCommand.Parameters(8).Value = CType(SQL_ACTIVE, Boolean)
+ Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Original_GUID, Integer)
+ Me.Adapter.UpdateCommand.Parameters(10).Value = CType(GUID, Integer)
Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
- If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
+ If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
<> Global.System.Data.ConnectionState.Open) Then
- Me.Adapter.UpdateCommand.Connection.Open
+ Me.Adapter.UpdateCommand.Connection.Open()
End If
- Try
+ Try
Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
Return returnValue
Finally
If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
- Me.Adapter.UpdateCommand.Connection.Close
+ Me.Adapter.UpdateCommand.Connection.Close()
End If
End Try
End Function
End Class
-
+
'''
'''Represents the connection and commands used to retrieve and save data.
'''
- _
+ _
Partial Public Class TBGI_CONFIGURATIONTableAdapter
Inherits Global.System.ComponentModel.Component
-
+
Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
-
+
Private _connection As Global.System.Data.SqlClient.SqlConnection
-
+
Private _transaction As Global.System.Data.SqlClient.SqlTransaction
-
+
Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
-
+
Private _clearBeforeFill As Boolean
-
- _
+
+