GetDynamicRoutesForWO Method
- Last UpdatedNov 06, 2025
- 3 minute read
'Declaration
Public Shared Function GetDynamicRoutesForWO( _
ByVal originalWOId As String, _
ByVal originalOperId As String, _
ByVal itemFilters() As String, _
ByVal reworkCdFilters() As String, _
ByVal itemReasonFilters() As Integer _
) As DataSet
public static DataSet GetDynamicRoutesForWO(
string originalWOId,
string originalOperId,
string[] itemFilters,
string[] reworkCdFilters,
int[] itemReasonFilters
)
Parameters
- originalWOId
- Required. Holds the ID of the work order for which the dynamic routing information is being retrieved.
- originalOperId
- Optional. Holds the operation ID of a job from which rework originates.
- itemFilters
- Optional. Holds the list of item IDs by which to filter the dynamic routing information that is being retrieved.
- reworkCdFilters
- Optional. Holds rework codes for filtering the dynamic routing information that is being retrieved.
- itemReasonFilters
- Optional. Holds a list of item reason codes for filtering the dynamic routing information that is being retrieved.
Return Value
Returns a DataSet that contains records for all the dynamic routes that are possible for rework that is kicked off from the specified work order. If there are no dynamic routes specified that can be kicked off from the work order, an empty DataSet is returned.
The columns of the returned DataSet are described below.
|
Column Name |
Description |
|---|---|
|
rework_process_id |
A string that is the set of rework operations to be done. |
|
oper_id |
A string that is the ID of the operation of the rework process. |
|
oper_desc |
A string that is the operation description of the rework process. |
|
orig_rework_cd |
A string that is a rework code for the job(s) from which rework originates. |
|
orig_process_id |
A string that is the ID of the process of the work order from which rework originates; null (default) if rework. |
|
reas_cd |
An integer that is the reason entered for the item, which necessitates rework, from the Item_Reas table. |
|
reas_desc |
A string that is the item reason description, 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. |
|
max_times_rework |
An integer that indicates how many times the smallest identifiable group of production may be reworked for this; null (default) if no limit. |
|
reentry_rework_cd |
A string that is the rework code of the next downstream job to which the material is to be returned once reworked, if rework is part of the original work order. If null (default), it is the very next job. |
|
display_seq |
An integer that is the position within the process that this job should be displayed. |
|
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. |
|
orig_oper_id |
A string that is the ID of the operation of the work order from which rework originates. This column exists only if an original operation ID is not supplied as an input parameter. |