Tooltip bei dem ComboBoxTreeViewControl - Beim Auswählen von Ziele und Maßnahmen wird ein "Hover" Effekt mit der Beschreibung angezeigt

ReportTemplate hinzugefügt
This commit is contained in:
rene
2019-08-29 12:38:48 +02:00
parent b28d69e43d
commit e2a0d4fac2
12 changed files with 93 additions and 27 deletions

View File

@@ -5771,12 +5771,21 @@ namespace BeWo.Service.ServiceImplementations
}
}
public IList<ReportTemplate> GetReportTemplates(ReportTemplateType reportTemplateType)
public IList<ReportTemplateDC> GetReportTemplates(string url)
{
try
{
return DAOFactory.GenericDAO.GetAllActive<ReportTemplate>()
.Where(x => x.ReportTemplateType == reportTemplateType).ToList();
if (url.IsNullOrEmpty())
return null;
var index = url.IndexOf("type=") + 5;
var typeString = url.Substring(index);
if (!Enum.TryParse(typeString, out ReportTypes reportType))
return null;
return MapperFactory.ReportTemplateDC_ReportTemplate.MapToNewDCs(DAOFactory.GenericDAO
.GetAllActive<ReportTemplate>().Where(x => x.ReportTemplateType == reportType));
}
catch (Exception e)
{