C# Class Quickstarts.HistoricalEvents.Server.ReportGenerator

Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
DeleteEvent ( string eventId ) : bool

Deletes the event with the specified event id.

GenerateFluidLevelTestReport ( ) : DataRow
GenerateInjectionTestReport ( ) : DataRow
GetAreas ( ) : string[]
GetFluidLevelTestReport ( ISystemContext SystemContext, ushort namespaceIndex, DataRow row ) : BaseEventState
GetInjectionTestReport ( ISystemContext SystemContext, ushort namespaceIndex, DataRow row ) : BaseEventState
GetReport ( ISystemContext context, ushort namespaceIndex, ReportType reportType, DataRow row ) : BaseEventState

Converts the DB row to a UA event,

GetWells ( string areaName ) : WellInfo[]
Initialize ( ) : void
ReadHistoryForArea ( ReportType reportType, string areaName, System.DateTime startTime, System.DateTime endTime ) : DataView

Reads the report history for the specified time range.

ReadHistoryForWellId ( ReportType reportType, string uidWell, System.DateTime startTime, System.DateTime endTime ) : DataView

Reads the report history for the specified time range.

UpdateeInjectionTestReport ( DataRow row, IList fields, IList values ) : DataRow

Private Methods

Méthode Description
GetRandom ( int min, int max ) : int
GetRandom ( string values ) : string
ReadHistory ( ReportType reportType, StringBuilder filter, System.DateTime startTime, System.DateTime endTime ) : DataView

Reads the history for the specified time range.

Method Details

DeleteEvent() public méthode

Deletes the event with the specified event id.
public DeleteEvent ( string eventId ) : bool
eventId string
Résultat bool

GenerateFluidLevelTestReport() public méthode

public GenerateFluidLevelTestReport ( ) : DataRow
Résultat System.Data.DataRow

GenerateInjectionTestReport() public méthode

public GenerateInjectionTestReport ( ) : DataRow
Résultat System.Data.DataRow

GetAreas() public méthode

public GetAreas ( ) : string[]
Résultat string[]

GetFluidLevelTestReport() public méthode

public GetFluidLevelTestReport ( ISystemContext SystemContext, ushort namespaceIndex, DataRow row ) : BaseEventState
SystemContext ISystemContext
namespaceIndex ushort
row System.Data.DataRow
Résultat Opc.Ua.BaseEventState

GetInjectionTestReport() public méthode

public GetInjectionTestReport ( ISystemContext SystemContext, ushort namespaceIndex, DataRow row ) : BaseEventState
SystemContext ISystemContext
namespaceIndex ushort
row System.Data.DataRow
Résultat Opc.Ua.BaseEventState

GetReport() public méthode

Converts the DB row to a UA event,
public GetReport ( ISystemContext context, ushort namespaceIndex, ReportType reportType, DataRow row ) : BaseEventState
context ISystemContext The UA context to use for the conversion.
namespaceIndex ushort The index assigned to the type model namespace.
reportType ReportType The type of report.
row System.Data.DataRow The source for the report.
Résultat Opc.Ua.BaseEventState

GetWells() public méthode

public GetWells ( string areaName ) : WellInfo[]
areaName string
Résultat WellInfo[]

Initialize() public méthode

public Initialize ( ) : void
Résultat void

ReadHistoryForArea() public méthode

Reads the report history for the specified time range.
public ReadHistoryForArea ( ReportType reportType, string areaName, System.DateTime startTime, System.DateTime endTime ) : DataView
reportType ReportType
areaName string
startTime System.DateTime
endTime System.DateTime
Résultat System.Data.DataView

ReadHistoryForWellId() public méthode

Reads the report history for the specified time range.
public ReadHistoryForWellId ( ReportType reportType, string uidWell, System.DateTime startTime, System.DateTime endTime ) : DataView
reportType ReportType
uidWell string
startTime System.DateTime
endTime System.DateTime
Résultat System.Data.DataView

UpdateeInjectionTestReport() public méthode

public UpdateeInjectionTestReport ( DataRow row, IList fields, IList values ) : DataRow
row System.Data.DataRow
fields IList
values IList
Résultat System.Data.DataRow