CB Merge
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user