42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Service.DCEntityMapper;
|
|
using BeWo.Service.Plugins;
|
|
using BS.Shared;
|
|
using BS.Shared.Core;
|
|
using BS.Shared.DataContracts;
|
|
using BS.Shared.DataContracts.Compact;
|
|
using BS.Shared.Extensions;
|
|
|
|
namespace DiePerspektive.Service
|
|
{
|
|
public class CustomQueryService : QueryService
|
|
{
|
|
public override List<QueryDC> GetAllQueriesOfType(QueryType pType)
|
|
{
|
|
var list = base.GetAllQueriesOfType(pType);
|
|
|
|
foreach (var queryDc in list)
|
|
{
|
|
if (queryDc.Oid == 400)
|
|
{
|
|
var exporte = DAOFactory.GenericDAO.GetAllActive<BuchungsExport>();
|
|
|
|
foreach (var exp in exporte.OrderByDescending(e => e.Datum))
|
|
{
|
|
String name = String.Format("{0:0} {1} {2:dd.MM.yyyy HH:mm}", exp.Oid, exp.Name, exp.Datum);
|
|
|
|
queryDc.Parameter[0].CustomValues.Add(name);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
return list;
|
|
}
|
|
}
|
|
} |