using System;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report.ReportObjects;
using BeWo.Report;

using DevExpress.XtraReports.UI;
using BS.Shared.Core;
namespace BWKGbR
{
    [IDSpecificClass(Identifier = "FLSAuswertung")]
    public partial class FLSAuswertung : XtraReport, IBeWoReport<FLSReportRO>
    {
        public FLSAuswertung()
        {
            InitializeComponent();
        }

        public void SetReportDataSource(FLSReportRO pRO)
        {
			//foreach (var group in pRO.FLSReportGroups)
			//{
			//	foreach (var detail in group.FLSReportDetails)
			//	{
			//		foreach (var sr in detail.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;
        }

    }
}
