Update Method (StdOperEntLink)
- Last UpdatedNov 06, 2025
- 2 minute read
The Update() method updates all columns of the specified standard operation/entity link record in the Std_Oper_Ent_Link table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
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 lastEditComment As DBString, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
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 lastEditComment As DBString
Dim lastEditAt As Date
StdOperEntLink.Update(sessionId, operId, entId, estFixedLab, estLabRate, estSetupTime, estTeardownTime, estProdRate, prodUom, batchSize, estTransferTime, initProdPct, lastEditComment, lastEditAt)
public static void Update(
int sessionId,
string operId,
int entId,
DBDouble estFixedLab,
DBDouble estLabRate,
DBDouble estSetupTime,
DBDouble estTeardownTime,
double estProdRate,
int prodUom,
double batchSize,
DBDouble estTransferTime,
DBDouble initProdPct,
DBString lastEditComment,
ref DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- operId
- Required. Holds the ID of the standard operation for which the entity link record is being updated.
- entId
- Required. Holds the ID of the entity for which the standard operation link is being updated.
- estFixedLab
- Required. Holds the estimated fixed labor hours (setup/cleanup).
- estLabRate
- Required. Holds the estimated variable labor batch time, depending on prod_uom.
- 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 production rate or time, depending on prod_uom.
- prodUom
- Required. Holds the unit of measure for the estimated labor hours (estLabRate) and batch production rate (estProdRate).
- batchSize
- Required. Holds the size of the batch.
- estTransferTime
- Required. Holds the transfer time after operation, in hours.
- initProdPct
- Required. Holds the initial production percentage required at this entity.
- lastEditComment
- Required. Holds comments that describe why this record is being updated.
- lastEditAt
Required. Holds the date/time when this record was added or last updated, for optimistic concurrency control. The passed value must match the lastEditAt value in the record for the update to succeed.
Output. Holds the date/time value when the record was updated by this called method.