ChangeWOReqFinishTime Method
- Last UpdatedNov 06, 2025
- 1 minute read
The ChangeWOReqFinishTime() method changes the required finish time for all the jobs in the specified work order.
'Declaration
Public Shared Sub ChangeWOReqFinishTime( _
ByVal sessionId As Integer, _
ByVal woId As String, _
ByVal reqFinishTime As Nullable(Of Date) _
)
'Usage
Dim sessionId As Integer
Dim woId As String
Dim reqFinishTime As Nullable(Of Date)
JobExec.ChangeWOReqFinishTime(sessionId, woId, reqFinishTime)
public static void ChangeWOReqFinishTime(
int sessionId,
string woId,
Nullable<DateTime> reqFinishTime
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- woId
- Required. Holds the ID of the work order.
- reqFinishTime
- Optional. Holds the required finish time for a job and work order itself.
The required finish time is first applied to the work order. Then it is applied to the final job in the specified work order. The required finish times are propagated forward to all the remaining jobs in the work order based on their position in the route. The difference between the existing required finish time and the supplied required finish time is calculated and used to update all the jobs in the route.