<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="BankPapers" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="BankPapers" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="GR">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="GroupID" msdata:Caption="ID группы" type="xs:short" minOccurs="0" />
              <xs:element name="Name" msdata:Caption="Название группы" type="xs:string" minOccurs="0" />
              <xs:element name="Ord" msdata:Caption="сортировка групп" type="xs:short" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="BP">
          <xs:complexType>
            <xs:sequence>
	<xs:element name="PCode" msdata:Caption="Код бумаги" type="xs:string"/>
	<xs:element name="Emitent" msdata:Caption="Эмитент" type="xs:string"/>
	<xs:element name="MP" msdata:Caption="Рыночная стоимость одной ценной бумаги" type="xs:decimal" minOccurs="0"/>
	<xs:element name="Koeff" msdata:Caption="Поправочный коэффициент" type="xs:string" minOccurs="0"/>
	<xs:element name="DP" msdata:Caption="Дата погашения" type="xs:dateTime" minOccurs="0"/>
	<xs:element name="ISIN" type="xs:string" minOccurs="0"/>
	<xs:element name="GroupID" msdata:Caption="ID группы" type="xs:short" minOccurs="0"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1">
      <xs:selector xpath=".//GR" />
      <xs:field xpath="GroupID" />
    </xs:unique>
    <xs:unique name="BP_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//BP" />
      <xs:field xpath="PCode" />
      <xs:field xpath="Emitent" />
    </xs:unique>
    <xs:keyref name="GroupRelation" refer="Constraint1">
      <xs:selector xpath=".//BP" />
      <xs:field xpath="GroupID" />
    </xs:keyref>
  </xs:element>
</xs:schema>