Inline C# Function: BaileyWeb.University.Data.SearchModules

The Inline C# Function named SearchModules retrieves combined data from multiple sources for all modules, or a list of modules filtered by a search criteria.

Files

The following files are supplied with the University Package:

  • ~/App_Data/Composite/InlineCSharpFunctions/BaileyWeb.University.Data.SearchModules.cs

Parameters

There are 8 parameters:

Parameter: Label: Help: Type: Default: Widget:
SearchModuleTitle Module title The title of the module you want to search for. String   Text Box
SearchModuleCode Module code The code of the module you want to search for. String   Text Box
SearchEducationLevel Education level The education level of the module you want to search for. String   Text Box
SearchModuleTypes Module type The type of the module you want to search for. String   Text Box
SearchAcademicDepartments Academic departments The academic departments (faculties) of the module you want to search for. String   Text Box
q Module title (alternate) The title of the module you want to search for. String   Text Box
CurrentPageNumber Current page number The pagination number of the current page. Integer 1 Text Box
MaximumItemsPerPage Maximum items to display How many items should be displayed per paginated page? Integer 10 Text Box

Function Markup

None.

Sub Functions

This function relies upon the following sub functions for data:

Text Strings

None.

Sample Output Code

Result with the SearchModuleTitle input parameter value of Drama:

<ModulesList>
  <Modules SearchModuleTitle="Drama" SearchModuleCode="" SearchEducationLevel="" SearchModuleTypes="" SearchAcademicDepartments="" Q="">
    [... ListModulesEnumerable() ...]
  </Modules>
  <PagingInfo CurrentPageNumber="1" MaximumItemsPerPage="10" TotalItemCount="1" TotalPageCount="1" CurrentItemNumberStart="1" CurrentItemNumberEnd="1" />
  <Compiled DateTime="31/12/2019 14:57:11" />
</ModulesList>

Updated: 27 June 2021