Class CustomScheduleViewDragAndDropBehavior
Represents the custom schedule view drag and drop behavior
Inheritance
System.Object
CustomScheduleViewDragAndDropBehavior
Namespace: Simplic.PlugIn.Logistics.UI.ResourceRequirementsPlanning
Assembly: Simplic.PlugIn.Logistics.dll
Syntax
public class CustomScheduleViewDragAndDropBehavior : Telerik.Windows.Controls.ScheduleViewDragDropBehavior
Constructors
| Improve this Doc View SourceCustomScheduleViewDragAndDropBehavior()
Declaration
public CustomScheduleViewDragAndDropBehavior()
Properties
| Improve this Doc View SourceClient
Gets or sets the client
Declaration
public ResourceRequirementPlanningClient Client { get; set; }
Property Value
Type | Description |
---|---|
ResourceRequirementPlanningClient |
ViewModel
Gets or sets the view model
Declaration
public SchedulerViewModel ViewModel { get; set; }
Property Value
Type | Description |
---|---|
SchedulerViewModel |
Methods
| Improve this Doc View SourceCanDrop(Telerik.Windows.Controls.DragDropState)
Declaration
public override bool CanDrop(Telerik.Windows.Controls.DragDropState state)
Parameters
Type | Name | Description |
---|---|---|
Telerik.Windows.Controls.DragDropState | state |
Returns
Type | Description |
---|---|
System.Boolean |
CanResize(Telerik.Windows.Controls.DragDropState)
Can only be resized if the appointment viewmodel is not locked
Declaration
public override bool CanResize(Telerik.Windows.Controls.DragDropState state)
Parameters
Type | Name | Description |
---|---|---|
Telerik.Windows.Controls.DragDropState | state |
Returns
Type | Description |
---|---|
System.Boolean |
CanStartDrag(Telerik.Windows.Controls.DragDropState)
Return if the item can be dragged. Returns true if the item is not locked otherwise it will return false;
Declaration
public override bool CanStartDrag(Telerik.Windows.Controls.DragDropState state)
Parameters
Type | Name | Description |
---|---|---|
Telerik.Windows.Controls.DragDropState | state |
Returns
Type | Description |
---|---|
System.Boolean |
ConvertDraggedData(Object)
Converts the dragged data to a list of appointment view model
Declaration
public override IEnumerable<IOccurrence> ConvertDraggedData(object data)
Parameters
Type | Name | Description |
---|---|---|
System.Object | data |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IOccurrence> |
DragDropCompleted(Telerik.Windows.Controls.DragDropState)
This method will be called when the drag and drop is completed
Declaration
public override void DragDropCompleted(Telerik.Windows.Controls.DragDropState state)
Parameters
Type | Name | Description |
---|---|---|
Telerik.Windows.Controls.DragDropState | state |
Remarks
It removes appointment when the appointment has an empty resource guid
and removes appointments that are of the type tourtype and have zero shipments
Drop(Telerik.Windows.Controls.DragDropState)
Drops the appointment/shipment and removes the shipment from the old appointment
Declaration
public override void Drop(Telerik.Windows.Controls.DragDropState state)
Parameters
Type | Name | Description |
---|---|---|
Telerik.Windows.Controls.DragDropState | state |