49 lines
1.9 KiB
C#
49 lines
1.9 KiB
C#
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; }
|
|
|
|
List<CompactEmployeeDC> AllEmployees { get; }
|
|
|
|
Dictionary<ValueListEntryDC, List<ResourceDC>> Categories2Resources { get; }
|
|
|
|
BindingList<IBeWoAppointment> Appointments { get; }
|
|
|
|
Dictionary<Guid, Dictionary<string, Dictionary<string, object>>> ChangedOccurenceCustomFields { get; }
|
|
|
|
void UpdateViewModel(IEnumerable<SchedulerAppointmentDC> updatedDcList);
|
|
|
|
void SaveAppointments(DevExpress.Xpf.Scheduler.SchedulerControl control, IEnumerable<Appointment> list);
|
|
|
|
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);
|
|
|
|
void InitChangedOccurrencyCustomFields(IEnumerable<SchedulerAppointmentDC> appList);
|
|
}
|
|
}
|