Add Method (StandardOper)
- Last UpdatedNov 06, 2025
- 3 minute read
The Add() method adds a new standard operation record to the Std_Oper table.
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal operId As String, _
ByVal operDesc As DBString, _
ByVal defRejectRate As DBDouble, _
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 notes As DBString, _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim operId As String
Dim operDesc As DBString
Dim defRejectRate As DBDouble
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 notes As DBString
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Date
StandardOper.Add(sessionId, operId, operDesc, defRejectRate, checkInv, schedToEntId, operType, operCost, deviationAbove, deviationBelow, assocFile, assocFileType, notes, spare1, spare2, spare3, spare4, lastEditComment, lastEditAt)
public static void Add(
int sessionId,
string operId,
DBString operDesc,
DBDouble defRejectRate,
Nullable<bool> checkInv,
DBInt schedToEntId,
DBString operType,
DBDouble operCost,
Nullable<double> deviationAbove,
Nullable<double> deviationBelow,
DBString assocFile,
DBString assocFileType,
DBString notes,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
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 operation ID.
- operDesc
- Required. Holds the operation description.
- defRejectRate
- Required. Holds the default reject rate for this operation.
- checkInv
- Required. Holds a flag that, if set to true, specifies that sufficient component inventory is required to change the operation's state to Ready.
- schedToEntId
- Required. Holds the ID of the entity to which this operation is scheduled.
- operType
- Required. Holds the type of this operation. Can be used to help determine which job instances to create when importing schedules from an ERP system.
- operCost
- Required. Holds the additional (non-labor, non-machine, non-material) cost associated specifically with this operation.
- deviationAbove
- Required. Holds the portion of the start quantity by which total production may deviate above.
- deviationBelow
- Required. Holds the portion of the start quantity by which total production may deviate below.
- assocFile
- Required. Holds the path and file name of the file associated with the operation.
- assocFileType
- Required. Holds the file type of the file associated with the operation.
- notes
- Required. Holds notes about adding this record.
- spare1
- Required. Holds the contents of the user-defined spare1 field.
- spare2
- Required. Holds the contents of the user-defined spare2 field.
- spare3
- Required. Holds the contents of the user-defined spare3 field.
- spare4
- Required. Holds the contents of the user-defined spare4 field.
- 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.