Vertragsverwaltung-Klassenbibliothek  

clsVertragsuebersicht_Strukturen.Update_Node -Methode

Parent-Beziehung herstellen und Struktur abfüllen

[Visual Basic]
Private Sub Update_Node( _ 
ByVal oSourceData As DataTable, _ 
ByRef node As TreeNode, _ 
ByVal type As String, _ 
ByVal Details As Integer, _ 
ByVal AktiveVertrage As CheckState
)

Parameter

oSourceData
node
type
Details
AktiveVertrage

Quellcode

[Visual Basic]
        Private Sub Update_Node(ByVal oSourceData As DataTable, ByRef node As TreeNode, ByVal type As String, ByVal Details As Integer, ByVal AktiveVertrage As CheckState) 
If Not (oSourceData Is Nothing) Then 
Dim oView As DataView = oSourceData.DefaultView 
Dim oTable As DataTable = oView.Table 
Dim oDS As DataSet = New DataSet() 
oDS.Tables.Add(oTable.Copy()) 
 
If oDS.Relations.Contains("SelfRefenceRelation") = False Then 
oDS.Relations.Add("SelfRefenceRelation", _ 
oDS.Tables(0).Columns("Vertragselementnr"), _ 
oDS.Tables(0).Columns("Parentid")) 
End If 
oTable.Dispose() 
oTable = Nothing 
LoadNode(oDS, node, type, Details, AktiveVertrage) 
oDS.Dispose() 
oDS = Nothing 
End If 
End Sub

Forderungen

Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Siehe auch

clsVertragsuebersicht_Strukturen