GetProdQtys Method
- Last UpdatedNov 06, 2025
- 2 minute read
The GetProdQtys() method retrieves item production good quantity and rejected quantity for the current shift.
'Declaration
Public Shared Function GetProdQtys( _
ByVal entId As Nullable(Of Integer), _
ByVal shiftStartTime As Nullable(Of Date), _
ByVal woId As String, _
ByVal operId As String, _
ByVal seqNo As Nullable(Of Integer), _
ByVal userId As String _
) As DataSet
'Usage
Dim entId As Nullable(Of Integer)
Dim shiftStartTime As Nullable(Of Date)
Dim woId As String
Dim operId As String
Dim seqNo As Nullable(Of Integer)
Dim userId As String
Dim value As DataSet
value = ItemProd.GetProdQtys(entId, shiftStartTime, woId, operId, seqNo, userId)
public static DataSet GetProdQtys(
Nullable<int> entId,
Nullable<DateTime> shiftStartTime,
string woId,
string operId,
Nullable<int> seqNo,
string userId
)
Parameters
- entId
- Optional. Holds the ID of the entity on which the job that produced an item is running.
- shiftStartTime
- Optional filter parameter. Holds the start time of the shift during which an item was produced (universal time).
- woId
- Optional filter parameter. Holds the work order ID for identifying the job that produced an item.
- operId
- Optional filter parameter. Holds the operation ID for identifying the job that produced an item.
- seqNo
- Optional filter parameter. Holds the operation sequence number for identifying the job that produced an item.
- userId
- Optional filter parameter. Holds the ID of the user who ran the job that produced an item.
Return Value
Returns a DataSet that containing the good quantity and rejected quantity of the item produced for the current shift. If no matching records are found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
|
Column Name |
Description |
|---|---|
|
good_qty |
A double that is the good quantity of the item produced in the current shift. |
|
reject_qty |
A double that is the quantity of the item rejected in the current shift. |