Class JobActivityMaterial
Wraps the material of a particular type (i.e. PurchaseProductVariant) allocated to a job activity.
Inherited Members
Namespace: Moraware.JobTrackerAPI5
Assembly: JobTrackerAPI5.dll
Syntax
public class JobActivityMaterial : JTObject
Constructors
JobActivityMaterial(Int32, PurchaseProductVariant)
Used to create or update job activity material (by specifying a job activity and purchase product variant).
Declaration
public JobActivityMaterial(int jobActivityId_, PurchaseProductVariant purchaseProductVariant_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | jobActivityId_ | Identifies the job activity. |
| PurchaseProductVariant | purchaseProductVariant_ | Identifies the purchase product variant. |
JobActivityMaterial(Int32, Int32)
Used to create, update or delete job activity material (by specifying a job activity and purchase product variant).
Declaration
public JobActivityMaterial(int jobActivityId_, int purchaseProductVariantId_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | jobActivityId_ | Identifies the job activity. |
| System.Int32 | purchaseProductVariantId_ | Identifies the purchase product variant. |
Properties
JobActivityId
Identifies the job activity.
Declaration
public int JobActivityId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
JobActivityTypeId
Identifies the job activity type.
Declaration
public int JobActivityTypeId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
JobActivityTypeName
Name of the job activity type.
Declaration
public string JobActivityTypeName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
JobId
Identifies the job.
Declaration
public int JobId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
JobName
Name of the job.
Declaration
public string JobName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
PurchaseProductVariantAllocation
The unserialized allocation for this job activity and purchase product variant.
Declaration
public PurchaseProductVariantAllocation PurchaseProductVariantAllocation { get; }
Property Value
| Type | Description |
|---|---|
| PurchaseProductVariantAllocation |
PurchaseProductVariantId
Identifies the purchase product variant.
Declaration
public int PurchaseProductVariantId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
PurchaseProductVariantName
Name of the purchase product variant.
Declaration
public string PurchaseProductVariantName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
SerialNumberAllocations
List of serial number allocations for this job activity and purchase product variant.
Declaration
public SerialNumberAllocationContainer SerialNumberAllocations { get; }
Property Value
| Type | Description |
|---|---|
| SerialNumberAllocationContainer |
Methods
AddSerialNumberAllocation(Int32, Decimal)
Adds a serial number allocation to this job activity material object.
Declaration
public void AddSerialNumberAllocation(int serialNumberId_, decimal quantity_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | serialNumberId_ | Identifies the serial number to be allocated. |
| System.Decimal | quantity_ | The quantity of the given serial number to be allocated. |
AddSerialNumberAllocation(String, Decimal)
Adds a serial number allocation to this job activity material object.
Declaration
public void AddSerialNumberAllocation(string serialNumberName_, decimal quantity_)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | serialNumberName_ | Identifies the serial number to be allocated. |
| System.Decimal | quantity_ | The quantity of the given serial number to be allocated. |