34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Service.DCEntityMapper;
|
|
using BeWo.Service.ServiceImplementations;
|
|
using BS.Shared;
|
|
using BS.Shared.Extensions;
|
|
using BS.Shared.Services;
|
|
using DevExpress.XtraReports.UI;
|
|
using static BeWo.Report.ReportObjects.FinanceRO;
|
|
|
|
namespace HausDuelken
|
|
{
|
|
public class CustomReportCreator : DefaultReportCreator
|
|
{
|
|
public override XtraReport CreateFinanceReport(DateTime? start, DateTime? end, bool splitByServiceCategory, bool onlyNotApproved)
|
|
{
|
|
var report = FindReportImp<FinanceRO>();
|
|
if (splitByServiceCategory)
|
|
{
|
|
report = new BeWo.Report.DefaultReports.Finanzauswertung();
|
|
}
|
|
report.SetReportDataSource(FinanceRO.Create(start, end, splitByServiceCategory, onlyNotApproved));
|
|
|
|
return report as XtraReport;
|
|
}
|
|
}
|
|
}
|