GetWOCreatedForRework Method
- Last UpdatedNov 06, 2025
- 3 minute read
'Declaration
Public Shared Function GetWOCreatedForRework( _
ByVal originalWOId As String, _
ByVal originalOperId As String, _
ByVal originalSeqNo As Nullable(Of Integer) _
) As DataSet
'Usage
Dim originalWOId As String
Dim originalOperId As String
Dim originalSeqNo As Nullable(Of Integer)
Dim value As DataSet
value = JobExec.GetWOCreatedForRework(originalWOId, originalOperId, originalSeqNo)
public static DataSet GetWOCreatedForRework(
string originalWOId,
string originalOperId,
Nullable<int> originalSeqNo
)
Parameters
- originalWOId
- Optional. Holds the ID of the original work order that was executing when rework kicked off that resulted in a new work order being created.
- originalOperId
- Optional. Holds the ID of the original operation that was executing when rework kicked off that resulted in a new work order being created.
- originalSeqNo
- Optional. Holds the sequence number of the original job that was executing when rework kicked off that resulted in a new work order being created.
Return Value
Returns a DataSet that contains a record for each new work order that was created as a result of rework being kicked off from the specified job. If no work orders are found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
|
Column Name |
Description |
|---|---|
|
wo_id |
A string that is the work order ID of the job that was created for the rework, from the Wo table. |
|
first_oper_id |
A string that is the ID of the first operation of the job that was created for the rework, from the Job table. |
|
job_desc |
A string that is the description of the job, from the Job table. |
|
rework_process_id |
A string that is the set of rework operations to be done, from the Rework_Process_Usage table. |
|
orig_rework_cd |
A string that is a rework code for the job(s) from which rework originates, from the Rework_Process_Usage table. |
|
orig_process_id |
A string that is the ID of the process from which rework originates; null (default) if rework, from the Rework_Process_Usage table. |
|
orig_wo_id |
A string that is the ID of the work order of the job from which rework originated, from the Wo table. |
|
orig_oper_id |
A string that is the ID of the operation of the job from which rework originated, from the Wo table. |
|
orig_seq_no |
An integer that is the sequence number of the job from which rework originated, from the Wo table. |
|
reas_cd |
An integer that is the reason entered for the item, which necessitates rework, from the Item_Reas table. |
|
reas_desc |
A string the description of the item reason, from the Item_Reas table. |
|
reas_grp_id |
An integer that is the ID of the reason group of which the item reason is a member, from the Item_Reas table. |
|
item_id |
A string that is the ID of the item produced; null (default) if rework requirements are not differentiated by item, from the Rework_Process_Usage table. |
|
last_edit_comment |
A string that contains comments about why the record was added or updated. |
|
last_edit_by |
A string that is the ID of the user who added or last updated this record. |
|
last_edit_at |
A datetime that indicates when the record was added or last updated. |