Class Vehicle
Core class which represents a vehicle containing all data
Inheritance
Namespace: Simplic.PlugIn.Logistics
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public abstract class Vehicle : IMultiTenantCompatible
Constructors
| Improve this Doc View SourceVehicle()
Initialize new vehicle
Declaration
public Vehicle()
Properties
| Improve this Doc View SourceAdditionalTechnicalData
Gets or sets the AdditionalTechnicalData of the vehicle
Declaration
public AdditionalTechnicalData AdditionalTechnicalData { get; set; }
Property Value
Type | Description |
---|---|
AdditionalTechnicalData |
Appointments
Gets a list of Appointment instances for the vehicle
Declaration
public IReadOnlyList<Appointment> Appointments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Appointment> |
Bookkeeping
Gets or sets the Bookkeeping information of the vehicle (see Bookkeeping)
Declaration
public Bookkeeping Bookkeeping { get; set; }
Property Value
Type | Description |
---|---|
Bookkeeping |
CarrierContactId
Gets or sets the CarrierContactId
Declaration
public Guid? CarrierContactId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
CreateDateTime
Gets or sets the creation date of the vehicle
Declaration
public DateTime CreateDateTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
DepartmentId
Gets or sets the vehicle department id
Declaration
public Guid? DepartmentId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
DispositionSortingKey
Gets or sets the disposition sorting key
Declaration
public string DispositionSortingKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Equipment
Gets a list of VehicleEquipmentItem instances allocated to the instance
Declaration
public IReadOnlyList<VehicleEquipmentItem> Equipment { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<VehicleEquipmentItem> |
FuelTankCapacity
Declaration
public int FuelTankCapacity { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Id
Gets or sets the unique id / guid of the vehicle
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Location
Gets or sets the location of the vehicle
Declaration
public string Location { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MaintenanceContract
Declaration
public MaintenanceContract MaintenanceContract { get; set; }
Property Value
Type | Description |
---|---|
MaintenanceContract |
MatchCode
Gets or sets the matchcode of the vehicle
Declaration
public string MatchCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MileAge
Gets or sets the mile age of the Vehicle
Declaration
public decimal? MileAge { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> |
MileAgeDate
Gets or sets the date of the mile age
Declaration
public DateTime? MileAgeDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
OperatingHours
Gets or sets the operating hours of the Vehicle
Declaration
public decimal? OperatingHours { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> |
QRCode
Gets or sets the QR-Code sorting key
Declaration
public string QRCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RegistrationCertificate
Gets or sets the RegistrationCertificate of the vehicle (see RegistrationCertificate)
Declaration
public RegistrationCertificate RegistrationCertificate { get; set; }
Property Value
Type | Description |
---|---|
RegistrationCertificate |
RegistrationDocument
Gets or sets the registration document (Fahrzeugbrief)
Declaration
public string RegistrationDocument { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RegistrationDocumentLocationId
Gets or sets the Id of the RegistrationDocumentLocation
Declaration
public Guid? RegistrationDocumentLocationId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
RegistrationPlate
Gets or sets the VehicleRegistrationPlate of the vehicle
Declaration
public VehicleRegistrationPlate RegistrationPlate { get; set; }
Property Value
Type | Description |
---|---|
VehicleRegistrationPlate |
RegistrationPlateId
Gets or sets the unique id of the RegistrationPlate
Declaration
public Guid? RegistrationPlateId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
Remark
Gets or sets the remark
Declaration
public string Remark { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RemovedAppointments
Gets a list of Appointment instances that have been deleted in the lifespan of the instance
Declaration
public IReadOnlyList<Appointment> RemovedAppointments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Appointment> |
RemovedEquipment
Gets a list of VehicleEquipmentItem instances that have been deallocated in the lifespan of the instance
Declaration
public IReadOnlyList<VehicleEquipmentItem> RemovedEquipment { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<VehicleEquipmentItem> |
SelectedTenant
Gets or sets the selected tenant
Declaration
public OrganizationTenant SelectedTenant { get; set; }
Property Value
Type | Description |
---|---|
OrganizationTenant |
State
Gets or sets the State
Declaration
public State State { get; set; }
Property Value
Type | Description |
---|---|
State |
Telematics
Gets the telematic systems
Declaration
public ICollection<VehicleTelematic> Telematics { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<VehicleTelematic> |
TenantId
Gets of sets the TenantId
Declaration
public Guid TenantId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Tenants
Gets or sets a list of available tenants
Declaration
public ObservableCollection<OrganizationTenant> Tenants { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<OrganizationTenant> |
Toll
Declaration
public Toll Toll { get; set; }
Property Value
Type | Description |
---|---|
Toll |
Type
Gets the current type implementation
Declaration
public virtual VehicleType Type { get; }
Property Value
Type | Description |
---|---|
VehicleType |
TypeId
Gets the unique identifier of the current type
Declaration
public Guid TypeId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
UpdateDateTime
Gets or sets the last update date of the vehicle
Declaration
public DateTime UpdateDateTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
VehicleInsurances
Declaration
public StatefulCollection<VehicleInsurance> VehicleInsurances { get; set; }
Property Value
Type | Description |
---|---|
StatefulCollection<VehicleInsurance> |
VehicleRegistration
Gets or sets the vehicle registration (Fahrzeugschein)
Declaration
public string VehicleRegistration { get; set; }
Property Value
Type | Description |
---|---|
System.String |
YearOfManufacturing
Gets or sets the manufacturing year of the vehicle
Declaration
public DateTime? YearOfManufacturing { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Methods
| Improve this Doc View SourceAddAppointment(Appointment)
Adds an Appointment to the Appointments list using an existing Appointment instance
Declaration
public void AddAppointment(Appointment appointment)
Parameters
Type | Name | Description |
---|---|---|
Appointment | appointment | Appointment instance to add |
AddEquipment(VehicleEquipmentItem)
Adds an VehicleEquipmentItem instance to the Equipment list
Declaration
public void AddEquipment(VehicleEquipmentItem vehicleEquipmentItem)
Parameters
Type | Name | Description |
---|---|---|
VehicleEquipmentItem | vehicleEquipmentItem | The VehicleEquipmentItem to add |
AddNewAppointment()
Adds a new Appointment to the Appointments list
Declaration
public Appointment AddNewAppointment()
Returns
Type | Description |
---|---|
Appointment | The added Appointment instance |
AddNewEquipmentItem(Guid)
Adds a new VehicleEquipmentItem instance to the Equipment list
Declaration
public VehicleEquipmentItem AddNewEquipmentItem(Guid typeGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | typeGuid | Identifier of the equipment type to add |
Returns
Type | Description |
---|---|
VehicleEquipmentItem | The added EquipmentItem instance |
DeleteAdditionalData(SAConnection)
Deletes the additional data by calling the DeleteData method of the instances (e.g. DeleteData(SAConnection))
Declaration
public void DeleteAdditionalData(SAConnection connection)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |
DeleteTypeSpecificData(SAConnection)
Removes the type specific data of this instance
Declaration
public abstract void DeleteTypeSpecificData(SAConnection connection)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |
LoadAdditionalData(SAConnection, VehicleLoadOption)
Loads the additional data by calling the LoadData method of the instances (e.g. LoadData(SAConnection))
Declaration
public void LoadAdditionalData(SAConnection connection, VehicleLoadOption option)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |
VehicleLoadOption | option |
LoadAppointments(SAConnection)
Loads all appointments of the instance and adds them to Appointments
Declaration
public void LoadAppointments(SAConnection connection)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |
LoadEquipment(SAConnection)
Loads all equipment of the instance and adds them to Equipment
Declaration
public void LoadEquipment(SAConnection connection)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |
LoadTypeSpecificData(SAConnection)
Loads the type specific data of this instance. Should use the already loaded data
Declaration
public abstract void LoadTypeSpecificData(SAConnection connection)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |
LoadVehicleTelematic()
Loads all Telematics for this Vehicle
Declaration
public ICollection<VehicleTelematic> LoadVehicleTelematic()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<VehicleTelematic> |
RemoveAppointment(Appointment)
Removes an Appointment instance from the Appointments list
Declaration
public void RemoveAppointment(Appointment appointment)
Parameters
Type | Name | Description |
---|---|---|
Appointment | appointment | The Appointment to remove |
RemoveEquipment(VehicleEquipmentItem)
Remove the connection of the current instance with an VehicleEquipmentItem
Declaration
public void RemoveEquipment(VehicleEquipmentItem vehicleEquipmentItem)
Parameters
Type | Name | Description |
---|---|---|
VehicleEquipmentItem | vehicleEquipmentItem | EquipmentItem instance whose connection with the current instance should be removed |
SaveAdditionalData(SAConnection)
Saves the additional data by calling the LoadData method of the instances (e.g. SaveData(SAConnection))
Declaration
public void SaveAdditionalData(SAConnection connection)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |
SaveTypeSpecificData(SAConnection)
Saves the type specific data of this instance
Declaration
public abstract void SaveTypeSpecificData(SAConnection connection)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |