Fat-Client:
Es ist möglich, allen Termin-Einladungen auf einmal zuzusagen MoK: DevExpress von Version 17.1 auf 21.1 aktualisiert Reports testweise eingebaut DevExpress-Scheduler testweise eingebaut
This commit is contained in:
@@ -894,6 +894,7 @@ namespace BeWo.Service.ServiceImplementations
|
||||
return token;
|
||||
}
|
||||
|
||||
// TODO: Erweitern für den MoK
|
||||
public FileAttachmentDC GetFileAttachment(long oid)
|
||||
{
|
||||
PluginLoader.FindClass<IpAddressChecker>().CheckIpAddress();
|
||||
@@ -910,7 +911,7 @@ namespace BeWo.Service.ServiceImplementations
|
||||
|
||||
FileAttachmentUtils.SaveFileToFileDirectory(fileAttachment);
|
||||
|
||||
fileAttachmentDC.BinaryData = fileAttachment?.Data ?? FileAttachmentUtils.LoadFileFromDirectory(fileAttachment.Oid);
|
||||
fileAttachmentDC.BinaryData = fileAttachment.Data ?? FileAttachmentUtils.LoadFileFromDirectoryForMobile(fileAttachment.Oid, tenant);
|
||||
}
|
||||
catch(Exception exception)
|
||||
{
|
||||
@@ -922,18 +923,40 @@ namespace BeWo.Service.ServiceImplementations
|
||||
return fileAttachmentDC;
|
||||
}
|
||||
|
||||
public FileAttachmentDC GetFileAttachmentForMobile(long oid, string tenant)
|
||||
{
|
||||
PluginLoader.FindClass<IpAddressChecker>().CheckIpAddress();
|
||||
|
||||
var fileAttachment = DAOFactory.GenericDAO.LoadByID<FileAttachment>(oid);
|
||||
var fileAttachmentDC = MapperFactory.FileAttachmentDC_FileAttachment.MapToNewDC(fileAttachment);
|
||||
|
||||
if (fileAttachment.Oid.HasValue && tenant != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
FileAttachmentUtils.CheckForFileRootDirectory();
|
||||
|
||||
FileAttachmentUtils.SaveFileToFileDirectory(fileAttachment);
|
||||
|
||||
fileAttachmentDC.BinaryData = fileAttachment.Data ?? FileAttachmentUtils.LoadFileFromDirectory(fileAttachment.Oid);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
throw Utils.CreateBeWoFaultException(exception);
|
||||
}
|
||||
}
|
||||
|
||||
fileAttachmentDC.URL = fileAttachment.Path; // Ist der Dateiname
|
||||
return fileAttachmentDC;
|
||||
}
|
||||
|
||||
public QueryDC CreateQuery(QueryDC query)
|
||||
{
|
||||
try
|
||||
{
|
||||
var exporter = PluginLoader.FindClass<DataExporter>();
|
||||
|
||||
if (exporter != null)
|
||||
{
|
||||
return exporter.CreateQuery(query);
|
||||
}
|
||||
|
||||
return null;
|
||||
return exporter?.CreateQuery(query);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user