PublicAPI.Portal.CalendarEventELMA API Documentation
Event
Access path: PublicAPI.Portal.CalendarEvent
Methods

  NameDescription
Public methodCalendarEventBuilder
Помощник для создания события календаря
Public methodCalendarEventPeriodicalBuilder
Помощник для создания переодического события календаря
Public methodCheckEvents(DateTime, DateTime, Schedule)
Check, if there are overlapping events in the calendar
Public methodCheckEvents(DateTime, DateTime, User)
Check, if the user has overlapping events
Public methodCount 
Returns the total number of objects of this type
Public methodCount(IEntityFilter)
Get Total Number of Objects by Filter
Public methodCreate 
Create New Entity (without a Database entry)
Public methodCreate(IEnumerable User , DateTime, DateTime, String)
Creates an event for personal calendars to the users list
Public methodCreate(IEnumerable User , DateTime, DateTime, String, String)
Creates an event for personal calendars to the users list
Public methodCreate(IEnumerable User , IEnumerable Schedule , DateTime, DateTime, String, String)
Creates an user group event for the general calendar
Public methodCreate(IEnumerable User , DateTime, DateTime, String, String, String)
Creates an event for personal calendars to the users list
Public methodCreate(IEnumerable User , IEnumerable Schedule , DateTime, DateTime, String, String, String)
Creates an user group event for the general calendar
Public methodCreateReminder(User, CalendarEvent, DateTime)
Create a reminder for a calendar event
Public methodCreateReminder(User, CalendarEvent, TimeSpan)
Create a reminder for a calendar event
Public methodDelete(CalendarEvent)
Delete Object
Public methodDelete(CalendarEvent, Boolean)
Delete the event
Public methodFilter
Creates an assistant for working with the "Event" object filter
Public methodFind(FetchOptions)
Find objects according to fetch options
Public methodFind(String)
Find objects according to the filter in the EQL language
Public methodFind(IEntityFilter, FetchOptions)
Fing objects according to fetch options and filter
Public methodFindByIdArray
Find All Objects by Array IDs
Public methodGetCalendarItems
Get all the calendar objects
Public methodIsDirty
Check, if there are unsaved changes in the object
Public methodIsNew
Check, if the object is new (not saved in the database)
Public methodLoad(Guid)
Load by UID. If not found, an exception is invoked
Public methodLoad(Int64)
Load Event by ID
Public methodLoadOrCreate(Guid)
Load by ID. If not found, the new object is returned
Public methodLoadOrCreate(Int64)
Load by ID. If not found, the new object is returned
Public methodLoadOrNull(Guid)
Load Event by UID
Public methodLoadOrNull(Int64)
Load Event by ID
Public methodRefresh
Refresh (read over) Object from Database
Public methodSave
Save Object to Database
Back to Top
Properties

  NameDescription
Public propertyPermissions
Permissions
Public propertyTypeUid
Returns the unique object identifier "Event"
Back to Top
Remarks

Раздел содержащий методы для работы с событиями
Examples

Create a calendar event for a user list

//event place 
var place = "Место для события";
//event subject 
var theme = "Event Subject";
//описание события 
var desc = "Event Description";
//create an event 
var calendarEvent = PublicAPI.Portal.CalendarEvent.Create(context.UserList, DateTime.Now, DateTime.Now.AddDays(3), theme, place, desc);

Create a calendar event reminder

var myReminder = PublicAPI.Portal.CalendarEvent.CreateReminder(context.User, calendarEvent, DateTime.Now.AddDays(2).AddHours(3));

See Also