Person laden und präsentieren
[Visual Basic] Private Sub Get_Data( _
ByVal Nr As Integer _
)
[Visual Basic] Private Sub Get_Data(ByVal Nr As Integer)
Me.Kontaktperson.Get_Applikationskontakt(Nr)
Me.lbRolle.SelectedValue = Me.Kontaktperson.iKontakttypNr.Value
Me.cbIntern.Checked = Me.Kontaktperson.bIntern.Value = True
Me.txtErstellt_am.Text = Me.Kontaktperson.daErstellt_am.ToString
Me.txtMutiert_am.Text = Me.Kontaktperson.daMutiert_am.ToString
Me.txtBemerkung.Text = Me.Kontaktperson.sBemerkung.ToString
Me.txtMutierer.Text = Me.Kontaktperson.iMutierer.Value
Me.cbaktiv.Checked = Me.Kontaktperson.bAktiv.Value = True
Me.cboxSecurityLevel.SelectedValue = Me.Kontaktperson.iSecurityLevelNr.Value
If Me.Kontaktperson.iPersonNr.Value <> 0 Then
Try
Person.cpMainConnectionProvider = Globals.conn
Person.iPersonNr = New SqlInt32(CType(Me.Kontaktperson.iPersonNr.Value, Int32))
Person.SelectOne()
Me.VertragspartnerNr = Person.iVertragspartnernr.Value
Catch
End Try
End If
Me.Get_Vertragspartner()
Dim i As Integer = 0
For i = 0 To Me.C1Kontaktpersonen.Splits(0).Rows.Count - 1
Me.C1Kontaktpersonen.Bookmark = i
Try
If Me.C1Kontaktpersonen.Columns("PersonNr").CellText(i) = Me.Kontaktperson.iPersonNr.Value Then Exit For
Catch
End Try
Next
Me.FormDataChanged = False
End Sub
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