GetCountsAndDuration(Int32,CountsAndDurationGraphType,FilterType,Nullable<Int32>,FilterTimeUnit,Nullable<Int32>,Nullable<Int32>,Nullable<Int32>,Nullable<OEEStatusFilter>,Nullable<Int32>,Nullable<Int32>) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The GetCountsAndDuration() method returns a DataSet containing one row for each utilization state, reason group, or reason for the specified entity. It has columns for the ID, description, count or duration, color (valid only for utilization states and reasons), and an active flag that is set true for the current utilization state, reason group, or reasonOEEExec.
This overload of the method includes OEE status, utility state ID, and reason group ID filters.
'Declaration
Public Overloads Shared Function GetCountsAndDuration( _
ByVal entID As Integer, _
ByVal graphType As CountsAndDurationGraphType, _
ByVal filterType As FilterType, _
ByVal filterDuration As Nullable(Of Integer), _
ByVal filterTimeUnit As FilterTimeUnit, _
ByVal filterStartTime As Nullable(Of Integer), _
ByVal filterEndTime As Nullable(Of Integer), _
ByVal filterCode As Nullable(Of Integer), _
ByVal oeeStatusFilter As Nullable(Of OEEStatusFilter), _
ByVal utilStateId As Nullable(Of Integer), _
ByVal reasGrpId As Nullable(Of Integer) _
) As DataSet
public static DataSet GetCountsAndDuration(
int entID,
CountsAndDurationGraphType graphType,
FilterType filterType,
Nullable<int> filterDuration,
FilterTimeUnit filterTimeUnit,
Nullable<int> filterStartTime,
Nullable<int> filterEndTime,
Nullable<int> filterCode,
Nullable<OEEStatusFilter> oeeStatusFilter,
Nullable<int> utilStateId,
Nullable<int> reasGrpId
)
Parameters
- entID
Required. Holds the ID of the entity whoe counts and duration data is being retrieved.
- graphType
Required. Holds a CountsAndDurationGraphType enumeration value that specifies the type of data that is shown in the Pareto graph of the KPI control.
- filterType
Required. Holds a FilterType enumeration value that specifies the type of data to filter.
- filterDuration
Optional. Holds a an integer value that specifies the value of N if filterType is LastNHours.
- filterTimeUnit
Required. Holds a FilterTimeUnit enumeration value that specifies the time unit for a custom filter if filterType is Custom.
- filterStartTime
Optional. Holds an integer that specifies the start of the filter period relative to now if filterType is Custom.
- filterEndTime
Optional. Holds an integer that specifies the end of the filter period relative to now if filterType is Custom.
- filterCode
- Optional.
- oeeStatusFilter
Optional. Holds an OEEStatusFilter enumeration value that specifies whether the data should be filtered by an OEE status of runtime, downtime, neither, or both.
- utilStateId
- Optional. Holds the ID of the utilization state by which to filter the retrieved data.
- reasGrpId
- Optional. Holds the ID of the reason group by which to filter the retrieved data.