SplitJob Method
- Last UpdatedNov 06, 2025
- 2 minute read
The SplitJob() method calls the Middleware to split the specified job into two jobs based on the split quantity. The new job is given a start quantity of the split quantity specified. This quantity is removed from the start quantity of the specified job.
'Declaration
Public Shared Sub SplitJob( _
ByVal woID As String, _
ByVal operID As String, _
ByVal origSeqNo As Integer, _
ByVal splitQty As Double, _
ByVal newSeqNo As Object, _
ByVal splitStartQty As Object, _
ByVal newStateCd As Object, _
ByVal reqFinishTime As Object, _
ByVal targetEntID As Object, _
ByVal statusNotes As String _
)
public static void SplitJob(
string woID,
string operID,
int origSeqNo,
double splitQty,
object newSeqNo,
object splitStartQty,
object newStateCd,
object reqFinishTime,
object targetEntID,
string statusNotes
)
Parameters
- woID
- Required. Holds the work order ID of the job to split.
- operID
- Required. Holds the operation ID of the job to split.
- origSeqNo
- Required. Holds the operation sequence number of the job to split.
- splitQty
- Required. Holds the quantity to split off from the original job for the new job.
- newSeqNo
- Optional. Holds the operation sequence number for the new job. If a null is passed, the next available sequence number is used for the new job.
- splitStartQty
- Optional. Holds the start quantity for the new job. If a null is passed, no start quantity is assigned to the new job.
- newStateCd
- Optional. Holds the state code for the new job. If a null is passed, the job state is set to Ready if the existing job is running, complete, or cancelled; otherwise, the new job state is set to the existing job state.
- reqFinishTime
- Optional. Holds the required finish time for the new job. If a null is passed, no required finish time is assigned to the new job.
- targetEntID
- Optional. Holds the ID of the target entity for the new job. If a null is passed, the ID of the target entity for the existing job is assigned to the new job.
- statusNotes
- Optional. Holds status notes for the new job. If a null is passed, no status notes are assigned to the new job.