Click or drag to resize

PartServices Methods

The PartServices type exposes the following members.

Methods
  NameDescription
Public methodAddAssociatedUsersAndGroupsToCustomer
Adds Users and/or User Groups to a particular Customer.
Public methodCreateAlternatePartRelationship
Establishes a new alternate part relationship between two internal part definitions.
Public methodCreateCustomer
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.
Public methodCreateManufacturer
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.
Public methodCreateOrUpdatePart
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.
Public methodCreatePart
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.
Public methodCreatePartRelationship
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.
Public methodCreateVendor
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.
Public methodDeleteCustomer
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.
Public methodDeleteManufacturer
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.
Public methodDeletePart
Deletes a part definition.
Public methodDeleteVendor
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.
Public methodFindCustomers
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.
Public methodFindManufacturers
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.
Public methodFindParts
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).
Public methodFindVendors
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.
Public methodGetInternalParts
Retrieves one or more internal part definitions from the FactoryLogix parts database given a random list of part numbers (and revisions, if applicable).
Public methodGetPartAttributeDefinitions
Retrieves the attribute definitions that can be used to apply to a part.
Public methodGetPartAttributes
Retrieves the attribute values (specifications) associated with a particular internal part.
Public methodGetRelatedParts
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.
Public methodRemoveAllAssociatedUsersAndGroupsFromCustomer
Removes all user and user group associations from a single Customer.
Public methodRemoveAssociatedUsersAndGroupsFromCustomer
Removes a particular set of user and user group associations from a single Customer.
Public methodRemovePartAttributeValue
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.
Public methodRemovePartRelationship
Removes a relationship between two part definitions.
Public methodSetPartAttributeValue
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.
Public methodUpdateCustomer
Updates an existing customer definition. If a customer with the specified Id does not exist, a NotFoundException will be thrown.
Public methodUpdateManufacturer
Updates an existing manufacturer definition. If a manufacturer with the specified Id does not exist, a NotFoundException will be thrown.
Public methodUpdatePart
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.
Public methodUpdateVendor
Updates an existing vendor definition. If a vendor with the specified Id does not exist, a NotFoundException will be thrown.
Top
See Also