43 lines
1.2 KiB
C#
43 lines
1.2 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 HphBersenbrueck.Export
|
|
{
|
|
public class CustomDataExporter : DataExporter
|
|
{
|
|
public override string CreateExportString(string pFileID, string[] pHeaderCaption, string[][] pContent)
|
|
{
|
|
if (pHeaderCaption != null && pHeaderCaption.Length > 0 && pHeaderCaption[0].Contains("Micos"))
|
|
{
|
|
return MicosExporter.CreateExportString(pHeaderCaption, pContent);
|
|
}
|
|
return base.CreateExportString(pFileID, pHeaderCaption, pContent);
|
|
}
|
|
|
|
public override QueryDC CreateQuery(QueryDC query)
|
|
{
|
|
QueryDC q = null;
|
|
if (query.Oid == 3000)
|
|
{
|
|
q = MicosExporter.CreateQuery(query, false);
|
|
}
|
|
else if (query.Oid == 6000)
|
|
{
|
|
q = MicosExporter.CreateQuery(query, true);
|
|
}
|
|
else
|
|
{
|
|
q = MicosExporter.CreateDifferenzQuery(query);
|
|
}
|
|
|
|
CreateBuchungsExportProtokollEintrag(q);
|
|
return q;
|
|
}
|
|
}
|
|
}
|