This commit is contained in:
Christian
2019-07-12 17:36:37 +02:00
parent 51bcf19d3a
commit 9c97d6fe79
366 changed files with 137956 additions and 770 deletions

View File

@@ -8,6 +8,7 @@ using System.ServiceModel;
using BeWo.Data;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Service.Plugins;
using BeWo.Service.ServiceContracts;
using BS.Shared;
@@ -55,35 +56,8 @@ namespace BeWo.Service.ServiceImplementations
{
try
{
return DAOFactory.SearchDAO.FindQuery(pType).Select(
q =>
{
QueryDC queryDC = new QueryDC
{
Oid = q.Oid.Value,
Title = q.Title,
ReportTypeName = q.ReportTypeName,
UserGroupOids = q.UserGroupOids,
Notice = q.Notice,
ExportTitle = q.ExportTitle,
FileName = q.FileName
};
queryDC.IsDirect = queryDC.Notice == "direct";
queryDC.IsImport = queryDC.Notice == "import";
List<QueryParamDC> parameter = new List<QueryParamDC>();
foreach (var item in q.Parameter)
{
QueryParamDC param = new QueryParamDC();
param.ParamType = item.Type;
param.Name = item.Name;
parameter.Add(param);
}
queryDC.Parameter = parameter;
return queryDC;
}).ToList();
var qs = PluginLoader.FindClass<QueryService>();
return qs.GetAllQueriesOfType(pType);
}
catch (Exception e)
{