This commit is contained in:
2021-01-19 20:26:05 +01:00
parent f25ff457b2
commit 2f7746d9ca
28 changed files with 2921 additions and 329 deletions

View File

@@ -0,0 +1,37 @@
Imports GrapeCity.ActiveReports
Imports GrapeCity.ActiveReports.Document
Imports System.Data
Imports VERAG_PROG_ALLGEMEIN
Public Class subRptSendungenVorkosten
Dim VORKOSTEN As List(Of VERAG_PROG_ALLGEMEIN.cSendVorkosten) = Nothing
Sub New(VORKOSTEN As List(Of VERAG_PROG_ALLGEMEIN.cSendVorkosten))
' Dieser Aufruf ist f<>r den Designer erforderlich.
InitializeComponent()
Me.VORKOSTEN = VORKOSTEN
' F<>gen Sie Initialisierungen nach dem InitializeComponent()-Aufruf hinzu.
End Sub
Private Sub Detail_Format(sender As Object, e As EventArgs) Handles Detail.Format
txtFirma.Text = CStr(Me.Fields.Item("FIRMA").Value)
txtLeistung.Text = CStr(Me.Fields.Item("LEISTUNG").Value)
txtPreis.Text = CDbl(Me.Fields.Item("PREIS").Value).ToString("C2")
End Sub
Private Sub rptAuswertung_ReportStart(sender As System.Object, e As System.EventArgs) Handles MyBase.ReportStart
Dim dt As New DataTable
dt.Columns.Add("FIRMA", System.Type.GetType("System.String"))
dt.Columns.Add("LEISTUNG", System.Type.GetType("System.String"))
dt.Columns.Add("PREIS", System.Type.GetType("System.String"))
For Each s In VORKOSTEN
dt.Rows.Add({s.sndvk_Firma, s.sndvk_LeistungsBez, s.sndvk_Preis})
Next
Me.DataSource = dt
End Sub
End Class