UpdateUtilExec(Int32,Nullable<Int32>,Nullable<Int32>,Nullable<DateTime>,Nullable<Double>,Nullable<Double>,Nullable<Int32>,Nullable<Int32>,Nullable<Int32>,Nullable<Int32>,Nullable<Int32>,Nullable<DateTime>) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The UpdateUtilExec() method updates the Util Exec record for the specified entity. This overload of the method includes a lastEditAt DateTime parameter that can be used for optimistic concurrency control.
'Declaration
Public Overloads Shared Sub UpdateUtilExec( _
ByVal EntID As Integer, _
ByVal CurStateCd As Nullable(Of Integer), _
ByVal CurReasCd As Nullable(Of Integer), _
ByVal CurReasStart As Nullable(Of Date), _
ByVal TargetUtilPercent As Nullable(Of Double), _
ByVal CurrentUtil As Nullable(Of Double), _
ByVal JobStartReasCd As Nullable(Of Integer), _
ByVal JobEndReasCd As Nullable(Of Integer), _
ByVal UnknownReasonCode As Nullable(Of Integer), _
ByVal ShiftStartReasCd As Nullable(Of Integer), _
ByVal ShiftEndReasCd As Nullable(Of Integer), _
ByVal lastEditAt As Nullable(Of Date) _
)
public static void UpdateUtilExec(
int EntID,
Nullable<int> CurStateCd,
Nullable<int> CurReasCd,
Nullable<DateTime> CurReasStart,
Nullable<double> TargetUtilPercent,
Nullable<double> CurrentUtil,
Nullable<int> JobStartReasCd,
Nullable<int> JobEndReasCd,
Nullable<int> UnknownReasonCode,
Nullable<int> ShiftStartReasCd,
Nullable<int> ShiftEndReasCd,
Nullable<DateTime> lastEditAt
)
Parameters
- EntID
- Required. Holds the ID of the entity whose Util_Exec record is to be updated.
- CurStateCd
- Optional. Holds the code for the updated current state of the entity.
- CurReasCd
- Optional. Holds the code for the updated current reason of the entity.
- CurReasStart
- Optional. Holds the DateTime that specifies when the current entity reason started (in UTC).
- TargetUtilPercent
- Optional. Holds the updated percentage of the target entity utilization.
- CurrentUtil
- Optional. Holds the updated utilization (RT/(RT+DT)) of the current entity.
- JobStartReasCd
- Optional. Holds the code for the updated default reason to use when a job starts on this entity.
- JobEndReasCd
- Optional. Holds the code for the updated default reason to use when a job ends on this entity.
- UnknownReasonCode
- Optional. Holds the code for the updated default reason to use for an unknown reason from I/O on this entity.
- ShiftStartReasCd
- Optional. Holds the code for the updated default reason to use when a valid shift starts on this entity (only applicable if a job is not running on the entity).
- ShiftEndReasCd
- Optional. Holds the code for the updated default reason to use when a valid shift ends on this entity (only applicable if a job is not running on the entity).
- lastEditAt
Optional. Holds a DateTime value to avoid data contention. If it is specified, the passed value must match the lastEditAt value in the database for the update to succeed.