Class SerialNumberAllocation
Describes a serial number allocation to a job activity.
Inherited Members
Namespace: Moraware.JobTrackerAPI5
Assembly: JobTrackerAPI5.dll
Syntax
public class SerialNumberAllocation : Allocation
Constructors
SerialNumberAllocation(Int32, Int32)
Used to delete serial number allocations, or to update serial number allocations (using JobActivityMaterial).
Declaration
public SerialNumberAllocation(int jobActivityId_, int serialNumberId_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | jobActivityId_ | Identifies the job activity. |
| System.Int32 | serialNumberId_ | Identifies the serial number. |
SerialNumberAllocation(Int32, Int32, Decimal)
Used to create or update a serial number allocation.
Declaration
public SerialNumberAllocation(int jobActivityId_, int serialNumberId_, decimal quantity_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | jobActivityId_ | Identifies the job activity. |
| System.Int32 | serialNumberId_ | Identifies the serial number. |
| System.Decimal | quantity_ | Quantity to be allocated. |
SerialNumberAllocation(Int32, String)
Used to Create or delete a serial number allocation.
Declaration
public SerialNumberAllocation(int jobActivityId_, string serialNumberName_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | jobActivityId_ | Identifies the job activity. |
| System.String | serialNumberName_ | Identifies the serial number (by name). |
SerialNumberAllocation(Int32, String, Decimal)
Used to create or update a serial number allocation.
Declaration
public SerialNumberAllocation(int jobActivityId_, string serialNumberName_, decimal quantity_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | jobActivityId_ | Identifies the job activity. |
| System.String | serialNumberName_ | Identifies the serial number (by name). |
| System.Decimal | quantity_ | Quantity to be allocated. |
Properties
SerialNumberId
Identifies the serial number. If this object was created without a serial number id (i.e. it was created by name) this value will be zero (0).
Declaration
public int SerialNumberId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
SerialNumberName
Name of the serial number.
Declaration
public string SerialNumberName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |