using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using BeWo.Report.ReportObjects;
using BeWo.Report;

namespace BeWo.SelwoReports
{
    public partial class Spitzabrechnung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<SettlementRO>
    {
        public Spitzabrechnung()
        {
            InitializeComponent();
        }

        public void SetReportDataSource(SettlementRO pRO)
        {
            if (pRO.DifferentHourlyRateCount == 2)
            {
                cellZwischensumme2.Text = "Zwischensumme I";
                cellZwischensumme3.Text = "Zwischensumme II";
            }
            this.bindingSource1.DataSource = pRO;
        }
    }
}
