C# Класс Engage.Dnn.Booking.Appointment

Наследование: IEditableObject
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Appointment System
Appointment System
Fill Appointment
Insert void
Update void

Открытые методы

Метод Описание
Accept ( int revisingUserId ) : void

Accepts this Appointment.

ApproveByKey ( System.Guid actionKey ) : Appointment

Accepts or declines an Appointment via the given actionKey.

BeginEdit ( ) : void

Begins an edit on an object.

CanCreateAt ( int moduleId, System.DateTime start, System.DateTime end, int max ) : bool

Determines whether an Appointment can be created at the specified start time until the specified end time.

CancelEdit ( ) : void

Discards changes since the last M:System.ComponentModel.IEditableObject.BeginEdit call.

Create ( int moduleId, int appointmentTypeId, string title, string description, string notes, string address1, string address2, string city, int regionId, string postalCode, string phone, string additionalAddressInfo, string contactStreet, string contactPhone, string requestorName, PhoneType requestorPhoneType, string requestorPhone, string requestorEmail, PhoneType requestorAltPhoneType, string requestorAltPhone, System.DateTime start, System.DateTime end, System.TimeSpan timeZoneOffset, int numberOfParticipants, GroupGender participantGender, bool isPresenterSpecial, string participantInstructions, int numberOfSpecialParticipants, string custom1, string custom2, string custom3, string custom4, string custom5, string custom6, string custom7, string custom8, string custom9, string custom10, bool isAccepted ) : Appointment

Creates the specified Appointment.

Decline ( int revisingUserId ) : void

Declines this Appointment.

Delete ( int appointmentId ) : void

Deletes the specified appointment id.

EndEdit ( ) : void

Pushes changes since the last M:System.ComponentModel.IEditableObject.BeginEdit or M:System.ComponentModel.IBindingList.AddNew call into the underlying object.

Load ( int appointmentId ) : Appointment

Loads the Appointment with the specified appointmentId.

Save ( int revisingUser ) : void

Saves this event.

ToICal ( ) : string

Creates an iCal representation of this appointment.

Приватные методы

Метод Описание
Appointment ( ) : System

Prevents a default instance of the Appointment class from being created.

Appointment ( int moduleId, int appointmentTypeId, string title, string description, string notes, string address1, string address2, string city, int regionId, string postalCode, string phone, string additionalAddressInfo, string contactStreet, string contactPhone, string requestorName, PhoneType requestorPhoneType, string requestorPhone, string requestorEmail, PhoneType requestorAltPhoneType, string requestorAltPhone, System.DateTime start, System.DateTime end, System.TimeSpan timeZoneOffset, int numberOfParticipants, GroupGender participantGender, bool isPresenterSpecial, string participantInstructions, int numberOfSpecialParticipants, string custom1, string custom2, string custom3, string custom4, string custom5, string custom6, string custom7, string custom8, string custom9, string custom10, bool isAccepted ) : System

Initializes a new instance of the Appointment class.

Fill ( IDataRecord appointmentRecord ) : Appointment

Fills an Appointment with the data in the specified appointmentRecord.

Insert ( int revisingUserId ) : void

Inserts this event.

Update ( int revisingUser ) : void

Updates this event.

Описание методов

Accept() публичный Метод

Accepts this Appointment.
public Accept ( int revisingUserId ) : void
revisingUserId int The ID of the user accepting the .
Результат void

ApproveByKey() публичный статический Метод

Accepts or declines an Appointment via the given actionKey.
public static ApproveByKey ( System.Guid actionKey ) : Appointment
actionKey System.Guid The key the corresponds to accepting or declining a specific .
Результат Appointment

BeginEdit() публичный Метод

Begins an edit on an object.
public BeginEdit ( ) : void
Результат void

CanCreateAt() публичный статический Метод

Determines whether an Appointment can be created at the specified start time until the specified end time.
public static CanCreateAt ( int moduleId, System.DateTime start, System.DateTime end, int max ) : bool
moduleId int The ID of the module in which the appointment is to be created.
start System.DateTime The start of the new .
end System.DateTime The end of the new .
max int The maximum appointments allowed for the specified time range
Результат bool

CancelEdit() публичный Метод

Discards changes since the last M:System.ComponentModel.IEditableObject.BeginEdit call.
public CancelEdit ( ) : void
Результат void

Create() публичный статический Метод

Creates the specified Appointment.
public static Create ( int moduleId, int appointmentTypeId, string title, string description, string notes, string address1, string address2, string city, int regionId, string postalCode, string phone, string additionalAddressInfo, string contactStreet, string contactPhone, string requestorName, PhoneType requestorPhoneType, string requestorPhone, string requestorEmail, PhoneType requestorAltPhoneType, string requestorAltPhone, System.DateTime start, System.DateTime end, System.TimeSpan timeZoneOffset, int numberOfParticipants, GroupGender participantGender, bool isPresenterSpecial, string participantInstructions, int numberOfSpecialParticipants, string custom1, string custom2, string custom3, string custom4, string custom5, string custom6, string custom7, string custom8, string custom9, string custom10, bool isAccepted ) : Appointment
moduleId int The module ID.
appointmentTypeId int The appointment type ID of this appointment.
title string The title of this appointment.
description string The description.
notes string The notes.
address1 string The address1.
address2 string The address2.
city string The city of the appointment.
regionId int The region id.
postalCode string The postal code.
phone string The phone number.
additionalAddressInfo string The additional address info.
contactStreet string The contact street.
contactPhone string The contact phone.
requestorName string Name of the requestor.
requestorPhoneType PhoneType Type of the requestor phone.
requestorPhone string The requestor phone.
requestorEmail string The requestor email.
requestorAltPhoneType PhoneType Type of the requestor alt phone.
requestorAltPhone string The requestor alt phone.
start System.DateTime The start of the appointment.
end System.DateTime The end of the appointment.
timeZoneOffset System.TimeSpan The time zone offset.
numberOfParticipants int The number of participants.
participantGender GroupGender The participant gender.
isPresenterSpecial bool The participant flag.
participantInstructions string The participant instructions.
numberOfSpecialParticipants int The number of special participants.
custom1 string The first custom field.
custom2 string The second custom field.
custom3 string The third custom field.
custom4 string The fourth custom field.
custom5 string The fifth custom field.
custom6 string The sixth custom field.
custom7 string The seventh custom field.
custom8 string The eighth custom field.
custom9 string The ninth custom field.
custom10 string The tenth custom field.
isAccepted bool nullif the has not bee accepted or declined yet, /// otherwise true for an accepted appointment, or false for a declined appointment.
Результат Appointment

Decline() публичный Метод

Declines this Appointment.
public Decline ( int revisingUserId ) : void
revisingUserId int The ID of the user declining the .
Результат void

Delete() публичный статический Метод

Deletes the specified appointment id.
public static Delete ( int appointmentId ) : void
appointmentId int The appointment id.
Результат void

EndEdit() публичный Метод

Pushes changes since the last M:System.ComponentModel.IEditableObject.BeginEdit or M:System.ComponentModel.IBindingList.AddNew call into the underlying object.
public EndEdit ( ) : void
Результат void

Load() публичный статический Метод

Loads the Appointment with the specified appointmentId.
public static Load ( int appointmentId ) : Appointment
appointmentId int The ID of the to load.
Результат Appointment

Save() публичный Метод

Saves this event.
public Save ( int revisingUser ) : void
revisingUser int The user who is saving this event.
Результат void

ToICal() публичный Метод

Creates an iCal representation of this appointment.
public ToICal ( ) : string
Результат string