Add Method (StdOperStep)
- Last UpdatedNov 06, 2025
- 5 minute read
The Add() method adds a new standard operation step record to the Std_Oper_Step table.
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal operId As String, _
ByVal stepNo As Integer, _
ByVal stepSeq As Integer, _
ByVal stepName As DBString, _
ByVal stepDesc As String, _
ByVal actionType As Nullable(Of Integer), _
ByVal stdTime As Double, _
ByVal completeCond As Nullable(Of Integer), _
ByVal allowBypass As Nullable(Of Boolean), _
ByVal enterData As Nullable(Of Boolean), _
ByVal stepGrpId As Integer, _
ByVal spcChar As DBString, _
ByVal formName As DBString, _
ByVal dataLogGrpId As DBInt, _
ByVal reqdRepPct As Nullable(Of Double), _
ByVal controlType As Nullable(Of Integer), _
ByVal highLimit As DBDouble, _
ByVal lowLimit As DBDouble, _
ByVal limitWarning As Nullable(Of Boolean), _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal spare5 As DBString, _
ByVal spare6 As DBString, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim operId As String
Dim stepNo As Integer
Dim stepSeq As Integer
Dim stepName As DBString
Dim stepDesc As String
Dim actionType As Nullable(Of Integer)
Dim stdTime As Double
Dim completeCond As Nullable(Of Integer)
Dim allowBypass As Nullable(Of Boolean)
Dim enterData As Nullable(Of Boolean)
Dim stepGrpId As Integer
Dim spcChar As DBString
Dim formName As DBString
Dim dataLogGrpId As DBInt
Dim reqdRepPct As Nullable(Of Double)
Dim controlType As Nullable(Of Integer)
Dim highLimit As DBDouble
Dim lowLimit As DBDouble
Dim limitWarning As Nullable(Of Boolean)
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim spare5 As DBString
Dim spare6 As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Date
StdOperStep.Add(sessionId, operId, stepNo, stepSeq, stepName, stepDesc, actionType, stdTime, completeCond, allowBypass, enterData, stepGrpId, spcChar, formName, dataLogGrpId, reqdRepPct, controlType, highLimit, lowLimit, limitWarning, spare1, spare2, spare3, spare4, spare5, spare6, lastEditComment, lastEditAt)
public static void Add(
int sessionId,
string operId,
int stepNo,
int stepSeq,
DBString stepName,
string stepDesc,
Nullable<int> actionType,
double stdTime,
Nullable<int> completeCond,
Nullable<bool> allowBypass,
Nullable<bool> enterData,
int stepGrpId,
DBString spcChar,
DBString formName,
DBInt dataLogGrpId,
Nullable<double> reqdRepPct,
Nullable<int> controlType,
DBDouble highLimit,
DBDouble lowLimit,
Nullable<bool> limitWarning,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
DBString spare5,
DBString spare6,
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 operation to which the step belongs.
- stepNo
- Required. Holds the number of the operation step.
- stepSeq
Required. Holds the sequence to perform the operation steps. If the sequence is same, steps can be done concurrently.
- stepName
Optional. Holds the name of the operation step.
- stepDesc
Required. Holds the description for the operation step.
- actionType
Optional. Holds an integer that indicates the action to be performed in this step.
0 = Normal (the default)
1 = Log data
2 = Add production
3 = Add consumption
4 = Operator acknowledge
5 = Enter from data
6 = Enter SPC data
- stdTime
Required. Holds the standard time for this step.
- completeCond
Optional. Holds an integer that indicates the condition to complete this step.
2 = Standard time elapses
3 = Operator completes manually (the default)
4 = Message is dismissed (only if actionType is equal to 4)
- allowBypass
Optional. Holds a flag that, if set to true, specifies that the user can bypass this step. The default is false.
- enterData
Optional. Holds a flag that, if set to true, specifies that the data entry is required at this step. The default is false.
- stepGrpId
Required. Holds the ID of the step group.
- spcChar
Optional. Holds the SPC characteristic to be collected at this step.
- formName
Optional. Holds the name of the form for this step.
- dataLogGrpId
Optional. Holds the ID of the data log group for this step.
- reqdRepPct
Optional. Holds the percentage of lots or sublots for the step, if max_lot_size or max_sublot_size is equal to 1 and the step group is repeatable. The default is 0.
- controlType
Optional. Holds an integer that indicates the control type.
0 = text box, for storing any string (the default)
1 = text box, for storing an analog value
2 = text box, for storing a datetime
3 = check box
4 = radio buttons
5 = drop-down list
- highLimit
Optional. Applicable if controlType = 1. Holds the maximum allowable value. The default is null.
- lowLimit
Optional. Applicable if controlType = 1. Holds the minimum allowable value. The default is null.
- limitWarning
Optional. Applicable if controlType = 1. Holds a flag that indicates whether a warning message should be displayed when the limit has been exceeded. If set to true and the entry exceeds the limit, a warning message is displayed but the entry is allowed. If set to false and the entry exceeds the limit, the entry is not allowed. The default is false.
- 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.
- spare5
Optional. Holds the contents of the user-defined spare5 field.
- spare6
Optional. Holds the contents of the user-defined spare6 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, for optimistic concurrency control. 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.