ChangeWODetails Method
- Last UpdatedNov 06, 2025
- 3 minute read
'Declaration
Public Shared Sub ChangeWODetails( _
ByVal sessionId As Integer, _
ByVal woId As String, _
ByVal woDesc As String, _
ByVal qtyAtStart As Nullable(Of Double), _
ByVal qtyReqd As Nullable(Of Double), _
ByVal releaseTime As Nullable(Of Date), _
ByVal reqFinishTime As Nullable(Of Date), _
ByVal stateCd As Nullable(Of Integer), _
ByVal woPriority As Nullable(Of Integer), _
ByVal custInfo As String, _
ByVal moId As String, _
ByVal notes As String, _
ByRef modId As String _
)
'Usage
Dim sessionId As Integer
Dim woId As String
Dim woDesc As String
Dim qtyAtStart As Nullable(Of Double)
Dim qtyReqd As Nullable(Of Double)
Dim releaseTime As Nullable(Of Date)
Dim reqFinishTime As Nullable(Of Date)
Dim stateCd As Nullable(Of Integer)
Dim woPriority As Nullable(Of Integer)
Dim custInfo As String
Dim moId As String
Dim notes As String
Dim modId As String
JobExec.ChangeWODetails(sessionId, woId, woDesc, qtyAtStart, qtyReqd, releaseTime, reqFinishTime, stateCd, woPriority, custInfo, moId, notes, modId)
public static void ChangeWODetails(
int sessionId,
string woId,
string woDesc,
Nullable<double> qtyAtStart,
Nullable<double> qtyReqd,
Nullable<DateTime> releaseTime,
Nullable<DateTime> reqFinishTime,
Nullable<int> stateCd,
Nullable<int> woPriority,
string custInfo,
string moId,
string notes,
out string modId
)
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.
- woDesc
- Optional. Holds the description of the work order.
- qtyAtStart
- Optional. Holds the starting quantity.
- qtyReqd
- Optional. Holds the amount of quantity that must be produced.
- releaseTime
- Optional. Holds the release time for a job and work order itself.
- reqFinishTime
- Optional. Holds the required finish time for a job and work order itself.
- stateCd
- Optional. Holds the state code of a job. This parameter is not currently being used.
- woPriority
- Optional. Holds the priority for a job and work order itself.
- custInfo
- Optional. Holds the customer information for a work order.
- moId
- Optional. Holds the manufacturing order.
- notes
- Optional. Holds a note for the work order.
- modId
Required. Holds the modification ID assigned the last time this record was added or last updated, for optimistic concurrency control. If it is specified, the passed value must match the record's modId for the record to be updated.
Output. Holds the new modification ID to identify this update of this record.
This method updates the priority of the all of the jobs in the specified work order and the work order itself to the specified priority.
The required finish time is first applied to the work order. Then it is applied to the final job in the specified work order. Then 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.
The starting and required quantities are applied to the final job in the specified work order and then the quantities are propagated forward to all the remaining jobs in the work order based on their position in the route. As the quantities are propagated back through the route, they are adjusted according to the BOM.