EndJob Method (Ent)
- Last UpdatedNov 06, 2025
- 1 minute read
The EndJob() method ends the job that is identified by the input parameters. If the job is a part of a batch, an attempt is made to end all jobs in the batch. Ending a job changes the job state to Completed.
'Declaration
Public Sub EndJob( _
ByVal woId As String, _
ByVal operId As String, _
ByVal seqNo As Integer, _
ByVal curStateCd As JobStates, _
ByVal statusNotes As String _
)
public void EndJob(
string woId,
string operId,
int seqNo,
JobStates curStateCd,
string statusNotes
)
Parameters
- woId
- Required. Holds the work order of the job to be ended.
- operId
- Required. Holds the operation ID of the job to be ended.
- seqNo
- Required. Holds the operation sequence number of the job to be ended.
- curStateCd
- Required. Holds the current state of the job.
- statusNotes
Required. Holds the status notes that are to be saved with the job when the job is ended. These notes are edited in the dialog used to confirm that the user wants to complete the job. This can be an empty string.