24 _personService = personService;
50 List<PersonStart> starts = _personService.GetAllPersonStarts().Where(s => s.IsActive).ToList();
54 case ItemOrderingsOverviewList.ByNameDescending: starts = starts.OrderByDescending(s => s.PersonObj?.Name).ToList();
break;
55 case ItemOrderingsOverviewList.ByFirstNameAscending: starts = starts.OrderBy(s => s.PersonObj?.FirstName).ToList();
break;
56 case ItemOrderingsOverviewList.ByFirstNameDescending: starts = starts.OrderByDescending(s => s.PersonObj?.FirstName).ToList();
break;
59 return starts.ToArray();
DocumentStrategyBase(IWorkspaceService workspaceService, IServiceProvider serviceProvider)
Constructor for the document strategy base class.
override string TemplatePath
Gets the path to the template used for creating the document.
DocumentStrategyOverviewList(IPersonService personService, IWorkspaceService workspaceService, IServiceProvider serviceProvider)
Constructor for the document strategy for an overview list.
override DocumentCreationTypes DocumentType
Gets the type of document this strategy creates.
override IEnumerable< Enum > AvailableItemOrderings
Array with all available orderings for the items.If no ordering is supported, this will be null.
override PersonStart[] GetItems()
Return a list of all PersonStart items.
override bool CreateMultiplePages
This always returns false
override Enum ItemOrdering
Current ordering for the items.If no ordering is supported, this will be null.
ItemOrderingsOverviewList
Enum with all available orderings for overview lists.
Class describing a start of a person.
Service used to create documents like certificates or start lists.
static string GetDocumentPathAbsolute(string documentCreationSettingKey, IWorkspaceService workspaceService)
Get the absolute path for the requested document creation setting.
Class holding all workspace settings.
Interface for a service used to get and store a list of Person objects.
Interface for a service used to manage a workspace.
DocumentCreationTypes
Different types of documents that can be created.