Class AppointmentViewModel
Represents the view model that contains the necessary information for an appointment
Inheritance
Implements
Namespace: Simplic.PlugIn.Logistics.UI.ResourceRequirementsPlanning
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public class AppointmentViewModel : UI.MVC.ViewModelBase
Constructors
| Improve this Doc View SourceAppointmentViewModel()
Constructor
Declaration
public AppointmentViewModel()
Properties
| Improve this Doc View SourceAssignedResource
Gets or sets the assigned resource
Declaration
public ResourceViewModel AssignedResource { get; set; }
Property Value
Type | Description |
---|---|
ResourceViewModel |
Body
Gets or sets the body.
Declaration
public string Body { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Category
Gets or sets the category.
Declaration
public object Category { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Color
Gets or sets the color for the appointment based on the LockingType
Declaration
public Brush Color { get; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush |
CustomText
Gets or sets the custom text
Declaration
public string CustomText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CustomTextVisibility
Gets or sets the custom text visibility based on the tour type
Declaration
public Visibility CustomTextVisibility { get; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility |
DisplayName
Gets or sets the display which is the assigned resource name
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
DragIntoForeignScheduler
Declaration
public bool DragIntoForeignScheduler { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
End
Gets or sets the end.
Declaration
public DateTime End { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
GroupTitle
Gets or sets the group title
Declaration
public string GroupTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
Gets or sets the id as guid
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Importance
Gets or sets the importance.
Declaration
public Importance Importance { get; set; }
Property Value
Type | Description |
---|---|
Importance |
IsAllDayEvent
Gets or sets a bool if the event is an all day event. default is true
Declaration
public bool IsAllDayEvent { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsLocked
Gets or sets if the appointment is locked
Declaration
public bool IsLocked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsNotSystemLocked
Gets or sets if this is locked by the system It depends on the LockingType
Declaration
public bool IsNotSystemLocked { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LastEditFromApi
Gets or sets if the last edit was made by an api call
Declaration
public bool LastEditFromApi { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LockedSymbol
Gets or sets the lock symbol based on LockingType
Declaration
public string LockedSymbol { get; }
Property Value
Type | Description |
---|---|
System.String |
LockedText
Gets a string based on the locking type
Declaration
public string LockedText { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
In the ui this should be used to show it to the user via a tooltip
LockingType
Gets or sets the locking type
Declaration
public LockingType LockingType { get; set; }
Property Value
Type | Description |
---|---|
LockingType |
MoveResourceCommand
Gets or sets a command to move the appointment to a new resource
Declaration
public ICommand MoveResourceCommand { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RecurrenceRule
Gets or sets the recurrenc rule.
Declaration
public IRecurrenceRule RecurrenceRule { get; set; }
Property Value
Type | Description |
---|---|
IRecurrenceRule |
Resources
Gets or sets the resources.
Declaration
public IList Resources { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IList |
SearchText
Declaration
public string SearchText { get; }
Property Value
Type | Description |
---|---|
System.String |
SearchTextDisplayName
Declaration
public string SearchTextDisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
SelectedShipment
Gets or sets the selected shipment
Declaration
public ShipmentViewModel SelectedShipment { get; set; }
Property Value
Type | Description |
---|---|
ShipmentViewModel |
ShipmentListBoxVisibility
Gets or sets the shipment list box visibility based on the tour type
Declaration
public Visibility ShipmentListBoxVisibility { get; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility |
Shipments
Gets or sets a list of shipments
Declaration
public ObservableShipmentCollection<ShipmentViewModel> Shipments { get; set; }
Property Value
Type | Description |
---|---|
ObservableShipmentCollection<ShipmentViewModel> |
Start
Gets or sets the start.
Declaration
public DateTime Start { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Subject
Gets or sets the subject.
Declaration
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TimeMarker
Gets or sets the timemarker.
Declaration
public object TimeMarker { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
TimeZone
Gets or sets the time zone.
Declaration
public TimeZoneInfo TimeZone { get; set; }
Property Value
Type | Description |
---|---|
System.TimeZoneInfo |
TourType
Gets or sets the tour type
Declaration
public TourType TourType { get; set; }
Property Value
Type | Description |
---|---|
TourType |
VehicleId
Gets or sets the vehicle id
Declaration
public Guid? VehicleId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
Methods
| Improve this Doc View SourceBeginEdit()
Will be called when the edit begins.
Declaration
public void BeginEdit()
CancelEdit()
Will be called when the edit cancels.
Declaration
public void CancelEdit()
Copy()
Copies the appointment.
Declaration
public IAppointment Copy()
Returns
Type | Description |
---|---|
IAppointment |
CopyFrom(IAppointment)
Copies the Appointment from another appointment
Declaration
public void CopyFrom(IAppointment other)
Parameters
Type | Name | Description |
---|---|---|
IAppointment | other |
EndEdit()
Will be called when the edit ends
Declaration
public void EndEdit()
Equals(IAppointment)
Compare this appointment with the input
Declaration
public bool Equals(IAppointment other)
Parameters
Type | Name | Description |
---|---|---|
IAppointment | other |
Returns
Type | Description |
---|---|
System.Boolean |
Refresh()
Refreshs the shipment
Declaration
public void Refresh()
Events
| Improve this Doc View SourceRecurrenceRuleChanged
Eventhandler if the recurrence rule changed.
Declaration
public event EventHandler RecurrenceRuleChanged
Event Type
Type | Description |
---|---|
System.EventHandler |