JobFromStdOp Constructor
- Last UpdatedNov 06, 2025
- 2 minute read
The JobFromStdOp() method is the constructor for the JobExec class. It sets all fields for a new job.
'Declaration
Public Function New( _
ByVal stdOperId As String, _
ByVal operId As String, _
ByVal seqNo As Integer, _
ByVal entId As Integer, _
ByVal jobDesc As String, _
ByVal displaySeq As Integer, _
ByVal qtyAtStart As Double, _
ByVal qtyReqd As Double, _
ByVal stateCd As JobStateCode _
)
'Usage
Dim stdOperId As String
Dim operId As String
Dim seqNo As Integer
Dim entId As Integer
Dim jobDesc As String
Dim displaySeq As Integer
Dim qtyAtStart As Double
Dim qtyReqd As Double
Dim stateCd As JobStateCode
Dim instance As New JobFromStdOp(stdOperId, operId, seqNo, entId, jobDesc, displaySeq, qtyAtStart, qtyReqd, stateCd)
public JobFromStdOp(
string stdOperId,
string operId,
int seqNo,
int entId,
string jobDesc,
int displaySeq,
double qtyAtStart,
double qtyReqd,
JobStateCode stateCd
)
Parameters
- stdOperId
- Required. Holds the standard operation from which this job is being created.
- operId
- Required. Holds the operation for the new job.
- seqNo
- Required. Holds the sequence number for the new job.
- entId
- Required. Holds the ID of the entity that is linked to this standard operation.
- jobDesc
- Required. Holds the description for the new job.
- displaySeq
- Required. Holds the sequence of jobs independent of the operation ID.
- qtyAtStart
- Required. Holds the quantity expected to be produced if there is no scrap, waste, or rejects for the job.
- qtyReqd
- Required. Holds the quantity that is required to be produced before the job can be completed.
- stateCd
- Required. Holds the default state code for the job.