<?xml version="1.0" encoding="windows-1251"?>
<xs:schema id="CO" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:sm="http://www.servplus.ru">
  <!--Контракт с поставщиком-->
  <xs:element name="CO" msdata:IsDataSet="true" msdata:CaseSensitive="true" msdata:Locale="ru" sm:PostId="SMDocuments.id" sm:Action = "Drop">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="SMDOCUMENTS" msdata:Locale="ru" sm:PostId="SMDocuments.id">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" type="xs:string" sm:FieldName="НомерКонтракта"/>
              <xs:element name="DOCTYPE" type="xs:string" default="CO"/>
              <xs:element name="CLIENTINDEX" type="xs:decimal" minOccurs="0" sm:FieldName="ИндексКонтрагента"/>
              <xs:element name="COMMENTARY" type="xs:string" minOccurs="0" />
              <xs:element name="CREATEDAT" type="xs:dateTime" sm:FieldName="ДатаКонтракта"/>
              <xs:element name="CURRENCYMULTORDER" type="xs:decimal" default="0" />
              <xs:element name="CURRENCYRATE" type="xs:decimal" default="1"/>
              <xs:element name="CURRENCYTYPE" type="xs:decimal" default="1"/>
              <xs:element name="DOCSTATE" type="xs:decimal" default="3"/>
              <xs:element name="ISROUBLES" type="xs:string" default="1" />
              <xs:element name="LOCATION" type="xs:decimal" minOccurs="0" default="1"/>
              <xs:element name="LOCATIONFROM" type="xs:decimal" minOccurs="0" />
              <xs:element name="LOCATIONTO" type="xs:decimal" minOccurs="0" />
              <xs:element name="OPCODE" type="xs:decimal" default="-1"/>
              <xs:element name="PRICEROUNDMODE" type="xs:decimal" default="1"/>
              <xs:element name="TOTALSUM" type="xs:decimal" default="0" />
              <xs:element name="TOTALSUMCUR" type="xs:decimal" default="0"/>
              <xs:element name="USEROP" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="SMCONTRACTS" msdata:Locale="ru">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" type="xs:string" sm:FieldName="НомерКонтракта"/>
              <xs:element name="DOCTYPE" type="xs:string" default="CO"/>
              <xs:element name="BEGINSAT" type="xs:dateTime" minOccurs="0" sm:FieldName="ДатаНачалаКонтракта"/>
              <xs:element name="CONTRACTID" type="xs:string" minOccurs="0" />
              <xs:element name="CONTRACTPAYMENTS" type="xs:decimal" default="0" />
              <xs:element name="CONTRACTTYPE" type="xs:decimal" default="0" />
              <xs:element name="CURRENCYCOMMENTS" type="xs:string" minOccurs="0" />
              <xs:element name="ENDSAT" type="xs:dateTime" minOccurs="0" />
              <xs:element name="FINELIMIT" type="xs:decimal" minOccurs="0" />
              <xs:element name="FINEPERCENT" type="xs:decimal" default="0" />
              <xs:element name="ISCALENDARDELAY" type="xs:string" default="0" />
              <xs:element name="OURSELFCLIENT" type="xs:decimal" minOccurs="0" />
              <xs:element name="PAYMENTDELAY" type="xs:decimal" default="0" />
              <xs:element name="PAYMENTFORM" type="xs:decimal" default="0" />
              <xs:element name="PAYTYPE" type="xs:decimal" default="0" />
              <xs:element name="RATEADD" type="xs:decimal" default="0" />
              <xs:element name="TITLE" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="SMSPECCO" msdata:Locale="ru" sm:PostId="SMSPECCO.DOCID">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="DOCID" type="xs:string" sm:FieldName="НомерКонтракта"/>
              <xs:element name="DOCTYPE" type="xs:string" default="CO"/>
              <xs:element name="SPECITEM" type="xs:decimal" sm:ColumnName="НомерПозиции"/>
              <xs:element name="ARTICLE" type="xs:string" sm:ColumnName="Артикул"/>
              <xs:element name="DISPLAYITEM" type="xs:decimal" sm:ColumnName="НомерПозиции"/>
              <xs:element name="EXTRACHARGE" type="xs:decimal" minOccurs="0" />
              <xs:element name="ITEMPRICE" type="xs:decimal" minOccurs="0" sm:ColumnName="ЦенаКонтракта"/>
              <xs:element name="ITEMPRICECUR" type="xs:decimal" minOccurs="0" />
              <xs:element name="ITEMPRICENOTAX" type="xs:decimal" minOccurs="0" />
              <xs:element name="MANUFACTURERSPRICE" type="xs:decimal" minOccurs="0" />
              <xs:element name="MINQUANTITY" type="xs:decimal" minOccurs="0" />
              <xs:element name="NDSSUPPLIER" type="xs:decimal" default="0" />
              <xs:element name="PACKSIZE" type="xs:decimal" default="0" sm:ColumnName="КоличествоВупаковке"/>
              <xs:element name="PERCENTDECREASE" type="xs:decimal" minOccurs="0" default="100"/>
              <xs:element name="PERCENTINCREASE" type="xs:decimal" minOccurs="0" default="0"/>
              <xs:element name="QUANTITYDEVIATION" type="xs:decimal" minOccurs="0" />
              <xs:element name="RECOMMENDPRICE" type="xs:decimal" minOccurs="0" />
              <xs:element name="STOREPROCESSINGTIME" type="xs:decimal" default="0" />
              <xs:element name="SUMDECREASE" type="xs:decimal" minOccurs="0" sm:ColumnName="ЦенаКонтракта"/>
              <xs:element name="SUMINCREASE" type="xs:decimal" minOccurs="0" default="0"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//SMDOCUMENTS" />
      <xs:field xpath="ID" />
      <xs:field xpath="DOCTYPE" />
    </xs:unique>
    <xs:unique name="SMCOMMONBASES_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//SMCOMMONBASES" />
      <xs:field xpath="ID" />
      <xs:field xpath="DOCTYPE" />
      <xs:field xpath="BASEDOCTYPE" />
      <xs:field xpath="BASEID" />
    </xs:unique>
    <xs:unique name="SMDOCPROPS_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//SMDOCPROPS" />
      <xs:field xpath="DOCID" />
      <xs:field xpath="DOCTYPE" />
      <xs:field xpath="PARAMNAME" />
    </xs:unique>
    <xs:unique name="SMDOCBLOBFILES_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//SMDOCBLOBFILES" />
      <xs:field xpath="ID" />
      <xs:field xpath="DOCTYPE" />
      <xs:field xpath="INSERTIONID" />
    </xs:unique>
    <xs:unique name="SMCONTRACTS_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//SMCONTRACTS" />
      <xs:field xpath="ID" />
      <xs:field xpath="DOCTYPE" />
    </xs:unique>
    <xs:unique name="SMSPECCO_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//SMSPECCO" />
      <xs:field xpath="DOCID" />
      <xs:field xpath="DOCTYPE" />
      <xs:field xpath="SPECITEM" />
    </xs:unique>
  </xs:element>
</xs:schema>