This commit is contained in:
Peter Maquiran
2021-08-20 12:02:27 +01:00
parent edb1a5c9d9
commit 375eeda2ca
31 changed files with 258 additions and 166 deletions
+32
View File
@@ -0,0 +1,32 @@
import { Pipe, PipeTransform } from '@angular/core';
import { SearchDocumentDetails, SearchFolderDetails, SearchList } from '../models/search-document';
@Pipe({
name: 'event'
})
export class EventPipe implements PipeTransform {
transform(value: unknown, ...args: unknown[]): unknown {
return null;
}
AttactSearchResult(seachDocument: SearchList, eventId, {Source = '1'}): addAttachment {
return {
SourceTitle: seachDocument.Assunto,
ParentId: eventId,
Source: Source,
SourceId: seachDocument.Id,
ApplicationId: seachDocument.ApplicationType.toString(),
Id: '',
Link: '',
SerialNumber: ''
}
}
AttactSearchResultDetails(searchResult: SearchFolderDetails | SearchDocumentDetails, eventId, {Source = '1'}) {
return {}
}
}