Files

36 lines
946 B
C#
Raw Permalink Normal View History

2019-02-12 19:32:04 +01:00
using System;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report.ReportObjects;
using BeWo.Report;
namespace DiakonieLandshut
{
public partial class Leistungsdokumentation : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<FLSReportRO>
{
public Leistungsdokumentation()
{
InitializeComponent();
}
public void SetReportDataSource(FLSReportRO pRO)
{
2020-02-06 18:43:11 +01:00
//int kmSumme = 0;
//foreach (var group in pRO.FLSReportGroups)
//{
// foreach (var sr in group.ServiceRecords)
// {
// if (sr.DistanceInMeter.HasValue)
// {
// kmSumme += sr.DistanceInMeter.Value;
// }
// }
//}
//lblKm.Text = String.Format("{0:0.##}", kmSumme);
2019-02-12 19:32:04 +01:00
this.bindingSource1.DataSource = pRO;
}
}
}