C# 클래스 GSF.PhasorProtocols.UI.DataModels.OutputStreamDevice

Represents a record of OutputStreamDevice information as defined in the database.
상속: DataModelBase
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AddDevices ( AdoDataConnection database, int outputStreamID, ObservableCollection devices, bool addDigitals, bool addAnalogs ) : string

Adds multiple devices to output steam.

Delete ( AdoDataConnection database, int outputStreamID, string outputStreamDeviceAcronym ) : string

Deletes specified OutputStreamDevice record from database.

GetLookupList ( AdoDataConnection database, int outputStreamID, bool isOptional = false ) : string>.Dictionary

Gets a Dictionary{T1,T2} style list of OutputStreamDevice information.

GetOutputStreamDevice ( AdoDataConnection database, string whereClause ) : OutputStreamDevice

Gets output stream device from the database based on where condition provided.

GetOutputStreamDevices ( AdoDataConnection database, string whereClause ) : ObservableCollection

Gets collection of output stream devices.

Load ( AdoDataConnection database, IList keys ) : ObservableCollection

Loads OutputStreamDevice information as an ObservableCollection{T} style list.

LoadKeys ( AdoDataConnection database, int outputStreamID, string sortMember = "", string sortDirection = "" ) : IList

LoadKeys OutputStreamDevice information as an ObservableCollection{T} style list.

Save ( AdoDataConnection database, OutputStreamDevice outputStreamDevice ) : string

Saves OutputStreamDevice information to database.

메소드 상세

AddDevices() 공개 정적인 메소드

Adds multiple devices to output steam.
public static AddDevices ( AdoDataConnection database, int outputStreamID, ObservableCollection devices, bool addDigitals, bool addAnalogs ) : string
database AdoDataConnection to connection to database.
outputStreamID int ID of the output stream to which devices needs to be added.
devices ObservableCollection Collection of devices to be added.
addDigitals bool Boolean flag indicating if analogs should be added.
addAnalogs bool Boolean flag indicating if digirals should be added.
리턴 string

Delete() 공개 정적인 메소드

Deletes specified OutputStreamDevice record from database.
public static Delete ( AdoDataConnection database, int outputStreamID, string outputStreamDeviceAcronym ) : string
database AdoDataConnection to connection to database.
outputStreamID int ID of the output stream to filter data.
outputStreamDeviceAcronym string ID of the record to be deleted.
리턴 string

GetLookupList() 공개 정적인 메소드

Gets a Dictionary{T1,T2} style list of OutputStreamDevice information.
public static GetLookupList ( AdoDataConnection database, int outputStreamID, bool isOptional = false ) : string>.Dictionary
database AdoDataConnection to connection to database.
outputStreamID int ID of the output stream to filter data.
isOptional bool Indicates if selection on UI is optional for this collection.
리턴 string>.Dictionary

GetOutputStreamDevice() 공개 정적인 메소드

Gets output stream device from the database based on where condition provided.
public static GetOutputStreamDevice ( AdoDataConnection database, string whereClause ) : OutputStreamDevice
database AdoDataConnection to connection to database.
whereClause string query string to filter data.
리턴 OutputStreamDevice

GetOutputStreamDevices() 공개 정적인 메소드

Gets collection of output stream devices.
public static GetOutputStreamDevices ( AdoDataConnection database, string whereClause ) : ObservableCollection
database AdoDataConnection Source database connection.
whereClause string Where filter clause.
리턴 ObservableCollection

Load() 공개 정적인 메소드

Loads OutputStreamDevice information as an ObservableCollection{T} style list.
public static Load ( AdoDataConnection database, IList keys ) : ObservableCollection
database AdoDataConnection to connection to database.
keys IList Keys of the measurement to be loaded from the datbase
리턴 ObservableCollection

LoadKeys() 공개 정적인 메소드

LoadKeys OutputStreamDevice information as an ObservableCollection{T} style list.
public static LoadKeys ( AdoDataConnection database, int outputStreamID, string sortMember = "", string sortDirection = "" ) : IList
database AdoDataConnection to connection to database.
outputStreamID int ID of the OutputStream to filter data.
sortMember string The field to sort by.
sortDirection string ASC or DESC for ascending or descending respectively.
리턴 IList

Save() 공개 정적인 메소드

Saves OutputStreamDevice information to database.
public static Save ( AdoDataConnection database, OutputStreamDevice outputStreamDevice ) : string
database AdoDataConnection to connection to database.
outputStreamDevice OutputStreamDevice Information about .
리턴 string