34 lines
852 B
C#
34 lines
852 B
C#
using System;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Report;
|
|
|
|
namespace BeWoRimbach
|
|
{
|
|
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;
|
|
}
|
|
|
|
}
|
|
}
|