Skip to content

Instantly share code, notes, and snippets.

@Odomontois
Created December 10, 2012 14:43
Show Gist options
  • Save Odomontois/4250925 to your computer and use it in GitHub Desktop.
Save Odomontois/4250925 to your computer and use it in GitHub Desktop.
Загрузка договоров ИУС ПЗ
<?xml version="1.0" encoding="UTF-8"?>
<contractList xmlns="urn:ru:insys:iuspz:cntr:upload">
<contract>
<attributes>
<attribute attrId="ZCNTRCAT">asdfsdf</attribute>
<attribute attrId="BUKRS">1023</attribute>
<attribute attrId="ZADVDATE">23.06.2012</attribute>
<mvattribute attrId="ZCNTRPARTNER">
<line>
<field name="PARTNER">12312</field>
<field name="BKTYP">0001</field>
</line>
<line>
<field name="PARTNER">13423</field>
<field name="BKTYP">0002</field>
</line>
</mvattribute>
</attributes>
<budgetData>
<line>
<field name="ZFIPOS">1.12.23.10.45</field>
<field name="ZLSCH">B</field>
<field name="ZBUSINESSPARTNER">123</field>
<field name="ZFISTL_ITEM">12.23.23</field>
</line>
<line>
<field name="ZFIPOS">2.12.13.10.45</field>
<field name="ZLSCH">B</field>
<field name="ZBUSINESSPARTNER">3442</field>
<field name="ZFISTL_ITEM">23.23.23</field>
</line>
</budgetData>
<attachments>
<file>
<name>123\23-22 p5.tiff</name>
<attributes>
<attribute attrId="CREATION_DATE">23.11.2011</attribute>
<attribute attrId="DESCRIPTION">Скан договора от 123\23-22 стр.5</attribute>
</attributes>
<content>
<localFileRef>/scan/23.12.2005/123_23_22_p5.tiff</localFileRef>
</content>
</file>
</attachments>
</contract>
<contract>
<attributes>
<attribute attrId="ZCNTRCAT">asdfsdf</attribute>
<attribute attrId="BUKRS">1023</attribute>
<attribute attrId="ZADVDATE">23.06.2012</attribute>
<mvattribute attrId="ZCNTRPARTNER">
<line>
<field name="PARTNER">12312</field>
<field name="BKTYP">0001</field>
</line>
<line>
<field name="PARTNER">13423</field>
<field name="BKTYP">0002</field>
</line>
</mvattribute>
</attributes>
<budgetData>
<line>
<field name="ZFIPOS">1.12.23.10.45</field>
<field name="ZLSCH">B</field>
<field name="ZBUSINESSPARTNER">123</field>
<field name="ZFISTL_ITEM">12.23.23</field>
</line>
<line>
<field name="ZFIPOS">2.12.13.10.45</field>
<field name="ZLSCH">B</field>
<field name="ZBUSINESSPARTNER">3442</field>
<field name="ZFISTL_ITEM">23.23.23</field>
</line>
</budgetData>
<attachments>
<file>
<name>123\23-22 p5.tiff</name>
<attributes>
<attribute attrId="CREATION_DATE">23.11.2011</attribute>
<attribute attrId="DESCRIPTION">Скан договора от 123\23-22 стр.5</attribute>
</attributes>
<content>
<localFileRef>/scan/23.12.2005/123_23_22_p5.tiff</localFileRef>
</content>
</file>
</attachments>
</contract>
</contractList>
<?xml version='1.0' encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:ru:insys:iuspz:cntr:upload"
version="0.1">
<xs:simpleType name="attributeName">
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z0-9_]+"/>
</xs:restriction>
</xs:simpleType>
<xs:attributeGroup name="attrId">
<xs:attribute name="attrId" use="required"/>
</xs:attributeGroup>
<xs:complexType name="multiValueLineList">
<xs:sequence>
<xs:element name="line" type="multiValueLine"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="multiValueLine">
<xs:sequence>
<xs:element name="field" type="multiValueField"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="multiValueField">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" use="required" type="attributeName"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="attributeValue">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attributeGroup ref="attrId"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="attributeList">
<xs:sequence>
<xs:element name="attribute" type="attributeValue"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="multiValueAttribute">
<xs:complexContent>
<xs:extension base="multiValueLineList">
<xs:attributeGroup ref="attrId"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="contractAttributeList">
<xs:complexContent>
<xs:extension base="attributeList">
<xs:sequence>
<xs:element name="mvattribute" type="multiValueAttribute"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="attachmentFileContent">
<xs:choice>
<xs:element name="localFileRef" type="xs:string"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="fileAttachment">
<xs:sequence>
<xs:element name="name" type="xs:string" minOccurs="1"/>
<xs:element name="attributes" type="attributeList"/>
<xs:element name="content" type="attachmentFileContent"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="attachmentList">
<xs:sequence>
<xs:element name="file" type="fileAttachment"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="contract">
<xs:sequence>
<xs:element name="attributes" maxOccurs="1" type="contractAttributeList"/>
<xs:element name="budgetData" type="multiValueLineList" maxOccurs="1"/>
<xs:element name="attachments" maxOccurs="1" type="attachmentList"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="contractList">
<xs:sequence>
<xs:element name="contract" type="contract"/>
</xs:sequence>
</xs:complexType>
<xs:element name="contractList" type="contractList"/>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment