Add Method (StdOperEntLink)
- Last UpdatedNov 06, 2025
- 2 minute read
The Add() method adds a new standard operation/entity link record to the Std_Oper_Ent_Link table.
'Declaration
Public Shared Sub Add( _
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 Nullable(Of Integer), _
ByVal batchSize As Nullable(Of 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 Nullable(Of Integer)
Dim batchSize As Nullable(Of Double)
Dim estTransferTime As DBDouble
Dim initProdPct As DBDouble
Dim lastEditComment As DBString
Dim lastEditAt As Date
StdOperEntLink.Add(sessionId, operId, entId, estFixedLab, estLabRate, estSetupTime, estTeardownTime, estProdRate, prodUom, batchSize, estTransferTime, initProdPct, lastEditComment, lastEditAt)
public static void Add(
int sessionId,
string operId,
int entId,
DBDouble estFixedLab,
DBDouble estLabRate,
DBDouble estSetupTime,
DBDouble estTeardownTime,
double estProdRate,
Nullable<int> prodUom,
Nullable<double> batchSize,
DBDouble estTransferTime,
DBDouble initProdPct,
DBString lastEditComment,
out 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 link is being added.
- entId
- Required. Holds the ID of the entity for which the link is being added.
- 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
- Optional. Holds comments that describe why this record is being added.
- lastEditAt
- Output. Holds the returned date/time when this record was added. The lastEditAt parameter is used by other methods that modify or delete this type of record for optimistic concurrency control.
Observe the following input parameter rules:
- Required non-DB* parameters: Must pass a value. Cannot be empty or null.
- Optional non-DB* parameters: Either enter a value or pass a null. If passing a null and a default value has been defined, the default value will be used for the parameter.
- Required DB* parameters: Must pass a value. To enter an empty value for the parameter, pass DB*.null (e.g., DBInt.null).
- Optional DB* parameters: To enter no value for the parameter, pass DB*.null (e.g., DBInt.null). To use the default value for the parameter if one has been defined for the object being added, pass a null.