Update Method (OperEntLink)
- Last UpdatedNov 06, 2025
- 3 minute read
The Update() method updates all columns for the specified operation/entity link record in the Oper_Ent_Link table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal processId As String, _
ByVal operId As String, _
ByVal entId As Integer, _
ByVal estFixedLab As DBDouble, _
ByVal estLabRate As DBDouble, _
ByVal estSetupTime As DBDouble, _
ByVal estTeardownTime As DBDouble, _
ByVal estProdRate As Double, _
ByVal prodUom As Integer, _
ByVal batchSize As Double, _
ByVal estTransferTime As DBDouble, _
ByVal initProdPct As DBDouble, _
ByVal parentContingentEnt As Boolean, _
ByVal childContingentEnt As Boolean, _
ByVal lastEditComment As DBString, _
ByRef modId As String _
)
'Usage
Dim sessionId As Integer
Dim processId As String
Dim operId As String
Dim entId As Integer
Dim estFixedLab As DBDouble
Dim estLabRate As DBDouble
Dim estSetupTime As DBDouble
Dim estTeardownTime As DBDouble
Dim estProdRate As Double
Dim prodUom As Integer
Dim batchSize As Double
Dim estTransferTime As DBDouble
Dim initProdPct As DBDouble
Dim parentContingentEnt As Boolean
Dim childContingentEnt As Boolean
Dim lastEditComment As DBString
Dim modId As String
OperEntLink.Update(sessionId, processId, operId, entId, estFixedLab, estLabRate, estSetupTime, estTeardownTime, estProdRate, prodUom, batchSize, estTransferTime, initProdPct, parentContingentEnt, childContingentEnt, lastEditComment, modId)
public static void Update(
int sessionId,
string processId,
string operId,
int entId,
DBDouble estFixedLab,
DBDouble estLabRate,
DBDouble estSetupTime,
DBDouble estTeardownTime,
double estProdRate,
int prodUom,
double batchSize,
DBDouble estTransferTime,
DBDouble initProdPct,
bool parentContingentEnt,
bool childContingentEnt,
DBString lastEditComment,
ref string modId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- processId
- Required. Holds the ID of the process that contains the operation whose link is being updated.
- operId
- Required. Holds the ID of the operation whose link is being updated.
- entId
- Required. Holds the ID of the entity whose link is being updated.
- estFixedLab
- Required. Holds the estimated fixed labor setup/cleanup hours.
- estLabRate
- Required. Holds the estimated variable labor batch time, depending on the prodUom parameter value.
- estSetupTime
- Required. Holds the estimated entity hours for setup.
- estTeardownTime
- Required. Holds the estimated entity hours for teardown.
- estProdRate
- Required. Holds the estimated entity batch rate or time, depending on the prodUom parameter value.
- prodUom
- Required. Holds the the unit of measure for the estLabRate and estProdRate parameter values.
- batchSize
- Required. Holds the amount or number per batch.
- estTransferTime
- Required. Holds the transfer time after operations in hours.
- initProdPct
- Required. Holds the initial production percentage required at this entity if the first operation is done at multiple entities, or null for other cases.
- parentContingentEnt
- Required. Holds a flag that, if set to true, specifies that this link is for a group that will really be run on one or more child entities.
- childContingentEnt
- Required. Holds a flag that, if set to true, specifies that this link is potentially for one of a group of entities.
- lastEditComment
- Required. Holds comments that describes why this record is being updated.
- modId
Required. Holds the modification ID assigned the last time this record was added or updated, for optimistic concurrency control. If it is specified, the passed value must match the record's modId value for the record to be updated.
Output. Holds the new modification ID to identify this update of this record.