Definition Type: Element
Name: Calendar
Namespace: http://schemas.microsoft.com/project
Containing Schema: mspdi.xsd
MinOccurs 1
MaxOccurs unbounded
Abstract
Documentation:
Calendars are used to define standard working and non-working times. Projects must have one base calendar. Tasks and resources may have their own non-base calendars which are based on a base calendar.
Collapse XSD Schema Diagram:
Drilldown into WeekDays in schema mspdi_xsd Drilldown into BaseCalendarUID in schema mspdi_xsd Drilldown into IsBaseCalendar in schema mspdi_xsd Drilldown into Name in schema mspdi_xsd Drilldown into UID in schema mspdi_xsdXSD Diagram of Calendar in schema mspdi_xsd (Microsoft Office 2003 Reference Schemas)
Collapse XSD Schema Code:
<xsd:element name="Calendar" minOccurs="1" maxOccurs="unbounded">
    <xsd:annotation>
        <xsd:documentation>Calendars are used to define standard working and non-working times. Projects must have one base calendar. Tasks and resources may have their own non-base calendars which are based on a base calendar.</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:sequence>
            <xsd:element name="UID" type="xsd:integer">
                <xsd:annotation>
                    <xsd:documentation>The unique identifier of the calendar.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Name" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>The name of the calendar.</xsd:documentation>
                </xsd:annotation>
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string">
                        <xsd:maxLength value="512" />
                    </xsd:restriction>
                </xsd:simpleType>
            </xsd:element>
            <xsd:element name="IsBaseCalendar" type="xsd:boolean" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>Whether the calendar is a base calendar.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="BaseCalendarUID" type="xsd:integer" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>The unique identifier of the base calendar on which this calendar depends. Only applicable if the calendar is not a base calendar.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="WeekDays" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>The collection of Weekdays that defines this calendar.</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="WeekDay" minOccurs="0" maxOccurs="unbounded">
                            <xsd:annotation>
                                <xsd:documentation>A weekday either defines regular days of the week or exception days in the calendar.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="DayType" minOccurs="1">
                                        <xsd:annotation>
                                            <xsd:documentation>The type of day. Values are: 0=Exception, 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday</xsd:documentation>
                                        </xsd:annotation>
                                        <xsd:simpleType>
                                            <xsd:restriction base="xsd:integer">
                                                <xsd:enumeration value="0" />
                                                <xsd:enumeration value="1" />
                                                <xsd:enumeration value="2" />
                                                <xsd:enumeration value="3" />
                                                <xsd:enumeration value="4" />
                                                <xsd:enumeration value="5" />
                                                <xsd:enumeration value="6" />
                                                <xsd:enumeration value="7" />
                                            </xsd:restriction>
                                        </xsd:simpleType>
                                    </xsd:element>
                                    <xsd:element name="DayWorking" type="xsd:boolean" minOccurs="0">
                                        <xsd:annotation>
                                            <xsd:documentation>Whether the specified date or day type is working.</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="TimePeriod" minOccurs="0">
                                        <xsd:annotation>
                                            <xsd:documentation>Defines a contiguous set of exception days.</xsd:documentation>
                                        </xsd:annotation>
                                        <xsd:complexType>
                                            <xsd:sequence>
                                                <xsd:element name="FromDate" type="xsd:dateTime" minOccurs="0">
                                                    <xsd:annotation>
                                                        <xsd:documentation>The beginning of the exception time.</xsd:documentation>
                                                    </xsd:annotation>
                                                </xsd:element>
                                                <xsd:element name="ToDate" type="xsd:dateTime" minOccurs="0">
                                                    <xsd:annotation>
                                                        <xsd:documentation>The end of the exception time.</xsd:documentation>
                                                    </xsd:annotation>
                                                </xsd:element>
                                            </xsd:sequence>
                                        </xsd:complexType>
                                    </xsd:element>
                                    <xsd:element name="WorkingTimes" minOccurs="0">
                                        <xsd:annotation>
                                            <xsd:documentation>The collection of working times that define the time worked on the weekday.  One of these must be present, and there may be no more than five.</xsd:documentation>
                                        </xsd:annotation>
                                        <xsd:complexType>
                                            <xsd:sequence>
                                                <xsd:choice>
                                                    <xsd:element name="WorkingTime" minOccurs="0" maxOccurs="5">
                                                        <xsd:annotation>
                                                            <xsd:documentation>Defines the working time during the weekday.</xsd:documentation>
                                                        </xsd:annotation>
                                                        <xsd:complexType>
                                                            <xsd:sequence>
                                                                <xsd:element name="FromTime" type="xsd:time" minOccurs="0">
                                                                    <xsd:annotation>
                                                                        <xsd:documentation>The beginning of the working time.</xsd:documentation>
                                                                    </xsd:annotation>
                                                                </xsd:element>
                                                                <xsd:element name="ToTime" type="xsd:time" minOccurs="0">
                                                                    <xsd:annotation>
                                                                        <xsd:documentation>The end of the working time.</xsd:documentation>
                                                                    </xsd:annotation>
                                                                </xsd:element>
                                                            </xsd:sequence>
                                                        </xsd:complexType>
                                                    </xsd:element>
                                                </xsd:choice>
                                            </xsd:sequence>
                                        </xsd:complexType>
                                    </xsd:element>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
</xsd:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
UID nsC:UID (1) (1)
Name nsC:Name 0 (1)
IsBaseCalendar nsC:IsBaseCalendar 0 (1)
BaseCalendarUID nsC:BaseCalendarUID 0 (1)
WeekDays nsC:WeekDays 0 (1)