AddUtilReason(String,String,String,String,String,String,String,String,String,String,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The AddUtilReason() method adds a utilization reason. For this overload of the method, the time-related parameters being passed are optional.
'Declaration
Public Overloads Shared Function AddUtilReason( _
ByVal reasDesc As String, _
ByVal reasGrpID As String, _
ByVal stateCd As String, _
ByVal runtime As String, _
ByVal downtime As String, _
ByVal setuptime As String, _
ByVal teardowntime As String, _
ByVal fixedtime As String, _
ByVal vartime As String, _
ByVal defLabCd As String, _
ByVal displaySeq As String _
) As Integer
public static int AddUtilReason(
string reasDesc,
string reasGrpID,
string stateCd,
string runtime,
string downtime,
string setuptime,
string teardowntime,
string fixedtime,
string vartime,
string defLabCd,
string displaySeq
)
Parameters
- reasDesc
- Required. Holds the description string.
- reasGrpID
- Required. Holds the group ID string.
- stateCd
- Required. Holds the state code string.
- runtime
Required. Holds a value indicating whether the utilization reason counts toward runtime events (acts as a boolean).
- downtime
Required. Holds a value indicating whether the utilization reason counts toward downtime events (acts as a boolean).
- setuptime
Required. Holds a value indicating whether the utilization reason counts toward setup time events (acts as a boolean).
- teardowntime
Required. Holds a value indicating whether the utilization reason counts toward tear down time events (acts as a boolean).
- fixedtime
Required. Holds a value indicating whether the utilization reason counts toward fixed time events (acts as a boolean).
- vartime
Required. Holds a value indicating whether the utilization reason counts toward variable time events (acts as a boolean).
- defLabCd
- Required. Holds the optional default labor code to be used for the utilization reason being added.
- displaySeq
- Required. Holds the utilization reason's display sequence number.
Return Value
Returns an integer that is the new reason's code.