Add Method (Oper)
- Last UpdatedNov 06, 2025
- 3 minute read
The Add() method adds a new operation record to the Oper table.
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal processId As String, _
ByVal operId As String, _
ByVal operDesc As DBString, _
ByVal defRejectRate As DBDouble, _
ByVal displaySeq As Integer, _
ByVal checkInv As Nullable(Of Boolean), _
ByVal schedToEntId As DBInt, _
ByVal operType As DBString, _
ByVal operCost As DBDouble, _
ByVal deviationAbove As Nullable(Of Double), _
ByVal deviationBelow As Nullable(Of Double), _
ByVal assocFile As DBString, _
ByVal assocFileType As DBString, _
ByVal reworkCd As DBString, _
ByVal notes As DBString, _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal lastEditComment As DBString, _
ByRef modId As String _
)
'Usage
Dim sessionId As Integer
Dim processId As String
Dim operId As String
Dim operDesc As DBString
Dim defRejectRate As DBDouble
Dim displaySeq As Integer
Dim checkInv As Nullable(Of Boolean)
Dim schedToEntId As DBInt
Dim operType As DBString
Dim operCost As DBDouble
Dim deviationAbove As Nullable(Of Double)
Dim deviationBelow As Nullable(Of Double)
Dim assocFile As DBString
Dim assocFileType As DBString
Dim reworkCd As DBString
Dim notes As DBString
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim modId As String
Oper.Add(sessionId, processId, operId, operDesc, defRejectRate, displaySeq, checkInv, schedToEntId, operType, operCost, deviationAbove, deviationBelow, assocFile, assocFileType, reworkCd, notes, spare1, spare2, spare3, spare4, lastEditComment, modId)
public static void Add(
int sessionId,
string processId,
string operId,
DBString operDesc,
DBDouble defRejectRate,
int displaySeq,
Nullable<bool> checkInv,
DBInt schedToEntId,
DBString operType,
DBDouble operCost,
Nullable<double> deviationAbove,
Nullable<double> deviationBelow,
DBString assocFile,
DBString assocFileType,
DBString reworkCd,
DBString notes,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
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 to which the operation belongs.
- operId
- Required. Holds the ID of the operation.
- operDesc
- Optional. Holds the operation description.
- defRejectRate
- Optional. Holds the default reject rate assumed in this operation (e.g. 0.02 = 2% rejects expected).
- displaySeq
- Required. Holds the sequence of operations independent of the operation ID. Used to sequence operations in tree and flow diagrams.
- checkInv
- Optional. Holds a flag that, if set to true, specifies that sufficient component inventory is required to change to the Ready state.
- schedToEntId
- Optional. Holds the ID of the entity to which the operation should be scheduled.
- operType
- Optional. Holds the type of operation. Can be used to help determine which job instances to create when importing schedules from an ERP system.
- operCost
- Optional. Holds the additional (non-labor, non-machine, or non-material) cost associated specifically with this operation.
- deviationAbove
- Optional. Holds the portion of the start quantity above which total production can deviate.
- deviationBelow
- Optional. Holds the portion of the start quantity below which total production can deviate.
- assocFile
- Optional. Holds the path and file name of the file associated with the operation.
- assocFileType
- Optional. Holds the file type of the file associated with the operation.
- reworkCd
- Optional. Holds the rework behavior for this operation.
- notes
- Optional. Holds the notes about this operation.
- spare1
- Optional. Holds the contents of the user-defined spare1 field.
- spare2
- Optional. Holds the contents of the user-defined spare2 field.
- spare3
- Optional. Holds the contents of the user-defined spare3 field.
- spare4
- Optional. Holds the contents of the user-defined spare4 field.
- 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.