Click or drag to resize

BatchServices Class

Provides services which allow API consumers to access, create, and manage production and receiving Batches.
Inheritance Hierarchy
SystemObject
  xTendServicesBase
    FactoryLogix.xTend.ProductionBatchServices

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public class BatchServices : xTendServicesBase

The BatchServices type exposes the following members.

Constructors
  NameDescription
Public methodBatchServices
Initializes a new instance of the BatchServices class
Top
Methods
  NameDescription
Public methodAddBatchToOrder
Associates an existing Batch to an existing WorkOrder. The type of the Batch must match the type of the WorkOrder. So, for example, only Receiving Batches may be associated to Receiving type WorkOrders, etc.
Public methodCreateBatch
Creates a new production or receiving batch (GRN). If the type of the new batch is BatchType.Production, then the ProcessId property must align with a valid production process for the new Batch. If the type of the new batch is BatchType.Receiving, then the ProcessId property must align with a valid receiving process for the new Batch.
Public methodCreateWorkOrder
Creates a new production or receiving work order (GRN). If the type of the new batch is WorkOrderType.Production, then the ProcessId property must align with a valid production process for the new Batch.
Public methodDeleteBatch
Deletes a Batch given its 123-bit unique identifier (Id property). Batches may not be deleted if there are production units, or materials associated with them, or if their are any tracking history records recorded against them.
Public methodDeleteWorkOrder
Deletes a WorkOrder given its 123-bit unique identifier (Id property). WorkOrders may not be deleted if there are production units, batches, or materials associated with them, or if their are any tracking history records recorded against them.
Public methodExecuteApprovalItemAction
Approves or Rejects an approval item on behalf of a particular user. This method may also be used to change the current status of the from under construction to pending approval, or vice versa.
Public methodFindBatchByName
Finds an existing Batch given its name (which must be unique within the system). Returns null if the specified order cannot be found.
Public methodFindBatches
Searches the system for Batches matching the specified search criteria.
Public methodFindWorkOrderByNumber
Finds an existing WorkOrder given its order number (which must be unique within the system). Returns null if the specified order cannot be found.
Public methodGetBatchApproval
Retrieves a list of the approvals associated with the specified Batch. This includes the historical records of actions taken by individual users against these approvals.
Public methodRemoveBatchFromOrder
Disassociates an existing Batch from an existing WorkOrder. If the specified Batch is not currently associated with the specified WorkOrder, no changes will be made, and no exceptions are thrown.
Public methodUpdateBatch
Updates the editable properties of an existing Batch, such as priorty, status, etc..
Public methodUpdateWorkOrder
Updates the editable properties of an existing WorkOrder, such as status, etc..
Public methodUpdateWorkOrderLineItems
Creates or updates the line items associated with a particular material purchase order (represented by a WorkOrder of type ReceivingOrder). Any existing line items will be deleted when this method is called, and replaced by the specified line items.
Top
See Also