new
This commit is contained in:
@@ -213,7 +213,7 @@ Public Class cKunde
|
||||
Me.Zahlungsziel = 10
|
||||
Me.Sammelrechnung = 0
|
||||
Me.Steuerschlüssel = 10
|
||||
Me.Kreditlimit = 2600
|
||||
Me.Kreditlimit = 0 '2600
|
||||
Me.Überwachungskunde = 0
|
||||
Me.Abfertigungsverbot = 0
|
||||
Me.Rechtsanwalt = 0
|
||||
@@ -265,9 +265,9 @@ Public Class cKunde
|
||||
|
||||
Dim dr = cmd.ExecuteReader()
|
||||
If dr.Read Then
|
||||
For Each l In getParameterList()
|
||||
For Each li In getParameterList()
|
||||
' Me.GetType.GetProperty(l.Scalarvariable) = dr.Item(l.Text)
|
||||
Dim propInfo As PropertyInfo = Me.GetType.GetProperty(l.Scalarvariable)
|
||||
Dim propInfo As PropertyInfo = Me.GetType.GetProperty(li.Scalarvariable)
|
||||
' MsgBox(l.Text)
|
||||
' MsgBox(propInfo.PropertyType.ToString)
|
||||
' propInfo.SetValue(GetType(Object), l.Text)
|
||||
@@ -275,11 +275,11 @@ Public Class cKunde
|
||||
'propInfo.SetValue(Me, l.Text)
|
||||
|
||||
' Try
|
||||
test = l.Text
|
||||
If dr.Item(l.Text) Is DBNull.Value Then
|
||||
test = li.Text
|
||||
If dr.Item(li.Text) Is DBNull.Value Then
|
||||
propInfo.SetValue(Me, Nothing)
|
||||
Else
|
||||
propInfo.SetValue(Me, dr.Item(l.Text))
|
||||
propInfo.SetValue(Me, dr.Item(li.Text))
|
||||
End If
|
||||
|
||||
' Catch ex As Exception
|
||||
|
||||
Reference in New Issue
Block a user