Class Appointment
Inheritance
Implements
Inherited Members
Namespace: Simplic.PlugIn.Logistics
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public class Appointment : IVehicleAdditionalData
Constructors
| Improve this Doc View SourceAppointment(IT_Vehicle_Appointment)
Initializes a new appointment using data from a IT_Vehicle_Appointment
Declaration
public Appointment(IT_Vehicle_Appointment dbAppointment)
Parameters
Type | Name | Description |
---|---|---|
IT_Vehicle_Appointment | dbAppointment | The IT_Vehicle_Appointment instance holding the data to copy |
Appointment(Guid)
Initializes a new appointment
Declaration
public Appointment(Guid vehicleId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | vehicleId | Unique identifier of the vehicle this appointment is assigned to |
Properties
| Improve this Doc View SourceAppointmentType
Gets the AppointmentType of this appointment
Declaration
public AppointmentType AppointmentType { get; set; }
Property Value
Type | Description |
---|---|
AppointmentType |
AppointmentTypeId
Gets or sets the appointment type id
Declaration
public Guid AppointmentTypeId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
AppointmentTypeName
Gets the name of the appointment type
Declaration
public string AppointmentTypeName { get; }
Property Value
Type | Description |
---|---|
System.String |
CheckType
Gets or sets the Type to check for(Date, Distance, Hours on road)
Declaration
public int CheckType { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Id
Gets the unique appoint identifier
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
LastDate
Gets or sets the last occurence of the appointment
Declaration
public DateTime? LastDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
LastValue
Gets or sets the last value(distance or hours on road) for this appointment
Declaration
public int? LastValue { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
NextDate
Gets or sets the next occurence of the appointment
Declaration
public DateTime? NextDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
NextValue
Gets or sets the next value(distance or hours on road) for this appointment
Declaration
public int? NextValue { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Remark
Gets or sets the remark for this appointment
Declaration
public string Remark { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SupplierGuid
Gets or sets the kSupplierGuid for the appointment
Declaration
public Guid? SupplierGuid { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
VehicleId
Declaration
public Guid VehicleId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
| Improve this Doc View SourceDeleteData(SAConnection)
Deletes the appointment set in the instance using the instance's unique identifier set in Id
Declaration
public void DeleteData(SAConnection connection)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |
LoadData(SAConnection)
Loads the appointment data using the appointments's unique identifier set in Id
Declaration
public void LoadData(SAConnection connection)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |
SaveData(SAConnection)
Saves the appointment set in the instance
Declaration
public void SaveData(SAConnection connection)
Parameters
Type | Name | Description |
---|---|---|
SAConnection | connection | connection to use for communication with the database |