using System;
using BeWo.Report.ReportObjects;
using BeWo.Report;


namespace BeWo.KoelnRingReports
{
    public partial class Mitarbeiterauswertung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<FLSReportRO>
    {
        public Mitarbeiterauswertung()
        {
            InitializeComponent();
        }

        public void SetReportDataSource(FLSReportRO pRO)
        {
            //if (pRO.FLSReportGroups != null)
            //{
            //    foreach (var item in pRO.FLSReportGroups)
            //    {
            //        if (item.ServiceRecords != null)
            //        {
            //            foreach (var sr in item.ServiceRecords)
            //            {
            //                if (sr.CustomerOid.HasValue)
            //                {
            //                    Customer c = DAOFactory.GenericDAO.LoadByID<Customer>(sr.CustomerOid.Value); 
            //                }
            //            }
            //        }
            //    }
            //}
            this.bindingSource1.DataSource = pRO;
        }

    }
}
