PartServices Class |
Namespace: FactoryLogix.xTend.PartDefinition
The PartServices type exposes the following members.
Name | Description | |
---|---|---|
PartServices | Initializes a new instance of the PartServices class |
Name | Description | |
---|---|---|
AddAssociatedUsersAndGroupsToCustomer |
Adds Users and/or User Groups to a particular Customer.
| |
CreateAlternatePartRelationship |
Establishes a new alternate part relationship between two internal part definitions.
| |
CreateCustomer |
Creates a new customer definition.
The newCustomerName parameter must not be empty, and must specify a unique name for the new customer.
If a customer with the specified name already exists, a AlreadyExistsException will be thrown.
| |
CreateManufacturer |
Creates a new manufacturer definition.
The newManufacturerName parameter must not be empty, and must specify a unique name for the new manufacturer.
If a manufacturer with the specified name already exists, a AlreadyExistsException will be thrown.
| |
CreateOrUpdatePart |
Creates a new part definition, or updates an existing part definition if the part already exists in the system.
This may be an internal part definition, a customer part, and manufacturer part, or a vendor part.
The kind of part to be created is determined by the object type of the part parameter.
| |
CreatePart |
Creates new part definition. This may be an internal part definition, a customer part, and manufacturer part,
or a vendor part. The kind of part to be created is determined by the object type of the newPart parameter. The
method will fail if the specified part already exists in the system (A AlreadyExistsException will be thrown.
| |
CreatePartRelationship |
Establishes a new relationship between two part definitions of different kinds. The parentPart and relatedPart
parameters must be compatible types, and must have valid Id properties. When creating alternate internal part relationships
(internal part TO internal part), the newly created relationship will have the lowest possible precedence. To establish an
alternate part number relationship with higher precedence, use the CreateAlternatePartRelationship method instead.
| |
CreateVendor |
Creates a new vendor definition.
The newVendorName parameter must not be empty, and must specify a unique name for the new vendor.
If a vendor with the specified name already exists, a AlreadyExistsException will be thrown.
| |
DeleteCustomer |
Deletes a customer definition from the system.
If the customer specified has relationships to other data items (such as part definitions), it may not be deleted.
If a customer with the specified name already exists, a AlreadyExistsException will be thrown.
| |
DeleteManufacturer |
Deletes a manufacturer definition from the system.
If the manufacturer specified has relationships to other data items (such as part definitions), it may not be deleted.
If a manufacturer with the specified name already exists, a AlreadyExistsException will be thrown.
| |
DeletePart |
Deletes a part definition.
| |
DeleteVendor |
Deletes a vendor definition from the system.
If the vendor specified has relationships to other data items (such as part definitions), it may not be deleted.
If a vendor with the specified name already exists, a AlreadyExistsException will be thrown.
| |
FindCustomers |
Retrieves one or more customers based on a search string.
The searchCriteria parameter may contain wildcard ("*") specifiers.
If no wildcard specifiers are used, the searchCriteria must match the customer name exactly (not case sensitive).
A searchCriteria of "*" will return all vendors known to the system.
If not items are found, and empty list is returned and not exceptions are thrown.
| |
FindManufacturers |
Retrieves one or more manufacturers based on a search string.
The searchCriteria parameter may contain wildcard ("*") specifiers.
If no wildcard specifiers are used, the searchCriteria must match the manufacturer name exactly (not case sensitive).
A searchCriteria of "*" will return all manufacturers known to the system.
If not items are found, and empty list is returned and not exceptions are thrown.
| |
FindParts |
Retrieves one or more part definitions from the FactoryLogix parts database.
The flagged, enumerated partKind parameter determines the kind of parts to be retrieved
(InternalPart, ManufacturerPart,
VendorPart, or CustomerPart).
The wildcard specifier "*" may be incorporated into any of the search criterial parameters.
If no wildcard specifiers are used, the search string must exactly match the item sought (not case sensitive).
A wildcard specifier of "*" for the partNumber parameter returns all known parts (filtered by the "kind" parameters).
| |
FindVendors |
Retrieves one or more vendors based on a search string.
The searchCriteria parameter may contain wildcard ("*") specifiers.
If no wildcard specifiers are used, the searchCriteria must match the vendor name exactly (not case sensitive).
A searchCriteria of "*" will return all vendors known to the system.
If not items are found, and empty list is returned and not exceptions are thrown.
| |
GetInternalParts |
Retrieves one or more internal part definitions from the FactoryLogix parts database given a random list of part numbers (and revisions, if applicable).
| |
GetPartAttributeDefinitions |
Retrieves the attribute definitions that can be used to apply to a part.
| |
GetPartAttributes |
Retrieves the attribute values (specifications) associated with a particular internal part.
| |
GetRelatedParts |
Retrieves the definitions of all parts related to the specified parent part.
The kind of related parts can be filtered using the relatedTypes flagged, enumerated parameter.
| |
RemoveAllAssociatedUsersAndGroupsFromCustomer |
Removes all user and user group associations from a single Customer.
| |
RemoveAssociatedUsersAndGroupsFromCustomer |
Removes a particular set of user and user group associations from a single Customer.
| |
RemovePartAttributeValue |
Removes a part attribute from the specified internal part.
If the attribute is not associated to the specified internal part, no changes will be made and no exceptions thrown.
| |
RemovePartRelationship |
Removes a relationship between two part definitions.
| |
SetPartAttributeValue |
Sets the key values of a particular attribute (specification) for a particular internal part.
The nominal, min, and max values may be specified, as well as other settings like the EnforceValue property.
If this attribute presently exists for this part, it's values will be updated. Otherwise, the attribute
will be added to the part's list of attribute values.
| |
UpdateCustomer |
Updates an existing customer definition.
If a customer with the specified Id does not exist, a NotFoundException will be thrown.
| |
UpdateManufacturer |
Updates an existing manufacturer definition.
If a manufacturer with the specified Id does not exist, a NotFoundException will be thrown.
| |
UpdatePart |
Updates an existing part definition.
This may be an internal part definition, a customer part, and manufacturer part, or a vendor part.
The kind of part to be updated is determined by the object type of the part parameter.
The method will fail if the part specified by the part parameter does not presently exist in the system.
Any changes to the CustomFieldValues property of the part will also be committed by this method.
| |
UpdateVendor |
Updates an existing vendor definition.
If a vendor with the specified Id does not exist, a NotFoundException will be thrown.
|