49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BeWo.Service.Core;
|
|
using BeWo.Service.Plugins;
|
|
using BS.Shared.Core;
|
|
using BS.Shared.DataContracts;
|
|
using Utils = BS.Shared.Core.Utils;
|
|
|
|
namespace KetteReports.Export
|
|
{
|
|
public class CustomDataExporter : DataExporter
|
|
{
|
|
public override string CreateExportString(string pFileID, string[] pHeaderCaption, string[][] pContent)
|
|
{
|
|
|
|
if (pHeaderCaption != null && pHeaderCaption.Length > 0 && pHeaderCaption[0].Contains("Sage"))
|
|
{
|
|
return DiamantExporter.CreateExportString(pHeaderCaption, pContent);
|
|
}
|
|
return base.CreateExportString(pFileID, pHeaderCaption, pContent);
|
|
|
|
}
|
|
|
|
public override QueryDC CreateQuery(QueryDC query)
|
|
{
|
|
QueryDC result = null;
|
|
if (query.Title != null && query.Title.Contains("Personio") && query.Title.Contains("Abwesenheit"))
|
|
{
|
|
result = PersonioAbwesenheitExporter.CreateQuery(query);
|
|
}
|
|
else if (query.Title != null && query.Title.Contains("Personio") && query.Title.Contains("Anwesenheit"))
|
|
{
|
|
result = PersonioAnwesenheitExporter.CreateQuery(query);
|
|
}
|
|
else if (query.Oid == 1004)
|
|
{
|
|
result = DatevExporter.CreateDifferenzQuery(query);
|
|
}
|
|
else
|
|
{
|
|
result = DatevExporter.CreateQuery(query);
|
|
|
|
}
|
|
CreateBuchungsExportProtokollEintrag(result);
|
|
return result;
|
|
}
|
|
}
|
|
}
|