Files
BeWoPlaner/BeWoPlanerMobil/Models/DevExpressSchedulerSessionModel.cs
2026-06-29 13:45:41 +02:00

63 lines
2.4 KiB
C#

using System.Collections.Generic;
using DevExpress.XtraScheduler;
namespace BeWoPlanerMobil.Models
{
public class DevExpressSchedulerSessionModel : BaseSessionModel
{
public List<long> SelectedCustomerOids { get; set; }
public List<long> SelectedEmployeeOids { get; set; }
public List<long> SelectedResourceOids { get; set; }
public SchedulerViewType CurrentSchedulerViewType { get; set; }
public List<long> SelectedEmployeeOidsForFiltering { get; set; }
public List<long> SelectedCustomerOidsForFiltering { get; set; }
public List<long> SelectedResourceOidsForFiltering { get; set; }
public List<long> OpenEmployee2AppointmentRelOids { get; set; }
public List<long> OpenAppointmentOids { get; set; }
public long? AppointmentOidToAnswerOrUpdate { get; set; }
public bool ShowTasks { get; set; }
public bool ShowOnlyPrivateAppointments { get; set; }
public bool ShowOnlyEmployees { get; set; }
public bool ShowOnlyCustomers { get; set; }
public bool ShowOnlyResources { get; set; }
public bool ShowAbsenceTimes { get; set; }
public bool ShowEmployeeColors { get; set; }
public bool ShowOnlyMyOwnAppointments { get; set; }
public int NotificationCount => OpenEmployee2AppointmentRelOids?.Count ?? 0;
public long? Employee2AppointmentToAnswerOrUpdateRelOid { get; set; }
public override void ResetValues()
{
base.ResetValues();
SelectedCustomerOids = new List<long>();
SelectedEmployeeOids = new List<long>();
SelectedResourceOids = new List<long>();
SelectedEmployeeOidsForFiltering = new List<long>();
SelectedCustomerOidsForFiltering = new List<long>();
SelectedResourceOidsForFiltering = new List<long>();
OpenEmployee2AppointmentRelOids = new List<long>();
OpenAppointmentOids = new List<long>();
ShowTasks = false;
ShowOnlyPrivateAppointments = false;
ShowOnlyEmployees = false;
ShowOnlyCustomers = false;
ShowOnlyResources = false;
ShowAbsenceTimes = false;
ShowEmployeeColors = false;
ShowOnlyMyOwnAppointments = false;
AppointmentOidToAnswerOrUpdate = null;
Employee2AppointmentToAnswerOrUpdateRelOid = null;
}
}
}