Files
BeWoPlaner/ReportImp/VkmHamm2/FLSListReport.cs
2020-08-17 15:50:00 +02:00

34 lines
848 B
C#

using System;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report.ReportObjects;
using BeWo.Report;
namespace VkmHamm
{
public partial class Leistungsdokumentation : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<FLSReportRO>
{
public Leistungsdokumentation()
{
InitializeComponent();
}
public void SetReportDataSource(FLSReportRO pRO)
{
//foreach (var group in pRO.FLSReportGroups)
//{
// foreach (var sr in group.ServiceRecords)
// {
// if (!sr.DistanceInMeter.HasValue && sr.ServiceRecordOid.HasValue)
// {
// var srBO = DAOFactory.GenericDAO.LoadByID<ServiceRecord>(sr.ServiceRecordOid.Value);
// sr.DistanceInMeter = srBO.DistanceInMeter;
// }
// }
//}
this.bindingSource1.DataSource = pRO;
}
}
}