Class VehicleEquipmentItem
Core class which represents an equipment containing all data
Inheritance
Implements
Inherited Members
Namespace: Simplic.PlugIn.Logistics
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public class VehicleEquipmentItem : IComparable<VehicleEquipmentItem>
Constructors
| Improve this Doc View SourceVehicleEquipmentItem()
Initialize a new vehicle equipment item
Declaration
public VehicleEquipmentItem()
VehicleEquipmentItem(IT_Vehicle_EquipmentItem_Vehicle)
Initialize a new vehicle equipment item using a IT_Vehicle_EquipmentItem_Vehicle holding the data to use
Declaration
public VehicleEquipmentItem(IT_Vehicle_EquipmentItem_Vehicle dbEquipmentItemVehicle)
Parameters
Type | Name | Description |
---|---|---|
IT_Vehicle_EquipmentItem_Vehicle | dbEquipmentItemVehicle |
Properties
| Improve this Doc View SourceAllocationDate
Gets or sets the date the equipment was allocated to this vehicle
Declaration
public DateTime AllocationDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
AllocationTime
Gets or sets the time the equipment was allocated to this vehicle
Declaration
public TimeSpan AllocationTime { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Count
Gets or sets the number of the equipment items of this type with the same identifier
Declaration
public int Count { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DbEquipmentItemVehicle
Declaration
public IT_Vehicle_EquipmentItem_Vehicle DbEquipmentItemVehicle { get; }
Property Value
Type | Description |
---|---|
IT_Vehicle_EquipmentItem_Vehicle |
DeallocationDate
Gets or sets the date the equipment was deallocated from this vehicle
Declaration
public DateTime? DeallocationDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
DeallocationTime
Gets or sets the time the equipment was deallocated from this vehicle
Declaration
public TimeSpan? DeallocationTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> |
EquipmentItem
Gets or sets the equipment item of this connection instance
Declaration
public EquipmentItem EquipmentItem { get; }
Property Value
Type | Description |
---|---|
EquipmentItem |
EquipmentItemId
See Id
Declaration
public Guid EquipmentItemId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
EquipmentTypeId
Gets the identifier of the equipment type
Declaration
public Guid EquipmentTypeId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
EquipmentTypeName
Gets the name of the equipment type
Declaration
public string EquipmentTypeName { get; }
Property Value
Type | Description |
---|---|
System.String |
Identifier
Gets an identifying value for the instance, enabling an user to distinguish between multiple instances of the same equipment type
Declaration
public string Identifier { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IdentifierName
Gets the name of the identifier whose value enables an user to distinguish between multiple instances of the same equipment type
Declaration
public string IdentifierName { get; }
Property Value
Type | Description |
---|---|
System.String |
Remark
Gets or sets the remark of the instance
Declaration
public string Remark { get; set; }
Property Value
Type | Description |
---|---|
System.String |
VehicleId
Gets the identifier of the assigned vehicle
Declaration
public Guid VehicleId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
| Improve this Doc View SourceCompareTo(VehicleEquipmentItem)
Compares the current instance to another VehicleEquipmentItem instance
Declaration
public int CompareTo(VehicleEquipmentItem other)
Parameters
Type | Name | Description |
---|---|---|
VehicleEquipmentItem | other | VehicleEquipmentItem instance to compare to |
Returns
Type | Description |
---|---|
System.Int32 | A signed number indicating the relative values of this instance and the given parameter. |
Deallocate()
Set the DeallocationDate and DeallocationTime to the current time
Declaration
public void Deallocate()