Files
BeWoPlaner/BeWo/Scheduler/ISchedulerViewModel.cs

49 lines
1.9 KiB
C#
Raw Permalink Normal View History

2016-06-27 01:45:38 +02:00
using System;
using System.ComponentModel;
using System.Collections.Generic;
using BeWo.Scheduler.View;
using BS.Shared.DataContracts;
using BS.Shared.DataContracts.Compact;
using DevExpress.XtraScheduler;
namespace BeWo.Scheduler
{
public interface ISchedulerViewModel
{
SchedulerSettings GetDefaultSchedulerSettings();
bool ShouldLockOverlappingAppointmentCheck { get; set; }
List<CompactCustomerDC> AllCustomers { get; }
2016-06-27 01:45:38 +02:00
List<CompactEmployeeDC> AllEmployees { get; }
Dictionary<ValueListEntryDC, List<ResourceDC>> Categories2Resources { get; }
BindingList<IBeWoAppointment> Appointments { get; }
Dictionary<Guid, Dictionary<string, Dictionary<string, object>>> ChangedOccurenceCustomFields { get; }
2016-06-27 01:45:38 +02:00
void UpdateViewModel(IEnumerable<SchedulerAppointmentDC> updatedDcList);
2016-06-27 01:45:38 +02:00
void SaveAppointments(DevExpress.Xpf.Scheduler.SchedulerControl control, IEnumerable<Appointment> list);
2016-06-27 01:45:38 +02:00
void InsertAppointments(DevExpress.Xpf.Scheduler.SchedulerControl control, IEnumerable<Appointment> list);
AbstractAppointmentEditForm GetEditAppointmentForm(DevExpress.Xpf.Scheduler.SchedulerControl control, Appointment appointment);
void AddCustomFieldsMapping(DevExpress.Xpf.Scheduler.SchedulerStorage schedulerStorage);
void InitNewAppointment(Appointment appointment);
void InitNewTask(Appointment pAppointment, DateTime? pDueDate, IEnumerable<Employee2SchedulerAppointmentDC> pSelectedEmployees, List<CompactCustomerDC> pSelectedCustomers, List<ResourceDC> pSelectedResources, List<CompactSupportConceptDC> pSelectedSupportConcepts);
bool HideAppointment(string filterCategory, object selectedObject, Appointment appointment, bool showPrivateAppointments, bool showAbsenceTimes, bool pShowTasks);
2016-06-27 01:45:38 +02:00
void InitChangedOccurrencyCustomFields(IEnumerable<SchedulerAppointmentDC> appList);
}
}