28 lines
687 B
C#
28 lines
687 B
C#
using System;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Report;
|
|
using DevExpress.XtraReports.UI;
|
|
using System.Data;
|
|
|
|
namespace BeWo.ChristopherusHaus.Export
|
|
{
|
|
public partial class Bericht : DevExpress.XtraReports.UI.XtraReport//, IBeWoReport<QueryRO>
|
|
{
|
|
public Bericht()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(QueryRO pRO)
|
|
{
|
|
decimal sum = 0;
|
|
foreach (var row in pRO.Rows)
|
|
{
|
|
sum += Convert.ToDecimal(row.Field8.ToString());
|
|
}
|
|
lblSumme.Text = sum.ToString("c2");
|
|
this.bindingSource1.DataSource = pRO;
|
|
}
|
|
}
|
|
}
|