Table of Contents

Class MaintenanceWorkOrder

Namespace
Geotab.Checkmate.ObjectModel.Maintenance
Assembly
Geotab.Checkmate.ObjectModel.dll

Maintenance Work Order for a particular device.

public class MaintenanceWorkOrder : Entity, IEntity, IComparable, IIdentifiable, IDeviceProvider, IDateTimeProvider
Inheritance
MaintenanceWorkOrder
Implements
Inherited Members

Constructors

MaintenanceWorkOrder()

Initializes a new instance of the Entity class. Initializes a new instance of the Entity class.

public MaintenanceWorkOrder()

MaintenanceWorkOrder(Id)

Initializes a new instance of the MaintenanceWorkOrder class.

public MaintenanceWorkOrder(Id id)

Parameters

id Id

The id

MaintenanceWorkOrder(Id?, Device?, DateTime?, string?, DateTime?, MaintenancePriority?, string?, DateTime?, double?, double?, double?, double?, double?, string?, User?, Currency?, long?, TimeSpan?, DateTime?, Zone?, int?, int?, User?)

Initializes a new instance of the MaintenanceWorkOrder class.Constructor

public MaintenanceWorkOrder(Id? id, Device? device, DateTime? dateTime, string? orderId, DateTime? dueOnDate, MaintenancePriority? priority, string? status, DateTime? updateDateTime, double? totalCost, double? laborCost, double? partsCost, double? taxCost, double? shippingCost, string? notes, User? openedByUser, Currency? costCurrency, long? adjustedOdometer, TimeSpan? adjustedEngineHours, DateTime? closedDateTime, Zone? zone, int? reasonForRepair, int? repairClass, User? assignedTo)

Parameters

id Id

The id

device Device

The device of the work order

dateTime DateTime?

The datetime when the record was created

orderId string

The order identifier

dueOnDate DateTime?

The due date for the work order

priority MaintenancePriority?

The priority of the work order

status string

the status of the work order

updateDateTime DateTime?

The update dateTime of the work order

totalCost double?

The total cost of the work order

laborCost double?

The labor cost of the work order

partsCost double?

The parts cost of the work order

taxCost double?

The tax cost of the work order

shippingCost double?

The shipping cost of the work order

notes string

The notes of the work order

openedByUser User

The user that created the work order

costCurrency Currency?

The cost currency

adjustedOdometer long?

The adjusted odometer of the device

adjustedEngineHours TimeSpan?

The adjusted engine hours of the device

closedDateTime DateTime?

The datetime when the record was closed

zone Zone

The zone

reasonForRepair int?

The reason for repair of the work order

repairClass int?

The repair class of the work order

assignedTo User

The user assigned to the work order

Properties

AdjustedEngineHours

Gets or sets the adjusted engine hours of the Device.

public TimeSpan? AdjustedEngineHours { get; set; }

Property Value

TimeSpan?

TimeSpan

AdjustedOdometer

Gets or sets the adjusted odometer of the Device.

public long? AdjustedOdometer { get; set; }

Property Value

long?

long

AssignedTo

Gets or sets the User assigned to the MaintenanceWorkOrder.

public User? AssignedTo { get; set; }

Property Value

User

User

ClosedDateTime

Gets or sets the date the MaintenanceWorkOrder was closed.

public DateTime? ClosedDateTime { get; set; }

Property Value

DateTime?

DateTime

CostCurrency

Gets or sets the currency cost for the MaintenanceWorkOrder.

public Currency? CostCurrency { get; set; }

Property Value

Currency?

Currency

DateTime

Gets or sets the date the MaintenanceWorkOrder was created.

public DateTime? DateTime { get; set; }

Property Value

DateTime?

DateTime

Device

Gets or sets the device of the MaintenanceWorkOrder.

public Device? Device { get; set; }

Property Value

Device

Device

DueOnDate

Gets or sets the date the MaintenanceWorkOrder is due.

public DateTime? DueOnDate { get; set; }

Property Value

DateTime?

DateTime

JobCount

Gets or sets the number of MaintenanceWorkOrderJob(s) in the MaintenanceWorkOrder

public int? JobCount { get; set; }

Property Value

int?

int

LaborCost

Gets or sets the labor cost of the MaintenanceWorkOrder.

public double? LaborCost { get; set; }

Property Value

double?

double

MediaFiles

Gets or sets the list of MediaFile of the MaintenanceWorkOrder.

public List<MediaFile> MediaFiles { get; set; }

Property Value

List<MediaFile>

MediaFile

Notes

Gets or sets the notes of the MaintenanceWorkOrder.

public string? Notes { get; set; }

Property Value

string

string

OpenedByUser

Gets or sets the User that opened the MaintenanceWorkOrder.

public User? OpenedByUser { get; set; }

Property Value

User

User

OrderId

Gets or sets the identifier of the order.

public string? OrderId { get; set; }

Property Value

string

string

PartsCost

Gets or sets the parts cost of the MaintenanceWorkOrder.

public double? PartsCost { get; set; }

Property Value

double?

double

Priority

Gets or sets the priority of the MaintenanceWorkOrder.

public MaintenancePriority? Priority { get; set; }

Property Value

MaintenancePriority?

string

ReasonForRepair

Gets or sets the Reason For Repair of the MaintenanceWorkOrder.

public int? ReasonForRepair { get; set; }

Property Value

int?

int

RepairClass

Gets or sets the "Repair Class of the MaintenanceWorkOrder.

public int? RepairClass { get; set; }

Property Value

int?

int

ShippingCost

Gets or sets the shipping cost of the MaintenanceWorkOrder.

public double? ShippingCost { get; set; }

Property Value

double?

double

Status

Gets or sets the status of the MaintenanceWorkOrder. Possible values case insensitive: {Open, Scheduled, InProgress, OnHold, Completed, Closed}.

public string? Status { get; set; }

Property Value

string

string

TaxCost

Gets or sets the tax cost of the MaintenanceWorkOrder.

public double? TaxCost { get; set; }

Property Value

double?

double

TimeOpen

Gets or sets the period during which the MaintenanceWorkOrder was open.

public TimeSpan? TimeOpen { get; set; }

Property Value

TimeSpan?

TimeSpan

TotalCost

Gets or sets the total cost of the MaintenanceWorkOrder.

public double? TotalCost { get; set; }

Property Value

double?

double

UpdateDateTime

Gets or sets the update date of the MaintenanceWorkOrder.

public DateTime? UpdateDateTime { get; set; }

Property Value

DateTime?

DateTime

Zone

Gets or sets the Zone of the MaintenanceWorkOrder.

public Zone? Zone { get; set; }

Property Value

Zone

Zone

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override IEntity Clone()

Returns

IEntity

A new object that is a copy of this instance.