Die Abfrage nach der Ressourcenbelegung kommt nur ein mal und das Abbrechen des Speicherns hat keinen "kaputten" Reload zur Folge
Das Löschen eines Serientermins mit veränderten oder gelöschten Elementen führt zu keiner Exception mehr, da ich den Service-Aufruf auf synchron geändert habe.
Es gibt allerdings noch Bugs! -> Serientermin erstellen und ein Element davon ändern führt zu einer doppelten Abfrage, ausgelöst durch die Überlappungsprüfung, die eine Überlappung mit der Serie selbst feststellt!
212 lines
8.9 KiB
C#
212 lines
8.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ServiceModel;
|
|
|
|
using BS.Shared.DataContracts;
|
|
|
|
namespace BeWo.Service.ServiceContracts
|
|
{
|
|
[ServiceContract]
|
|
public interface IResourceService
|
|
{
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void DeactivateResource(long pOid, long pVersion);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void DeactivateResources(Dictionary<long, long> pOid2Version);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void DeleteBooking(long pOid, long pVersion);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void DeleteBookings(Dictionary<long, long> pOid2Version);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void DeleteResource(long pOid, long pVersion);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void DeleteResources(Dictionary<long, long> pOid2Version);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<BookingSequenceDC> GetAllBookings(DateTime pStartSpan, DateTime pEndSpan);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<BookingSequenceDC> GetAllBookingsByResource(long pResourceOid, DateTime pStartSpan, DateTime pEndSpan);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<ResourceDC> GetAllResources();
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<long> InsertNewBookings(List<BookingSequenceDC> pBookings);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<long> InsertNewResources(List<ResourceDC> pResource);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<long> UpdateBookings(List<BookingSequenceDC> pBookings);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<long> UpdateResources(List<ResourceDC> pResource);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<BookingSequenceDC> UpdateBookingSequenceDCs(List<BookingSequenceDC> pBookings);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<ResourceDC> UpdateResourceDCs(List<ResourceDC> pResource);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<BookingSequenceDC> InsertNewBookingSequenceDCs(IEnumerable<BookingSequenceDC> pBookings);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<ResourceAppointmentDC> UpdateResourceAppointments(List<ResourceAppointmentDC> pResourceAppointments);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<ResourceAppointmentDC> InsertNewResourceAppointments(IEnumerable<ResourceAppointmentDC> pResourceAppointments);
|
|
|
|
[FaultContract(typeof (BeWoFault))]
|
|
[OperationContract]
|
|
void DeleteResourceAppointments(Dictionary<long, long> pOid2Version);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<ResourceAppointmentDC> GetAllResourceAppointments();
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<ResourceAppointmentDC> GetResourceAppointmentsById(IEnumerable<long> pOids);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<ResourceAppointmentDC> LoadPossibleDuplicates(string pRecurrenceInfo);
|
|
|
|
[FaultContract(typeof (BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> GetAllSchedulerAppointments();
|
|
|
|
[FaultContract(typeof (BeWoFault))]
|
|
[OperationContract]
|
|
SchedulerAppointmentDC GetSchedulerAppointmentByid(long oid);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void DeleteSchedulerAppointments(Dictionary<long, long> pOid2Version);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> InsertSchedulerAppointments(IList<SchedulerAppointmentDC> pNewSchedulerAppointments);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> UpdateSchedulerAppointments(List<SchedulerAppointmentDC> pNewSchedulerAppointments);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> GetSchedulerAppointmentsById(IEnumerable<long> pOids);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void DeactivateSchedulerAppointments(Dictionary<long, long> pOid2Version);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
Dictionary<ValueListEntryDC, List<ResourceDC>> GetAllCategories2ResourcesInDictionary();
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> GetAllActiveSchedulerAppointments();
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> GetAllOpenAppointmentsForEmployee(long pEmployeeOid);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<Employee2SchedulerAppointmentDC> InsertEmployee2SchedulerAppointments(IEnumerable<Employee2SchedulerAppointmentDC> pEmployee2SchedulerAppointments);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<Employee2SchedulerAppointmentDC> UpdateEmployee2SchedulerAppointments(List<Employee2SchedulerAppointmentDC> pEmployee2SchedulerAppointments);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void DeleteEmployee2SchedulerAppointments(Dictionary<long, long> pOid2Version);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> GetAllActiveAndNotDeclinedForEmployeeAppointments(long pEmployeeOid);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
bool OverlappingAppointmentsExist(DateTime start, DateTime end, List<long> employees, List<long> customers, List<long> resources, long originator, long? appointmentOid, string recurrenceId = "", int ocurrenceIndex = 0);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> DeactivateSchedulerAppointmentsForSync(Dictionary<long, long> pOid2Version);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> GetAllActiveAppointmentsForEmployeeInInterval(DateTime start, DateTime end, long pEmployeeOid);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> GetAllActiveAppointmentsForEmployeeInInterval2(DateTime start, DateTime end, long pEmployeeOid, bool pHasRightToSeeAllEmployeeAppointments);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<AbsenceTimeDC> GetAllActiveAbsenceTimesInInterval(DateTime pStart, DateTime pEnd, long pEmployeeOid, bool pHasRightToSeeAllEmployeeAppointments);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> LoadFilteredAppointments(bool pHasRightToSeeAllEmployeeAppointments, long pEmployeeOid, DateTime pIntervalStart, DateTime pIntervalEnd, List<long> pSelectedEmployees, List<long> pSelectedCustomer, List<long> pSelectedResources, bool pEmployeesOnly, bool pCustomersOnly, bool pResourcesOnly, bool pPrivateAppointmentsOnly, bool pOnlyMyAppointments);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> LoadFilteredAppointmentsMitAufgaben(bool pHasRightToSeeAllEmployeeAppointments, long pEmployeeOid, DateTime pIntervalStart, DateTime pIntervalEnd, List<long> pSelectedEmployees, List<long> pSelectedCustomer, List<long> pSelectedResources, bool pEmployeesOnly, bool pCustomersOnly, bool pResourcesOnly, bool pPrivateAppointmentsOnly, bool pOnlyMyAppointments, bool pShowTasks);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> GetAllTasksForEmployee(long pEmployeeOid);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> GetSchedulerAppointmentTasksForEmployeeBySupportConecpt(long pEmployeeOid, long pSupportConceptOid);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<SchedulerAppointmentDC> LoadTasksAndAppointmentsForEmployee(long pEmployeeOid, DateTime pInvertalStart, int pBufferSize, long? pEmployeeAppointmentsOid);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void InsertTestAppointments(long pEmployeeOid);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
void DeleteTestAppointments();
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
List<ResourceDC> CheckResourceAvailability(DateTime start, DateTime end, List<long> resourceOids, long? selectedAppointmentOid);
|
|
|
|
[FaultContract(typeof(BeWoFault))]
|
|
[OperationContract]
|
|
SchedulerAppointmentDC FindRootAppointmentByRecurrenceId(string recurrenceId);
|
|
}
|
|
} |