Definition Type: ComplexType
Name: TimeCardType
Namespace: http://ns.hr-xml.org/2007-04-15
Containing Schema: TimeCard.xsd
Abstract
Collapse XSD Schema Diagram:
Drilldown into UserArea in schema userarea_xsd Drilldown into AdditionalData in schema timecard_xsd Drilldown into ApprovalInfo in schema timecard_xsd Drilldown into SubmitterInfo in schema timecard_xsd Drilldown into ReportedTime in schema timecard_xsd Drilldown into ReportedResource in schema timecard_xsd Drilldown into Id in schema timecard_xsd Drilldown into lang in schema xml_xsdXSD Diagram of TimeCardType in schema timecard_xsd (HR-XML - Human Resources XML)
Collapse XSD Schema Code:
<xsd:complexType name="TimeCardType">
    <xsd:sequence>
        <xsd:element name="Id" type="EntityIdType" minOccurs="0" />
        <xsd:element name="ReportedResource">
            <xsd:complexType>
                <xsd:choice>
                    <xsd:element name="Person" type="TimeCardPersonType" />
                    <xsd:element name="Resource">
                        <xsd:complexType>
                            <xsd:sequence>
                                <xsd:element name="Id" type="EntityIdType" minOccurs="0" maxOccurs="unbounded" />
                                <xsd:element name="ResourceName" type="xsd:string" minOccurs="0" />
                                <xsd:element name="AdditionalData" type="AdditionalDataType" minOccurs="0" maxOccurs="unbounded" />
                            </xsd:sequence>
                            <xsd:attribute name="type" type="xsd:string" />
                        </xsd:complexType>
                    </xsd:element>
                </xsd:choice>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="ReportedTime" maxOccurs="unbounded">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="PeriodStartDate" type="AnyDateTimeType" />
                    <xsd:element name="PeriodEndDate" type="AnyDateTimeType" />
                    <xsd:element name="ReportedPersonAssignment" minOccurs="0">
                        <xsd:complexType>
                            <xsd:sequence>
                                <xsd:element name="Id" type="EntityIdType" minOccurs="0" />
                            </xsd:sequence>
                        </xsd:complexType>
                    </xsd:element>
                    <xsd:choice maxOccurs="unbounded">
                        <xsd:element name="TimeInterval">
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="Id" type="EntityIdType" minOccurs="0" />
                                    <xsd:element name="StartDateTime" type="AnyDateTimeType" />
                                    <xsd:choice>
                                        <xsd:sequence>
                                            <xsd:element name="EndDateTime" type="AnyDateTimeType" />
                                            <xsd:element name="Duration" type="TimeCardDuration" minOccurs="0" />
                                        </xsd:sequence>
                                        <xsd:element name="Duration" type="TimeCardDuration" />
                                    </xsd:choice>
                                    <xsd:element name="PieceWork" minOccurs="0" maxOccurs="unbounded">
                                        <xsd:complexType>
                                            <xsd:sequence>
                                                <xsd:element name="Piece">
                                                    <xsd:complexType>
                                                        <xsd:sequence>
                                                            <xsd:element name="Id" type="EntityIdType" minOccurs="0" />
                                                            <xsd:element name="PieceValue" type="xsd:string" />
                                                        </xsd:sequence>
                                                    </xsd:complexType>
                                                </xsd:element>
                                                <xsd:element name="Quantity">
                                                    <xsd:complexType>
                                                        <xsd:simpleContent>
                                                            <xsd:extension base="xsd:double">
                                                                <xsd:attribute name="unitOfMeasure" type="xsd:string" />
                                                            </xsd:extension>
                                                        </xsd:simpleContent>
                                                    </xsd:complexType>
                                                </xsd:element>
                                            </xsd:sequence>
                                        </xsd:complexType>
                                    </xsd:element>
                                    <xsd:element name="RateOrAmount" minOccurs="0" maxOccurs="unbounded">
                                        <xsd:complexType>
                                            <xsd:simpleContent>
                                                <xsd:extension base="xsd:double">
                                                    <xsd:attribute name="currency" type="CurrencyCodeType" use="required" />
                                                    <xsd:attribute name="type" type="xsd:string" use="required" />
                                                    <xsd:attribute name="period" type="xsd:string" />
                                                    <xsd:attribute name="multiplier" type="xsd:double" />
                                                    <xsd:attribute name="toBeBilled" type="xsd:boolean" />
                                                    <xsd:attribute name="toBePaid" type="xsd:boolean" />
                                                </xsd:extension>
                                            </xsd:simpleContent>
                                        </xsd:complexType>
                                    </xsd:element>
                                    <xsd:element name="Allowance" minOccurs="0" maxOccurs="unbounded">
                                        <xsd:complexType>
                                            <xsd:sequence>
                                                <xsd:element name="Id" type="EntityIdType" minOccurs="0" />
                                                <xsd:element name="StartDate" type="AnyDateTimeType" minOccurs="0" />
                                                <xsd:element name="EndDate" type="AnyDateTimeType" minOccurs="0" />
                                                <xsd:element name="Amount" minOccurs="0">
                                                    <xsd:complexType>
                                                        <xsd:simpleContent>
                                                            <xsd:extension base="xsd:double">
                                                                <xsd:attribute name="currency" type="CurrencyCodeType" use="required" />
                                                            </xsd:extension>
                                                        </xsd:simpleContent>
                                                    </xsd:complexType>
                                                </xsd:element>
                                                <xsd:element name="Quantity" type="xsd:double" minOccurs="0" />
                                                <xsd:element name="AdditionalData" type="AdditionalDataType" minOccurs="0" maxOccurs="unbounded" />
                                                <xsd:element name="ApprovalInfo" type="ApprovalInfoType" minOccurs="0" maxOccurs="unbounded" />
                                                <xsd:element name="SubmitterInfo" type="SubmitterInfoType" minOccurs="0" />
                                                <xsd:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded" />
                                            </xsd:sequence>
                                            <xsd:attribute name="type" type="xsd:string" use="required" />
                                            <xsd:attribute name="billable" type="xsd:boolean" />
                                            <xsd:attribute name="actionCode" type="ActionCodeType" />
                                        </xsd:complexType>
                                    </xsd:element>
                                    <xsd:element name="AdditionalData" type="AdditionalDataType" minOccurs="0" maxOccurs="unbounded" />
                                    <xsd:element name="ApprovalInfo" type="ApprovalInfoType" minOccurs="0" maxOccurs="unbounded" />
                                    <xsd:element name="SubmitterInfo" type="SubmitterInfoType" minOccurs="0" />
                                    <xsd:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded" />
                                </xsd:sequence>
                                <xsd:attribute name="type" type="xsd:string" use="required" />
                                <xsd:attribute name="dayAssignment" type="DayAssignmentType" />
                                <xsd:attribute name="billable" type="xsd:boolean" />
                                <xsd:attribute name="actionCode" type="ActionCodeType" />
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element name="TimeEvent">
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="Id" type="EntityIdType" minOccurs="0" />
                                    <xsd:element name="EventDateTime" type="AnyDateTimeType" />
                                    <xsd:element name="RateOrAmount" minOccurs="0" maxOccurs="unbounded">
                                        <xsd:complexType>
                                            <xsd:simpleContent>
                                                <xsd:extension base="xsd:double">
                                                    <xsd:attribute name="currency" type="CurrencyCodeType" use="required" />
                                                    <xsd:attribute name="type" type="xsd:string" use="required" />
                                                    <xsd:attribute name="period" type="xsd:string" />
                                                </xsd:extension>
                                            </xsd:simpleContent>
                                        </xsd:complexType>
                                    </xsd:element>
                                    <xsd:element name="AdditionalData" type="AdditionalDataType" minOccurs="0" maxOccurs="unbounded" />
                                    <xsd:element name="ApprovalInfo" type="ApprovalInfoType" minOccurs="0" maxOccurs="unbounded" />
                                    <xsd:element name="SubmitterInfo" type="SubmitterInfoType" minOccurs="0" />
                                    <xsd:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded" />
                                </xsd:sequence>
                                <xsd:attribute name="type" type="xsd:string" use="required" />
                                <xsd:attribute name="dayAssignment" type="DayAssignmentType" />
                                <xsd:attribute name="billable" type="xsd:boolean" />
                                <xsd:attribute name="actionCode" type="ActionCodeType" />
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element name="Expense">
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="Id" type="EntityIdType" minOccurs="0" />
                                    <xsd:element name="ExpenseDate" type="AnyDateTimeType" />
                                    <xsd:element name="ExpenseAmount">
                                        <xsd:complexType>
                                            <xsd:simpleContent>
                                                <xsd:extension base="xsd:double">
                                                    <xsd:attribute name="currency" type="CurrencyCodeType" use="required" />
                                                </xsd:extension>
                                            </xsd:simpleContent>
                                        </xsd:complexType>
                                    </xsd:element>
                                    <xsd:element name="AdditionalData" type="AdditionalDataType" minOccurs="0" maxOccurs="unbounded" />
                                    <xsd:element name="ApprovalInfo" type="ApprovalInfoType" minOccurs="0" maxOccurs="unbounded" />
                                    <xsd:element name="SubmitterInfo" type="SubmitterInfoType" minOccurs="0" />
                                    <xsd:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded" />
                                </xsd:sequence>
                                <xsd:attribute name="type" type="xsd:string" use="required" />
                                <xsd:attribute name="billable" type="xsd:boolean" />
                                <xsd:attribute name="actionCode" type="ActionCodeType" />
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element name="Allowance">
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="Id" type="EntityIdType" minOccurs="0" />
                                    <xsd:element name="StartDate" type="AnyDateTimeType" minOccurs="0" />
                                    <xsd:element name="EndDate" type="AnyDateTimeType" minOccurs="0" />
                                    <xsd:element name="Amount" minOccurs="0">
                                        <xsd:complexType>
                                            <xsd:simpleContent>
                                                <xsd:extension base="xsd:double">
                                                    <xsd:attribute name="currency" type="CurrencyCodeType" use="required" />
                                                </xsd:extension>
                                            </xsd:simpleContent>
                                        </xsd:complexType>
                                    </xsd:element>
                                    <xsd:element name="Quantity" type="xsd:double" minOccurs="0" />
                                    <xsd:element name="AdditionalData" type="AdditionalDataType" minOccurs="0" maxOccurs="unbounded" />
                                    <xsd:element name="ApprovalInfo" type="ApprovalInfoType" minOccurs="0" maxOccurs="unbounded" />
                                    <xsd:element name="SubmitterInfo" type="SubmitterInfoType" minOccurs="0" />
                                    <xsd:element name="Comment" type="CommentType" minOccurs="0" maxOccurs="unbounded" />
                                </xsd:sequence>
                                <xsd:attribute name="type" type="xsd:string" use="required" />
                                <xsd:attribute name="billable" type="xsd:boolean" />
                                <xsd:attribute name="actionCode" type="ActionCodeType" />
                            </xsd:complexType>
                        </xsd:element>
                    </xsd:choice>
                    <xsd:element name="AdditionalData" type="AdditionalDataType" minOccurs="0" maxOccurs="unbounded" />
                    <xsd:element name="ApprovalInfo" type="ApprovalInfoType" minOccurs="0" maxOccurs="unbounded" />
                    <xsd:element name="SubmitterInfo" type="SubmitterInfoType" minOccurs="0" />
                </xsd:sequence>
                <xsd:attribute name="status" type="xsd:string">
                    <xsd:annotation>
                        <xsd:documentation>The preferred statuses are: Raw, Processed, Submitted, Rejected, Approved, Final. Please look at the documentation for definitions.</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="SubmitterInfo" type="SubmitterInfoType" minOccurs="0" />
        <xsd:element name="ApprovalInfo" type="ApprovalInfoType" minOccurs="0" maxOccurs="unbounded" />
        <xsd:element name="AdditionalData" type="AdditionalDataType" minOccurs="0" maxOccurs="unbounded" />
        <xsd:element ref="UserArea" minOccurs="0" />
    </xsd:sequence>
    <xsd:attribute ref="xml:lang" />
</xsd:complexType>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
Id hr:Id 0 (1)
ReportedResource hr:ReportedResource (1) (1)
ReportedTime hr:ReportedTime (1) unbounded
SubmitterInfo hr:SubmitterInfo 0 (1)
ApprovalInfo hr:ApprovalInfo 0 unbounded
AdditionalData hr:AdditionalData 0 unbounded
UserArea hr:UserArea 0 (1)
Collapse Child Attributes:
Name Type Default Value Use
lang nsA:lang (Optional)
Collapse Derivation Tree:
Collapse References:
hr:TimeCard