UpdateJobExec Method (Ent)
- Last UpdatedNov 06, 2025
- 5 minute read
The UpdateJobExec() method updates the job exec record for the entity that is identified by this entity object. The method includes a lastEditAt DateTime parameter that can be used for optimistic concurrency control.
'Declaration
Public Sub UpdateJobExec( _
ByVal JobPos As Integer, _
ByVal NextJobOnly As Nullable(Of Boolean), _
ByVal ItemBasedDesc As Nullable(Of Boolean), _
ByVal JobEndConfirmMessage As Fact.Common.DBString, _
ByVal DefToEntID As Fact.Common.DBInt, _
ByVal DefRejectEntID As Fact.Common.DBInt, _
ByVal DefFromEntID As Fact.Common.DBInt, _
ByVal DefProdReasCD As Nullable(Of Integer), _
ByVal DefConsReasCd As Fact.Common.DBInt, _
ByVal DefLotNo As Fact.Common.DBString, _
ByVal DefSubLotNo As Fact.Common.DBString, _
ByVal AutoloadJobSpecs As Nullable(Of Boolean), _
ByVal AutoSeqStartOpt As Nullable(Of Integer), _
ByVal AutoJobStartOpt As Nullable(Of Integer), _
ByVal AutoJobEndOpt As Nullable(Of Integer), _
ByVal InclClassReas As Nullable(Of Boolean), _
ByVal MustCompleteSteps As Nullable(Of Boolean), _
ByVal MustProdReqdQty As Nullable(Of Boolean), _
ByVal LocalMovableConsEnt As Nullable(Of Boolean), _
ByVal LocalMovableProdEnt As Nullable(Of Boolean), _
ByVal RunWithoutOperator As Nullable(Of Boolean), _
ByVal ApplyPostExecFCCounts As Nullable(Of Boolean), _
ByVal SuppressStartSomePrompt As Nullable(Of Boolean), _
ByVal AllowZeroQtySplit As Nullable(Of Boolean), _
ByVal AutoAllocQtyToRunningJob As Nullable(Of Boolean), _
ByVal CurWOID As Fact.Common.DBString, _
ByVal CurOperID As Fact.Common.DBString, _
ByVal CurSeqNo As Fact.Common.DBInt, _
ByVal CurStepNo As Fact.Common.DBInt, _
ByVal CurStepStart As Fact.Common.DBDateTime, _
ByVal spare1 As Fact.Common.DBString, _
ByVal spare2 As Fact.Common.DBString, _
ByVal spare3 As Fact.Common.DBString, _
ByVal spare4 As Fact.Common.DBString, _
ByVal lastEditAt As Nullable(Of Date) _
)
public void UpdateJobExec(
int JobPos,
Nullable<bool> NextJobOnly,
Nullable<bool> ItemBasedDesc,
Fact.Common.DBString JobEndConfirmMessage,
Fact.Common.DBInt DefToEntID,
Fact.Common.DBInt DefRejectEntID,
Fact.Common.DBInt DefFromEntID,
Nullable<int> DefProdReasCD,
Fact.Common.DBInt DefConsReasCd,
Fact.Common.DBString DefLotNo,
Fact.Common.DBString DefSubLotNo,
Nullable<bool> AutoloadJobSpecs,
Nullable<int> AutoSeqStartOpt,
Nullable<int> AutoJobStartOpt,
Nullable<int> AutoJobEndOpt,
Nullable<bool> InclClassReas,
Nullable<bool> MustCompleteSteps,
Nullable<bool> MustProdReqdQty,
Nullable<bool> LocalMovableConsEnt,
Nullable<bool> LocalMovableProdEnt,
Nullable<bool> RunWithoutOperator,
Nullable<bool> ApplyPostExecFCCounts,
Nullable<bool> SuppressStartSomePrompt,
Nullable<bool> AllowZeroQtySplit,
Nullable<bool> AutoAllocQtyToRunningJob,
Fact.Common.DBString CurWOID,
Fact.Common.DBString CurOperID,
Fact.Common.DBInt CurSeqNo,
Fact.Common.DBInt CurStepNo,
Fact.Common.DBDateTime CurStepStart,
Fact.Common.DBString spare1,
Fact.Common.DBString spare2,
Fact.Common.DBString spare3,
Fact.Common.DBString spare4,
Nullable<DateTime> lastEditAt
)
Parameters
- JobPos
- Required. Holds an integer that identifies the job position that is being updated
- NextJobOnly
- Optional. Holds a flag that, if set to true, causes only the next job to start. Set this flag to false to select any job to start.
- ItemBasedDesc
- Optional. Holds a flag that, if set to true, indicates that messages use the item description and not the operation description.
- JobEndConfirmMessage
- Optional. Holds a string that is the operation end confirm message.
- DefToEntID
- Optional. Holds an integer that identifies the default storage entity for good production items, and rejects if def_reject_ent_id is null.
- DefRejectEntID
- Optional. Holds an integer that identifies the default storage entity for reject production.
- DefFromEntID
- Optional. Holds an integer that identifies the default storage entity for item issues.
- DefProdReasCD
- Optional. Holds an integer that identifies the default reason code (reas_cd) for good production.
- DefConsReasCd
- Optional. Holds an integer that identifies the default reason code (reas_cd) for normal consumption.
- DefLotNo
- Optional. Holds a string that identifies the default Lot number for production.
- DefSubLotNo
- Optional. Holds a string that identifies the default sublot number for production.
- AutoloadJobSpecs
- Optional. Holds a flag that, if set to true, causes job specs to be auto-loaded to tags.
- AutoSeqStartOpt
- Optional. Holds an integer that identifies an enumeration of conditions to automatically start the job with the current work order and operation, and the next seq_no. 0=Don't start automatically (the default); 1=start job with next seq when previous done.
- AutoJobStartOpt
- Optional. Holds an integer that identifies an enumeration of conditions to automatically start a job. 0=Don't start automatically; 1=start next scheduled job as soon as ready; 2=start next scheduled job with work order specified in tag that just changed.
- AutoJobEndOpt
- Optional. Holds an integer that identifies an enumeration of conditions to automatically end a job. 0=don't end automatically; 1=when qtydone >= qtyreqd.
- InclClassReas
- Optional. Holds a flag that, if set to true, indicates that item reasons for item class should also be available to choose from if there are entity-related item reasons defined.
- MustCompleteSteps
- Optional. Holds a flag that, if set to true, indicates that all steps must be completed/bypassed to end the job.
- MustProdReqdQty
- Optional. Holds a flag that, if set to true, indicates that the required quantity must be produced (good) to end the job.
- LocalMovableConsEnt
- Optional. Holds a flag that, if set to true, indicates that the movable storage entities that supply consumption need to be at/in the entity consuming it.
- LocalMovableProdEnt
- Optional. Holds a flag that, if set to true, indicates that movable storage entities that receive production need to be at/in the entity producing it.
- RunWithoutOperator
- Optional. Holds a flag that, if set to true, indicates that jobs can run without an operator logged on to this entity.
- ApplyPostExecFCCounts
- Optional. Holds a flag that, if set to true, indicates that production counts received from a custom application when no job is running should be applied to the last job that ran on the entity. If this flag is set to false, such counts are ignored.
- SuppressStartSomePrompt
- Optional. Holds a flag that, if set to true, indicates that the Start Some Qty prompt to specify a quantity should be suppressed when the Start Some button is pressed.
- AllowZeroQtySplit
- Optional. Holds a flag that, if set to true, indicates that the default quantities to be used for Start Some are zero.
- AutoAllocQtyToRunningJob
- Optional. Holds a flag that, if set to true, indicates that overages in reported production are to be covered by moving quantities from a scheduled, non-running job if available.
- CurWOID
- Optional. Holds a string that identifies the current work order on this entity.
- CurOperID
- Optional. Holds a string that identifies the current operation on this entity.
- CurSeqNo
- Optional. Holds an integer that identifies the current operation split on this entity.
- CurStepNo
- Optional. Holds an integer that identifies the last step started on this entity.
- CurStepStart
- Optional. Holds a DateTime that identifies when the last step was started on this entity.
- spare1
- Optional. Holds a string used for the value of the first user-defined field.
- spare2
- Optional. Holds a string used for the value of the second user-defined field.
- spare3
- Optional. Holds a string used for the value of the third user-defined field.
- spare4
- Optional. Holds a string used for the value of the fourth user-defined field.
- lastEditAt
- Optional. Holds a DateTime value to avoid data contention. If it is specified, the passed value must match the lastEditAt value in the database for the update to succeed.