C# Класс ASR.Interface.Report

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddFilter ( ASR.DomainObjects.FilterItem filter ) : void

Add a filter to the report

AddScanner ( ASR.DomainObjects.ScannerItem scanner ) : void

Add a Scanner to the report

AddViewer ( ASR.DomainObjects.ViewerItem viewer ) : void

Add a viewer to the report

Filter ( ) : void

Filters the results. All filters are "and" so an item needs to pass all filters to appear on the report.

FlushCache ( ) : void

flush the buffer for the scanner, so next time the report runs, scanner will be queried again.

FlushFilterCache ( ) : void

Flush the cache for the filtered elements, next time the filters will be called again.

GetResultElements ( ) : IEnumerable

Gets the results in this report. Will call Run() if it hasn't been called yet.

GetResultElements ( int start, int count ) : IEnumerable

Gets only a selection of the results elements. Useful for paging.

Report ( ) : System
ResultsCount ( ) : int

Total number of results.

Run ( ) : void

Run the report. It will only requery the Scanner if FlushCache has been used before calling this method.

Приватные методы

Метод Описание
IntializeDisplayElement ( object resultItem ) : DisplayElement
ParseDate ( string value ) : object
Sort ( IEnumerable tmp ) : IEnumerable

Описание методов

AddFilter() публичный Метод

Add a filter to the report
public AddFilter ( ASR.DomainObjects.FilterItem filter ) : void
filter ASR.DomainObjects.FilterItem
Результат void

AddScanner() публичный Метод

Add a Scanner to the report
public AddScanner ( ASR.DomainObjects.ScannerItem scanner ) : void
scanner ASR.DomainObjects.ScannerItem
Результат void

AddViewer() публичный Метод

Add a viewer to the report
public AddViewer ( ASR.DomainObjects.ViewerItem viewer ) : void
viewer ASR.DomainObjects.ViewerItem
Результат void

Filter() публичный Метод

Filters the results. All filters are "and" so an item needs to pass all filters to appear on the report.
public Filter ( ) : void
Результат void

FlushCache() публичный Метод

flush the buffer for the scanner, so next time the report runs, scanner will be queried again.
public FlushCache ( ) : void
Результат void

FlushFilterCache() публичный Метод

Flush the cache for the filtered elements, next time the filters will be called again.
public FlushFilterCache ( ) : void
Результат void

GetResultElements() публичный Метод

Gets the results in this report. Will call Run() if it hasn't been called yet.
public GetResultElements ( ) : IEnumerable
Результат IEnumerable

GetResultElements() публичный Метод

Gets only a selection of the results elements. Useful for paging.
public GetResultElements ( int start, int count ) : IEnumerable
start int first result to return
count int number of results to return
Результат IEnumerable

Report() публичный Метод

public Report ( ) : System
Результат System

ResultsCount() публичный Метод

Total number of results.
public ResultsCount ( ) : int
Результат int

Run() публичный Метод

Run the report. It will only requery the Scanner if FlushCache has been used before calling this method.
public Run ( ) : void
Результат void