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 pOid2Version); [FaultContract(typeof(BeWoFault))] [OperationContract] void DeleteBooking(long pOid, long pVersion); [FaultContract(typeof(BeWoFault))] [OperationContract] void DeleteBookings(Dictionary pOid2Version); [FaultContract(typeof(BeWoFault))] [OperationContract] void DeleteResource(long pOid, long pVersion); [FaultContract(typeof(BeWoFault))] [OperationContract] void DeleteResources(Dictionary pOid2Version); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetAllBookings(DateTime pStartSpan, DateTime pEndSpan); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetAllBookingsByResource(long pResourceOid, DateTime pStartSpan, DateTime pEndSpan); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetAllResources(); [FaultContract(typeof(BeWoFault))] [OperationContract] List InsertNewBookings(List pBookings); [FaultContract(typeof(BeWoFault))] [OperationContract] List InsertNewResources(List pResource); [FaultContract(typeof(BeWoFault))] [OperationContract] List UpdateBookings(List pBookings); [FaultContract(typeof(BeWoFault))] [OperationContract] List UpdateResources(List pResource); [FaultContract(typeof(BeWoFault))] [OperationContract] List UpdateBookingSequenceDCs(List pBookings); [FaultContract(typeof(BeWoFault))] [OperationContract] List UpdateResourceDCs(List pResource); [FaultContract(typeof(BeWoFault))] [OperationContract] List InsertNewBookingSequenceDCs(IEnumerable pBookings); [FaultContract(typeof(BeWoFault))] [OperationContract] List UpdateResourceAppointments(List pResourceAppointments); [FaultContract(typeof(BeWoFault))] [OperationContract] List InsertNewResourceAppointments(IEnumerable pResourceAppointments); [FaultContract(typeof (BeWoFault))] [OperationContract] void DeleteResourceAppointments(Dictionary pOid2Version); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetAllResourceAppointments(); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetResourceAppointmentsById(IEnumerable pOids); [FaultContract(typeof(BeWoFault))] [OperationContract] List LoadPossibleDuplicates(string pRecurrenceInfo); [FaultContract(typeof (BeWoFault))] [OperationContract] List GetAllSchedulerAppointments(); [FaultContract(typeof (BeWoFault))] [OperationContract] SchedulerAppointmentDC GetSchedulerAppointmentByid(long oid); [FaultContract(typeof(BeWoFault))] [OperationContract] void DeleteSchedulerAppointments(Dictionary pOid2Version); [FaultContract(typeof(BeWoFault))] [OperationContract] List InsertSchedulerAppointments(IList pNewSchedulerAppointments); [FaultContract(typeof(BeWoFault))] [OperationContract] List UpdateSchedulerAppointments(List pNewSchedulerAppointments); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetSchedulerAppointmentsById(IEnumerable pOids); [FaultContract(typeof(BeWoFault))] [OperationContract] void DeactivateSchedulerAppointments(Dictionary pOid2Version); [FaultContract(typeof(BeWoFault))] [OperationContract] Dictionary> GetAllCategories2ResourcesInDictionary(); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetAllActiveSchedulerAppointments(); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetAllOpenAppointmentsForEmployee(long pEmployeeOid); [FaultContract(typeof(BeWoFault))] [OperationContract] List InsertEmployee2SchedulerAppointments(IEnumerable pEmployee2SchedulerAppointments); [FaultContract(typeof(BeWoFault))] [OperationContract] List UpdateEmployee2SchedulerAppointments(List pEmployee2SchedulerAppointments); [FaultContract(typeof(BeWoFault))] [OperationContract] void DeleteEmployee2SchedulerAppointments(Dictionary pOid2Version); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetAllActiveAndNotDeclinedForEmployeeAppointments(long pEmployeeOid); [FaultContract(typeof(BeWoFault))] [OperationContract] bool OverlappingAppointmentsExist(DateTime start, DateTime end, List employees, List customers, List resources, long originator, long? appointmentOid, string recurrenceId = "", int ocurrenceIndex = 0); [FaultContract(typeof(BeWoFault))] [OperationContract] List DeactivateSchedulerAppointmentsForSync(Dictionary pOid2Version); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetAllActiveAppointmentsForEmployeeInInterval(DateTime start, DateTime end, long pEmployeeOid); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetAllActiveAppointmentsForEmployeeInInterval2(DateTime start, DateTime end, long pEmployeeOid, bool pHasRightToSeeAllEmployeeAppointments); [FaultContract(typeof(BeWoFault))] [OperationContract] List GetAllActiveAbsenceTimesInInterval(DateTime pStart, DateTime pEnd, long pEmployeeOid, bool pHasRightToSeeAllEmployeeAppointments); [FaultContract(typeof(BeWoFault))] [OperationContract] List LoadFilteredAppointments(bool pHasRightToSeeAllEmployeeAppointments, long pEmployeeOid, DateTime pIntervalStart, DateTime pIntervalEnd, List pSelectedEmployees, List pSelectedCustomer, List pSelectedResources, bool pEmployeesOnly, bool pCustomersOnly, bool pResourcesOnly, bool pPrivateAppointmentsOnly, bool pOnlyMyAppointments); } }