Add Method (OperEntLink)
- Last UpdatedNov 06, 2025
- 3 minute read
The Add() method adds a new operation record to the Oper_Ent_Link table.
'Declaration
Public Shared Sub Add( _
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 Nullable(Of Double), _
ByVal prodUom As Nullable(Of Integer), _
ByVal batchSize As Nullable(Of Double), _
ByVal estTransferTime As DBDouble, _
ByVal initProdPct As DBDouble, _
ByVal parentContingentEnt As Nullable(Of Boolean), _
ByVal childContingentEnt As Nullable(Of 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 Nullable(Of Double)
Dim prodUom As Nullable(Of Integer)
Dim batchSize As Nullable(Of Double)
Dim estTransferTime As DBDouble
Dim initProdPct As DBDouble
Dim parentContingentEnt As Nullable(Of Boolean)
Dim childContingentEnt As Nullable(Of Boolean)
Dim lastEditComment As DBString
Dim modId As String
OperEntLink.Add(sessionId, processId, operId, entId, estFixedLab, estLabRate, estSetupTime, estTeardownTime, estProdRate, prodUom, batchSize, estTransferTime, initProdPct, parentContingentEnt, childContingentEnt, lastEditComment, modId)
public static void Add(
int sessionId,
string processId,
string operId,
int entId,
DBDouble estFixedLab,
DBDouble estLabRate,
DBDouble estSetupTime,
DBDouble estTeardownTime,
Nullable<double> estProdRate,
Nullable<int> prodUom,
Nullable<double> batchSize,
DBDouble estTransferTime,
DBDouble initProdPct,
Nullable<bool> parentContingentEnt,
Nullable<bool> childContingentEnt,
DBString lastEditComment,
out 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 that is to be linked to an entity.
- operId
- Required. Holds the ID of the operation that is to be linked to an entity.
- entId
- Required. Holds the ID of the entity that is to be linked to an operation.
- estFixedLab
- Optional. Holds the estimated fixed labor setup/cleanup hours.
- estLabRate
- Optional. Holds the estimated variable labor batch time, depending on the prodUom parameter value.
- estSetupTime
- Optional. Holds the estimated entity hours for setup.
- estTeardownTime
- Optional. Holds the estimated entity hours for teardown.
- estProdRate
- Optional. Holds the estimated entity batch rate or time, depending on the prodUom parameter value.
- prodUom
- Optional. Holds the the unit of measure for the estLabRate and estProdRate parameter values.
- batchSize
- Optional. Holds the amount or number per batch.
- estTransferTime
- Optional. Holds the transfer time after operations in hours.
- initProdPct
- Optional. Holds the initial production percentage required at this entity if the first operation is done at multiple entities, or null for other cases.
- parentContingentEnt
- Optional. 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
- Optional. Holds a flag that, if set to true, specifies that this link is potentially for one of a group of entities.
- lastEditComment
- Optional. Holds comments that describe why this record is being added.
- modId
- Output. Holds the modification ID assigned to this record when it is added, for optimistic concurrency control. The modId 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.