Class TourViewModel
Represents a single tour/appointment
Inheritance
System.Object
TourViewModel
Implements
ICustomAddonViewModel
IMultiTenantCompatibleViewModel
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public class TourViewModel : ExtendableViewModel
Constructors
|
Improve this Doc
View Source
TourViewModel()
Initialize new TourViewModel with empty tour
Declaration
|
Improve this Doc
View Source
TourViewModel(Tour, Boolean)
Initialize new TourViewModel with given Tour
Declaration
public TourViewModel(Tour tour, bool loadDependingData = false)
Parameters
Type |
Name |
Description |
Tour |
tour |
Tourinstance, must not be null
|
System.Boolean |
loadDependingData |
If set to true, all tour stops will be loaded too
|
Properties
|
Improve this Doc
View Source
Declaration
public ICommand AddCustomerContact { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
AddonViewModel
Gets or sets the addon viewmodel
Declaration
public TourAddonViewModel AddonViewModel { get; set; }
Property Value
|
Improve this Doc
View Source
AddShipment
Declaration
public ICommand AddShipment { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
AddStartAddress
Declaration
public ICommand AddStartAddress { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
AddTargetAddress
Declaration
public ICommand AddTargetAddress { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
CalculatedPrice
Gets or sets the calculated price
Declaration
public double CalculatedPrice { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Gets or sets the tour carrier address
Declaration
public Guid? CarrierAddressContactId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
|
Improve this Doc
View Source
Gets the carrier contact name
Declaration
public string CarrierContactName { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CarrierDispatcherId
Gets or set the carrier dispatcher id
Declaration
public Guid? CarrierDispatcherId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
|
Improve this Doc
View Source
ConsecutiveTourId
Gets the consecutive unique tour id
Declaration
public long ConsecutiveTourId { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
CurrentPricing
Gets or sets the custom pricing configuration id
Declaration
public PricingConfigurationInformation CurrentPricing { get; }
Property Value
Type |
Description |
PricingConfigurationInformation |
|
|
Improve this Doc
View Source
Declaration
public Guid? CustomerContactId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
|
Improve this Doc
View Source
CustomPrice
Gets or sets the custom price
Declaration
public double CustomPrice { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
CustomPricingConfigurationId
Gets or sets the custom pricing configuration id
Declaration
public Guid? CustomPricingConfigurationId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
|
Improve this Doc
View Source
DriverId
Gets or sets the current driver id
Declaration
public Guid? DriverId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
|
Improve this Doc
View Source
DriverName
Gets or sets the driver name
Declaration
public string DriverName { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
EditShipment
Declaration
public ICommand EditShipment { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
End
Gets the end as date and time
Declaration
public DateTime End { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
|
Improve this Doc
View Source
EndAddress
Gets or sets the start address
Declaration
public string EndAddress { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Gets or sets the tour end address
Declaration
public Guid? EndAddressContactId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
|
Improve this Doc
View Source
EndDate
Gets or sets the end date (time must be ignored)
Declaration
public DateTime EndDate { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
|
Improve this Doc
View Source
EndTime
Gets or sets the end time (date must be ignored)
Declaration
public TimeSpan EndTime { get; set; }
Property Value
Type |
Description |
System.TimeSpan |
|
|
Improve this Doc
View Source
ERPOrderNr
Gets or sets the ERP order Nr
Declaration
public string ERPOrderNr { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ExecutePricingCommand
Gets or sets the command to execute the pricing.
Declaration
public ICommand ExecutePricingCommand { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
ExternalDriverPhoneNumber
Gets or sets the external driver phone numer
Declaration
public string ExternalDriverPhoneNumber { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ExternalTrailer
Gets the external trailer
Declaration
public string ExternalTrailer { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ExternalTructorUnit
Gets the external tructor unit
Declaration
public string ExternalTructorUnit { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ExtTourId
Gets or sets the external tour id
Declaration
public string ExtTourId { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GeneratedTourId
Gets or sets the generated tour id
Declaration
public string GeneratedTourId { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Id
Gets or sets the unique tour id
Declaration
public Guid Id { get; set; }
Property Value
Type |
Description |
System.Guid |
|
|
Improve this Doc
View Source
IsAddressEditable
Gets or sets whether the tour addresses are editable
Declaration
public bool IsAddressEditable { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsAllDayEvent
Declaration
public bool IsAllDayEvent { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsCollectingTour
Gets or sets whether this is a collect tour
Declaration
public bool IsCollectingTour { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsFullLoad
Gets or sets whether this is a full load tour
Declaration
public bool IsFullLoad { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MoveAllUnloadCommand
Move unload command (click)
Declaration
public ICommand MoveAllUnloadCommand { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
MoveUnloadCommand
Move unload command (click)
Declaration
public ICommand MoveUnloadCommand { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
OrderTourShipmentDateWeight
Declaration
public ICommand OrderTourShipmentDateWeight { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
OrderTourShipments
Declaration
public ICommand OrderTourShipments { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
RecurrenceRule
Declaration
public IRecurrenceRule RecurrenceRule { get; set; }
Property Value
Type |
Description |
IRecurrenceRule |
|
|
Improve this Doc
View Source
RemoveShipment
Gets or sets the command to remove a shipment
Declaration
public ICommand RemoveShipment { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
SelectedShipment
Declaration
public ShipmentViewModel SelectedShipment { get; set; }
Property Value
|
Improve this Doc
View Source
SelectedTenant
Gets or sets the selected tenant
Declaration
public OrganizationTenant SelectedTenant { get; set; }
Property Value
Type |
Description |
OrganizationTenant |
|
|
Improve this Doc
View Source
ShipmentRowDoubleClicked
Declaration
public ICommand ShipmentRowDoubleClicked { get; set; }
Property Value
Type |
Description |
System.Windows.Input.ICommand |
|
|
Improve this Doc
View Source
Shipments
Declaration
public ObservableCollection<ShipmentViewModel> Shipments { get; set; }
Property Value
Type |
Description |
System.Collections.ObjectModel.ObservableCollection<ShipmentViewModel> |
|
|
Improve this Doc
View Source
Start
Gets the start as date and time
Declaration
public DateTime Start { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
|
Improve this Doc
View Source
StartAddress
Gets or sets the end address
Declaration
public string StartAddress { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Gets or sets the tour start address
Declaration
public Guid? StartAddressContactId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
|
Improve this Doc
View Source
StartDate
Gets or sets the start date (time must be ignored)
Declaration
public DateTime StartDate { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
|
Improve this Doc
View Source
StartTime
Gets or sets the start time (date must be ignored)
Declaration
public TimeSpan StartTime { get; set; }
Property Value
Type |
Description |
System.TimeSpan |
|
|
Improve this Doc
View Source
Status
Gets or sets the tour status
Declaration
public TourStatus Status { get; set; }
Property Value
|
Improve this Doc
View Source
StatusBrush
Gets the brush of the current status
Declaration
public Brush StatusBrush { get; }
Property Value
Type |
Description |
System.Windows.Media.Brush |
|
|
Improve this Doc
View Source
StatusEntries
Gets or sets all available status values
Declaration
public IList<TourStatus> StatusEntries { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IList<TourStatus> |
|
|
Improve this Doc
View Source
StatusText
Get the current status as text
Declaration
public string StatusText { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Stops
Gets or sets a list of tour stops
Declaration
public ObservableCollection<TourStopViewModel> Stops { get; set; }
Property Value
Type |
Description |
System.Collections.ObjectModel.ObservableCollection<TourStopViewModel> |
|
|
Improve this Doc
View Source
Subject
Gets or sets the tour description
Declaration
public string Subject { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Tenants
Gets or sets the available tenants
Declaration
public ObservableCollection<OrganizationTenant> Tenants { get; set; }
Property Value
Type |
Description |
System.Collections.ObjectModel.ObservableCollection<OrganizationTenant> |
|
|
Improve this Doc
View Source
TimeZone
Gets or sets the current timezone
Declaration
public TimeZoneInfo TimeZone { get; set; }
Property Value
Type |
Description |
System.TimeZoneInfo |
|
|
Improve this Doc
View Source
Tour
Gets the current tour instance
Declaration
public Tour Tour { get; }
Property Value
|
Improve this Doc
View Source
TourDetailText
Gets the tour detail as text
Declaration
public string TourDetailText { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TourShipments
Gets or sets the tour shipment viewmodel list
Declaration
public ObservableCollection<TourShipmentViewModel> TourShipments { get; set; }
Property Value
|
Improve this Doc
View Source
TourShipmentsViewSource
Declaration
public CollectionViewSource TourShipmentsViewSource { get; set; }
Property Value
Type |
Description |
System.Windows.Data.CollectionViewSource |
|
|
Improve this Doc
View Source
TractorUnit
Declaration
public Vehicle TractorUnit { get; }
Property Value
|
Improve this Doc
View Source
TractorUnitId
Gets or sets the Tractor unit id
Declaration
public Guid? TractorUnitId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
|
Improve this Doc
View Source
TractorUnitRegistrationNumber
Gets or sets the tractor unit registration numner
Declaration
public string TractorUnitRegistrationNumber { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Trailer
Gets or sets the trailer name
Declaration
public string Trailer { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TrailerId
Gets or sets the trailer-id
Declaration
public Guid? TrailerId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
|
Improve this Doc
View Source
TrailerName
Declaration
public string TrailerName { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TrailerRegistrationNumber
Gets or sets the trailer unit registration numner
Declaration
public string TrailerRegistrationNumber { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Tructor
Gets or sets the tructor name
Declaration
public string Tructor { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
BeginEdit()
Declaration
|
Improve this Doc
View Source
CancelEdit()
Declaration
|
Improve this Doc
View Source
Copy()
Declaration
public TourViewModel Copy()
Returns
|
Improve this Doc
View Source
CopyFrom(TourViewModel)
Declaration
public void CopyFrom(TourViewModel other)
Parameters
|
Improve this Doc
View Source
EndEdit()
Declaration
|
Improve this Doc
View Source
EnsureTourShipments()
Declaration
public void EnsureTourShipments()
|
Improve this Doc
View Source
Equals(IAppointment)
Compare appointment by id
Declaration
public bool Equals(IAppointment other)
Parameters
Type |
Name |
Description |
IAppointment |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetAddonPrimaryKey()
Get the primary key of the table IT_Tour_Addon
Declaration
public object GetAddonPrimaryKey()
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Save()
Declaration
Events
|
Improve this Doc
View Source
RecurrenceRuleChanged
Declaration
public event EventHandler RecurrenceRuleChanged
Event Type
Type |
Description |
System.EventHandler |
|
Implements
ICustomAddonViewModel
IMultiTenantCompatibleViewModel