OfficeHoliday Interface

Represents an instance of an office holiday. can be specified as single day (DayEnd, MonthEnd is 0) (backward compatible with previous versions)

Definition

Namespace: TCX.Configuration
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
public interface OfficeHoliday : IOMStorable, 
	IOMRemovable, IOMSnapshot, IEquatable<Object>, IDisposable
Implements
IDisposable, IEquatableObject, IOMRemovable, IOMSnapshot, IOMStorable

Properties

Day The day on which the holiday occurs. stored in holiday.dtday
DayEnd new in V15 The day on which the holiday occurs. stored in holiday.end_dtday
HasAttached Indicates that the object has attached data for saving transaction
(Inherited from IOMSnapshot)
HolidayPrompt Prompt which will be used by "holiday service"
ID each object has unique ID. It is the same as the value returned by GetHashCode. (legacy) new object has ID=0. After successful call to save snapshot gets persistent ID.
(Inherited from IOMSnapshot)
IsRecurrent Determines whether the value assigned to Year should be ignored, and thus assume that the holiday occurs every year for the given day and month.
Month The month of the holiday. stored in holiday.dtmonth
MonthEnd new in V15 The month of the holiday. stored in holiday.end_dtmonth
Name A unique name given for this holiday.
TimeOfEndDate new in V15 Timespan since midnight of the end date specified by DayEnd,MonthEnd and YearEnd stored in holiday.end_dtseconds Doesn't accept more then 1 day
TimeOfStartDate new in V15 Timespan since midnight of the start date specified by Day,Month and Year stored in holiday.dtseconds Doesn't accept more then 1 day
Year The year of the holiday. stored in holiday.dtyear
YearEnd new in V15 The year of the holiday. stored in holiday.end_dtyear

Methods

AttachOnSave(IEnumerableIOMSnapshot) This method allows to add other object updates to the main object saving transaction
(Inherited from IOMSnapshot)
AttachOnSave(IOMSnapshot) This method allows to add other object updates to the saving transaction of main object
(Inherited from IOMSnapshot)
Clone Makes fresh snapshot of the object without modifications
(Inherited from IOMSnapshot)
Delete Delete object from configuration database.
(Inherited from IOMRemovable)
DeleteOnSave(IEnumerableIOMSnapshot) Allows to remove other objects as a part of the main object saving transaction.
(Inherited from IOMSnapshot)
DeleteOnSave(IOMSnapshot) Allows to remove other objects as a part of the main object saving transaction.
(Inherited from IOMSnapshot)
GetHashCode Hash code is "record" identifier. So all snapshots of the object has the same hash.
(Inherited from IOMSnapshot)
GetOwner if null, the holiday is defined at tenant level
Refresh Reverts all modifications (if any) and reloads object from configuration/realtime storage
(Inherited from IOMStorable)
Save Commits the changes. This method inserts new or update existing object in persistent storage.
(Inherited from IOMStorable)
ToString Brief description of object in term of Object model. default implementation is ToString. Concrete implementation may be more verbose.
(Inherited from IOMSnapshot)

Extension Methods

Deserialize deserializes object and remenber repeatlist. object can be saved
(Defined by SerializationExtension)
GetSerializableProperties Returns list of properties which are require serialization
(Defined by SerializationExtension)
OMDelete Apply update of the specific snapshot. virtually any object may be updated even those which are not supporting IOMStorable interface.
(Defined by CollectionTransactionsHelper)
OMSave Apply update of the specific snapshot. virtually any object may be updated even those which are not supporting IOMStorable interface.
(Defined by CollectionTransactionsHelper)
SerializeObject Deserializer for IOMSnapshot
(Defined by SerializationExtension)
SerializeProperty returns false if there are no enough information at the moment and it should be repeated after after all objects will be restored. Typical case is forward reference to the DN object.
(Defined by SerializationExtension)
TryDeserializeProperty returns false if there are no enough information at the moment and it should be repeated after after all objects will be restored. Typical case is forward reference to the DN object.
(Defined by SerializationExtension)

See Also