Methods
-
Creates a new job on the system. This successful request will return the JobId of the newly created record
-
Name Type Description requestAppearition.Job.Manage.JobListItemViewModel Contains the details about the job to be created
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description number The ID of the newly created Job record. This is returned as part of the success callback function in the requestOptions param -
Appearition.Job.Manage.GetJob (request, requestOptions)Appearition.Job.Manage.JobListItemViewModel static
Retrieves a specific job for the given JobId. Will return an Appearition.Job.Manage.JobListItemViewModel object
-
Name Type Description requestAppearition.Job.Manage.JobListItemViewModel Contains the identifiers for retrieving the required records. Note only the JobId field is used server side to retrieve the record
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Job.Manage.JobListItemViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Job.Manage.Index (jobAssignmentId, requestOptions)Appearition.Job.Manage.JobIndexViewModel static
This method will return various data for setting up the index page of a job assignment. It will return a Appearition.Job.Manage.JobIndexViewModel object
-
Name Type Description jobAssignmentIdnumber The unique identifier of the Job assignment
requestOptionsAppearition.RequestOptions configure callbacks
Returns:
Type Description Appearition.Job.Manage.JobIndexViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Job.Manage.ListJobs (request, requestOptions)Array.<Appearition.Job.Manage.JobListItemViewModel> static
Retrieves a filtered list of jobs from the server based on the search criteria provided as part of the request param. Will return a collection of Appearition.Job.Manage.JobListItemViewModel
-
Name Type Description requestAppearition.Job.Manage.JobPagingViewModel Contains the identifiers for retrieving the required records
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Array.<Appearition.Job.Manage.JobListItemViewModel> This is returned as part of the success callback function in the requestOptions param -
Saves changes to the job. Nothing will be returned unless an error occurs
-
Name Type Description requestAppearition.Job.Manage.JobListItemViewModel Contains the information of the job to be changed
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Type Definitions
-
This is the data structure to send as part of the Appearition.Job.Manage.GetJobFormData method
-
Properties:
Name Type Description JobsArray.<Appearition.Job.Manage.JobListItemViewModel> A collection of jobs from a search. This will be initially populated with a paged set of job assignments
JobAppearition.Job.Manage.JobListItemViewModel An empty job record that can be used to populate a new job
PagingAppearition.Job.Manage.JobPagingViewModel This data model allows configuration of job searches
SitePagingAppearition.Job.Manage.SitePagingViewModel This data model allows configuration of site searches
UserPagingAppearition.Job.Manage.UserPagingViewModel This data model allows configuration of user searches
SitesArray.<Appearition.Job.Manage.SiteListItemViewModel> This collection can be used to hold any results from a site search
UsersArray.<Appearition.Job.Manage.UserListItemViewModel> This collection can be used to hold any results from a Users search
IsReadOnlyboolean Identifies if the logged in user can make changes to the job assignment or if it is read only
PdfTemplatesArray.<Appearition.SelectListItem> A collection of templates that can be used to generate a custom formatted report for submissions of a job
-
A data structure that represents a job in a search result.
-
Properties:
Name Type Description TotalRecordsnumber The total number of jobs found in the search that this specific record came from.
JobNostring An identifier assigned to the job.
JobIdnumber The unique identifier for the job (system allocated).
PTWstring An identifier assigned to the job.
TroubleTicketstring An identifier assigned to the job.
PurchaseOrderNostring An identifier assigned to the job.
Commentsstring Holds a description of the job.
SiteIdsArray.<number> A job can be allocated to one or many Sites. This collection holds the unique identifier for each allocated site. When a job is allocated to a site, it is referred to as a job assignment.
SiteNostring Can be used in the UI to hold the SiteNo of a site. Not used server side.
SiteNamestring Can be used in the UI to hold the name of a site. Not used server side.
SitesArray.<Appearition.Job.Manage.JobSiteViewModel> A summary collection of allocated sites for a selected job
AssigneeUsernamestring The unique login of the user allocated to the job.
AssigneeFirstNamestring The first name of the user allocated to the job.
AssigneeLastNamestring The last name of the user allocated to the job.
ScheduledStartUtcDateDisplaystring The date time when the job is scheduled to start (format d/MM/yy). Note, whilst the field name has UTC in it, the server side is actually converting the date time to Melbourne, Australia time (AEST)
ScheduledEndUtcDateDisplaystring The date time when the job is scheduled to end (format d/MM/yy). Note, whilst the field name has UTC in it, the server side is actually converting the date time to Melbourne, Australia time (AEST)
JobAssignedUtcDateDisplaystring The date time when the job was created (format d/MM/yy HH:mm). Note, whilst the field name has UTC in it, the server side is actually converting the date time to Melbourne, Australia time (AEST)
AssignerUsernamestring The unique login of the user who created the job.
AssignerFirstNamestring The first name of the user who created the job.
AssignerLastNamestring The last name of the user who created the job.
JobStatusAppearition.Job.JobStatusEnum The numeric version of the status of the job, refer to the JobStatusEnum for options
JobStatusNamestring The name of the status of the job, refer to the JobStatusEnum for options
CanReviewboolean Indicates if the job is in a state that can be reviewed
ScheduledStartUtcDatestring The actual scheduled start date of the job as a UTC field. This value will differ from ScheduledStartUtcDateDisplay.
ScheduledEndUtcDatestring The actual scheduled end date of the job as a UTC field. This value will differ from ScheduledEndUtcDateDisplay.
DefaultPdfTemplateNamestring The selected template that will be used to generate a job report for submissions
JobAssignmentsArray.<Appearition.Job.Manage.JobAssignmentListItemViewModel> A collection of job assignments for the job
CanEditboolean Always set to TRUE. Only used for UI purposes. The server will always ensure only the correct user can make changes to a job
IsExpandedboolean Used for UI purposes only. A job which has many sites allocated can be displayed expanded to show the site or collapsed for a more compact view
-
Data model holds all of the fields used to perform searches on the server for job records
-
Properties:
Name Type Description JobNostring An identifier assigned to the job.
PTWstring An identifier assigned to the job.
TroubleTicketstring An identifier assigned to the job.
PurchaseOrderNostring An identifier assigned to the job.
SiteNostring An identifier of a site
SiteNamestring The name of a site
SiteStatusTextstring The name of the site status
SiteStatusAppearition.Site.SiteStatusEnum The numeric version of the site status
AssigneeUsernamestring The unique login of the user allocated to the job.
AssigneeFirstNamestring The first name of the user allocated to the job.
AssigneeLastNamestring The last name of the user allocated to the job.
ScheduledStartUtcDatestring The actual scheduled start date of the job as a UTC value.
ScheduledStartUtcDateDisplaystring The actual scheduled start date of the job as a UTC value. The date format is (dd/MM/yyyy)
ScheduledEndUtcDatestring The actual scheduled end date of the job as a UTC value.
ScheduledEndUtcDateDisplaystring The actual scheduled end date of the job as a UTC value. The date format is (dd/MM/yyyy)
Pagenumber The page number of result set (zero based index)
RecordsPerPagenumber The total number of results per page that the server will retrieve
SiteStatusListArray.<Appearition.SelectListItem> A list of site statuses to show on the view to allow a user to choose from.
-
Data model holds summary information for a site
-
Properties:
Name Type Description Idnumber The unique identifier of a site. As system generated value
SiteNostring An identifier of a site
SiteNamestring The name of a site
ShelterTypeNamestring The name of the Shelter Type property of the site
MainsHybridGensetNamestring A property of the site
SiteStatusAppearition.Site.SiteStatusEnum The numeric version of the site status
SiteStatusNamestring The name of the site status
SiteTypestring A property of the site
Housingstring A property of the site
TotalRecordsnumber The total number of records found in the search result set that this record is part of
-
Data model holds all of the fields used to perform searches on the server for site records
-
Properties:
Name Type Description SiteNostring An identifier of a site
SiteNamestring The name of a site
ShelterTypeAppearition.Site.ShelterTypeEnum The numeric version of the shelter type field which is a property of a site
ShelterTypeTextstring The name of the Shelter Type value
Pagenumber The page number of result set (zero based index)
RecordsPerPagenumber The total number of results per page that the server will retrieve
-
Data model holds summary information for a user
-
Properties:
Name Type Description AuthAccountIdnumber The unique identifier of a users authentication account record. This is a system generated value
UserProfileIdnumber The unique identifier of a users profile record. This is a system generated value
Usernamestring The login of a user
FirstNamestring The first name of a user. Searching supports partial word filtering
LastNamestring The first name of a user. Searching supports partial word filtering
EmailAddressstring The email address of the user
Mobilestring The mobile phone number of the user
IsLockedboolean Indicates if the user is locked out of their account
TotalRecordsnumber The total number of records found in the search result set that this record is part of
-
Data model holds all of the fields used to perform searches on the server for user records
-
Properties:
Name Type Description AuthAccountIdnumber The unique identifier of a users authentication account record. This is a system generated value
UserProfileIdnumber The unique identifier of a users profile record. This is a system generated value
Usernamestring The login of a user
FirstNamestring The first name of a user. Searching supports partial word filtering
LastNamestring The first name of a user. Searching supports partial word filtering
Rolestring The name of a role on the system.
RoleTextstring The display name of a role on the system. In most cases this will be the same as Role
IsLockedboolean Indicates if the user is locked out of their account
Pagenumber The page number of result set (zero based index)
RecordsPerPagenumber The total number of results per page that the server will retrieve