<?xml version="1.0" encoding="utf-8"?>
<!--
        
        ** OAGIS� Revision: 9.1  **
        ** Date: 11 May 2007 **
        ** Copyright 1997-2007, All Rights Reserved **
        
        This is an OAGIS� BOD XML Schema (XSD) Definition.
        
       License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.
        
        For support, more information, or to report implementation bugs, please contact the Open Applications Group at xml@openapplications.org.
        
        XML Schema 
        
-->
 
<!--
� Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
are the property of their respective owners.
 
-->
 
<!--    *****     Update Log     *****
 
Date           By      Note
13 Apr 2010    NO      New ProjectCosts noun...in progress.
17 Nov 2010    NO      Moved common elements to ProjectComponents

        *****     Update End     *****
 
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns="http://schema.infor.com/InforOAGIS/2"
        targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
        attributeFormDefault="unqualified">

        <xsd:include schemaLocation="../Components/Operational/ProjectComponents.xsd"/>

        <xsd:element name="ProjectCosts" type="ProjectCostsType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">ProjectCosts noun description here .... </xsd:documentation>
                </xsd:annotation>
        </xsd:element>

        <xsd:complexType name="ProjectCostsType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2"/>
                </xsd:annotation>
                <xsd:complexContent>
                        <xsd:extension base="StandardHeaderType">
                                <xsd:sequence>
                                        <xsd:element ref="ProjectPlan" minOccurs="0"/>
                                        <xsd:element ref="Project" minOccurs="0"/>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>

        <xsd:element name="Project" type="ProjectReferenceType"/>
        
        <xsd:complexType name="ProjectPlanType">
                <xsd:sequence>
                        <xsd:element ref="PlanID" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation>The plan is a three digit alpha numeric field.  All activities are under a plan code. </xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="ProjectActivity" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="ProjectPlan" type="ProjectPlanType"/>
        
        <xsd:complexType name="ProjectActivityType">
                <xsd:sequence>
                        <xsd:element ref="ActivityID" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation>Activity is a 9 character field. This is the activity to which 
                                                budget values are assigned. 
                                        </xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="CostDetail" minOccurs="0"/>
                        <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="ProjectActivity" type="ProjectActivityType"/>
        

        <xsd:complexType name="CostDetailType">
                <xsd:sequence>
                        <xsd:element ref="CostsType" minOccurs="0"/>
                        <xsd:element ref="ProjectCostsPeriod" minOccurs="0"/>
                        <xsd:element ref="EmployeePerson" minOccurs="0"/>
                        <xsd:element ref="CostType" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation>can be item, labor, equipment, subcontracting or any sundry. </xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="CostComponentID" minOccurs="0"/>
                        <xsd:element ref="Quantity" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation>quantity will be the qty of hours or  qty of items, etc. </xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="BaseUOMQuantity" minOccurs="0"/>                        
                        <xsd:element ref="Duration" minOccurs="0"/>
                        <xsd:element ref="CostAmount" minOccurs="0"/>
                        <xsd:element ref="CostBaseAmount" minOccurs="0"/>
                        <xsd:element ref="CostReportAmount" minOccurs="0"/>
                        <xsd:element ref="ExtendedCost" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation>Total Cost. </xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="ExtendedBaseCost" minOccurs="0"/>
                        <xsd:element ref="SalesAmount" minOccurs="0"/>
                        <xsd:element ref="SalesBaseAmount" minOccurs="0"/>
                        <xsd:element ref="SalesReportAmount" minOccurs="0"/>
                        <xsd:element ref="ExtendedSales" minOccurs="0"/>
                        <xsd:element ref="ExtendedBaseSales" minOccurs="0"/>
                        <xsd:element ref="RegistrationDate" minOccurs="0"/>
                        <xsd:element ref="ProjectEngineerPerson" minOccurs="0"/>
                        <xsd:element ref="CostControlPeriod" minOccurs="0"/>
                        <xsd:element ref="FiscalPeriod" minOccurs="0"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="CostDetail" type="CostDetailType"/>        

        <xsd:element name="CostsType" type="CodeType">
                <xsd:annotation>
                        <xsd:documentation >Holds type associated with the noun Costs.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        
        
</xsd:schema>
