![]() ![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 19
1998-2004 Gravitybox Software LLC
will be two conflicts at this particular time. Conflicts are not necessarily an error. There
are times when a conflict is valid and even wanted. Nonetheless, there is a better way
to display this information, for this office example. There exist two rooms in this office;
this is the reason why two appointments are present for the same time. This means that
in reality there is no conflict.
The Rooms collection defines a set of rooms that may be associated with an
appointment. When the Viewmode is set to a property that supports dates and rooms,
each day will have as a subcategory, the defined Rooms. If there are two rooms
defined, the schedule will have the two rooms displayed, for each day on the schedule.
Now when the two patients are displayed, there is no conflict, since each appointment's
associated room makes it unique on the schedule.
Table 1.2
Room Object Definition
Id
This is a 32-bit integer that may be used to store extra data.
IsDirty
This property determines if an object has been modified. This property
may be set to false upon load and checked before a conditional save.
Changing the Id property or renaming the Room object through the
Rooms collection will cause this property to be true.
Index
This read-only property is the numeric index of this object in its parent
collection. The valid values are 1 to N, where N is the number of
objects in the Rooms collection.
Name
This is the name, as well as the caption, of the Room object. This
property is read-only after the addition; however it can be set indirectly
by using the Rename method of the Rooms collection.
Figure 1.2
Each appointment has a Room property that may be set to an existing Room
objects name or index. The property does not have to be mapped to anything; however
if it does not map to anything and rooms are being displayed on the schedule, this
appointment will not be shown. This property will never return an error for an incorrect
|