Update Method (StandardOper)
- Last UpdatedNov 06, 2025
- 3 minute read
The Update() method updates all columns of the specified standard operation record in the Std_Oper table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal operId As String, _
ByVal operDesc As DBString, _
ByVal defRejectRate As DBDouble, _
ByVal checkInv As Boolean, _
ByVal schedToEntId As DBInt, _
ByVal operType As DBString, _
ByVal operCost As DBDouble, _
ByVal deviationAbove As Double, _
ByVal deviationBelow As 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 Boolean
Dim schedToEntId As DBInt
Dim operType As DBString
Dim operCost As DBDouble
Dim deviationAbove As Double
Dim deviationBelow As 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.Update(sessionId, operId, operDesc, defRejectRate, checkInv, schedToEntId, operType, operCost, deviationAbove, deviationBelow, assocFile, assocFileType, notes, spare1, spare2, spare3, spare4, lastEditComment, lastEditAt)
public static void Update(
int sessionId,
string operId,
DBString operDesc,
DBDouble defRejectRate,
bool checkInv,
DBInt schedToEntId,
DBString operType,
DBDouble operCost,
double deviationAbove,
double deviationBelow,
DBString assocFile,
DBString assocFileType,
DBString notes,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
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 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 updating 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
- 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.