Toggle menu
913
3.8K
30.2K
279.2K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Appointment class

From Catglobe Wiki
Revision as of 10:27, 20 April 2026 by [email protected] (talk | contribs) (Created page with "{{CGscriptClass_Template|Name=<nowiki>Appointment</nowiki>|Description=<nowiki>Represents an appointment on the time-planner.</nowiki>|InheritsFrom=Array|Constructors={{CGscriptConstructors_Template|Parameters= {{CGscriptParameters_Template|Type=int|Name=<nowiki>User resource id</nowiki>|Description=<nowiki>User resource unique id</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=int|Name=<nowiki>Resource resource id</nowiki>|Description=<nowiki>Resource unique id to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Appointment


Represents an appointment on the time-planner.

Parent class

Inherits from Array

Constructors

  • (int User resource id "User resource unique id", int Resource resource id "Resource unique id to associate with the appointment", DateTime startDate "Appointment start date and time", DateTime endDate "Appointment end date and time") - Create a new appointment

Methods

  • Empty Delete() - Removes this appointment from the database
  • Empty Save() - Saves this appointment to the database
  • string ToString() - The string representation of the object.
  • object this[] { get; }(int index "Index") - Backward-compatible indexer
  • Empty this[] { get; }(int index "Index", object value "Value to set") - Backward-compatible indexer

Properties

  • number Average { get; } - Average of the objects in the Array object. Can only use if all the elements are of type Number
  • DateTime EndDate { get; set; } - The appointment end date and time
  • int Id { get; } - The appointment primary key (0 for unsaved)
  • string Location { get; set; } - The appointment location
  • number Max { get; } - Largest of all the objects in the Array object. Can only use if all the elements are of type Number
  • number Min { get; } - Smallest of all the objects in the Array object. Can only use if all the elements are of type Number
  • string Notes { get; set; } - The appointment notes
  • string ObjectTypeName { get; } - The name of the type of object.
  • int ResourceResourceId { get; set; } - Resource id of the associated resource
  • DateTime StartDate { get; set; } - The appointment start date and time
  • number Sum { get; } - Sum of all the objects in the Array object. Can only use if all the elements are of type Number
  • TypeInformation TypeInformation { get; } - Get information about this class.
  • int UserResourceId { get; set; } - Resource id of the associated user

Static Methods

  • Array of Appointment Appointment_getAppointmentsInTimeSpanByResource(int Resource resource id "Resource unique id", DateTime startDate "Start of the time span", DateTime endDate "End of the time span") - Returns all appointments for a resource within a date range
  • Array of Appointment Appointment_getAppointmentsInTimeSpanByUser(int User resource id "User resource unique id", DateTime startDate "Start of the time span", DateTime endDate "End of the time span") - Returns all appointments for a user within a date range