2016-06-27 01:45:38 +02:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2023-02-02 18:43:10 +01:00
|
|
|
using System.Drawing;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
using BeWo.Report;
|
|
|
|
|
using BeWo.Report.ReportObjects;
|
|
|
|
|
using DevExpress.XtraReports.UI;
|
|
|
|
|
|
2016-06-27 01:45:38 +02:00
|
|
|
|
|
|
|
|
namespace BeWo.SigncomReports
|
|
|
|
|
{
|
|
|
|
|
public partial class Stundenzettel : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
|
|
|
|
|
{
|
|
|
|
|
public Stundenzettel()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetReportDataSource(ServicesOverviewRO pRO)
|
|
|
|
|
{
|
|
|
|
|
if (pRO.Services != null)
|
|
|
|
|
{
|
|
|
|
|
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
|
|
|
|
|
|
|
|
|
|
foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
|
|
|
|
|
{
|
|
|
|
|
if (s.IsBillable)
|
|
|
|
|
servicesBillable.Add(s);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pRO.Services = servicesBillable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.bindingSource1.DataSource = pRO;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|