using System;
using System.Collections.Generic;
using System.Linq;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using DevExpress.XtraReports.UI;

namespace VSDHammReports
{
    public partial class QuittierungsbelegJAHammKooperationsKontakte : XtraReport
    {
		public QuittierungsbelegJAHammKooperationsKontakte()
        {
            InitializeComponent();
        }

        public void SetReportDataSource(ServicesOverviewRO pRO)
        {
	        double sum = 0;
			if (pRO.Services != null)
			{
				foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
				{
					sum += s.Minutes;
					
				}
			}

	        summeMinuten.Text = String.Format("{0} Minuten", sum);
			bindingSource1.DataSource = pRO;
        }
    }
}
