Namespace: Manufacturer

Appearition.Part.Manufacturer

Use the functions under this module to create, change and remove part manufacturer records on the Appearition platform

Methods

Appearition.Part.Manufacturer.AddManufacturerToPart (request, requestOptions)Appearition.Part.PartManufacturerViewModel static

Will link an existing manufacturer to an existing Part

Name Type Description
request Appearition.Part.Manufacturer.AddManufacturerToPartViewModel

Contains the identifiers of the Part and Manufacturer

requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Returns:
Type Description
Appearition.Part.PartManufacturerViewModel The saved record with the system allocated Id. This is returned as part of the success callback function in the requestOptions param

Appearition.Part.Manufacturer.AddNewManufacturerToPart (request, requestOptions)Appearition.Part.PartManufacturerViewModel static

Will add a new manufacturer to an existing Part

Name Type Description
request Appearition.Part.Manufacturer.AddNewManufacturerToPartViewModel

Contains the details of the new Part being added

requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Returns:
Type Description
Appearition.Part.PartManufacturerViewModel The saved record with the system allocated Id. This is returned as part of the success callback function in the requestOptions param

Appearition.Part.Manufacturer.GetPartManufacturersAndModels (requestOptions)Appearition.Part.Manage.PartViewModel static

Retrieves the list of all manufacturers and the models they make Will return the Appearition.Part.Manufacturer.PartViewModel model

Name Type Description
requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Returns:
Type Description
Appearition.Part.Manage.PartViewModel This is returned as part of the success callback function in the requestOptions param

Appearition.Part.Manufacturer.RemoveManufacturerFromPart (request, requestOptions) static

Will unlink the manufacturer from the part record.

Name Type Description
request Appearition.Part.PartManufacturerViewModel

Contains the details of the part manufacturer

requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Appearition.Part.Manufacturer.UpdateManufacturer (request, requestOptions) static

Will update the details of an existing manufacturer record. Nothing will be returned unless an error occurs.

Name Type Description
request Appearition.Part.PartManufacturerViewModel

Contains the details of the part manufacturer

requestOptions Appearition.RequestOptions

Contains the various callback methods for this request

Type Definitions

Appearition.Part.Manufacturer.AddManufacturerToPartViewModel

This data structure is posted to the server when linking an existing manufacturer to an existing part.

Properties:
Name Type Description
PartId number

Uniquely identifies the part

ManufacturerId number

Uniquely identifies the manufacturer

Appearition.Part.Manufacturer.AddNewManufacturerToPartViewModel

This data structure is posted to the server when adding a new manufacturer to an existing part.

Properties:
Name Type Description
PartId number

Uniquely identifies the part

ManufacturerName string

The name of the new manufacturer