Methods
-
Appearition.Part.Manage.AddPart (request, requestOptions)Appearition.Part.Manage.PartViewModel static
Will create a new Part record and echo back the saved part record with the system allocated unique identifier.
-
Name Type Description requestAppearition.Part.Manage.AddPartViewModel Contains the details of the new Part being added
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Part.Manage.PartViewModel The saved record with the system allocated Id. This is returned as part of the success callback function in the requestOptions param -
Will delete an existing Part record.
-
Name Type Description requestAppearition.Part.Manage.UpdatePartViewModel Contains the details of the Part
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
-
Appearition.Part.Manage.GetPartners (requestOptions)Appearition.Part.Manage.GetPartnersResponseViewModel static
This method will return various lists required to manage a part It will return a Appearition.Part.Manage.GetPartnersResponseViewModel object
-
Name Type Description requestOptionsAppearition.RequestOptions configure callbacks
Returns:
Type Description Appearition.Part.Manage.GetPartnersResponseViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Part.Manage.ListParts (partName, partCategoryId, page, pageSize, requestOptions)Array.<Appearition.Part.Manage.PartViewModel> static
Performs a search on parts in the database and retrieve results Will return a collection of Appearition.Part.Manage.PartViewModel objects
-
Name Type Description partNamestring Partial text to look for as the name of the part
partCategoryIdnumber Option value if you want to limit a search to within a category only
pagenumber Used for paging results. The results page number you want to retrieve. Zero based index.
pageSizenumber Specific how many records per page you want to return.
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Array.<Appearition.Part.Manage.PartViewModel> This is returned as part of the success callback function in the requestOptions param -
Will update the details of an existing Part record. Nothing will be returned unless an error occurs.
-
Name Type Description requestAppearition.Part.Manage.UpdatePartViewModel Contains the details of the Part
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Type Definitions
-
This data structure is posted to the server when adding a new part to the system.
-
Properties:
Name Type Description Namestring The name of the part. Required.
Descriptionstring Describes the part in some detail. Optional.
PricePerUnitnumber A dollar value for each instance of the part. The context is requirement dependent. Optional.
-
List of different types of intervals for a reminder
-
Properties:
Name Type Description Beforenumber 1801
Afternumber 1802
-
This data structure holds various lists of data that must be used when creating or editing the details of a part
-
Properties:
Name Type Description ManufacturersArray.<Appearition.ListItemViewModel> A collection of available manufacturers of parts
ManufacturerModelsArray.<Appearition.Part.Manage.ManufacturerModelListItem> A collection of models that each manufacturer makes
SuppliersArray.<Appearition.ListItemViewModel> A collection of suppliers of parts
RepairersArray.<Appearition.ListItemViewModel> A collection of repairers of parts
CategoriesArray.<Appearition.ListItemViewModel> A collection of categories that parts can be grouped under
-
This data model represents a model that a manufacturer makes. It extends the Appearition.ListItemViewModel model and adds an extra field to link the manufacturer to the model.
-
Properties:
Name Type Description Idnumber The unique identifier for the list item
Namestring This presents the model of the part that the manufacturer has
ManufacturerIdnumber The unique identifier of the manufacturer
-
Represents a category that a part is grouped under. It is actually a link record between parts and categories
-
Properties:
Name Type Description Idnumber Uniquely identifies the link record in the database. System allocated.
PartIdnumber Uniquely identifies the Part
CategoryIdnumber Uniquely identifies the Category
CategoryNamestring The name of Category
-
A reminder is a scheduled event which will notify someone when the event occurs for the part. For instance, warranty is due for expiry.
-
Properties:
Name Type Description PartIdnumber Uniquely identifies the Part
FirstReminderDateTypeAppearition.Part.Manage.ReminderDateTypeEnum Relates to the first reminder. It is the numerical value of the ReminderDateTypeEnum. (e.g. PurchaseDate)
FirstReminderDateIntervalTypeAppearition.Part.Manage.FirstReminderDateIntervalTypeEnum Relates to the first reminder. It is the numerical value of the FirstReminderDateIntervalTypeEnum (e.g. before)
FirstReminderDateIntervalRecurranceTypeAppearition.Part.Manage.RecurranceEnum Relates to the first reminder. It is the numerical value of the RecurranceEnum (e.g. days).
FirstReminderDateIntervalnumber Relates to the first reminder. Is the number of days, weeks, etc (i.e. FirstReminderDateIntervalRecurranceType) before or after (i.e. FirstReminderDateIntervalType) the date of reminder (i.e. FirstReminderDateType)
StopDatestring If the reminders are recurring, this is the date when the event notifications should stop
Commentsstring The text that is sent as part of the notification
IsEmailReminderboolean Indicates if the notification should be made via email
IsExceptionItemRaisedboolean Indicates if an asset exception record should be created for this event
ReminderEmailsstring If IsEmailReminder=true, this holds a comma separated list of email addresses that need to receive the notification
RecurranceTypeAppearition.Part.Manage.RecurranceEnum Relates to repeating reminders and indicates whether they happen daily, weekly, etc. It is the numerical value of the RecurranceEnum.
IsOnceboolean Indicates if only one reminder should be made
RecurranceValuenumber If this reminder needs to repeat, this holds the number of times the reminders will happen per RecurranceType. (e.g. repeat every 3 days)
DefaultPartInstanceReminderboolean Is used when creating or editing reminders. If set to true, then this reminder will be automatically assigned to each new instance of this part in the asset database.
UpdatePartInstanceReminderboolean Is used when creating or editing reminders. If set to true, then the system will automatically update ALL existing instances of this part and set the reminder on them.
-
Represents a Part and all of the details
-
Properties:
Name Type Description Idnumber The unique identifier for the Part. This is system generated
Namestring The name of the Part
Descriptionstring Text that describes the part
TotalRecordsnumber The total number of parts found in the search that this specific record came from.
PricePerUnitnumber This represents a dollar value for each unit. The context of this dollar value will vary in different applications
RemindersArray.<Appearition.Part.Manage.PartReminder> A collection of scheduled event notifications for the part.
ManufacturersArray.<Appearition.Part.PartManufacturerViewModel> A collection of scheduled event notifications for the part.
CategoriesArray.<Appearition.Part.Manage.PartCategoryViewModel> A collection of scheduled event notifications for the part.
-
List of different periods that reminders should recur in.
-
Properties:
Name Type Description Daysnumber 1501
Weeksnumber 1502
Monthsnumber 1503
Yearsnumber 1504
-
The various dates that part reminders should refer to
-
Properties:
Name Type Description PurchaseDatenumber 1601
ExpiryDatenumber 1602
DatabaseRecordCreationDatenumber 1603
-
Represents a Part and all of the details. It is used for requests to modify the details of a part
-
Properties:
Name Type Description Idnumber The unique identifier for the Part. This is system generated
Namestring The name of the Part
Descriptionstring Text that describes the part
PricePerUnitnumber This represents a dollar value for each unit. The context of this dollar value will vary in different applications